/* =============================================================================
   DUALLY - WORLD-CLASS DESIGN SYSTEM
   Inspired by Apple, Linear, Stripe, Vercel
   Premium Dating Experience
   ============================================================================= */

/* =============================================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================================= */
:root {
    /* Background Colors - Clean & Refined */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFAFA;
    --bg-tertiary: #F5F5F5;
    --bg-elevated: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.72);
    --bg-glass-dark: rgba(0, 0, 0, 0.02);

    /* Text Colors - Optimal Contrast */
    --text-primary: #0A0A0A;
    --text-secondary: #525252;
    --text-tertiary: #A3A3A3;
    --text-disabled: #D4D4D4;
    --text-inverse: #FFFFFF;

    /* Gradient Colors - Black Premium (Nike Style) */
    --gradient-start: #000000;
    --gradient-mid: #1A1A1A;
    --gradient-end: #333333;

    /* Premium Gradients - Black Based */
    --gradient-primary: linear-gradient(135deg, #000000 0%, #1A1A1A 50%, #2D2D2D 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.08) 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(0, 0, 0, 0.03) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(0, 0, 0, 0.02) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, rgba(0, 0, 0, 0.02) 0px, transparent 50%);
    --gradient-glow: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
                     rgba(0, 0, 0, 0.04), transparent 40%);

    /* Accent Colors - Black */
    --accent: #000000;
    --accent-hover: #1A1A1A;
    --accent-muted: rgba(0, 0, 0, 0.08);
    --accent-light: rgba(0, 0, 0, 0.04);

    /* Semantic Colors */
    --success: #10B981;
    --success-muted: rgba(16, 185, 129, 0.1);
    --warning: #F59E0B;
    --warning-muted: rgba(245, 158, 11, 0.1);
    --error: #EF4444;
    --error-muted: rgba(239, 68, 68, 0.1);

    /* Noble Accent Colors - Pairs with Black */
    --heart: #E11D48;
    --heart-muted: rgba(225, 29, 72, 0.1);
    --heart-glow: rgba(225, 29, 72, 0.3);
    --gold: #F59E0B;
    --gold-muted: rgba(245, 158, 11, 0.1);
    --gold-glow: rgba(245, 158, 11, 0.3);
    --emerald: #10B981;
    --emerald-muted: rgba(16, 185, 129, 0.1);

    /* Borders */
    --border-subtle: rgba(0, 0, 0, 0.04);
    --border-default: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.12);
    --border-focus: rgba(0, 0, 0, 0.5);

    /* Shadows - Apple-like depth */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 2px 4px rgba(0, 0, 0, 0.03), 0 8px 16px rgba(0, 0, 0, 0.03);
    --shadow-card-hover: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 4px 8px rgba(0, 0, 0, 0.04), 0 16px 32px rgba(0, 0, 0, 0.06);

    /* Typography - System Font Stack */
    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter',
                   'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Monaco', Consolas, monospace;

    /* Font Sizes - Fluid Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    --font-size-7xl: 4.5rem;

    /* Spacing - 4px base */
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-none: 0;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;

    /* Transitions - Smooth & Natural */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-base: 200ms;
    --duration-slow: 350ms;
    --duration-slower: 500ms;

    /* Z-index */
    --z-base: 0;
    --z-elevated: 10;
    --z-sticky: 100;
    --z-overlay: 1000;
    --z-modal: 1100;
    --z-toast: 1200;
}

/* =============================================================================
   RESET & BASE
   ============================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    min-height: 100vh;
    overflow-x: hidden;
}

::selection {
    background-color: rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* =============================================================================
   TYPOGRAPHY
   ============================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

h1 { font-size: var(--font-size-4xl); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-balance {
    text-wrap: balance;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--accent-hover);
}

/* =============================================================================
   CONTAINER
   ============================================================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-sm { max-width: 640px; }
.container-md { max-width: 768px; }
.container-lg { max-width: 1024px; }
.container-xl { max-width: 1280px; }

/* =============================================================================
   BUTTONS - Premium Feel
   ============================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    height: 44px;
    padding: 0 var(--space-5);
    font-family: inherit;
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Primary - Gradient */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-inverse);
    box-shadow: var(--shadow-sm), 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary */
