/* ==========================================================================
   Matrimony App - Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables - Theme Colors
   -------------------------------------------------------------------------- */
:root {
    /* Primary Colors - Rose/Pink theme for matrimonial */
    --primary-50: #fff1f2;
    --primary-100: #ffe4e6;
    --primary-200: #fecdd3;
    --primary-300: #fda4af;
    --primary-400: #fb7185;
    --primary-500: #f43f5e;
    --primary-600: #e11d48;
    --primary-700: #be123c;
    --primary-800: #9f1239;
    --primary-900: #881337;

    /* Secondary - Warm Gold */
    --secondary-50: #fffbeb;
    --secondary-100: #fef3c7;
    --secondary-200: #fde68a;
    --secondary-300: #fcd34d;
    --secondary-400: #fbbf24;
    --secondary-500: #f59e0b;
    --secondary-600: #d97706;
    --secondary-700: #b45309;
    --secondary-800: #92400e;
    --secondary-900: #78350f;

    /* Neutrals */
    --gray-50: #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-900: #18181b;

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
}

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    min-height: 100vh;
}

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

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-700);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.125rem;
}

.text-primary {
    color: var(--primary-600);
}

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

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

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

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

.text-center {
    text-align: center;
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.col-span-1 {
    grid-column: span 1 / span 1;
}

.col-span-2 {
    grid-column: span 2 / span 2;
}

.col-span-3 {
    grid-column: span 3 / span 3;
}

.col-span-4 {
    grid-column: span 4 / span 4;
}

@media (min-width: 640px) {
    .sm\:grid-cols-1 {
        grid-template-columns: repeat(1, 1fr);
    }

    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .sm\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .sm\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .sm\:col-span-1 {
        grid-column: span 1 / span 1;
    }

    .sm\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .sm\:col-span-3 {
        grid-column: span 3 / span 3;
    }

    .sm\:col-span-4 {
        grid-column: span 4 / span 4;
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-1 {
        grid-template-columns: repeat(1, 1fr);
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .md\:col-span-1 {
        grid-column: span 1 / span 1;
    }

    .md\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .md\:col-span-3 {
        grid-column: span 3 / span 3;
    }

    .md\:col-span-4 {
        grid-column: span 4 / span 4;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-1 {
        grid-template-columns: repeat(1, 1fr);
    }

    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .lg\:col-span-1 {
        grid-column: span 1 / span 1;
    }

    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .lg\:col-span-3 {
        grid-column: span 3 / span 3;
    }

    .lg\:col-span-4 {
        grid-column: span 4 / span 4;
    }
}

/* --------------------------------------------------------------------------
   Row & Column Grid Utilities
   -------------------------------------------------------------------------- */
.row {
    --gutter-x: 1.5rem;
    --gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--gutter-y));
    margin-right: calc(-0.5 * var(--gutter-x));
    margin-left: calc(-0.5 * var(--gutter-x));
}

.row > * {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--gutter-x) * 0.5);
    padding-left: calc(var(--gutter-x) * 0.5);
    margin-top: var(--gutter-y);
}

/* Gutters */
.g-0, .gx-0 { --gutter-x: 0px; }
.g-0, .gy-0 { --gutter-y: 0px; }
.g-1, .gx-1 { --gutter-x: 0.25rem; }
.g-1, .gy-1 { --gutter-y: 0.25rem; }
.g-2, .gx-2 { --gutter-x: 0.5rem; }
.g-2, .gy-2 { --gutter-y: 0.5rem; }
.g-3, .gx-3 { --gutter-x: 1rem; }
.g-3, .gy-3 { --gutter-y: 1rem; }
.g-4, .gx-4 { --gutter-x: 1.5rem; }
.g-4, .gy-4 { --gutter-y: 1.5rem; }
.g-5, .gx-5 { --gutter-x: 2rem; }
.g-5, .gy-5 { --gutter-y: 2rem; }

