/* ============================================================
   DATESAFY — DESIGN SYSTEM
   Mobile-first PWA · Darker Grotesque + Orelega One

   TABLE OF CONTENTS
   ─────────────────────────────────────────────────────────
   1.  Design Tokens (:root)
       1a. Brand & State Colors
       1b. Surfaces & Text (Light theme)
       1c. Glassmorphism
       1d. Typography (families, scale, weights, leading)
       1e. Icon Scale
       1f. Spacing Scale
       1g. Component Sizing & Touch Targets
       1h. Border Radius
       1i. Shadows
       1j. Motion (easing, duration)
       1k. Z-index Stack
   2.  Dark Theme Overrides
   3.  CSS Reset & Base
   4.  App Layout (container, views, nav, section-wrap, layout-grid)
   5.  Effects (liquid glass, orbs)
   6.  Buttons
   7.  Forms & Inputs
   8.  Steppers
   9.  Welcome / Onboarding
   10. Home (header, cards, tips, quick-actions, spots)
   11. Bottom Navigation
   12. Drawer Menu
   13. New Date Form
   14. Contacts
   15. Profile
   16. SafeID
   17. SOS
   18. Toast Notifications
   19. Modals
   20. Privacy Overlay
   21. Skeleton Loading
   22. Keyframe Animations
   23. Dark-mode System Preference
   ============================================================ */


/* ─────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   ───────────────────────────────────────────────────────── */
:root {

    /* ── 1a. Brand & State Colors ────────────────────── */
    --color-primary:       #5B6CFF;
    --color-primary-dark:  #4F46E5;
    --color-primary-light: #818CF8;
    --color-secondary:     #14B8A6;

    --color-success: #16A34A;
    --color-warning: #F59E0B;
    --color-danger:  #DC2626;
    --color-info:    #3B82F6;

    /* Subtle tints (10% opacity) — use for icon bg, info boxes */
    --color-primary-tint:  rgba(91, 108, 255, 0.10);
    --color-success-tint:  rgba(22, 163, 74,  0.10);
    --color-warning-tint:  rgba(245, 158, 11, 0.10);
    --color-danger-tint:   rgba(220, 38, 38,  0.10);
    --color-teal-tint:     rgba(20, 184, 166, 0.10);


    /* ── 1b. Surfaces & Text (Light) ─────────────────── */
    --bg-primary:   #FAFAFA;   /* page background */
    --bg-secondary: #F3F4F6;   /* cards, sections  */
    --bg-tertiary:  #E5E7EB;   /* hover, dividers  */
    --bg-dark:      #09090B;   /* absolute dark    */

    --text-primary:    #18181B;
    --text-secondary:  #52525B;
    --text-tertiary:   #9CA3AF;
    --text-on-primary: #FFFFFF;

    --border-color: #E5E7EB;
    --shadow-color: rgba(0, 0, 0, 0.08);


    /* ── 1c. Glassmorphism ───────────────────────────── */
    --bg-glass:        rgba(255, 255, 255, 0.70);
    --bg-glass-border: rgba(255, 255, 255, 0.50);
    --glass-blur:      1.25rem;
    --glass-saturation: 180%;
    --glass-brightness: 100%;
    --header-glass-bg: rgba(255, 255, 255, 0.4);
    --header-glass-bg-dark: rgba(30, 30, 30, 0.3);
    --header-glass-blur: 0.75rem;
    --header-glass-saturation: 180%;


    /* ── 1d. Typography ──────────────────────────────── */
    --font-family:         'Darker Grotesque', sans-serif;
    --font-family-display: 'Orelega One', cursive;

    /* Type Scale — mobile-first (rem) */
    --font-size-2xs:  0.625rem;  /* 10px — captions, micro-labels */
    --font-size-xs:   0.75rem;   /* 12px — labels, badges         */
    --font-size-sm:   0.875rem;  /* 14px — secondary text         */
    --font-size-base: 1rem;      /* 16px — body default           */
    --font-size-md:   1.125rem;  /* 18px — comfortable body       */
    --font-size-lg:   clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
    --font-size-xl:   clamp(1.375rem, 1.15rem + 0.75vw, 1.5rem);
    --font-size-2xl:  clamp(1.75rem, 1.45rem + 1.3vw, 2rem);
    --font-size-3xl:  clamp(2.125rem, 1.7rem + 2vw, 2.5rem);
    --font-size-4xl:  clamp(2.75rem, 2.1rem + 3vw, 3.25rem);

    /* Semantic Type Scale - profile menu as the main reference */
    --type-header-title: var(--font-size-lg);
    --type-profile-name: clamp(1.25rem, 1.05rem + 0.85vw, 1.5rem);
    --type-label-small: var(--font-size-xs);
    --type-title: var(--font-size-base);
    --type-subtitle: var(--font-size-sm);

    /* Font Weights */
    --weight-regular:   400;
    --weight-medium:    500;
    --weight-semibold:  600;
    --weight-bold:      700;
    --weight-black:     900;

    /* Line Heights */
    --leading-none:     1;      /* single-line labels only     */
    --leading-tight:    1.2;    /* headings                    */
    --leading-snug:     1.35;   /* subheadings                 */
    --leading-normal:   1.5;    /* body text ← use as default  */
    --leading-relaxed:  1.65;   /* long-form reading           */

    /* Body default — was incorrectly set to 1 */
    --line-height-base:    1.5;
    --line-height-tight:   1.2;
    --line-height-heading: 1.3;
    --line-height-normal:  1.5;


    /* ── 1e. Icon Scale ──────────────────────────────── */
    /* Apply via width/height on <svg> or .icon-* utility   */
    --icon-2xs:  0.75rem;
    --icon-xs:   0.875rem;
    --icon-sm:   1rem;
    --icon-md:   1.25rem;
    --icon-base: 1.5rem;
    --icon-lg:   2rem;
    --icon-xl:   2.5rem;
    --icon-2xl:  3rem;
    --icon-3xl:  4rem;

    /* Semantic icon sizing - profile menu as the main reference */
    --icon-shell-sm: 2.25rem;
    --icon-shell-md: 2.5rem;
    --icon-glyph-sm: 1rem;
    --icon-glyph-md: 1.125rem;
    --icon-glyph-lg: 1.75rem;


    /* ── 1f. Spacing Scale ───────────────────────────── */
    /* 4px base grid — multiples of 4 */
    --space-1:  0.25rem;   /*  4px */
    --space-2:  0.5rem;    /*  8px */
    --space-3:  0.75rem;   /* 12px */
    --space-4:  1rem;      /* 16px */
    --space-5:  1.25rem;   /* 20px */
    --space-6:  1.5rem;    /* 24px */
    --space-8:  2rem;      /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */

    /* Legacy aliases — keeps existing components working */
    --space-xs:  var(--space-1);   /*  4px */
    --space-sm:  var(--space-2);   /*  8px */
    --space-md:  var(--space-4);   /* 16px */
    --space-lg:  var(--space-6);   /* 24px */
    --space-xl:  var(--space-8);   /* 32px */
    --space-2xl: var(--space-12);  /* 48px */

    /* Layout — grelha de referência (4 colunas × gutter 16px) + viewport mínimo de desenho */
    --layout-viewport-min: 22.5rem; /* 360px — baseline smartphones / tablets estreitos */
    --layout-grid-columns: 4;
    --layout-grid-gutter: var(--space-md); /* 16px — mesmo valor que o gutter lateral do conteúdo */
    --layout-grid-row-gap: var(--space-md);
    --page-gutter: var(--layout-grid-gutter);

    --app-max-width: 26.875rem; /* 430px — largura máxima do shell (ex.: Pro Max) */

    /* ── 1g. Component Sizing & Touch Targets ────────── */
    --touch-target: 2.75rem;
    --btn-height:   clamp(3.125rem, 11vw, 3.25rem);
    --btn-height-lg: clamp(3.5rem, 12vw, 3.75rem);
    --input-height: clamp(3.125rem, 11vw, 3.25rem);
    --nav-height:   clamp(4.75rem, 17vw, 5rem);
    --header-height: clamp(3.5rem, 11vw, 4rem);
    --spot-cover-height: clamp(10.5rem, 38vw, 11.25rem);
    --spot-profile-avatar-size: clamp(5.5rem, 22vw, 6.25rem);


    /* ── 1h. Border Radius ───────────────────────────── */
    --radius-xs:   0.25rem;
    --radius-sm:   0.5rem;
    --radius-md:   0.75rem;
    --radius-lg:   1rem;
    --radius-xl:   1.5rem;
    --radius-2xl:  2rem;
    --radius-full: 999rem;


    /* ── 1i. Shadows ─────────────────────────────────── */
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md:  0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg:  0 10px 30px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.08);
    --shadow-xl:  0 20px 50px rgba(0,0,0,0.16);
    --shadow-glow-primary: 0 8px 24px rgba(91, 108, 255, 0.35);


    /* ── 1j. Motion ──────────────────────────────────── */
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in:     cubic-bezier(0.4, 0, 1, 1);
    --ease-inout:  cubic-bezier(0.4, 0, 0.2, 1);

    --duration-instant: 80ms;
    --duration-fast:    150ms;
    --duration-base:    250ms;
    --duration-slow:    350ms;
    --duration-slower:  500ms;

    /* Legacy transition aliases */
    --transition-fast: var(--duration-fast) var(--ease-out);
    --transition-base: var(--duration-base) var(--ease-out);
    --transition-slow: var(--duration-slow) var(--ease-out);


    /* ── 1k. Z-Index Stack ───────────────────────────── */
    --z-base:     1;
    --z-above:    10;
    --z-dropdown: 100;
    --z-sticky:   200;
    --z-modal:    300;
    --z-toast:    400;
    --z-privacy:  500;
}

/* ─────────────────────────────────────────────────────────
   2. DARK THEME OVERRIDES
   ───────────────────────────────────────────────────────── */
[data-theme="dark"] {
    --bg-primary:   #0F0F0F;
    --bg-secondary: #1A1A1A;
    --bg-tertiary:  #262626;

    --bg-glass:        rgba(26, 26, 26, 0.75);
    --bg-glass-border: rgba(255, 255, 255, 0.10);

    --text-primary:   #FAFAFA;
    --text-secondary: #A3A3A3;
    --text-tertiary:  #737373;

    --border-color: #262626;
    --shadow-color: rgba(0, 0, 0, 0.30);

    --shadow-sm:  0 1px 3px rgba(0,0,0,0.30);
    --shadow-md:  0 4px 12px rgba(0,0,0,0.40);
    --shadow-lg:  0 10px 30px rgba(0,0,0,0.50);

    --glass-brightness: 110%;
}

/* ─────────────────────────────────────────────────────────
   3. CSS RESET & BASE
   ───────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    line-height: var(--line-height-base);
}

/* Mobile-safe areas */
@supports (padding-top: env(safe-area-inset-top)) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* ─────────────────────────────────────────────────────────
   4. APP LAYOUT
   ───────────────────────────────────────────────────────── */
.app-container {
    width: 100%;
    max-width: var(--app-max-width);
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow-x: hidden;
}

/* ─── Views ───────────────────────────────────────────── */
.view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: var(--nav-height);
    width: 100%;
    max-width: var(--app-max-width);
    margin: 0 auto;
    background-color: var(--bg-primary);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    
    /* Transição entre views */
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: 
        opacity var(--transition-base),
        visibility var(--transition-base),
        transform var(--transition-base);
    z-index: var(--z-base);
}

.view.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: var(--z-dropdown);
}

.view[data-view="welcome"].active {
    transform: translateX(0);
}

/* ─────────────────────────────────────────────────────────
   5. GLASSMORPHISM EFFECTS
   ───────────────────────────────────────────────────────── */
.liquid-glass {
    position: relative;
    background: var(--bg-glass);
    backdrop-filter: 
        blur(var(--glass-blur)) 
        saturate(var(--glass-saturation))
        brightness(var(--glass-brightness));
    -webkit-backdrop-filter: 
        blur(var(--glass-blur)) 
        saturate(var(--glass-saturation))
        brightness(var(--glass-brightness));
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
}


/* Glass refraction effect on hover/active */
.liquid-glass::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

