:root {
    /* Surfaces */
    --bg-canvas: #0B060A;
    --bg-surface: #160D14;
    --bg-elevated: #22151F;
    --bg-card-deep: #0F080D;
    --input-bg: #1E111B;

    /* Borders */
    --border-subtle: rgba(255, 182, 217, 0.14);
    --border-strong: rgba(255, 105, 180, 0.42);

    /* Text (WCAG AA+ on --bg-canvas and --bg-surface) */
    --text-primary: #F7EFF4;
    --text-secondary: #B9A6B3;
    --text-muted: #9A8794;

    /* Brand & Actions */
    --brand-primary: #D81B78;
    --brand-primary-hover: #EC2F8C;
    --brand-accent: #FF7AC2;
    --accent-hot: #FF7AC2;
    --accent-deep: #D81B78;
    --accent-lip: #FFD1DC;

    --action-whatsapp: #1E9E52;
    --action-whatsapp-hover: #188344;
    --action-telegram: #0088CC;
    --action-telegram-hover: #0073AD;

    /* Status */
    --status-success: #22C55E;
    --status-vip: #F5B731;
    --status-error: #EF4444;
    --status-warning: #F59E0B;

    /* Backwards compatibility aliases for admin.css & inline styles */
    --bg-dark: var(--bg-canvas);
    --bg-card: var(--bg-surface);
    --text-main: var(--text-primary);
    --gold: var(--brand-accent);
    --gold-hover: #FFA3D6;
    --border-color: var(--border-subtle);
    --red: var(--status-error);
    --red-hover: #F87171;

    /* Typography */
    --text-h1: 28px;
    --text-h2: 22px;
    --text-h3: 17px;
    --text-body: 15px;
    --text-ui: 14px;
    --text-input: 16px;
    --text-meta: 13px;
    --text-badge: 12px;

    /* Spacing (4px base) */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-12: 48px;
    --sp-16: 64px;

    /* Radius */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-pill: 999px;

    /* Elevation */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45);
    --shadow-modal: 0 20px 50px rgba(0, 0, 0, 0.72);

    /* Z-index layers */
    --z-sticky: 100;
    --z-header: 200;
    --z-bottom-nav: 300;
    --z-drawer: 400;
    --z-modal: 500;
    --z-toast: 600;

    --mobile-nav-h: 64px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background-color: var(--bg-canvas);
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: var(--text-body);
    line-height: 1.55;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: clip;
}

a {
    color: var(--brand-accent);
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover {
    color: var(--gold-hover);
}

:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

img {
    max-width: 100%;
    height: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 1023px) {
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 767px) {
    :root {
        --text-h1: 22px;
        --text-h2: 18px;
        --text-h3: 16px;
    }

    .container {
        padding: 0 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