/* Grid Columns - Base (Mobile) */
.col { flex: 1 0 0%; }
.col-auto { flex: 0 0 auto; width: auto; }
.col-1 { flex: 0 0 auto; width: 8.333333%; }
.col-2 { flex: 0 0 auto; width: 16.666667%; }
.col-3 { flex: 0 0 auto; width: 25%; }
.col-4 { flex: 0 0 auto; width: 33.333333%; }
.col-5 { flex: 0 0 auto; width: 41.666667%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-7 { flex: 0 0 auto; width: 58.333333%; }
.col-8 { flex: 0 0 auto; width: 66.666667%; }
.col-9 { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.333333%; }
.col-11 { flex: 0 0 auto; width: 91.666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

/* Small Devices (>= 640px) */
@media (min-width: 640px) {
    .col-sm-1 { flex: 0 0 auto; width: 8.333333%; }
    .col-sm-2 { flex: 0 0 auto; width: 16.666667%; }
    .col-sm-3 { flex: 0 0 auto; width: 25%; }
    .col-sm-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-sm-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-sm-6 { flex: 0 0 auto; width: 50%; }
    .col-sm-7 { flex: 0 0 auto; width: 58.333333%; }
    .col-sm-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-sm-9 { flex: 0 0 auto; width: 75%; }
    .col-sm-10 { flex: 0 0 auto; width: 83.333333%; }
    .col-sm-11 { flex: 0 0 auto; width: 91.666667%; }
    .col-sm-12 { flex: 0 0 auto; width: 100%; }
}

/* Medium Devices (Tablets, Small Laptops >= 768px) */
@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 auto; width: 8.333333%; }
    .col-md-2 { flex: 0 0 auto; width: 16.666667%; }
    .col-md-3 { flex: 0 0 auto; width: 25%; }
    .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-md-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .col-md-7 { flex: 0 0 auto; width: 58.333333%; }
    .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-md-9 { flex: 0 0 auto; width: 75%; }
    .col-md-10 { flex: 0 0 auto; width: 83.333333%; }
    .col-md-11 { flex: 0 0 auto; width: 91.666667%; }
    .col-md-12 { flex: 0 0 auto; width: 100%; }
}

/* Large Devices (Desktops >= 1024px) */
@media (min-width: 1024px) {
    .col-lg-1 { flex: 0 0 auto; width: 8.333333%; }
    .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
    .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-lg-9 { flex: 0 0 auto; width: 75%; }
    .col-lg-10 { flex: 0 0 auto; width: 83.333333%; }
    .col-lg-11 { flex: 0 0 auto; width: 91.666667%; }
    .col-lg-12 { flex: 0 0 auto; width: 100%; }
}

/* Extra Large Devices (>= 1280px) */
@media (min-width: 1280px) {
    .col-xl-1 { flex: 0 0 auto; width: 8.333333%; }
    .col-xl-2 { flex: 0 0 auto; width: 16.666667%; }
    .col-xl-3 { flex: 0 0 auto; width: 25%; }
    .col-xl-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-xl-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-xl-6 { flex: 0 0 auto; width: 50%; }
    .col-xl-7 { flex: 0 0 auto; width: 58.333333%; }
    .col-xl-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-xl-9 { flex: 0 0 auto; width: 75%; }
    .col-xl-10 { flex: 0 0 auto; width: 83.333333%; }
    .col-xl-11 { flex: 0 0 auto; width: 91.666667%; }
    .col-xl-12 { flex: 0 0 auto; width: 100%; }
}

/* Flex & Alignment Helpers */
.justify-content-start, .justify-start { justify-content: flex-start !important; }
.justify-content-center, .justify-center { justify-content: center !important; }
.justify-content-between, .justify-between { justify-content: space-between !important; }
.justify-content-end, .justify-end { justify-content: flex-end !important; }
.justify-content-around { justify-content: space-around !important; }

.align-items-start, .items-start { align-items: flex-start !important; }
.align-items-center, .items-center { align-items: center !important; }
.align-items-end, .items-end { align-items: flex-end !important; }
.align-items-stretch, .items-stretch { align-items: stretch !important; }

.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-none { display: none !important; }
.h-100 { height: 100% !important; }
.w-100 { width: 100% !important; }
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-fill { flex: 1 1 auto !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }

/* Spacing */
.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.my-4 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.my-6 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.my-8 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.min-h-screen {
    min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Navigation & Mobile Drawer
   -------------------------------------------------------------------------- */
.navbar {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    box-shadow: 0 4px 20px -2px rgba(190, 18, 60, 0.18);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.navbar-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.navbar-brand:hover {
    color: white;
    transform: scale(1.02);
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fef08a;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-fast);
}

.navbar-brand:hover .brand-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(-6deg) scale(1.05);
}

.brand-text {
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.desktop-nav .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.desktop-nav .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.25);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-dropdown-item {
    position: relative;
}

.nav-profile-link {
    padding: 0.35rem 0.85rem 0.35rem 0.45rem !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-profile-link:hover {
    background: rgba(255, 255, 255, 0.22) !important;
}

.user-avatar-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef08a, #f59e0b);
    color: #881337;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-logout-btn {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    cursor: pointer;
    border-radius: var(--radius-lg);
    padding: 0.5rem 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-fast);
}

.nav-logout-btn:hover {
    background: rgba(239, 68, 68, 0.35);
    color: white;
}

.inline-form {
    display: inline;
}

/* Mobile Quick Actions in Header */
.mobile-nav-actions {
    display: none;
    align-items: center;
    gap: 0.625rem;
}

.mobile-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.mobile-action-icon:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.25);
}

.mobile-action-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all var(--transition-fast);
}

.mobile-action-login-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.3);
}