/* ─────────────────────────────────────────────────────────
   6. BUTTONS
   ───────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    height: var(--btn-height);
    min-height: var(--btn-height);
    padding: 0 var(--space-md);
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    font-weight: var(--weight-semibold);
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-width: var(--touch-target);
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

[role="button"][tabindex="0"]:focus-visible,
.view-all-link:focus-visible,
.drawer-nav-item:focus-visible,
.new-date-card:focus-visible,
.action-card:focus-visible,
.category-tag:focus-visible,
.spot-cat-item:focus-visible,
.spot-list-item:focus-visible,
.profile-menu-item:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(91, 108, 255, 0.16);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--text-on-primary);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-google {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-full {
    width: 100%;
}

.btn-link {
    background: transparent;
    color: var(--color-primary);
    font-weight: var(--weight-medium);
    height: auto;
    padding: var(--space-md);
}

.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--touch-target);
    height: var(--touch-target);
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

/* Google icon sizing */
.google-icon {
    width: 20px;
    height: 20px;
}

/* ─────────────────────────────────────────────────────────
   9. WELCOME / ONBOARDING
   ───────────────────────────────────────────────────────── */
.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: var(--space-md);
    gap: var(--space-2xl);
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.logo-glass {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.logo-icon {
    font-size: var(--icon-2xl) !important;
    color: var(--color-primary);
}

.logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.app-name {
    font-family: 'Orelega One', cursive;
    font-size: var(--font-size-2xl);
    font-weight: var(--weight-regular);
    color: var(--text-primary);
    letter-spacing: 0;
}

.tagline {
    font-size: var(--font-size-md);
    color: var(--text-secondary);
    text-align: center;
}

.auth-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
}

.divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
    margin: var(--space-sm) 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.disclaimer {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    text-align: center;
    max-width: 280px;
    margin: 0 auto;
    align-self: center;
}

.disclaimer a {
    color: var(--color-primary);
    text-decoration: none;
}

.welcome-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: auto;
    padding-top: var(--space-xl);
    padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom));
}

a.emergency-line {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-danger);
    font-weight: var(--weight-medium);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.4;
}

a.emergency-line strong {
    font-weight: var(--weight-bold);
}

.copyright {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    text-align: center;
}

/* ─── View Header ──────────────────────────────────── */

/* ─── View Content ─────────────────────────────────── */
.view-content {
    padding: var(--space-md);
    padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom));
}

.view-content.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

/* Shared content wrapper for all main app sections */
#app .section-wrap {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
}

/* Grelha de layout: 4 colunas × gutter 16px. Filhos diretos ocupam as 4 colunas por defeito. */
#app .layout-grid {
    display: grid;
    grid-template-columns: repeat(var(--layout-grid-columns), minmax(0, 1fr));
    column-gap: var(--layout-grid-gutter);
    row-gap: var(--layout-grid-row-gap);
    width: 100%;
    min-width: 0;
}

#app .layout-grid > * {
    grid-column: 1 / -1;
    min-width: 0;
}

#app .layout-span-1 { grid-column: span 1; }
#app .layout-span-2 { grid-column: span 2; }
#app .layout-span-3 { grid-column: span 3; }
#app .layout-span-4 { grid-column: span 4; }

/* ─────────────────────────────────────────────────────────
   7. FORMS & INPUTS
   ───────────────────────────────────────────────────────── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.input-group label {
    margin-bottom: calc(var(--space-xs) * -1);
}

.input-group label {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
}

.input-group input {
    height: var(--input-height);
    padding: 0 var(--space-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}

.input-group input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.input-group input::placeholder {
    color: var(--text-tertiary);
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    width: 100%;
    padding-right: calc(var(--touch-target) + var(--space-sm));
}

.toggle-password {
    position: absolute;
    right: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--touch-target);
    height: var(--touch-target);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-full);
}

/* ─── OTP Input ────────────────────────────────────── */
.otp-section {
    gap: var(--space-md);
}

.otp-section.hidden {
    display: none;
}

.otp-message {
    background-color: var(--bg-secondary);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
}

.otp-message p {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    margin: 0;
}

.otp-message .spam-notice {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    margin-top: var(--space-xs);
}

#otp-email-display {
    color: var(--text-primary);
    font-weight: var(--weight-semibold);
    word-break: break-all;
}

.otp-inputs {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin: var(--space-md) 0;
}

.otp-digit {
    width: 42px;
    height: 56px;
    line-height: 56px;
    text-align: center;
    font-size: var(--font-size-md);
    font-weight: var(--weight-semibold);
    font-family: monospace;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    padding: 0;
}

.otp-digit:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.otp-digit:valid {
    border-color: var(--color-primary);
    background-color: var(--bg-secondary);
}

.resend-section {
    display: flex;
    justify-content: center;
}

.btn-resend {
    font-size: var(--font-size-sm);
}

.btn-resend:disabled {
    color: var(--text-tertiary);
    cursor: not-allowed;
}

.btn-resend:not(:disabled) {
    color: var(--color-primary);
}

/* ─────────────────────────────────────────────────────────
   8. STEPPER & PROGRESS
   ───────────────────────────────────────────────────────── */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
    padding: 0 var(--space-md);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
    font-weight: var(--weight-semibold);
    transition: all var(--transition-fast);
}

.step.active .step-number {
    background-color: var(--color-primary);
    color: var(--text-on-primary);
}

.step.completed .step-number {
    background-color: var(--color-success);
    color: var(--text-on-primary);
}

.step-label {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    font-weight: var(--weight-medium);
    transition: color var(--transition-fast);
}

.step.active .step-label {
    color: var(--color-primary);
    font-weight: var(--weight-semibold);
}

.step.completed .step-label {
    color: var(--color-success);
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: var(--bg-tertiary);
    max-width: 40px;
    transition: background-color var(--transition-fast);
}

.step-line.completed {
    background-color: var(--color-success);
}

/* ─── Field Group ──────────────────────────────────── */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.field-title {
    font-size: var(--font-size-md);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.field-subtitle {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    margin: 0 0 var(--space-xs) 0;
    line-height: 1.3;
}

.field-error {
    font-size: var(--font-size-xs);
    color: var(--color-danger);
    min-height: 16px;
}

/* Input valid state (green border) */
input.valid {
    border-color: var(--color-success) !important;
    background-color: rgba(34, 197, 94, 0.05);
}

input.invalid {
    border-color: var(--color-danger) !important;
}

/* Button disabled state */
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ─── Register Terms ───────────────────────────────── */
.register-terms {
    gap: var(--space-lg);
}

.register-terms.hidden {
    display: none;
}

.terms-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.terms-group-title {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin: 0 0 var(--space-xs) 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cards clicáveis com checkbox */
.term-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: var(--space-md);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.term-card:has(input:checked) {
    border-color: var(--color-success);
    background-color: rgba(34, 197, 94, 0.1);
}

.term-card-content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    flex: 1;
}

.term-card .material-icons {
    color: var(--color-primary);
    font-size: var(--icon-base);
    margin-top: 2px;
}

.term-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.term-card-title {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
    margin: 0;
}

.term-card-subtitle {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    margin: 0;
}

.term-card input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: var(--color-success);
    cursor: pointer;
}

/* Card com link para ler */
.term-card-link {
    position: relative;
}

.term-card-action {
    font-size: var(--font-size-xs);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: var(--weight-medium);
    padding: var(--space-xs) var(--space-md);
    background-color: var(--bg-primary);
    border-radius: var(--radius-sm);
    margin-right: var(--space-sm);
}

/* Cards informativos (sem checkbox) */
.terms-group-info .term-card-info {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    opacity: 0.9;
}

.terms-group-info .term-card-info.active {
    border-color: var(--color-success);
    background-color: rgba(34, 197, 94, 0.1);
    opacity: 1;
}

.terms-group-info .term-card-info .material-icons {
    color: var(--text-tertiary);
    font-size: var(--icon-md);
    margin-top: 2px;
}

.terms-group-info .term-card-info.active .material-icons {
    color: var(--color-success);
}

.terms-group-info .term-card-title {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
}

.terms-group-info .term-card-subtitle {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
}

.forgot-password {
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    text-decoration: none;
    align-self: flex-end;
}

/* ─────────────────────────────────────────────────────────
   LOADING STATES
   ───────────────────────────────────────────────────────── */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -20px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* ─── Welcome Modal ────────────────────────────────── */
.welcome-modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    max-width: 340px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease;
}

.welcome-icon {
    font-size: var(--icon-2xl);
    color: var(--color-success);
    margin-bottom: var(--space-md);
}

.welcome-title {
    font-size: var(--font-size-xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.welcome-message {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ─── Background Orbs ──────────────────────────────── */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.bg-orb-1 {
    width: clamp(280px, 60vw, 420px);
    height: clamp(280px, 60vw, 420px);
    top: -8%;
    left: -8%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, transparent 70%);
    opacity: 0.6;
    animation: orbFloat1 10s ease-in-out infinite;
}

.bg-orb-2 {
    width: clamp(220px, 50vw, 340px);
    height: clamp(220px, 50vw, 340px);
    bottom: 2%;
    right: -8%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.5) 0%, transparent 70%);
    opacity: 0.5;
    animation: orbFloat2 12s ease-in-out infinite alternate;
}

.bg-orb-3 {
    width: clamp(180px, 40vw, 260px);
    height: clamp(180px, 40vw, 260px);
    top: 45%;
    left: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    opacity: 0.4;
    animation: orbFloat3 8s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, 20px) scale(1.1);
    }
}

@keyframes orbFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-20px, -30px) scale(0.95);
    }
}

@keyframes orbFloat3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(25px, -15px) scale(1.05);
    }
}

/* Dark theme adjustments for orbs */
[data-theme="dark"] .bg-orb-1 {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    opacity: 0.4;
}

[data-theme="dark"] .bg-orb-2 {
    background: radial-gradient(circle, rgba(20, 184, 166, 0.35) 0%, transparent 70%);
    opacity: 0.35;
}

[data-theme="dark"] .bg-orb-3 {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    opacity: 0.3;
}

/* ─────────────────────────────────────────────────────────
   10. HOME
   ───────────────────────────────────────────────────────── */
.home-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-glass-bg);
    backdrop-filter: blur(var(--header-glass-blur)) saturate(var(--header-glass-saturation));
    -webkit-backdrop-filter: blur(var(--header-glass-blur)) saturate(var(--header-glass-saturation));
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: var(--space-sm) var(--page-gutter);
    min-height: var(--header-height);
    transition: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