.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 1px var(--border-default), var(--shadow-xs);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-sm);
}

/* Ghost */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    height: 40px;
    padding: 0 var(--space-4);
}

.btn-ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Outline */
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    box-shadow: 0 0 0 1px var(--border-default);
}

.btn-outline:hover {
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 1px var(--border-strong);
}

/* Icon Button */
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.btn-icon:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Button Sizes */
.btn-sm {
    height: 36px;
    padding: 0 var(--space-4);
    font-size: var(--font-size-xs);
    border-radius: var(--radius-md);
}

.btn-lg {
    height: 52px;
    padding: 0 var(--space-8);
    font-size: var(--font-size-base);
    border-radius: var(--radius-xl);
}

.btn-xl {
    height: 60px;
    padding: 0 var(--space-10);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-xl);
}

.btn-block {
    width: 100%;
}

/* =============================================================================
   FORMS - Refined Inputs
   ============================================================================= */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 var(--space-4);
    font-family: inherit;
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    transition: all var(--duration-fast) var(--ease-out);
    -webkit-appearance: none;
}

.form-control:hover {
    border-color: var(--border-strong);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

textarea.form-control {
    height: auto;
    min-height: 120px;
    padding: var(--space-4);
    resize: vertical;
}

.form-text {
    margin-top: var(--space-2);
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
}

.form-control.is-invalid {
    border-color: var(--error);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px var(--error-muted);
}

.invalid-feedback {
    margin-top: var(--space-2);
    font-size: var(--font-size-xs);
    color: var(--error);
}

/* =============================================================================
   CARDS - Subtle & Elegant
   ============================================================================= */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out);
}

.card-interactive {
    cursor: pointer;
}

.card-interactive:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.card-body {
    padding: var(--space-6);
}

.card-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
}

.card-footer {
    padding: var(--space-5) var(--space-6);
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}

/* Glass Card */
.card-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
}

/* =============================================================================
   NAVBAR - Floating Glass Effect
   ============================================================================= */
.navbar-wrapper {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
}

.navbar {
    height: 64px;
    display: flex;
    align-items: center;
}

.navbar > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Premium Text Logo - Like Apple, Nike, Spotify */
.brand-logo-text {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1.2px;
    color: var(--text-primary);
    transition: opacity 0.2s ease;
}

.brand-up {
    color: #E11D48;
}

.navbar-brand:hover .brand-logo-text {
    opacity: 0.7;
}

.navbar-nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    height: 36px;
    padding: 0 var(--space-4);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--accent);
    background: var(--accent-muted);
}

/* Noble accent colors for navigation icons */
.nav-link i.bi-lightning-charge-fill {
    color: var(--gold);
}

.nav-link i.bi-heart-fill {
    color: var(--heart);
}

.nav-link.active i.bi-lightning-charge-fill {
    color: var(--gold);
}

.nav-link.active i.bi-heart-fill {
    color: var(--heart);
}

.nav-link i.bi-bell-fill {
    color: var(--accent);
}

.nav-link.active i.bi-bell-fill {
    color: var(--accent);
}

/* Notification count badge - inline with nav link */
.notification-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 var(--space-1);
    margin-left: var(--space-1);
    background: var(--error);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-inverse);
}

.notification-count-badge.pulse {
    animation: pulse 0.6s ease-in-out;
}

.nav-link i {
    font-size: 18px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Avatar Button */
.btn-avatar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1);
    padding-right: var(--space-3);
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out);
}

.btn-avatar:hover {
    background: var(--bg-tertiary);
}

.btn-avatar .chevron {
    font-size: 12px;
    color: var(--text-tertiary);
    transition: transform var(--duration-fast) var(--ease-out);
}

.btn-avatar[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

/* Avatar */
.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    border-radius: var(--radius-full);
    color: var(--text-inverse);
    font-weight: 600;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-xs { width: 24px; height: 24px; font-size: 10px; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-md { width: 40px; height: 40px; font-size: 14px; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }
.avatar-xl { width: 80px; height: 80px; font-size: 28px; }
.avatar-2xl { width: 120px; height: 120px; font-size: 42px; }

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--text-primary);
    font-size: 24px;
    outline: none;
}

.mobile-toggle:focus {
    outline: none;
    box-shadow: none;
}