/* Animated Hamburger Menu Button */
.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    transition: all var(--transition-fast);
    touch-action: manipulation;
}

.mobile-menu-toggle:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.28);
}

.toggle-bar {
    width: 22px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, width 0.2s ease;
}

/* Hamburger morph state */
body.drawer-open .toggle-bar.bar-1 {
    transform: translateY(7px) rotate(45deg);
}

body.drawer-open .toggle-bar.bar-2 {
    opacity: 0;
    transform: translateX(-10px);
}

body.drawer-open .toggle-bar.bar-3 {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Mobile Drawer & Backdrop
   -------------------------------------------------------------------------- */
.mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

body.drawer-open .mobile-drawer-backdrop {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    background: #ffffff;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

body.drawer-open .mobile-drawer {
    transform: translateX(0);
}

body.drawer-open {
    overflow: hidden !important;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.drawer-close-btn:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.3);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.25rem 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.drawer-user-card {
    background: linear-gradient(135deg, var(--primary-50) 0%, #fff1f2 100%);
    border: 1px solid var(--primary-100);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.08);
}

.drawer-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
    flex-shrink: 0;
}

.drawer-user-info {
    flex: 1;
    min-width: 0;
}

.drawer-user-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-user-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.user-badge {
    font-size: 0.725rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.user-badge.verified {
    background: #dcfce7;
    color: #15803d;
}

.user-badge.member {
    background: #fee2e2;
    color: #be123c;
}

.drawer-user-edit-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: white;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.drawer-user-edit-btn:active {
    transform: scale(0.92);
    color: var(--primary-600);
}

.drawer-section-title {
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    margin: 0.85rem 0.5rem 0.25rem;
}

.drawer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem 0.75rem;
    border-radius: 12px;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.drawer-link:active,
.drawer-link:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.drawer-link.active {
    background: var(--primary-50);
    color: var(--primary-600);
    font-weight: 600;
}

.link-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.link-icon.primary {
    background: #fee2e2;
    color: #e11d48;
}

.link-icon.rose {
    background: #ffe4e6;
    color: #f43f5e;
}

.link-icon.purple {
    background: #f3e8ff;
    color: #9333ea;
}

.link-icon.blue {
    background: #e0f2fe;
    color: #0284c7;
}

.link-icon.amber {
    background: #fef3c7;
    color: #d97706;
}

.link-icon.gold {
    background: #fef9c3;
    color: #ca8a04;
}

.link-icon.teal {
    background: #ccfbf1;
    color: #0d9488;
}

.link-icon.emerald {
    background: #dcfce7;
    color: #16a34a;
}

.link-icon.warm-gold {
    background: #fef3c7;
    color: #b45309;
}

.link-icon.slate {
    background: #f1f5f9;
    color: #475569;
}

.link-icon.red {
    background: #fee2e2;
    color: #dc2626;
}

.drawer-badge-pill {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
}

.drawer-logout-form {
    margin: 0;
}

.drawer-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem 0.75rem;
    border-radius: 12px;
    background: none;
    border: none;
    color: var(--danger);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
}

.drawer-logout-btn:active {
    background: #fee2e2;
}

.drawer-guest-card {
    background: linear-gradient(135deg, #fff1f2 0%, #fef3c7 100%);
    border: 1px solid var(--primary-200);
    border-radius: 18px;
    padding: 1.25rem 1rem;
    text-align: center;
    margin-bottom: 0.75rem;
}

.guest-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 0.75rem;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25);
}

.drawer-guest-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
    color: var(--gray-900);
}

.drawer-guest-card p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.guest-card-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drawer-footer {
    padding: 0.875rem 1rem;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.drawer-trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.775rem;
    color: var(--gray-500);
    font-weight: 500;
}

.drawer-trust-badge i {
    color: var(--success);
}


/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    border-color: var(--primary-600);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-400) 0%, var(--secondary-500) 100%);
    color: var(--gray-900);
    border-color: var(--secondary-500);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-500) 0%, var(--secondary-600) 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: white;
    border-color: #e11d48;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-600);
    border-color: var(--primary-600);
}

.btn-outline:hover {
    background: var(--primary-600);
    color: white;
}

.btn-outline-danger {
    background: transparent;
    color: #e11d48;
    border: 2px solid #fecdd3;
}

.btn-outline-danger:hover {
    background: #fff1f2;
    color: #be123c;
    border-color: #fda4af;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(225, 29, 72, 0.1);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-outline-secondary:hover {
    background: var(--gray-100);
    color: var(--gray-900);
    border-color: var(--gray-400);
    transform: translateY(-1px);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-600);
}

.btn-light {
    background: white;
    color: var(--primary-600);
    border-color: white;
}

.btn-light:hover {
    background: var(--gray-100);
    color: var(--primary-700);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Profile Action Button Layout
   -------------------------------------------------------------------------- */
.profile-action-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
}