[data-theme="dark"] .home-header {
    background: var(--header-glass-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Shared View Header (all non-home views) */
.view-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 4.5rem;
    padding: var(--space-sm) var(--page-gutter);
    padding-top: calc(var(--space-sm) + env(safe-area-inset-top));
    background: var(--header-glass-bg);
    backdrop-filter: blur(var(--header-glass-blur)) saturate(var(--header-glass-saturation));
    -webkit-backdrop-filter: blur(var(--header-glass-blur)) saturate(var(--header-glass-saturation));
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

[data-theme="dark"] .view-header {
    background: var(--header-glass-bg-dark);
}

.view-header .back-button,
.view-header .header-action {
    width: var(--icon-shell-md);
    height: var(--icon-shell-md);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-header .back-button {
    color: var(--text-primary);
    background: transparent;
}

[data-theme="dark"] .view-header .back-button {
    background: transparent;
}

.view-header .header-action {
    color: var(--color-primary);
    background: transparent;
}

.view-header .header-action:active,
.view-header .back-button:active {
    transform: scale(0.96);
}

.view-header .header-center {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-sm);
}

.view-header .back-button svg,
.view-header .header-action svg,
.view-header .back-button .tabler-icon,
.view-header .header-action .tabler-icon {
    width: var(--icon-glyph-md);
    height: var(--icon-glyph-md);
}

.view-header .header-title {
    width: 100%;
    font-family: var(--font-family);
    font-size: var(--type-header-title);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-header .header-action.is-placeholder {
    pointer-events: none;
    opacity: 0;
}

.view-header--overlay {
    z-index: 110;
    margin-top: calc(var(--spot-cover-height) * -1);
    background: var(--header-glass-bg);
    backdrop-filter: blur(var(--header-glass-blur)) saturate(var(--header-glass-saturation));
    -webkit-backdrop-filter: blur(var(--header-glass-blur)) saturate(var(--header-glass-saturation));
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

[data-theme="dark"] .view-header--overlay {
    background: var(--header-glass-bg-dark);
}

.view-header--overlay .back-button {
    color: #ffffff;
    background: transparent;
}

.view-header--overlay .header-title {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

#spotProfile .view-header--overlay .header-title {
    color: #1f2937;
    text-shadow: none;
}

/* Header Scroll Effect - Compact Mode (Desativado - Header Fixo) */
/*
.home-header.scrolled {
    padding: 2px var(--space-sm);
    min-height: 36px;
    margin: 0;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.home-header.scrolled .user-avatar {
    width: 32px;
    height: 32px;
}

.home-header.scrolled .user-greeting {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    overflow: hidden;
}

.home-header.scrolled .user-info {
    flex-direction: column !important;
    gap: 0;
}

.home-header.scrolled .user-name {
    font-size: var(--font-size-sm);
    margin-top: 0;
    line-height: 1.2;
}

.home-header.scrolled .user-verified {
    font-size: var(--font-size-xs);
}
*/

/* Header Content - Layout flex com espaçamento */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.home-content-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-top: var(--space-md);
    padding-bottom: var(--space-lg);
    padding-left: 0;
    padding-right: 0;
}

/* Header Right - Status + Menu */
.header-right {
    display: flex;
    align-items: center;
}

/* User Profile Bar */
.user-profile-bar {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.user-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-primary);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-fast);
}

.avatar-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: var(--weight-semibold);
    font-size: var(--font-size-lg);
    display: none;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-line-1 {
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-greeting {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: var(--weight-medium);
}

.user-name {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    font-weight: var(--weight-semibold);
    margin-top: -4px;
}

.user-line-2 {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-size-xs);
    color: var(--color-success);
    font-weight: var(--weight-medium);
}

.user-line-2 .verified-icon {
    width: 12px;
    height: 12px;
    stroke: var(--color-success);
}

/* New Date Card - CTA Full Width */
.new-date-card {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: var(--space-md);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #5B6CFF 0%, #8A94FF 100%);
    backdrop-filter: blur(20px) saturate(180%);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: var(--font-size-md);
    font-weight: var(--weight-semibold);
}

.new-date-card:active {
    transform: scale(0.98) translateY(-1px);
}

.new-date-card-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.new-date-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.new-date-icon .tabler-icon {
    width: 24px;
    height: 24px;
    color: white;
}

.new-date-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.new-date-label {
    font-size: var(--font-size-md);
    font-weight: var(--weight-semibold);
    color: rgba(255, 255, 255, 0.9);
}

.new-date-hint {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .new-date-card {
    background: rgba(30, 30, 30, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tips Banner - Estilo Promo Slider */
.tips-banner {
    position: relative;
    z-index: 1;
    margin: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    min-height: 170px;
}

.tips-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.tips-track {
    display: flex;
    width: 100%;
    height: 100%;
}

.tip-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: none;
    cursor: pointer;
    padding: var(--space-md);
    min-height: 140px;
}

.tip-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    pointer-events: auto;
}

.tip-slide.prev {
    transform: translateX(-100%);
}

/* Background Icons */
.ts-bg {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    opacity: 0.15;
    font-size: 8rem;
    color: white;
}

.ts-bg .mi {
    font-size: 8rem;
    color: white;
}

/* Overlay */
.ts-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Content */
.ts-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.ts-eyebrow {
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
     color: rgba(255, 255, 255, 0.85);
}


.ts-title {
    font-size: var(--font-size-md);
    font-weight: var(--weight-bold);
    color: white;
    text-align: left;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
        max-width: 75%;
}

.ts-sub {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
    line-height: 1.3;
        opacity: 0.95;
}

/* Color Themes for each slide */
.tsc1 { background: linear-gradient(135deg, #5B6CFF 0%, #8A94FF 100%); } /* Dates - Azul */
.tsc2 { background: linear-gradient(135deg, #10B981 0%, #4FD1A5 100%); } /* SafyCall - Verde */
.tsc3 { background: linear-gradient(135deg, #F59E0B 0%, #F8C36A 100%); } /* SpotSafy - Laranja */
.tsc4 { background: linear-gradient(135deg, #8B5CF6 0%, #B69CFB 100%); } /* SafyLinks - Roxo */

/* Dots */
.tips-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 3;
}

.tdot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.tdot.active {
    background: white;
    width: 18px;
    border-radius: 3px;
}

/* Quick Actions Section */
.quick-actions-section {
    position: relative;
    z-index: 1;
    margin: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: var(--type-title);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    margin-top: 0;
}

/* Section Header - Title + View All */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 var(--space-md);
}

/* Events section header - add top margin to separate from previous section */
.events-section-header {
    margin-top: var(--space-lg);
}

.section-header .section-title {
    margin-bottom: 0;
}

.view-all-link {
    font-size: var(--type-subtitle);
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.view-all-link svg {
    width: 16px;
    height: 16px;
}

/* Quick Actions — 4 colunas DS: cada cartão ocupa 2 colunas (2×2) */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(var(--layout-grid-columns), minmax(0, 1fr));
    gap: var(--layout-grid-gutter);
}

.quick-actions-grid > .action-card {
    grid-column: span 2;
    min-width: 0;
}

.action-card {
    position: relative;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px) saturate(180%);
    cursor: pointer;
    transition: all var(--transition-base);
    overflow: hidden;
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
}

.action-card:active {
    transform: scale(0.98);
}

.action-card-large {
    grid-row: span 2;
}

.action-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    height: 100%;
    padding: var(--space-md);
    gap: var(--space-sm);
    position: relative;
    min-height: 120px;
}

.action-card-large .action-card-content {
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-md);
}

.action-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    flex: 1;
    width: 100%;
}

.action-arrow {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    transition: all var(--transition-fast);
}

.action-arrow .tabler-icon {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: transform var(--transition-fast);
    animation: arrowFloat 2.5s ease-in-out infinite;
}

@keyframes arrowFloat {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

.action-card-large .action-arrow {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    align-self: flex-end;
    margin-top: auto;
}

.action-icon {
    width: var(--icon-shell-sm);
    height: var(--icon-shell-sm);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon .tabler-icon {
    width: var(--icon-glyph-sm);
    height: var(--icon-glyph-sm);
    color: var(--color-primary);
}

.action-card-large .action-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-sm);
}

.action-card-large .action-icon .tabler-icon {
    width: 24px;
    height: 24px;
}

/* Icon backgrounds matching card colors */
.action-card-dates .action-icon {
    background: rgba(91, 108, 255, 0.15);
}

.action-card-dates .action-icon .tabler-icon {
    color: #5B6CFF;
}

.action-card-contacts .action-icon {
    background: rgba(20, 184, 166, 0.15);
}

.action-card-contacts .action-icon .tabler-icon {
    color: rgba(20, 184, 166, 0.9);
}

.action-card-privacy .action-icon {
    background: rgba(245, 158, 11, 0.15);
}

.action-card-privacy .action-icon .tabler-icon {
    color: rgba(245, 158, 11, 0.9);
}

/* SpotSafy - Laranja */
.action-card-spots .action-icon {
    background: rgba(245, 158, 11, 0.15);
}

.action-card-spots .action-icon .tabler-icon {
    color: #F59E0B;
}

/* SafyLinks - Roxo */
.action-card-safylinks .action-icon {
    background: rgba(139, 92, 246, 0.15);
}

.action-card-safylinks .action-icon .tabler-icon {
    color: #8B5CF6;
}

/* SafyCall - Verde */
.action-card-safycall .action-icon {
    background: rgba(16, 185, 129, 0.15);
}

.action-card-safycall .action-icon .tabler-icon {
    color: #10B981;
}

.action-label {
    font-size: var(--type-title);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    text-align: left;
}

[data-theme="dark"] .action-card {
    background: rgba(30, 30, 30, 0.5);
}

/* Spot Categories Tags */
.spot-categories {
    display: flex;
    gap: var(--space-sm);
    margin: 0;
    overflow-x: auto;
    padding-bottom: var(--space-xs);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.spot-categories::-webkit-scrollbar {
    display: none;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    font-size: var(--type-subtitle);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.category-tag.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Spots Carousel */
.spots-carousel-container {
    margin: 0;
    overflow: hidden;
    min-height: calc(2 * 85px + var(--space-sm) + var(--space-md));
}

#home .section-header,
#home .events-section-header,
#home .spot-categories,
#home .spots-carousel-container {
    margin: 0;
}

#home .spots-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: 0;
}

.spots-carousel {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: var(--space-sm);
}

.spots-carousel::-webkit-scrollbar {
    display: none;
}

.spots-column {
    flex: 0 0 auto;
    width: 75%;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    scroll-snap-align: start;
    justify-content: flex-start;
    height: calc(2 * 85px + var(--space-sm));
}

.spots-column-first {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Removed - Ver mais column temporarily removed */

.spot-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    padding: var(--space-xs) var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
    height: 120px;
}

.spot-col {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: var(--space-md);
}

.spot-col-logo {
    flex: 0 0 20%;
    display: flex;
}

.spot-col-info {
    flex: 0 0 70%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 var(--space-xs) 0 var(--space-sm);
    gap: var(--space-xs);
    line-height: 1;
}

.spot-col-arrow {
    flex: 0 0 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
}

.spot-col-arrow .tabler-icon {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.spot-logo {
    height: 100%;
    min-height: 65px;
    max-height: 73px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    object-fit: cover;
    background: rgba(139, 92, 246, 0.15);
}

.spot-line {
    font-size: var(--font-size-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spot-line-name {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
}

.spot-line-location {
    font-size: var(--font-size-xs);
    font-weight: var(--weight-regular);
    color: var(--text-secondary);
}

.spot-line-badge {
    font-size: var(--font-size-xs);
    font-weight: var(--weight-medium);
    color: var(--color-success);
    display: flex;
    align-items: center;
    gap: 4px;
}

.spot-line-badge .icon-shield {
    width: 10px;
    height: 10px;
}

/* History Section */
.history-section {
    position: relative;
    z-index: 1;
    margin: 0 var(--page-gutter);
    margin-top: var(--space-md);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.history-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px) saturate(180%);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.history-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.history-initials {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
    color: white;
}

.history-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.history-name {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
}

.history-date {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.history-status {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.history-status .tabler-icon {
    width: 16px;
    height: 16px;
}

.status-completed {
    background: rgba(45, 106, 79, 0.15);
}

.status-completed .tabler-icon {
    color: rgba(45, 106, 79, 0.9);
}

.status-cancelled {
    background: rgba(220, 38, 38, 0.15);
}

.status-cancelled .tabler-icon {
    color: rgba(220, 38, 38, 0.9);
}

[data-theme="dark"] .history-item {
    background: rgba(30, 30, 30, 0.4);
}

/* Side Drawer Menu */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    visibility: hidden;
    opacity: 0;
    transition: all var(--transition-base);
    z-index: 10000;
}

.drawer-overlay.active {
    background: rgba(0, 0, 0, 0.5);
    visibility: visible;
    opacity: 1;
}

.drawer-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
    padding-bottom: 80px;
}

.drawer-menu.active {
    transform: translateX(0);
}

.drawer-close {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.drawer-close .tabler-icon {
    width: var(--icon-glyph-md);
    height: var(--icon-glyph-md);
}

/* Drawer Header (2 colunas: título e close) */
.drawer-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-header-title {
    font-size: var(--type-header-title);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Drawer Profile Section */
.drawer-profile {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.drawer-avatar {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border: 3px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.drawer-avatar-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
    z-index: 1;
}

.drawer-avatar-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    font-weight: var(--weight-semibold);
    font-size: var(--font-size-lg);
    z-index: 0;
}

.drawer-avatar-edit {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    background: var(--color-primary);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 10;
}

[data-theme="dark"] .drawer-avatar-edit {
    border-color: var(--bg-secondary);
}

.drawer-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

.drawer-user-name {
    font-size: var(--font-size-base);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
}

.drawer-user-handle {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-verified-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-size-xs);
    color: var(--color-success);
    margin-top: 2px;
}

.drawer-verified-badge svg {
    width: 12px;
    height: 12px;
}

.drawer-user-email {
    font-size: var(--type-subtitle);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
}

/* Drawer Navigation */
.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.drawer-section-title {
    font-size: var(--type-label-small);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    padding: 0 var(--space-sm);
}

.drawer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
}

.drawer-nav-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}

.drawer-nav-item:active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
}

.drawer-nav-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--color-primary);
}

.drawer-nav-item.active svg {
    color: var(--color-primary);
}

.drawer-badge {
    margin-left: auto;
    background: var(--color-primary);
    color: white;
    font-size: var(--font-size-2xs);
    font-weight: var(--weight-semibold);
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Drawer Footer */
.drawer-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-sm);
    padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.drawer-logout {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: none;
    background: transparent;
    color: var(--color-danger);
    font-size: var(--font-size-base);
    font-weight: var(--weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.drawer-logout svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.drawer-logout:active {
    background: rgba(220, 38, 38, 0.1);
}

/* Drawer Action Icons - em linha com icone acima e texto abaixo */
.drawer-action-icons {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: var(--space-1);
}

.drawer-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.drawer-icon-btn svg {
    width: 22px;
    height: 22px;
}

/* Drawer Action Item - icone em cima, texto embaixo */
.drawer-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 2px var(--space-xs);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-primary);
    font-size: var(--type-label-small);
    font-weight: var(--weight-medium);
    flex: 1;
    min-width: 0;
    line-height: 1.1;
}

.drawer-action-item:active {
    background: rgba(99, 102, 241, 0.12);
    color: var(--color-primary);
}

.drawer-action-item:active .drawer-icon-btn {
    color: var(--color-primary);
}

.drawer-action-label {
    font-size: var(--type-label-small);
    color: inherit;
    font-weight: var(--weight-medium);
}

/* SOS button special styling */
.drawer-sos-btn {
    color: #ef4444;
}

/* Drawer Footer Links */
.drawer-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
}

.drawer-link {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.drawer-link-separator {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    opacity: 0.5;
}

[data-theme="dark"] .drawer-menu {
    background: rgba(30, 30, 30, 0.98);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .drawer-profile {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .drawer-avatar-fallback {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
}

[data-theme="dark"] .drawer-user-name {
    color: var(--text-primary);
}

[data-theme="dark"] .drawer-user-email {
    color: var(--text-secondary);
}

[data-theme="dark"] .drawer-section-title {
    color: var(--text-tertiary);
}

[data-theme="dark"] .drawer-nav-item {
    color: var(--text-secondary);
}

[data-theme="dark"] .drawer-nav-item svg {
    color: var(--text-tertiary);
}

[data-theme="dark"] .drawer-nav-item.active {
    background: rgba(99, 102, 241, 0.2);
    color: var(--color-primary);
}

[data-theme="dark"] .drawer-nav-item.active svg {
    color: var(--color-primary);
}

[data-theme="dark"] .drawer-footer {
    background: rgba(30, 30, 30, 0.25);
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .drawer-logout {
    color: #ef4444;
}

[data-theme="dark"] .drawer-logout:active {
    background: rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .drawer-close {
    color: var(--text-secondary);
}

[data-theme="dark"] .drawer-close:active {
    background: rgba(255, 255, 255, 0.1);
}


/* ─────────────────────────────────────────────────────────
   18. TOAST NOTIFICATIONS
   ───────────────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: calc(var(--nav-height) + var(--space-4));
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.toast {
    background: rgba(20, 20, 20, 0.88);
    color: #fff;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
    font-family: var(--font-family);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    max-width: 90vw;
    text-align: center;
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    transition:
        opacity var(--duration-base) var(--ease-out),
        transform var(--duration-base) var(--ease-out);
    pointer-events: none;
}

.toast--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast--success { border-left: 3px solid var(--color-success); }
.toast--warning { border-left: 3px solid var(--color-warning); }
.toast--danger  { border-left: 3px solid var(--color-danger);  }


/* ─────────────────────────────────────────────────────────
   20. PRIVACY OVERLAY
   ───────────────────────────────────────────────────────── */
.privacy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.privacy-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.privacy-content {
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl);
}

.privacy-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.privacy-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.privacy-title {
    font-size: var(--font-size-lg);
    font-weight: var(--weight-semibold);
    color: white;
}

.privacy-subtitle {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
}

/* Privacy active state - show overlay */
body.privacy-active .privacy-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Privacy Slider */
.privacy-slider-container {
    width: 100%;
    max-width: 220px;
    margin-top: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.privacy-slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.privacy-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.privacy-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.privacy-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Menu Toggle Button */
.menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: right;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    margin-right: calc(-1 * var(--space-sm));
}

.menu-toggle .tabler-icon {
    width: 24px;
    height: 24px;
}

[data-theme="dark"] .menu-toggle {
    color: var(--text-secondary);
}

/* Card color variants - Clean style */
.action-card-dates {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.action-card-contacts {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.action-card-privacy {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.action-card-spots {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.action-card-safylinks {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.action-card-safycall {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Action arrows nos cards (neutro) */
.action-card-dates .action-arrow .tabler-icon,
.action-card-contacts .action-arrow .tabler-icon,
.action-card-privacy .action-arrow .tabler-icon,
.action-card-spots .action-arrow .tabler-icon,
.action-card-safylinks .action-arrow .tabler-icon,
.action-card-safycall .action-arrow .tabler-icon {
    color: var(--text-secondary);
}

.action-card-dates .action-arrow,
.action-card-contacts .action-arrow,
.action-card-privacy .action-arrow,
.action-card-spots .action-arrow,
.action-card-safylinks .action-arrow,
.action-card-safycall .action-arrow {
    opacity: 0.4;
}

[data-theme="dark"] .action-card-dates {
    background: rgba(91, 108, 255, 0.15);
}

[data-theme="dark"] .action-card-contacts {
    background: rgba(45, 106, 79, 0.15);
}

[data-theme="dark"] .action-card-privacy {
    background: rgba(217, 119, 6, 0.15);
}

[data-theme="dark"] .action-card-spots {
    background: rgba(217, 119, 6, 0.15);
}

[data-theme="dark"] .action-card-safylinks {
    background: rgba(139, 92, 246, 0.15);
}

[data-theme="dark"] .action-card-safycall {
    background: rgba(16, 185, 129, 0.15);
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(204, 232, 219, 0.6);
    border-radius: 20px;
    color: #2d6a4f;
    will-change: opacity, height;
    transition: opacity 0.25s ease-out, height 0.25s ease-out, padding 0.25s ease-out;
    line-height: 1.2;
}

.status-indicator .status-icon {
    width: 12px;
    height: 12px;
    color: #2d6a4f;
    flex-shrink: 0;
}

.status-text {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
}

/* ─────────────────────────────────────────────────────────
   11. BOTTOM NAVIGATION
   ───────────────────────────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-max-width);
    z-index: 9999;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: var(--space-sm);
    padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .bottom-nav {
    background: rgba(30, 30, 30, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xs) var(--space-md);
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 12px;
    min-width: 56px;
    min-height: 56px;
    position: relative;
}

.nav-item:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.4);
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

/* FAB - Floating Action Button */
.nav-fab {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-full);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -28px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    transition: all var(--transition-base);
}

/* Tabler Icons - Nav Bar */
.tabler-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #607d8b;
}

.nav-fab .tabler-icon {
    width: 36px;
    height: 36px;
    color: white;
}

/* Nav FAB Active State - Keep gradient visible */
.nav-fab.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.nav-fab.active .tabler-icon {
    color: white;
}

/* SOS Button - Red color only */
.nav-sos .tabler-icon {
    color: #DC2626;
}

/* ─── Material Icons ───────────────────────────────── */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: var(--icon-base);
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────────────────────────────────────
   UTILITY CLASSES
   ───────────────────────────────────────────────────────── */

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

/* Visibility */
.is-hidden   { display: none !important; }
.is-visible  { display: block !important; }
.is-flex     { display: flex !important; }
.is-invisible { visibility: hidden !important; }

/* Icon size utilities — apply to <svg> or wrapper */
.icon-2xs  { width: var(--icon-2xs);  height: var(--icon-2xs);  flex-shrink: 0; }
.icon-xs   { width: var(--icon-xs);   height: var(--icon-xs);   flex-shrink: 0; }
.icon-sm   { width: var(--icon-sm);   height: var(--icon-sm);   flex-shrink: 0; }
.icon-md   { width: var(--icon-md);   height: var(--icon-md);   flex-shrink: 0; }
.icon-base { width: var(--icon-base); height: var(--icon-base); flex-shrink: 0; }
.icon-lg   { width: var(--icon-lg);   height: var(--icon-lg);   flex-shrink: 0; }
.icon-xl   { width: var(--icon-xl);   height: var(--icon-xl);   flex-shrink: 0; }
.icon-2xl  { width: var(--icon-2xl);  height: var(--icon-2xl);  flex-shrink: 0; }
.icon-3xl  { width: var(--icon-3xl);  height: var(--icon-3xl);  flex-shrink: 0; }

/* Typography utilities */
.text-xs     { font-size: var(--font-size-xs); }
.text-sm     { font-size: var(--font-size-sm); }
.text-base   { font-size: var(--font-size-base); }
.text-md     { font-size: var(--font-size-md); }
.text-lg     { font-size: var(--font-size-lg); }
.text-xl     { font-size: var(--font-size-xl); }
.text-2xl    { font-size: var(--font-size-2xl); }

.font-regular  { font-weight: var(--weight-regular); }
.font-medium   { font-weight: var(--weight-medium); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-bold     { font-weight: var(--weight-bold); }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-tertiary); }
.text-brand     { color: var(--color-primary); }
.text-success   { color: var(--color-success); }
.text-warning   { color: var(--color-warning); }
.text-danger    { color: var(--color-danger); }

/* Spacing helpers */
.mt-auto { margin-top: auto; }
.mb-auto { margin-bottom: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Touch target — ensure min 44px for interactive elements */
.touch-target {
    min-width:  var(--touch-target);
    min-height: var(--touch-target);
}

/* Truncate text */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Flex helpers */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }

/* State tint backgrounds */
.bg-success-tint { background-color: var(--color-success-tint); }
.bg-warning-tint { background-color: var(--color-warning-tint); }
.bg-danger-tint  { background-color: var(--color-danger-tint); }
.bg-brand-tint   { background-color: var(--color-primary-tint); }
.bg-teal-tint    { background-color: var(--color-teal-tint); }



/* ─── Additional Utilities ──────────────────────────────── */
.cursor-pointer { cursor: pointer; }

/* Wave emoji size */
.wave-emoji {
    font-size: 0.85em;
    display: inline-block;
}

/* Menu icon color modifiers */
.menu-icon--teal {
    background: var(--color-teal-tint);
    color: var(--color-secondary);
}

.menu-icon--brand {
    background: var(--color-primary-tint);
    color: var(--color-primary);
}

/* Invisible placeholder — holds space, not interactive */
.is-placeholder {
    opacity: 0;
    pointer-events: none;
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE & ACCESSIBILITY
   ───────────────────────────────────────────────────────── */
/* Shell centrado em viewports > ~430px. Conteúdo desenhado a partir de 360px (--layout-viewport-min). */
@media (min-width: 431px) {
    .app-container {
        border-left: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
    }
}

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

/* ─────────────────────────────────────────────────────────
   15. PROFILE
   ───────────────────────────────────────────────────────── */

/* Profile Content */
.profile-content {
    padding: var(--space-md) var(--space-md);
    padding-bottom: calc(var(--space-xl) + var(--nav-height));
    overflow: visible;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Profile Card Main */
.profile-card-main {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.profile-avatar-large {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    overflow: visible;
    border: 3px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.avatar-img-large {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
}

.avatar-fallback-large {
    display: none;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    align-items: center;
    justify-content: center;
}

.avatar-fallback-large span {
    font-size: var(--font-size-2xl);
    font-weight: var(--weight-bold);
    color: white;
}

.avatar-edit-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 2px solid white;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.avatar-edit-badge:active {
    transform: scale(0.95);
}

.profile-info-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.profile-name {
    font-size: var(--type-profile-name);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin: 0;
}

.profile-verified-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-success);
    font-size: var(--type-label-small);
    font-weight: var(--weight-medium);
}

.profile-verified-badge svg {
    width: var(--icon-glyph-sm);
    height: var(--icon-glyph-sm);
    stroke: var(--color-success);
}

.profile-handle {
    font-size: var(--type-subtitle);
    color: var(--text-secondary);
}

/* Profile Stats */
.profile-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.stat-item svg {
    width: var(--icon-glyph-sm);
    height: var(--icon-glyph-sm);
    flex-shrink: 0;
    color: var(--text-secondary);
}

.stat-status svg {
    color: var(--color-success);
}

.stat-value {
    font-size: var(--font-size-xl);
    font-weight: var(--weight-bold);
    color: var(--color-primary);
}

.stat-label {
    font-size: var(--type-label-small);
    color: var(--text-secondary);
    font-weight: var(--weight-medium);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Wave emoji animation */
.wave-emoji {
    animation: wave 2s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(16deg); }
    20% { transform: rotate(-6deg); }
    30% { transform: rotate(16deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(16deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* Profile Menu Section */
.profile-menu-section .section-title {
    font-size: var(--type-label-small);
    font-weight: var(--weight-semibold);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.profile-menu-list {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
    font-size: var(--type-subtitle);
    font-weight: var(--weight-medium);
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:active {
    background: rgba(99, 102, 241, 0.05);
}

.profile-menu-item .menu-icon {
    width: var(--icon-shell-sm);
    height: var(--icon-shell-sm);
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.profile-menu-item .menu-icon svg {
    width: var(--icon-glyph-sm);
    height: var(--icon-glyph-sm);
}

.profile-menu-item .menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1;
}

.profile-menu-item .menu-title {
    font-size: var(--type-title);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
}

.profile-menu-item .menu-subtitle {
    font-size: var(--type-subtitle);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
}

.profile-menu-item .menu-arrow {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.profile-menu-item .menu-arrow svg {
    width: var(--icon-glyph-sm);
    height: var(--icon-glyph-sm);
}

.profile-menu-item .menu-value {
    font-size: var(--type-subtitle);
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* Logout Item */
.logout-item .menu-icon {
    background: rgba(220, 38, 38, 0.1);
    color: var(--color-danger);
}

.logout-item:active {
    background: rgba(220, 38, 38, 0.05);
}

.logout-title {
    color: var(--color-danger) !important;
}

/* ─────────────────────────────────────────────────────────
   13. NEW DATE FORM
   ───────────────────────────────────────────────────────── */

.new-date-content {
    padding: var(--space-md);
    padding-bottom: calc(var(--space-xl) + var(--nav-height));
    overflow: visible;
    height: auto;
}

/* Card Principal */
.new-date-hero-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-md);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.new-date-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto var(--space-md);
}

.new-date-hero-title {
    font-size: var(--type-header-title);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
}

.new-date-hero-subtitle {
    font-size: var(--type-subtitle);
    color: var(--text-secondary);
    margin: 0;
}

/* Hero Steps - Etapas do Card Principal */
.hero-step {
    display: none;
    animation: heroStepFadeIn 0.3s ease-out;
}

.hero-step.active {
    display: block;
}

@keyframes heroStepFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Formulário */
.new-date-form {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-row {
    display: flex;
    gap: var(--space-md);
}

.flex-1 {
    flex: 1;
}

.form-label {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.5);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-select {
    width: 100%;
    min-height: 40px;
    padding: var(--space-sm) var(--space-md);
    padding-right: 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
    font-size: var(--type-subtitle);
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* Form select focus only for accessibility */
.form-select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
}

[data-theme="dark"] .form-select {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    box-shadow: none;
}

.form-select-text {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}

.form-select svg {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.5);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    font-family: inherit;
    min-height: 80px;
    resize: vertical;
    transition: all var(--transition-fast);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea::placeholder {
    color: var(--text-tertiary);
}

/* Features */
.new-date-features {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.feature-icon {
    width: var(--icon-shell-sm);
    height: var(--icon-shell-sm);
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
}

.feature-icon svg {
    width: var(--icon-glyph-sm);
    height: var(--icon-glyph-sm);
}

.feature-icon.active {
    background: linear-gradient(135deg, var(--color-success) 0%, #22c55e 100%);
    color: white;
}

.feature-text {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    text-align: center;
    max-width: 60px;
}

/* Botão Iniciar */
.new-date-button {
    width: 100%;
    padding: 16px var(--space-lg);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-base);
    font-weight: var(--weight-semibold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: all var(--transition-fast);
    margin-bottom: var(--space-md);
}

.new-date-button:active {
    transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────
   SPOTSAFY VIEW
   ───────────────────────────────────────────────────────── */

.spots-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.spots-content {
    padding: var(--space-md);
    padding-bottom: calc(var(--space-xl) + var(--nav-height));
    overflow: visible;
    height: auto;
}

/* Search Bar */
.spots-search {
    margin-bottom: var(--space-md);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-input-wrapper svg {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.spots-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: var(--font-size-base);
    color: var(--text-primary);
    outline: none;
}

.spots-search-input::placeholder {
    color: var(--text-tertiary);
}

/* Filtros SpotSafy */
.spots-filters {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.filter-item {
    flex: 1;
    position: relative;
    min-width: 0;
}

.filter-select-fake {
    width: 100%;
    min-height: 40px;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
    font-size: var(--type-subtitle);
    font-family: var(--font-family);
    cursor: pointer;
    appearance: none;
    text-align: left;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.filter-select-fake:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
}

[data-theme="dark"] .filter-select-fake {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    box-shadow: none;
}

.filter-select-native {
    display: none;
}

.filter-select-option-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: max(100%, 13.5rem);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 30;
}

.spots-filters .filter-item:last-of-type .filter-select-option-panel {
    left: auto;
    right: 0;
}

.filter-item:focus-within .filter-select-option-panel {
    display: block;
}

.filter-option-search {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: var(--space-sm);
}

.filter-option-search svg {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.filter-option-search input {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: var(--type-subtitle);
    font-family: var(--font-family);
    outline: none;
}

.filter-option-search input::placeholder {
    color: var(--text-tertiary);
}

.filter-option-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 10rem;
    overflow-y: auto;
}

.filter-option-chip {
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.4);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    font-size: var(--type-subtitle);
    font-family: var(--font-family);
    font-weight: var(--weight-medium);
    cursor: pointer;
}

.filter-option-chip.active {
    border-color: rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.12);
    color: var(--color-primary);
}

[data-theme="dark"] .filter-select-option-panel {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .filter-option-search {
    background: rgba(20, 20, 20, 0.55);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .filter-option-chip {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

[data-theme="dark"] .filter-option-chip.active {
    background: rgba(99, 102, 241, 0.22);
    color: #c7d2fe;
}

/* Botão de Filtros */
.filter-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

[data-theme="dark"] .filter-btn {
    background: rgba(30, 30, 30, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* Dropdown de Filtros */
.filter-dropdown {
    display: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.filter-dropdown.show {
    display: block;
}

.filter-dropdown-item {
    padding: var(--space-sm);
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

.filter-checkbox {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.filter-checkbox:checked + .checkmark {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkmark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.filter-checkbox:checked + .checkmark::after {
    opacity: 1;
}

[data-theme="dark"] .filter-dropdown {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .checkmark {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Slider de Preço */
.filter-price-slider {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.price-slider-container {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.price-min,
.price-max {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-primary);
    min-width: 24px;
}

.price-range {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-full);
    outline: none;
    cursor: pointer;
}

.price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.price-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .price-range {
    background: rgba(255, 255, 255, 0.2);
}

/* Seções de Spots */
.spots-section {
    margin-bottom: var(--space-lg);
}

.spots-section-title {
    font-size: var(--type-title);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    padding-left: var(--space-sm);
}

.spots-section-subtitle {
    font-size: var(--type-subtitle);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    padding-left: var(--space-sm);
}

/* Categorias Horizontais */
.spots-categories-horizontal {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-md);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.spots-categories-horizontal::-webkit-scrollbar {
    display: none;
}

.spot-cat-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    padding: 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.spot-cat-item.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    clip-path: url(#squircle);
}

.spot-cat-item .cat-icon {
    font-size: var(--icon-glyph-lg);
    line-height: 1;
    margin-bottom: 4px;
}

.spot-cat-item span {
    font-size: var(--type-label-small);
    font-weight: var(--weight-medium);
    white-space: nowrap;
}

/* Lista de Spots - Carrossel Horizontal (apenas na section #spots) */
#spots .spots-list {
    display: flex;
    flex-direction: row;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: var(--space-sm);
}

#spots .spots-list::-webkit-scrollbar {
    display: none;
}

#spots .spot-list-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    width: 80%;
    scroll-snap-align: start;
}

#spots .spot-list-image {
    width: 100%;
    height: 120px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
}

#spots .spot-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#spots .spot-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#spots .spot-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

#spots .spot-list-name {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#spots .spot-list-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-warning);
    font-size: var(--font-size-xs);
    font-weight: var(--weight-semibold);
    flex-shrink: 0;
}

#spots .spot-list-category {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

#spots .spot-list-dates {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

#spots .spot-list-dates svg {
    width: 12px;
    height: 12px;
    color: var(--color-primary);
}

#spots .spot-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

#spots .spot-list-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-size-xs);
    color: var(--color-success);
    font-weight: var(--weight-medium);
}

#spots .spot-list-badge svg {
    stroke: var(--color-success);
}

#spots .spot-list-price {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    font-weight: var(--weight-medium);
}

/* ─────────────────────────────────────────────────────────
   NEW DATE — MULTI-STEP FORM
   ───────────────────────────────────────────────────────── */

/* Progress Steps */
.new-date-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
    padding: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.progress-step.active .step-number {
    background: var(--color-primary);
    color: white;
}

.progress-step.completed .step-number {
    background: var(--color-success);
    color: white;
}

.step-label {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    font-weight: var(--weight-medium);
}

.progress-step.active .step-label {
    color: var(--color-primary);
}

.progress-line {
    flex: 1;
    height: 2px;
    max-width: 40px;
    background: var(--bg-tertiary);
    border-radius: 1px;
    margin: 0 4px;
    margin-bottom: 16px;
}

.progress-line.completed {
    background: var(--color-success);
}

/* Multi-Step Form Container */
.new-date-form-steps {
    flex: 1;
    overflow: visible;
    padding: 0;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeInStep 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Step Title */
.step-title {
    margin-bottom: var(--space-md);
}

.step-title h3 {
    font-size: var(--type-header-title);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
}

.step-subtitle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--type-subtitle);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
    background: #fef3c77a;
    border-radius: var(--radius-md);
    line-height: 1.2;
    margin-top: 0.5rem;
}
.step-subtitle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--brand-500);
}

.step-subtitle-text {
    flex: 1;
    line-height: 1;
}

.text-highlight {
    font-weight: var(--weight-bold);
}

/* Social Media Section */
.social-section {
    margin-bottom: var(--space-md);
}

.social-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.social-select {
    width: 140px;
    flex-shrink: 0;
    padding: 10px 12px;
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
}

.social-input {
    flex: 1;
    min-width: 0;
}

.social-remove-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--color-danger);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.social-remove-btn:active {
    transform: scale(0.95);
}

.social-remove-btn svg {
    width: 16px;
    height: 16px;
}

.add-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px dashed var(--color-primary);
    border-radius: var(--radius-lg);
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: 8px;
}

.add-social-btn:active {
    transform: scale(0.95);
}

.add-social-btn svg {
    width: 18px;
    height: 18px;
}

/* Label Grid Layout (3 columns, 2 rows) */
.form-label {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 0 12px;
    align-items: center;
    margin-bottom: 8px;
}

.form-label > svg:first-child,
.form-label > .label-icon {
    grid-row: 1 / 3;
    grid-column: 1;
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.label-text {
    grid-row: 1;
    grid-column: 2;
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
}

.label-hint {
    grid-row: 2;
    grid-column: 2;
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    font-weight: var(--weight-regular);
    line-height: 1.3;
}

.label-badge {
    grid-row: 1 / 3;
    grid-column: 3;
    font-size: var(--font-size-2xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.label-badge.required {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
}

.label-badge.recommended {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-success);
}

.label-badge.optional {
    background: rgba(161, 161, 170, 0.15);
    color: var(--text-tertiary);
}

/* Simple Label (Idade, Gênero - sem descrição) */
.form-label.simple {
    grid-template-rows: auto;
    align-items: center;
}

.form-label.simple .label-text {
    grid-row: 1;
    align-self: center;
}

/* Time Row Fields - compact labels */
.time-row .form-label {
    margin-bottom: 6px;
}

.time-row .form-label svg {
    width: 18px;
    height: 18px;
}

.time-row .label-text {
    font-size: var(--font-size-xs);
}

/* Date Row (Dia/Mês/Ano) */
.date-row {
    gap: 8px;
}

.date-row .form-group {
    margin: 0;
}

.date-row .form-group .form-select {
    font-size: var(--font-size-sm);
}

/* Google Places Autocomplete */
.places-autocomplete {
    position: relative;
}

.places-autocomplete.loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-6.219-8.56'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    animation: placesLoading 1s linear infinite;
}

@keyframes placesLoading {
    from { background-position: right 12px center, 0 0; }
    to { background-position: right 12px center, 20px 0; }
}

/* Places Details Card */
.places-info-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.places-info-card svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Time Row */
.time-row {
    gap: 12px;
}

.input-hint {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    margin-top: 4px;
    display: block;
}

/* Full Width Select */
.form-select.full-width {
    width: 100%;
    justify-content: space-between;
}

/* Summary Card */
.summary-card {
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.summary-section {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-section:first-child {
    padding-top: 0;
}

.summary-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-section h4 {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.summary-section h4 svg {
    color: var(--color-primary);
}

.summary-section p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.summary-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: var(--space-sm);
}

.summary-social-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.25rem 0.625rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    color: var(--color-primary);
}

.summary-note {
    font-size: var(--type-subtitle);
    color: var(--summary-note-color, var(--text-secondary));
    margin-top: var(--space-xs);
}

/* Notification Card */
.notification-card {
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.notification-card h4 {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.notification-card p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.notification-card p:last-child {
    margin-bottom: 0;
}

/* Compact Features */
.new-date-features.compact {
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.new-date-features.compact .feature-item {
    padding: 0.625rem 0.75rem;
}

.new-date-features.compact .feature-icon {
    width: 2rem;
    height: 2rem;
}

.new-date-features.compact .feature-text {
    font-size: var(--font-size-xs);
}

/* Form Navigation */
.form-navigation {
    display: flex;
    gap: 0.75rem;
    padding: var(--space-md);
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: var(--weight-semibold);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.nav-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

.nav-btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.nav-btn-secondary:active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-btn-primary {
    background: var(--color-primary);
    color: white;
}

.nav-btn-primary:active {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

/* Screenshot Upload Area */
.screenshot-section {
    margin-top: var(--space-md);
}

.screenshot-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.5);
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.screenshot-upload-area:active {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--color-primary);
}

.screenshot-upload-area svg {
    color: var(--color-primary);
    opacity: 0.7;
}

.upload-text {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
    margin: 0;
}

.upload-hint {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    margin: 0;
}

/* Screenshot Preview Container */
.screenshot-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.screenshot-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--bg-glass-border);
}

.screenshot-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: var(--font-size-xs);
    line-height: 1;
}

/* Meeting Platform Field */
#customMeetingPlatform {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .add-social-btn {
        background: rgba(99, 102, 241, 0.15);
    }
    
    .add-social-btn:active {
        background: rgba(99, 102, 241, 0.25);
    }
    
    .social-remove-btn {
        background: rgba(239, 68, 68, 0.15);
    }
    
    .screenshot-upload-area {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(99, 102, 241, 0.2);
    }
    
    .screenshot-upload-area:active {
        background: rgba(99, 102, 241, 0.15);
    }
}

/* ─────────────────────────────────────────────────────────
   21. SKELETON LOADING
   ───────────────────────────────────────────────────────── */

.skeleton-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
    overflow: hidden;
}

.skeleton-screen.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Skeleton Header */
.skeleton-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    margin-bottom: var(--space-md);
}

.skeleton-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-title {
    flex: 1;
    height: 20px;
    max-width: 120px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    margin: 0 var(--space-md);
}

.skeleton-menu {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Skeleton Banner */
.skeleton-banner {
    height: 160px;
    border-radius: var(--radius-xl);
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    margin-bottom: var(--space-md);
}

/* Skeleton Card */
.skeleton-card {
    height: 80px;
    border-radius: var(--radius-xl);
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    margin-bottom: var(--space-md);
}

/* Skeleton Section Title */
.skeleton-section-title {
    height: 18px;
    width: 140px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    margin-bottom: var(--space-sm);
}

/* Skeleton Grid */
.skeleton-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.skeleton-grid-item {
    height: 100px;
    border-radius: var(--radius-xl);
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-grid-item:nth-child(1) {
    grid-row: span 2;
    height: auto;
}

/* Skeleton List */
.skeleton-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.skeleton-list-item {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.skeleton-list-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.skeleton-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-list-line-1 {
    height: 14px;
    width: 70%;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-list-line-2 {
    height: 12px;
    width: 50%;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Skeleton Categories */
.skeleton-categories {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.skeleton-category {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Skeleton Animation */
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Pulse animation alternative (subtle) */
.skeleton-pulse {
    animation: skeleton-pulse 2s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ─────────────────────────────────────────────────────────
   14. CONTACTS / TRUST NETWORK
   ───────────────────────────────────────────────────────── */

.trust-content {
    padding: var(--space-md);
    padding-bottom: calc(var(--space-xl) + var(--nav-height));
}

/* Info Card */
.trust-info-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-lg);
}

.trust-info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-info-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.trust-info-text h3 {
    font-size: var(--font-size-base);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.trust-info-text p {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Status Section */
.trust-status-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.trust-status-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
}

.status-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-icon.active {
    background: rgba(16, 185, 129, 0.15);
}

.status-icon svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.status-icon.active svg {
    color: rgba(16, 185, 129, 0.9);
}

.status-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-title {
    font-size: var(--font-size-base);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
}

.status-value {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.status-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    cursor: pointer;
    flex-shrink: 0;
}

.status-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 26px;
    transition: background 0.3s ease;
}

.toggle-slider:before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.status-toggle input:checked + .toggle-slider {
    background: rgba(16, 185, 129, 0.9);
}

.status-toggle input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.status-action {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    color: var(--color-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.status-action:active {
    background: rgba(99, 102, 241, 0.1);
}

/* Trust Section */
.trust-section {
    margin-bottom: var(--space-lg);
}

.trust-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    padding-left: var(--space-xs);
}

.trust-section-title {
    font-size: var(--type-title);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
}

.trust-count {
    font-size: var(--type-label-small);
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Contacts List */
.contacts-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-xl);
    transition: all var(--transition-fast);
}

.contact-card:active {
    transform: scale(0.98);
}

.contact-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-avatar span {
    font-size: var(--font-size-base);
    font-weight: var(--weight-semibold);
    color: var(--color-primary);
}

.contact-priority {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    border: 2px solid white;
}

.contact-priority.priority-high {
    background: rgba(239, 68, 68, 0.9);
}

.contact-priority.priority-medium {
    background: rgba(245, 158, 11, 0.9);
}

.contact-priority.priority-low {
    background: rgba(16, 185, 129, 0.9);
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.contact-name {
    font-size: var(--font-size-base);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-relation {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.contact-phone {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    opacity: 0.7;
}

.contact-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.contact-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.contact-btn svg {
    width: 16px;
    height: 16px;
}

.contact-btn.call-btn {
    background: rgba(16, 185, 129, 0.1);
    color: rgba(16, 185, 129, 0.9);
}

.contact-btn.call-btn:active {
    background: rgba(16, 185, 129, 0.2);
}

.contact-btn.edit-btn {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
}

.contact-btn.edit-btn:active {
    background: rgba(99, 102, 241, 0.2);
}

.contact-btn.delete-btn {
    background: rgba(239, 68, 68, 0.1);
    color: rgba(239, 68, 68, 0.9);
}

.contact-btn.delete-btn:active {
    background: rgba(239, 68, 68, 0.2);
}

/* Add Contact Button */
.add-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.4);
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.add-contact-btn:active {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
}

.add-contact-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-contact-icon svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

.add-contact-btn span {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
    color: var(--color-primary);
}

/* Tips */
.trust-tips {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.trust-tip-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-lg);
}

.trust-tip-item svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.trust-tip-item span {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Contact Modal */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: var(--app-max-width);
    max-height: 85vh;
    background: var(--bg-primary);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    padding: var(--space-lg);
    padding-bottom: calc(var(--space-xl) + 20px);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.contact-modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.modal-header h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.modal-close:active {
    background: rgba(0, 0, 0, 0.1);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: var(--font-size-xs);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
}

.form-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

/* Contact modal action buttons (scoped to avoid global .btn-primary conflict) */
.contact-modal .btn-secondary,
.contact-modal .btn-primary {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: var(--weight-semibold);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.contact-modal .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}

.contact-modal .btn-secondary:active {
    background: rgba(0, 0, 0, 0.1);
}

.contact-modal .btn-primary {
    background: var(--color-primary);
    color: white;
}

.contact-modal .btn-primary:active {
    background: var(--color-primary-dark);
    transform: scale(0.98);
}

/* ─────────────────────────────────────────────────────────
   16. SAFEID
   ───────────────────────────────────────────────────────── */

.safyid-content {
    padding: var(--space-md);
    padding-bottom: calc(var(--space-xl) + var(--nav-height));
}

/* Hero Card */
.safyid-hero-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.safyid-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.safyid-icon svg {
    width: 40px;
    height: 40px;
    color: rgba(16, 185, 129, 0.9);
}

.safyid-hero-title {
    font-size: var(--font-size-xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.safyid-hero-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.safyid-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-medium);
}

.verified-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.9);
}

/* Sections */
.safyid-section {
    margin-bottom: var(--space-lg);
}

.safyid-section-title {
    font-size: var(--type-title);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    padding-left: var(--space-xs);
}

/* Verification Level Card */
.verification-level-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
}

.level-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.level-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.level-icon.gold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
}

.level-icon svg {
    width: 24px;
    height: 24px;
    color: rgba(245, 158, 11, 0.9);
}

.level-info {
    display: flex;
    flex-direction: column;
}

.level-name {
    font-size: var(--font-size-md);
    font-weight: var(--weight-bold);
    color: rgba(245, 158, 11, 0.9);
}

.level-status {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.level-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

/* Documents List */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.document-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.document-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.document-icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.document-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.document-name {
    font-size: var(--font-size-base);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
}

.document-status {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.document-check {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.document-check svg {
    width: 14px;
    height: 14px;
    color: rgba(16, 185, 129, 0.9);
}

/* Security List */
.security-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.security-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
}

.security-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-icon svg {
    width: 20px;
    height: 20px;
    color: rgba(16, 185, 129, 0.9);
}

.security-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.security-name {
    font-size: var(--font-size-base);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
}

.security-status {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.security-status.enabled {
    color: rgba(16, 185, 129, 0.9);
    font-weight: var(--weight-medium);
}

/* Info Box */
.safyid-info-box {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    margin-top: var(--space-md);
}

.safyid-info-box svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.safyid-info-box p {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────
   22. SPOT PROFILE PAGE
   Perfil do estabelecimento - estilo Instagram + iFood
   ───────────────────────────────────────────────────────── */

.spot-profile-content {
    flex: 1;
    overflow: visible;
    padding: 0 var(--space-md);
    padding-bottom: calc(var(--space-xl) + var(--nav-height));
}

/* Capa/Cover */
.spot-cover {
    position: relative;
    width: 100%;
    height: var(--spot-cover-height);
    overflow: hidden;
    border-bottom-left-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
    margin: 0;
}

.spot-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25), transparent);
    z-index: 1;
    pointer-events: none;
}

.spot-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spot-cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
}

/* Header do Perfil */
.spot-profile-header {
    padding: var(--space-md) 0;
    margin-top: 0;
    position: relative;
    z-index: 2;
    text-align: center;
    line-height: 1;
}

.spot-avatar-section {
    position: relative;
    display: inline-flex;
    margin: 0 auto var(--space-sm);
}

.spot-avatar-large {
    width: var(--spot-profile-avatar-size);
    height: var(--spot-profile-avatar-size);
    border-radius: 50%;
    border: 0.25rem solid var(--bg-primary);
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-md);
}

.spot-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spot-verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 2px solid var(--bg-primary);
}

/* Info Principal */
.spot-info-main {
    margin-top: var(--space-sm);
}

.spot-profile-name {
    font-size: var(--type-profile-name);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.spot-profile-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.spot-profile-category {
    font-size: var(--type-subtitle);
    color: var(--text-secondary);
}

.spot-meta-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--type-subtitle);
}

.spot-rating-large {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-warning);
}

#spotProfile .rating-value {
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
}

.rating-count {
    font-size: var(--type-subtitle);
    color: var(--text-secondary);
}

.spot-price-range {
    font-size: var(--type-subtitle);
    color: var(--color-success);
    font-weight: var(--weight-semibold);
}

/* Status Aberto/Fechado */
.spot-status-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border-color);
}

.spot-status-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.spot-status-col:nth-child(2) {
    align-items: flex-end;
    text-align: right;
}



.spot-status-label {
    font-size: var(--type-label-small);
    font-weight: var(--weight-semibold);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.spot-status-value {
    font-size: var(--type-subtitle);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    line-height: 1.1;
}

.spot-status-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--weight-semibold);
    align-self: center;
    justify-self: center;
}

.spot-status-badge.open {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-success);
}

.spot-status-badge.closed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
}

#spotProfile .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.spot-status-sublocation {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.25;
}

.spot-seals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.spot-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.3rem 0.45rem;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
    line-height: 1;
}

.spot-seal-emoji {
    font-size: 1rem;
}

[data-theme="dark"] .spot-seal {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .spot-status-section {
        grid-template-columns: 1fr;
    }

    .spot-status-col:nth-child(2) {
        align-items: flex-start;
        text-align: left;
    }

    .spot-status-badge {
        justify-self: start;
        align-self: flex-start;
    }
}

/* Ações Rápidas */
.spot-actions {
    display: grid;
    grid-template-columns: repeat(var(--layout-grid-columns), minmax(0, 1fr));
    gap: var(--layout-grid-gutter);
    padding: var(--space-md) 0;
}

.spot-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--bg-glass-border);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    font-size: var(--type-label-small);
    color: var(--text-secondary);
    font-weight: var(--weight-medium);
    text-align: center;
    border-radius: var(--radius-md);
}

.spot-action-btn svg {
    width: var(--icon-glyph-sm);
    height: var(--icon-glyph-sm);
    flex-shrink: 0;
    color: var(--text-secondary);
}

.spot-action-btn.primary svg {
    color: var(--color-primary);
}

/* Seção de Informações */
.spot-info-section {
    padding: var(--space-md) 0;
}

.spot-info-section .section-title {
    font-size: var(--type-title);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.spot-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.spot-info-item {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
}

.spot-info-item .info-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.spot-info-item .info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#spotProfile .info-label {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
}

#spotProfile .info-value {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.4;
}

#spotProfile .info-subvalue {
    font-size: var(--type-label-small);
    color: var(--text-secondary);
    line-height: 1.3;
}

.spot-address-item {
    align-items: center;
}

.spot-route-action {
    flex-shrink: 0;
    min-width: 3.75rem;
}

/* Bio single line layout */
.spot-info-item.bio-single-line .info-content {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
}

.spot-info-item.bio-single-line .info-label {
    flex-shrink: 0;
}

.bio-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.4;
}

.bio-text strong {
    color: var(--text-primary);
    font-weight: var(--weight-semibold);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hour-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.hour-row .day {
    font-weight: var(--weight-medium);
}

/* Seção de Fotos */
/* Seção de Links Oficiais */
.spot-links-section {
    padding: var(--space-md) 0;
}

.spot-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
}

.spot-link-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 4.5rem;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-glass-border);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(var(--glass-blur));
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--type-label-small);
    font-weight: var(--weight-medium);
    text-align: center;
}