.mobile-toggle:hover {
    background: var(--bg-tertiary);
}

/* =============================================================================
   DROPDOWN - Floating Menu
   ============================================================================= */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: var(--z-overlay);
    min-width: 220px;
    margin-top: var(--space-2);
    padding: var(--space-2);
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: all var(--duration-base) var(--ease-out);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-header {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.dropdown-item.active {
    background: var(--accent-muted);
    color: var(--accent);
}

.dropdown-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.dropdown-divider {
    height: 1px;
    margin: var(--space-2) 0;
    background: var(--border-subtle);
}

.user-email {
    max-width: 160px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-display-name {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
}

.flag {
    font-size: 16px;
}

/* =============================================================================
   OFFCANVAS - Mobile Menu
   ============================================================================= */
.offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    width: 320px;
    max-width: 100%;
    background: var(--bg-primary);
    box-shadow: var(--shadow-2xl);
    transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease-out);
    display: flex;
    flex-direction: column;
}

.offcanvas.show {
    transform: translateX(0);
}

.offcanvas-backdrop {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-modal) - 1);
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-slow) var(--ease-out);
}

.offcanvas-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5);
    border-bottom: 1px solid var(--border-subtle);
}

.offcanvas-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.btn-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.btn-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-close::before {
    content: '✕';
    font-size: 14px;
}

.offcanvas-body {
    flex: 1;
    padding: var(--space-4);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-6) 0;
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    flex: 1;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all var(--duration-fast) var(--ease-out);
}

.mobile-nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.mobile-nav-link.active {
    background: var(--accent-muted);
    color: var(--accent);
}

.mobile-nav-link i {
    font-size: 20px;
    width: 24px;
}

/* Noble accent colors for mobile navigation icons */
.mobile-nav-link i.bi-lightning-charge-fill {
    color: var(--gold);
}

.mobile-nav-link i.bi-heart-fill {
    color: var(--heart);
}

.mobile-nav-link i.bi-gem {
    color: var(--gold);
}

.mobile-nav-link i.bi-bell-fill {
    color: var(--accent);
}

.mobile-nav-footer {
    padding-top: var(--space-4);
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
}

/* =============================================================================
   MAIN CONTENT
   ============================================================================= */
.main-content {
    min-height: calc(100vh - 64px - 200px);
}

/* =============================================================================
   FOOTER - Minimal & Clean
   ============================================================================= */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-12) 0 var(--space-8);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-10);
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: var(--space-3);
}

.footer-logo .brand-logo-text {
    font-size: 1.35rem;
    color: var(--text-primary);
}

.footer-logo:hover .brand-logo-text {
    opacity: 0.7;
}

/* Utility class for heart color */
.text-heart {
    color: var(--heart) !important;
}

.footer-tagline {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    margin: 0;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: var(--space-8);
}

.footer-links a {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-10);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    margin: 0;
}

.footer-social {
    display: flex;
    gap: var(--space-2);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-tertiary);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.social-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* =============================================================================
   HERO SECTION - Apple-like Impact
   ============================================================================= */
.hero {
    position: relative;
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-16) var(--space-6);
    background: var(--bg-primary);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    opacity: 0.6;
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 800px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    margin-bottom: var(--space-6);
    background: var(--gradient-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--accent);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto var(--space-10);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    margin-top: var(--space-16);
    perspective: 1000px;
}

/* =============================================================================
   FEATURE CARDS - Showcase Section
   ============================================================================= */
.features {
    padding: var(--space-24) 0;
    background: var(--bg-secondary);
}

.features-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-16);
}

.features-header h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-4);
}

.features-header p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
}

.feature-card {
    position: relative;
    padding: var(--space-8);
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    transition: all var(--duration-base) var(--ease-out);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-out);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-5);
    background: var(--gradient-subtle);
    border-radius: var(--radius-xl);
    font-size: 24px;
    color: var(--accent);
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* =============================================================================
   PROFILE CARDS (DUEL)
   ============================================================================= */
.profile-card {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-card);
    transition: all var(--duration-base) var(--ease-out);
}

.profile-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.profile-card.selected {
    box-shadow: 0 0 0 4px var(--accent), var(--shadow-glow);
    transform: scale(1.02);
}