.profile-action-group .action-btn-flex {
    flex: 1;
    display: flex;
    margin: 0;
}

.profile-action-group .btn {
    height: 44px;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.profile-action-group .action-btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-img-top {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: top center;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* Profile Card */
.profile-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.profile-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.profile-card-image-wrap {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--gray-100);
}

.profile-card .card-img-top,
.profile-card img.card-img-top {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform var(--transition);
}

.profile-card:hover .card-img-top,
.profile-card:hover img.card-img-top {
    transform: scale(1.04);
}

.profile-card .verified-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--success);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.profile-card .premium-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: linear-gradient(135deg, var(--secondary-400) 0%, var(--secondary-600) 100%);
    color: var(--gray-900);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-info .name {
    font-weight: 600;
    color: var(--gray-900);
}

.profile-info .details {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.profile-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.profile-actions .interest-form {
    flex: 1;
    margin: 0;
}

.profile-actions .shortlist-btn,
.profile-actions .pass-btn,
.profile-actions a.btn-outline {
    flex: none !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--gray-800);
    background-color: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.375rem;
}

.form-text {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: 0.375rem;
}

/* Select */
.form-select {
    display: block;
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 1rem;
    color: var(--gray-800);
    background-color: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5em 1.5em;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    appearance: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    appearance: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input:checked {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.75rem;
}

.form-check-input[type="radio"]:checked {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}

.form-check-label {
    color: var(--gray-700);
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Auth Pages
   -------------------------------------------------------------------------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 50%, var(--secondary-50) 100%);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-200) 0%, var(--primary-300) 100%);
    border-radius: 50%;
    top: -200px;
    right: -100px;
    opacity: 0.5;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--secondary-200) 0%, var(--secondary-300) 100%);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
    opacity: 0.5;
}

.auth-card {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    position: relative;
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: 0.5rem;
}

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--gray-500);
}

.remember-forgot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 1.25rem;
}

.form-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
}

.form-check-input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-600, #e11d48);
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--gray-700, #374151);
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
}

.forgot-password-link {
    font-size: 0.875rem;
    color: var(--primary-600, #e11d48);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.forgot-password-link:hover {
    text-decoration: underline;
    color: var(--primary-700, #be123c);
}

@media (max-width: 576px) {
    .auth-page {
        padding: 1rem 0.5rem !important;
    }

    .auth-card {
        padding: 1.25rem 1rem !important;
        border-radius: 12px !important;
        max-width: 100% !important;
    }

    .auth-header {
        margin-bottom: 1rem !important;
    }

    .auth-header .logo {
        font-size: 1.35rem !important;
        margin-bottom: 0.25rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        white-space: nowrap !important;
    }

    .auth-header h1 {
        font-size: 1.15rem !important;
        margin-top: 0.25rem !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.3 !important;
    }

    .auth-header p {
        font-size: 0.825rem !important;
        margin-bottom: 0 !important;
    }

    .form-group {
        margin-bottom: 0.875rem !important;
    }

    .form-label {
        font-size: 0.825rem !important;
        margin-bottom: 0.35rem !important;
    }

    .form-control {
        font-size: 0.85rem !important;
        height: 40px !important;
        padding: 0.45rem 0.75rem !important;
    }

    .remember-forgot-row {
        margin-bottom: 1rem !important;
        gap: 6px !important;
    }

    .form-check-label,
    .forgot-password-link {
        font-size: 0.8rem !important;
    }

    .btn-lg {
        font-size: 0.9rem !important;
        padding: 0.6rem 1rem !important;
        height: 42px !important;
    }

    .auth-divider {
        margin: 1rem 0 !important;
        font-size: 0.8rem !important;
    }

    .auth-footer {
        margin-top: 1rem !important;
        padding-top: 1rem !important;
        font-size: 0.85rem !important;
    }
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--gray-400);
    font-size: 0.875rem;
}

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

.auth-divider span {
    padding: 0 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
    color: var(--gray-600);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    top: -300px;
    right: -200px;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .mobile-action-login-btn {
        display: none !important;
    }

    .hero {
        padding: 3rem 0 1.5rem 0 !important;
        margin-bottom: 0 !important;
    }

    .hero h1 {
        font-size: 1.85rem !important;
        margin-bottom: 1rem !important;
    }

    .hero p {
        font-size: 1rem !important;
        margin-bottom: 1.25rem !important;
    }

    .hero-buttons {
        gap: 0.75rem !important;
        margin-bottom: 0 !important;
    }

    .stats {
        padding: 1.75rem 0 !important;
        margin-top: 0 !important;
        border-top: none !important;
        background: #ffffff !important;
    }

    .stat-number {
        font-size: 1.75rem !important;
        margin-bottom: 0.25rem !important;
    }

    .stat-label {
        font-size: 0.85rem !important;
    }

    .commitment-card {
        padding: 1.75rem 1.25rem !important;
    }
}

/* --------------------------------------------------------------------------
   Features Section
   -------------------------------------------------------------------------- */
.features {
    padding: 5rem 0;
    background: white;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray-600);
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-xl);
    transition: all var(--transition);
}