.spot-link-btn svg {
    width: var(--icon-glyph-sm);
    height: var(--icon-glyph-sm);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.spot-link-label {
    color: var(--text-primary);
    line-height: 1.1;
}

@media (min-width: 40rem) {
    .spot-links-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.spot-photos-section {
    padding: var(--space-md) 0;
}

.spot-photos-section .section-title {
    font-size: var(--type-title);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.spot-photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.spot-photo-item {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.spot-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.spot-photo-item.more {
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--weight-semibold);
}

/* Seção de Avaliações */
.spot-reviews-section {
    padding: var(--space-md) 0;
}

.spot-reviews-section .section-title {
    font-size: var(--type-title);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.spot-review-item {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
}

#spotProfile .review-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

#spotProfile .reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

#spotProfile .reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#spotProfile .reviewer-info {
    flex: 1;
}

#spotProfile .reviewer-name {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    display: block;
}

#spotProfile .review-rating {
    display: flex;
    gap: 2px;
    color: var(--color-warning);
}

#spotProfile .review-date {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
}

#spotProfile .review-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Seção de Semelhantes */
.spot-similar-section {
    padding: var(--space-md) 0;
}

.spot-similar-section .section-title {
    margin-bottom: var(--space-sm);
}

.spot-similar-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(11rem, 1fr);
    gap: var(--space-sm);
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
}