.profile-card.not-selected {
    opacity: 0.5;
    filter: grayscale(30%);
    transform: scale(0.98);
}

.profile-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-8) var(--space-6) var(--space-6);
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.profile-card-name {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-inverse);
    margin-bottom: var(--space-1);
}

.profile-card-meta {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
}

/* =============================================================================
   BADGES
   ============================================================================= */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-primary {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.badge-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.badge-success {
    background: var(--success-muted);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-muted);
    color: var(--warning);
}

.badge-error {
    background: var(--error-muted);
    color: var(--error);
}

/* Notification Badge */
.notification-badge {
    position: relative;
}

.notification-badge .badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 var(--space-1);
    background: var(--error);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================================================
   ALERTS
   ============================================================================= */
.alert {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
}

.alert-success {
    background: var(--success-muted);
    color: var(--success);
}

.alert-warning {
    background: var(--warning-muted);
    color: #B45309;
}

.alert-error,
.alert-danger {
    background: var(--error-muted);
    color: var(--error);
}

.alert-info {
    background: var(--accent-muted);
    color: var(--accent);
}

/* =============================================================================
   TOAST NOTIFICATIONS
   ============================================================================= */
.toast-notification {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-toast);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    font-size: var(--font-size-sm);
    font-weight: 500;
    transform: translateY(calc(100% + var(--space-8)));
    transition: transform var(--duration-slow) var(--ease-out);
}

.toast-notification.show {
    transform: translateY(0);
}

.toast-notification i {
    font-size: 20px;
    color: var(--accent);
}

.toast-notification.has-photo {
    flex-direction: row;
    gap: var(--space-4);
    padding: var(--space-3);
    max-width: 360px;
}

.toast-notification .toast-photo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toast-notification .toast-content {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex: 1;
}

.toast-notification .toast-content i {
    font-size: 16px;
}

/* =============================================================================
   EMPTY STATE
   ============================================================================= */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-16);
}

.empty-state-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-6);
    background: var(--gradient-subtle);
    border-radius: var(--radius-full);
    font-size: 32px;
    color: var(--accent);
}

.empty-state-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.empty-state-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    max-width: 360px;
}

/* =============================================================================
   LOADING / SKELETON
   ============================================================================= */