.feature-card:hover {
    background: var(--gray-50);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-600);
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.commitment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.25rem 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform var(--transition), box-shadow var(--transition);
}

.commitment-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.commitment-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
    line-height: 1.35;
}

.commitment-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-top: auto;
}

/* --------------------------------------------------------------------------
   Success Stories
   -------------------------------------------------------------------------- */
.success-stories {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
}

.story-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .story-card {
        flex-direction: row;
    }
}

.story-image {
    flex: 1;
    min-height: 300px;
    background-size: cover;
    background-position: center;
}

.story-content {
    flex: 1;
    padding: 2rem;
}

.story-content h3 {
    color: var(--primary-600);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.story-content p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.story-couple {
    font-weight: 600;
    color: var(--gray-800);
}

/* --------------------------------------------------------------------------
   Statistics
   -------------------------------------------------------------------------- */
.stats {
    padding: 4rem 0;
    background: #ffffff;
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-200);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-brand:hover {
    color: var(--primary-300);
}

.footer-description {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-400);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-600);
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Dashboard
   -------------------------------------------------------------------------- */
.dashboard {
    padding: 2rem 0;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 1.75rem;
}

.dashboard-header p {
    color: var(--gray-500);
}

.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card-icon.primary {
    background: var(--primary-100);
    color: var(--primary-600);
}

.stat-card-icon.secondary {
    background: var(--secondary-100);
    color: var(--secondary-600);
}

.stat-card-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-card-icon.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.stat-card-content h3 {
    font-size: 1.75rem;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.25rem;
}

.stat-card-content p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.alert-warning {
    background: #fffbe6;
    color: #92400e;
    border: 1px solid #fef3c7;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* --------------------------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------------------------- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    width: calc(100vw - 32px);
    pointer-events: none;
}

@media (max-width: 576px) {
    #toast-container {
        top: 16px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

.toast-notification {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.45;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.3s ease;
}

.toast-notification.toast-danger {
    background: #ffffff;
    border-color: #fecdd3;
    border-left: 5px solid #e11d48;
    color: #9f1239;
}

.toast-notification.toast-danger .toast-icon {
    color: #e11d48;
}

.toast-notification.toast-success {
    background: #ffffff;
    border-color: #bbf7d0;
    border-left: 5px solid #16a34a;
    color: #14532d;
}

.toast-notification.toast-success .toast-icon {
    color: #16a34a;
}

.toast-notification.toast-warning {
    background: #ffffff;
    border-color: #fef08a;
    border-left: 5px solid #d97706;
    color: #78350f;
}

.toast-notification.toast-warning .toast-icon {
    color: #d97706;
}

.toast-notification.toast-info {
    background: #ffffff;
    border-color: #bfdbfe;
    border-left: 5px solid #2563eb;
    color: #1e3a8a;
}

.toast-notification.toast-info .toast-icon {
    color: #2563eb;
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-content {
    flex: 1;
    word-break: break-word;
}

.toast-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    margin-left: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    line-height: 1;
    transition: color 0.15s ease, background-color 0.15s ease;
    flex-shrink: 0;
}

.toast-close-btn:hover {
    color: #475569;
    background-color: rgba(0, 0, 0, 0.05);
}

.toast-notification.toast-hiding {
    animation: toastFadeOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-12px) scale(0.95);
    }
}


/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-primary {
    background: var(--primary-100);
    color: var(--primary-700);
}

.badge-secondary {
    background: var(--secondary-100);
    color: var(--secondary-700);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

/* --------------------------------------------------------------------------
   Quick Actions
   -------------------------------------------------------------------------- */
.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--gray-700);
    transition: all var(--transition);
}