.spot-similar-list::-webkit-scrollbar {
    display: none;
}

.spot-similar-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.spot-similar-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.spot-similar-content {
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.spot-similar-name {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    line-height: 1.2;
}

.spot-similar-meta {
    font-size: var(--type-label-small);
    color: var(--text-secondary);
    line-height: 1.2;
}

/* ─────────────────────────────────────────────────────────
   23. DARK MODE — SYSTEM PREFERENCE
   Applies when no explicit [data-theme] is set.
   ───────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-primary:   #0F0F0F;
        --bg-secondary: #1A1A1A;
        --bg-tertiary:  #262626;

        --bg-glass:        rgba(26, 26, 26, 0.75);
        --bg-glass-border: rgba(255, 255, 255, 0.10);

        --text-primary:   #FAFAFA;
        --text-secondary: #A3A3A3;
        --text-tertiary:  #737373;

        --border-color: #262626;
        --shadow-color: rgba(0, 0, 0, 0.30);

        --shadow-sm: 0 1px 3px rgba(0,0,0,0.30);
        --shadow-md: 0 4px 12px rgba(0,0,0,0.40);
        --shadow-lg: 0 10px 30px rgba(0,0,0,0.50);

        --glass-brightness: 110%;
    }
}

/* New Date - UI standards override (mobile-first) */
#new-date .new-date-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-top: var(--space-md);
}