.skeleton {
    background: linear-gradient(90deg,
        var(--bg-tertiary) 0%,
        var(--bg-secondary) 50%,
        var(--bg-tertiary) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite ease-in-out;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text { height: 16px; margin-bottom: var(--space-2); }
.skeleton-title { height: 24px; width: 60%; margin-bottom: var(--space-3); }
.skeleton-avatar { border-radius: var(--radius-full); }
.skeleton-card { aspect-ratio: 3/4; border-radius: var(--radius-xl); }

/* =============================================================================
   ANIMATIONS
   ============================================================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate-fade-in { animation: fadeIn var(--duration-base) var(--ease-out); }
.animate-fade-in-up { animation: fadeInUp var(--duration-slow) var(--ease-out); }
.animate-pulse { animation: pulse 2s infinite; }

/* =============================================================================
   UTILITY CLASSES
   ============================================================================= */
/* Text */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-tertiary { color: var(--text-tertiary) !important; }
.text-accent { color: var(--accent) !important; }
.text-danger { color: var(--error) !important; }
.text-success { color: var(--success) !important; }

/* Background */
.bg-primary { background-color: var(--bg-primary) !important; }
.bg-secondary { background-color: var(--bg-secondary) !important; }
.bg-tertiary { background-color: var(--bg-tertiary) !important; }
.bg-gradient { background: var(--gradient-primary) !important; }

/* Flex */
.d-flex { display: flex; }
.d-none { display: none; }
.d-block { display: block; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Margin */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-8 { margin-top: var(--space-8) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }
.me-2 { margin-right: var(--space-2) !important; }
.me-3 { margin-right: var(--space-3) !important; }

/* Padding */
.p-0 { padding: 0 !important; }
.p-4 { padding: var(--space-4) !important; }
.p-6 { padding: var(--space-6) !important; }
.p-8 { padding: var(--space-8) !important; }
.py-4 { padding-top: var(--space-4) !important; padding-bottom: var(--space-4) !important; }
.py-8 { padding-top: var(--space-8) !important; padding-bottom: var(--space-8) !important; }
.py-16 { padding-top: var(--space-16) !important; padding-bottom: var(--space-16) !important; }
.px-4 { padding-left: var(--space-4) !important; padding-right: var(--space-4) !important; }
.px-6 { padding-left: var(--space-6) !important; padding-right: var(--space-6) !important; }

/* Border Radius */
.rounded { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-2xl { border-radius: var(--radius-2xl) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

/* Shadow */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-none { box-shadow: none !important; }

/* Text Align */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Font */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Width */
.w-full { width: 100%; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
/* Desktop: Show nav links and profile dropdown, hide hamburger */
@media (min-width: 1025px) {
    .navbar-nav-desktop {
        display: flex;
    }

    .mobile-toggle {
        display: none !important;
    }

    .navbar-actions .dropdown {
        display: block;
    }
}

/* Mobile/Tablet: Hide nav links and profile dropdown, show hamburger */
@media (max-width: 1024px) {
    .navbar-nav-desktop {
        display: none;
    }

    .mobile-toggle {
        display: flex !important;
    }

    .navbar-actions > .btn:not(.btn-icon) {
        display: none;
    }

    /* Hide profile dropdown on mobile - use hamburger menu instead */
    .navbar-actions .dropdown {
        display: none !important;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.5rem;
    }

    .container {
        padding: 0 var(--space-4);
    }

    .hero {
        min-height: auto;
        padding: var(--space-12) var(--space-4);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .features {
        padding: var(--space-16) 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        margin: 0 auto;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-6);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .toast-notification {
        left: var(--space-4);
        right: var(--space-4);
        bottom: var(--space-4);
    }
}

@media (max-width: 480px) {
    .feature-card {
        padding: var(--space-6);
    }

    .card-body {
        padding: var(--space-4);
    }

    .offcanvas {
        width: 100%;
    }

    /* Footer Mobile Enhancements */
    .footer {
        padding: var(--space-8) 0 var(--space-6);
    }

    .footer-content {
        gap: var(--space-6);
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-logo .brand-logo-text {
        font-size: 1.25rem;
    }

    .footer-tagline {
        font-size: var(--font-size-xs);
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-2) var(--space-4);
        justify-content: center;
        align-items: center;
    }

    .footer-links a {
        font-size: var(--font-size-sm);
        padding: var(--space-1) 0;
    }

    .footer-bottom {
        margin-top: var(--space-6);
        padding-top: var(--space-4);
    }

    .footer-bottom p {
        font-size: var(--font-size-xs);
    }

    .footer-social {
        gap: var(--space-3);
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link i {
        font-size: 18px;
    }
}

/* =============================================================================
   BOOTSTRAP COMPATIBILITY OVERRIDES
   For smooth transition, override bootstrap styles
   ============================================================================= */
.dropdown-menu-end {
    right: 0;
    left: auto;
}

.me-2 { margin-right: var(--space-2) !important; }
.me-3 { margin-right: var(--space-3) !important; }

hr.dropdown-divider {
    height: 1px;
    margin: var(--space-2) 0;
    background: var(--border-subtle);
    border: none;
    opacity: 1;
}

/* Form validation states */
.field-validation-error {
    color: var(--error);
    font-size: var(--font-size-xs);
    margin-top: var(--space-2);
    display: block;
}

.input-validation-error {
    border-color: var(--error) !important;
}

.input-validation-error:focus {
    box-shadow: 0 0 0 3px var(--error-muted) !important;
}

/* =============================================================================
   PREMIUM BADGE NAVIGATION STYLES
   ============================================================================= */

.premium-dashboard-link {
    position: relative;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.08) 0%, transparent 100%) !important;
}

.premium-dashboard-link:hover {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.15) 0%, transparent 100%) !important;
}

.premium-dashboard-link i {
    color: #D4A853 !important;
}

.premium-badge-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #D4A853, #F5D799);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    margin-left: auto;
}

.premium-mobile-link {
    position: relative;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.08) 0%, transparent 100%) !important;
    border-left: 3px solid #D4A853 !important;
}

.premium-mobile-link i {
    color: #D4A853 !important;
}

.premium-badge-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #D4A853, #F5D799);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    margin-left: auto;
}