.quick-action:hover {
    color: var(--primary-600);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.quick-action-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    background: var(--primary-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: var(--primary-600);
    font-size: 1.25rem;
}

.quick-action span {
    font-weight: 500;
    font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease infinite;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.hidden {
    display: none !important;
}

.block {
    display: block;
}

.inline {
    display: inline;
}

.inline-block {
    display: inline-block;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.rounded {
    border-radius: var(--radius);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.rounded-full {
    border-radius: var(--radius-full);
}

.shadow {
    box-shadow: var(--shadow);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.overflow-hidden {
    overflow: hidden;
}

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

/* Responsive Display */
@media (max-width: 768px) {
    .md\:hidden {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .md\:block {
        display: block;
    }

    .md\:flex {
        display: flex;
    }
}

/* --------------------------------------------------------------------------
   Mobile App View Styles (Only for mobile devices)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

    /* App-like body styling */
    body {
        padding-bottom: 74px;
        /* Space for bottom navigation */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Top Mobile Navbar */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 0.25rem 0;
        box-shadow: 0 4px 16px rgba(190, 18, 60, 0.15);
    }

    .navbar .container {
        padding: 0 0.875rem;
    }

    .navbar-inner {
        min-height: 56px;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .brand-icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .desktop-nav {
        display: none !important;
    }

    .mobile-nav-actions {
        display: flex !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Main content padding for mobile */
    main {
        margin-top: 56px;
        /* Space for fixed navbar */
        padding-bottom: 1rem;
    }

    /* App-like cards */
    .card {
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        margin-bottom: 1rem;
        border: none;
        overflow: hidden;
    }

    .card-body {
        padding: 1rem;
    }

    /* Profile cards - app style */
    .profile-card {
        border-radius: 20px;
        overflow: hidden;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

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

    .profile-card img,
    .profile-card .card-img-top {
        width: 100%;
        height: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        object-position: top center;
    }

    /* Stats cards - mobile friendly & balanced */
    .stat-card {
        border-radius: 14px;
        padding: 0.75rem 0.875rem !important;
        gap: 0.625rem !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        display: flex;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .stat-card-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.15rem !important;
        border-radius: 10px !important;
        flex-shrink: 0 !important;
    }

    .stat-card-content {
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .stat-card-content h3 {
        font-size: 1.35rem !important;
        margin-bottom: 0 !important;
        line-height: 1.2 !important;
    }

    .stat-card-content p {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }


    /* Buttons - app style */
    .btn {
        border-radius: 12px;
        padding: 0.75rem 1.5rem;
        font-weight: 600;
        font-size: 0.95rem;
        transition: all 0.2s ease;
    }

    .btn:active {
        transform: scale(0.97);
    }

    /* Container - full width on mobile */
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    /* Grid adjustments */
    .grid {
        gap: 1rem;
    }

    /* Typography adjustments */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Welcome banner - mobile */
    .welcome-banner {
        padding: 1.5rem 0;
        margin-top: 56px;
    }

    /* Bottom Navigation Bar - Mobile App Style */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(228, 228, 231, 0.8);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.07);
        z-index: 1000;
        padding: 0.35rem 0.25rem;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.35rem 0.4rem;
        color: var(--gray-500);
        text-decoration: none;
        transition: all 0.2s ease;
        border-radius: 12px;
        min-width: 54px;
        position: relative;
        gap: 2px;
    }

    .mobile-bottom-nav .nav-item:active {
        transform: scale(0.92);
    }

    .mobile-bottom-nav .nav-icon {
        font-size: 1.2rem;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .mobile-bottom-nav .nav-text {
        font-size: 0.68rem;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .mobile-bottom-nav .nav-item.active {
        color: var(--primary-600);
    }

    .mobile-bottom-nav .nav-item.active .nav-icon {
        transform: translateY(-1px);
    }

    .mobile-bottom-nav .nav-item.active .nav-text {
        font-weight: 700;
        color: var(--primary-600);
    }

    .mobile-bottom-nav .nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        width: 16px;
        height: 3px;
        background: var(--primary-600);
        border-radius: 9999px;
    }

    /* Footer - Mobile optimization */
    footer,
    .footer {
        display: block !important;
        padding-top: 3rem;
        padding-bottom: calc(85px + env(safe-area-inset-bottom));
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
        color: var(--gray-300);
        position: relative;
        z-index: 10;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand-col {
        max-width: 100%;
        margin-bottom: 0.5rem;
    }

    .footer-brand {
        font-size: 1.5rem;
        justify-content: center;
        display: inline-flex;
        margin-bottom: 0.75rem;
    }

    .footer-description {
        margin: 0 auto 1.25rem;
        max-width: 320px;
        font-size: 0.9rem;
    }

    .footer-social {
        justify-content: center;
        gap: 0.75rem;
    }

    .footer-links-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
        text-align: left;
    }

    .footer-heading {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-links a {
        font-size: 0.85rem;
        color: var(--gray-400);
    }

    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
        font-size: 0.8rem;
    }

    /* Dashboard sections - mobile spacing */
    section {
        margin-bottom: 2rem;
    }

    /* Form inputs - app style */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="date"],
    select,
    textarea {
        border-radius: 12px;
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border: 1px solid var(--gray-300);
    }

    /* Alerts - mobile style */
    .alert {
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    /* Profile edit page - mobile */
    .dashboard-header {
        margin-bottom: 1.5rem;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    /* Tab navigation - mobile */
    .tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .tab-nav::-webkit-scrollbar {
        display: none;
    }

    /* Quick actions - mobile */
    .quick-actions {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
        padding: 1rem 0;
    }

    .quick-action {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0.75rem 0.5rem;
        border-radius: 12px;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        text-decoration: none;
        color: var(--gray-700);
        transition: all 0.2s ease;
    }

    .quick-action:active {
        transform: scale(0.95);
        background: var(--gray-50);
    }

    .quick-action i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        color: var(--primary-600);
    }

    .quick-action span {
        font-size: 0.75rem;
        font-weight: 500;
        text-align: center;
    }

    /* Safe area for notched devices */
    @supports (padding: max(0px)) {
        .mobile-bottom-nav {
            padding-bottom: max(0.35rem, env(safe-area-inset-bottom));
        }

        body {
            padding-bottom: max(74px, calc(74px + env(safe-area-inset-bottom)));
        }

        .navbar {
            padding-top: max(0.25rem, env(safe-area-inset-top));
        }

        main {
            margin-top: max(56px, calc(56px + env(safe-area-inset-top)));
        }
    }

    /* Touch-friendly interactive elements */
    a,
    button,
    .btn,
    .card,
    .profile-card {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }

    /* Smooth scrolling on mobile */
    * {
        -webkit-overflow-scrolling: touch;
    }

    /* Better text rendering on mobile */
    body {
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
    }

    /* Prevent text size adjustment on orientation change */
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }

    /* Loading states - app style */
    .loading {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 2rem;
    }

    /* Empty states - mobile */
    .empty-state {
        text-align: center;
        padding: 3rem 1rem;
    }

    .empty-state i {
        font-size: 4rem;
        color: var(--gray-300);
        margin-bottom: 1rem;
    }

    /* Section headers - mobile */
    section h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    /* Profile images - mobile optimization */
    img {
        max-width: 100%;
        height: auto;
        -webkit-user-select: none;
        user-select: none;
    }
}

/* Hide mobile elements on desktop */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }

    .mobile-drawer {
        display: none !important;
    }

    .mobile-drawer-backdrop {
        display: none !important;
    }

    .mobile-nav-actions {
        display: none !important;
    }

    .desktop-nav {
        display: flex !important;
    }
}

/* Horizontal Slide Tab Navigation for Matches & Subpages */
.matches-tab-nav,
.slide-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.matches-tab-nav .btn,
.slide-tab-nav .btn {
    white-space: nowrap;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

@media (max-width: 768px) {

    .matches-tab-nav,
    .slide-tab-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding: 8px 10px !important;
        gap: 6px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        background: #ffffff !important;
        position: sticky !important;
        top: 56px !important;
        /* height of mobile navbar */
        z-index: 950 !important;
        border-bottom: 1px solid var(--gray-200, #e5e7eb) !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
        border-radius: var(--radius-lg, 12px) !important;
        margin-bottom: 1.25rem !important;
    }

    .matches-tab-nav::-webkit-scrollbar,
    .slide-tab-nav::-webkit-scrollbar {
        display: none !important;
    }

    .matches-tab-nav .btn,
    .slide-tab-nav .btn {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        font-size: 0.8rem !important;
        padding: 8px 14px !important;
        border-radius: 20px !important;
        box-shadow: none !important;
    }

    /* Mobile Section Headers with View All buttons */
    .flex.items-center.justify-between,
    .flex.justify-between {
        gap: 0.5rem;
    }

    .flex.items-center.justify-between>div:first-child,
    .flex.justify-between>div:first-child {
        min-width: 0;
        flex: 1;
    }

    .flex.items-center.justify-between>a.btn,
    .flex.justify-between>a.btn {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 6px 14px !important;
        font-size: 0.8rem !important;
        border-radius: 20px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        height: 34px !important;
        box-sizing: border-box !important;
    }
}

/* Utilities */
.whitespace-nowrap {
    white-space: nowrap !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

.min-w-0 {
    min-width: 0 !important;
}

/* Pricing & Subscription Plan Cards */
.plan-card {
    position: relative !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    transition: all 0.3s ease !important;
}

.plan-card .popular-badge {
    position: absolute !important;
    top: -14px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: var(--primary-500, #e11d48) !important;
    color: #ffffff !important;
    padding: 0.35rem 1.15rem !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    z-index: 20 !important;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35) !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

/* Mobile Horizontal Slider for Subscription Plans */
@media (max-width: 768px) {
    .plans-grid-slider {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
        gap: 1.25rem !important;
        padding-top: 1.75rem !important;
        padding-bottom: 1.25rem !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        margin-left: -0.75rem !important;
        margin-right: -0.75rem !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .plans-grid-slider::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .plans-grid-slider>.plan-card {
        flex: 0 0 86% !important;
        max-width: 320px !important;
        min-width: 270px !important;
        scroll-snap-align: center !important;
        scroll-snap-stop: always !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        transform: none !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    }
}

/* Chat Header Styling */
.chat-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200, #e5e7eb);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.chat-header-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700, #374151);
    background: var(--gray-100, #f3f4f6);
    border: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    text-decoration: none;
    font-size: 0.95rem;
}

.chat-header-btn:hover {
    background: var(--primary-50, #fff1f2);
    color: var(--primary-600, #e11d48);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.chat-header-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid white;
}

.chat-header-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chat-header-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900, #111827);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.chat-header-name:hover {
    color: var(--primary-600, #e11d48);
}

.chat-header-meta {
    font-size: 0.8rem;
    color: var(--gray-500, #6b7280);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640px) {
    .chat-header {
        padding: 0.625rem 0.875rem;
        gap: 0.625rem;
    }

    .chat-header-btn {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .chat-header-avatar {
        width: 40px;
        height: 40px;
    }

    .chat-header-name {
        font-size: 0.95rem;
    }

    .chat-header-meta {
        font-size: 0.75rem;
    }
}

/* --------------------------------------------------------------------------
   Soulmate Promo Popup Modal
   -------------------------------------------------------------------------- */
.soulmate-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

.soulmate-modal-container {
    background: #ffffff;
    border-radius: 0;
    max-width: 900px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    padding: 2.25rem 2rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(225, 29, 72, 0.08);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.soulmate-modal-overlay.active .soulmate-modal-container {
    transform: scale(1) translateY(0);
}

.soulmate-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: #f3f4f6;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #4b5563;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 10;
}

.soulmate-modal-close:hover {
    background: #e11d48;
    color: #ffffff;
    transform: rotate(90deg);
}

.soulmate-badge-urgent {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 100%);
    color: #be123c;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 0.85rem;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.15);
    animation: heartPulse 1.8s infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.soulmate-modal-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.soulmate-modal-title .highlight-text {
    background: linear-gradient(135deg, #e11d48, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.soulmate-modal-subtitle {
    font-size: 0.98rem;
    color: #4b5563;
    max-width: 650px;
    margin: 0 auto 1.5rem;
    line-height: 1.55;
}

.soulmate-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.soulmate-plan-box {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 18px;
    padding: 1.25rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.soulmate-plan-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.soulmate-plan-box.featured {
    border-color: #e11d48;
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 40%);
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.14);
}

.soulmate-plan-box.free-launch {
    border-color: #10b981;
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 40%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.14);
}

.soulmate-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;
    color: white;
}

.soulmate-plan-badge.featured-badge {
    background: linear-gradient(135deg, #e11d48, #be123c);
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.35);
}

.soulmate-plan-badge.free-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

.soulmate-plan-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.soulmate-plan-price {
    font-size: 1.85rem;
    font-weight: 800;
    color: #e11d48;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.soulmate-plan-box.free-launch .soulmate-plan-price {
    color: #059669;
}

.soulmate-plan-duration {
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 0.85rem;
}

.soulmate-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    text-align: left;
    font-size: 0.82rem;
    color: #374151;
    flex-grow: 1;
}

.soulmate-plan-features li {
    padding: 0.25rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

.soulmate-plan-features li:last-child {
    border-bottom: none;
}

.soulmate-plan-features i {
    color: #10b981;
    margin-top: 2px;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.soulmate-trust-strip {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    background: #f9fafb;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.soulmate-trust-strip .trust-item {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.soulmate-trust-strip .trust-item i {
    color: #e11d48;
}

.btn-dismiss-text {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0.35rem 0.75rem;
    transition: color 0.2s;
}

.btn-dismiss-text:hover {
    color: #111827;
}

/* --------------------------------------------------------------------------
   Home CTA Journey Section
   -------------------------------------------------------------------------- */
.home-cta-section {
    padding: 3.75rem 1rem;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    color: white;
}

.home-cta-title {
    color: white;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.home-cta-subtitle {
    font-size: 1.15rem;
    opacity: 0.92;
    margin-bottom: 1.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.95);
}

.home-cta-btn {
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    padding: 0.75rem 2rem;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .home-cta-section {
        padding: 1.75rem 1rem;
    }

    .home-cta-title {
        font-size: 1.35rem;
        margin-bottom: 0.45rem;
        line-height: 1.3;
    }

    .home-cta-subtitle {
        font-size: 0.88rem;
        margin-bottom: 1rem;
        line-height: 1.45;
        max-width: 320px;
    }

    .home-cta-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.88rem;
    }

    .soulmate-modal-container {
        padding: 1.75rem 1rem 1.25rem;
        border-radius: 0;
    }

    .soulmate-modal-title {
        font-size: 1.35rem;
    }

    .soulmate-modal-subtitle {
        font-size: 0.88rem;
        margin-bottom: 1rem;
    }

    .soulmate-plans-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .soulmate-plan-box {
        padding: 1rem;
    }

    .soulmate-trust-strip {
        gap: 0.65rem;
        flex-direction: column;
        align-items: flex-start;
    }
}