#new-date .new-date-hero-card {
    padding: var(--space-lg);
    margin-bottom: 0;
    box-shadow: none;
}

#new-date .new-date-hero-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto var(--space-sm);
}

#new-date .new-date-progress {
    margin: 0;
}

#new-date .progress-step {
    gap: var(--space-xs);
}

#new-date .progress-line {
    margin: 0 var(--space-xs);
    margin-bottom: 0.875rem;
}

#new-date .new-date-form-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

#new-date .form-step.active {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

#new-date .step-title {
    margin-bottom: 0;
}

#new-date .step-title h3 {
    font-size: var(--type-title);
}

#new-date .form-group {
    margin-bottom: 0;
}

/* Address Row Layout */
.address-row {
    display: flex;
    gap: var(--space-sm);
}

.address-row .flex-1 {
    flex: 1;
}

.address-row .flex-3 {
    flex: 3;
}

/* Location Input Row - 80/20 layout */
.location-input-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.location-input {
    flex: 0 0 80%;
}

.location-badge {
    flex: 0 0 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    color: var(--brand-500);
}

#new-date .form-row,
#new-date .date-row,
#new-date .time-row {
    gap: var(--space-sm);
}

#new-date .form-label {
    gap: 0 var(--space-sm);
    margin-bottom: var(--space-sm);
    line-height: 1.1;
}

#new-date .form-label > svg:first-child,
#new-date .form-label > .label-icon {
    width: var(--icon-glyph-sm);
    height: var(--icon-glyph-sm);
}

#new-date .label-text {
    font-size: var(--type-title);
}

#new-date .label-hint {
    font-size: var(--type-subtitle);
}

#new-date .label-badge {
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-xs);
}

#new-date .form-input,
#new-date .form-select,
#new-date .form-textarea {
    font-size: var(--type-title);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#new-date .form-select {
    min-height: var(--input-height);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

#new-date .social-row {
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

#new-date .social-select {
    width: 8.25rem;
    padding: var(--space-sm) var(--space-md);
    padding-right: 36px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

#new-date .social-remove-btn {
    width: 2.25rem;
    height: 2.25rem;
}

#new-date .add-social-btn {
    gap: var(--space-sm);
    padding: 0.75rem;
    margin-top: var(--space-sm);
}

#new-date .custom-platform-input {
    margin-top: var(--space-sm);
}

#new-date .summary-card {
    box-shadow: none;
}

#new-date .summary-section h4 {
    font-size: var(--type-title);
}

#new-date .summary-section p {
    font-size: var(--type-subtitle);
}

#new-date .new-date-features.compact .feature-item {
    padding: var(--space-sm);
}

#new-date .feature-item {
    gap: var(--space-xs);
}

#new-date .feature-text {
    max-width: 6rem;
}

#new-date .new-date-button {
    padding: 0.875rem var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: 0;
}

#new-date .form-navigation {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 0 calc(var(--page-gutter) * -1);
    padding: var(--space-sm) var(--page-gutter) calc(var(--space-sm) + env(safe-area-inset-bottom));
    background: var(--bg-glass);
    backdrop-filter: blur(1rem) saturate(1.8);
    -webkit-backdrop-filter: blur(1rem) saturate(1.8);
}

#new-date .nav-btn {
    padding: 0.75rem 1rem;
    font-size: var(--type-title);
}

#new-date .screenshot-upload-area {
    gap: var(--space-sm);
    padding: var(--space-md);
}

#new-date .screenshot-preview-container {
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

#new-date .screenshot-preview {
    width: 5rem;
    height: 5rem;
}

#new-date .screenshot-remove {
    width: 1.25rem;
    height: 1.25rem;
}

@media (max-width: 23.75rem) {
    #new-date .social-row {
        flex-wrap: wrap;
    }

    #new-date .social-select,
    #new-date .social-input {
        width: 100%;
    }

    #new-date .social-remove-btn {
        margin-left: auto;
    }
}

/* ─────────────────────────────────────────────────────────
   FINAL POLISH (MOBILE PWA)
   - Glassmorphism concentrado no header
   - Bento surfaces no conteúdo
   - Grid 4 colunas / gutter 16
   - Cores por produto (dates, spots, safylinks, safycall)
   ───────────────────────────────────────────────────────── */

#dates { --view-accent: #5B6CFF; }
#spots { --view-accent: #10B981; }
#safylinks { --view-accent: #06B6D4; }
#safycall { --view-accent: #F59E0B; }
#notifications { --view-accent: #8B5CF6; }

/* Grid baseline (4x16) reforçado nas views principais */
#home .layout-grid,
#profile .layout-grid,
#spotProfile .layout-grid,
#spotEventProfile .layout-grid,
#dates .layout-grid,
#spots .layout-grid,
#safylinks .layout-grid,
#safycall .layout-grid,
#notifications .layout-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--space-md);
    row-gap: var(--space-md);
}

/* Header mantém caráter glassmorphism */
.view-header,
.view-header--overlay {
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

/* Conteúdo em bento: pouca borda, sombra controlada, sem blur */
#home .quick-actions-section,
#profile .profile-card-main,
#profile .profile-menu-section,
#spotProfile .spot-profile-header,
#spotProfile .spot-status-section,
#spotProfile .spot-actions,
#spotProfile .spot-info-section,
#spotEventProfile .spot-profile-header,
#spotEventProfile .spot-status-section,
#spotEventProfile .spot-actions,
#spotEventProfile .spot-info-section,
#dates .trust-info-card,
#dates .trust-status-item,
#dates .contact-card,
#notifications .trust-info-card,
#notifications .trust-status-item,
#notifications .contact-card,
#safylinks .trust-info-card,
#safylinks .trust-status-item,
#safylinks .contact-card,
#safycall .trust-info-card,
#safycall .trust-status-item,
#safycall .contact-card,
#spots .search-input-wrapper,
#spots .filter-select-fake,
#spots .spot-list-item {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] #home .quick-actions-section,
[data-theme="dark"] #profile .profile-card-main,
[data-theme="dark"] #profile .profile-menu-section,
[data-theme="dark"] #spotProfile .spot-profile-header,
[data-theme="dark"] #spotProfile .spot-status-section,
[data-theme="dark"] #spotProfile .spot-actions,
[data-theme="dark"] #spotProfile .spot-info-section,
[data-theme="dark"] #spotEventProfile .spot-profile-header,
[data-theme="dark"] #spotEventProfile .spot-status-section,
[data-theme="dark"] #spotEventProfile .spot-actions,
[data-theme="dark"] #spotEventProfile .spot-info-section,
[data-theme="dark"] #dates .trust-info-card,
[data-theme="dark"] #dates .trust-status-item,
[data-theme="dark"] #dates .contact-card,
[data-theme="dark"] #notifications .trust-info-card,
[data-theme="dark"] #notifications .trust-status-item,
[data-theme="dark"] #notifications .contact-card,
[data-theme="dark"] #safylinks .trust-info-card,
[data-theme="dark"] #safylinks .trust-status-item,
[data-theme="dark"] #safylinks .contact-card,
[data-theme="dark"] #safycall .trust-info-card,
[data-theme="dark"] #safycall .trust-status-item,
[data-theme="dark"] #safycall .contact-card,
[data-theme="dark"] #spots .search-input-wrapper,
[data-theme="dark"] #spots .filter-select-fake,
[data-theme="dark"] #spots .spot-list-item {
    background: rgba(22, 27, 35, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Seções trust-like viram bento blocks neutros */
.trust-section {
    margin-bottom: var(--space-md);
    padding: var(--space-sm);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] .trust-section {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.07);
}

/* Accent por página para status/info */
#dates .trust-info-card,
#dates .status-icon.active { color: var(--view-accent); }
#spots .spot-list-dates svg { color: var(--view-accent); }
#safylinks .trust-info-card,
#safylinks .status-icon.active { color: var(--view-accent); }
#safycall .trust-info-card,
#safycall .status-icon.active { color: var(--view-accent); }
#notifications .trust-info-card,
#notifications .status-icon.active { color: var(--view-accent); }

/* Interação mobile-first: apenas active feedback */
.contact-card:active,
#spots .spot-list-item:active,
.profile-menu-item:active,
.spot-action-btn:active {
    transform: scale(0.99);
}

/* Micro spacing + type hierarchy (final pass) */
#dates .trust-content,
#safylinks .trust-content,
#safycall .trust-content,
#notifications .trust-content,
#spots .spots-content {
    padding-top: var(--space-md);
    padding-bottom: calc(var(--space-xl) + var(--nav-height));
}

#dates .trust-section,
#safylinks .trust-section,
#safycall .trust-section,
#notifications .trust-section {
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
}

#dates .trust-section-title,
#safylinks .trust-section-title,
#safycall .trust-section-title,
#notifications .trust-section-title {
    font-size: var(--font-size-sm);
    line-height: 1.2;
}

#dates .status-title,
#safylinks .status-title,
#safycall .status-title,
#notifications .status-title,
#spots .spot-list-name {
    font-size: var(--font-size-sm);
    line-height: 1.2;
}

#dates .status-value,
#safylinks .status-value,
#safycall .status-value,
#notifications .status-value,
#dates .contact-relation,
#safylinks .contact-relation,
#safycall .contact-relation,
#notifications .contact-relation {
    font-size: var(--font-size-xs);
    line-height: 1.3;
}

#dates .contact-name,
#safylinks .contact-name,
#safycall .contact-name,
#notifications .contact-name {
    font-size: var(--font-size-sm);
    line-height: 1.25;
}

/* Quick actions: seção limpa + cards destacados */
#home .quick-actions-section {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

#home .quick-actions-section .section-title {
    margin-bottom: var(--space-lg);
}

#home .quick-actions-grid {
    gap: var(--space-md);
    row-gap: var(--space-md);
    column-gap: var(--space-md);
    padding: 0;
}

#home .quick-actions-grid > .action-card {
    margin: 0;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] #home .quick-actions-grid > .action-card {
    background: rgba(22, 27, 35, 0.78);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Home spots carousel: evita cards "estourando" a largura da coluna */
#home .spots-column {
    min-width: 0;
}

#home .spot-card {
    width: 100%;
    max-width: 100%;
}

#home .spot-col {
    min-width: 0;
}

#home .spot-col-logo {
    flex: 0 0 4rem;
    width: 4rem;
    min-width: 4rem;
}

#home .spot-col-info {
    flex: 1 1 auto;
    min-width: 0;
}

#home .spot-col-arrow {
    flex: 0 0 1.25rem;
    min-width: 1.25rem;
}

#home .spot-logo {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1 / 1;
}

/* Auth standalone: welcome alinhado ao UI/UX do index */
body.auth-standalone .view {
    bottom: 0;
}

body.auth-standalone #welcome {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

body.auth-standalone #welcome .welcome-content {
    min-height: 100vh;
    min-height: 100dvh;
    align-items: stretch;
    justify-content: space-between;
    gap: var(--space-xl);
    padding-top: calc(var(--space-xl) + env(safe-area-inset-top));
    padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom));
}

body.auth-standalone #welcome .welcome-shell {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-lg);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-md);
}

body.auth-standalone #welcome .logo-glass {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

body.auth-standalone #welcome .auth-options > .btn {
    width: 100%;
}

body.auth-standalone #welcome .btn-link {
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
}

body.auth-standalone #welcome .welcome-footer {
    padding-top: 0;
}

[data-theme="dark"] body.auth-standalone #welcome .welcome-shell {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(22, 27, 35, 0.78);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] body.auth-standalone #welcome .logo-glass {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Legal standalone pages */
body.legal-standalone {
    overflow-y: auto;
}

body.legal-standalone .app-container {
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 0;
}

.legal-page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}

.legal-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 72rem);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding:
        calc(var(--space-xl) + env(safe-area-inset-top))
        var(--page-gutter)
        calc(var(--space-12) + env(safe-area-inset-bottom));
}

.legal-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.legal-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.legal-brand-mark {
    width: 3.75rem;
    height: 3.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.legal-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.legal-brand-kicker {
    font-size: var(--font-size-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.legal-brand-title {
    font-family: var(--font-family-display);
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    line-height: var(--leading-tight);
}

.legal-brand-subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
}

.legal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.legal-action-link {
    min-height: var(--btn-height);
    padding: 0.9rem 1rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: var(--weight-semibold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast);
}

.legal-action-link:active {
    transform: scale(0.98);
}

.legal-action-link.is-primary {
    color: var(--text-on-primary);
    border-color: transparent;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: var(--shadow-glow-primary);
}

.legal-hero,
.legal-anchor-nav,
.legal-section,
.legal-note,
.legal-footer-card {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
}

.legal-hero {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.legal-hero-copy {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.legal-page-label {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-page-title {
    font-family: var(--font-family-display);
    font-size: clamp(2rem, 1.6rem + 2vw, 3.5rem);
    line-height: 1.05;
    color: var(--text-primary);
}

.legal-page-lead {
    max-width: 48rem;
    font-size: var(--font-size-md);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
}

.legal-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.legal-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-full);
    background: var(--color-primary-tint);
    color: var(--color-primary-dark);
    font-size: var(--font-size-sm);
    font-weight: var(--weight-semibold);
}

.legal-summary-grid,
.legal-detail-grid,
.legal-retention-grid,
.legal-provider-grid,
.legal-contact-grid {
    display: grid;
    gap: var(--space-md);
}

.legal-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.legal-detail-grid,
.legal-retention-grid,
.legal-provider-grid,
.legal-contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.legal-summary-card,
.legal-mini-card,
.legal-retention-card,
.legal-provider-card,
.legal-contact-card {
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.legal-summary-card h2,
.legal-mini-card h3,
.legal-retention-card h3,
.legal-provider-card h3,
.legal-contact-card h3 {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.legal-summary-card p,
.legal-mini-card p,
.legal-retention-card p,
.legal-provider-card p,
.legal-contact-card p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    font-size: var(--font-size-base);
}

.legal-anchor-nav {
    padding: var(--space-md);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.legal-anchor-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--weight-semibold);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.42);
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.legal-section {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.legal-section-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.legal-section-eyebrow {
    font-size: var(--font-size-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.legal-section h2 {
    font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
    color: var(--text-primary);
    line-height: var(--leading-tight);
}

.legal-section h3 {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.legal-section p,
.legal-section li {
    font-size: var(--font-size-md);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
}

.legal-section ul,
.legal-section ol {
    padding-left: 1.25rem;
    display: grid;
    gap: var(--space-sm);
}

.legal-callout {
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    background: var(--color-warning-tint);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #7c4a03;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.legal-callout strong {
    color: inherit;
}

.legal-inline-link {
    color: var(--color-primary-dark);
    font-weight: var(--weight-semibold);
}

.legal-note {
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.52);
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    line-height: var(--leading-relaxed);
}

.legal-footer-card {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
}

.legal-footer-copy {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.legal-footer-copy h2 {
    font-family: var(--font-family-display);
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
}

.legal-footer-copy p {
    color: var(--text-secondary);
    font-size: var(--font-size-md);
    line-height: var(--leading-relaxed);
}

.legal-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.legal-footer-links a {
    color: var(--color-primary-dark);
    font-weight: var(--weight-semibold);
    text-decoration: none;
}

[data-theme="dark"] .legal-brand-mark,
[data-theme="dark"] .legal-action-link,
[data-theme="dark"] .legal-page-label,
[data-theme="dark"] .legal-summary-card,
[data-theme="dark"] .legal-mini-card,
[data-theme="dark"] .legal-retention-card,
[data-theme="dark"] .legal-provider-card,
[data-theme="dark"] .legal-contact-card,
[data-theme="dark"] .legal-note,
[data-theme="dark"] .legal-anchor-nav a {
    background: rgba(28, 33, 43, 0.78);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .legal-callout {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.24);
    color: #fcd38d;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .legal-brand-mark,
    :root:not([data-theme="light"]) .legal-action-link,
    :root:not([data-theme="light"]) .legal-page-label,
    :root:not([data-theme="light"]) .legal-summary-card,
    :root:not([data-theme="light"]) .legal-mini-card,
    :root:not([data-theme="light"]) .legal-retention-card,
    :root:not([data-theme="light"]) .legal-provider-card,
    :root:not([data-theme="light"]) .legal-contact-card,
    :root:not([data-theme="light"]) .legal-note,
    :root:not([data-theme="light"]) .legal-anchor-nav a {
        background: rgba(28, 33, 43, 0.78);
        border-color: rgba(255, 255, 255, 0.1);
    }

    :root:not([data-theme="light"]) .legal-callout {
        background: rgba(245, 158, 11, 0.14);
        border-color: rgba(245, 158, 11, 0.24);
        color: #fcd38d;
    }
}

@media (min-width: 48rem) {
    .legal-shell {
        gap: var(--space-xl);
        padding-left: max(var(--space-xl), env(safe-area-inset-left));
        padding-right: max(var(--space-xl), env(safe-area-inset-right));
    }

    .legal-section {
        padding: 2rem;
    }
}
