/* ==========================================================================
   KANYADAN WEDDINGS - DESIGN SYSTEM & THEME
   Style Direction: Ultra-Luxury Royal Indian Matrimonial Heritage + Modern Animations
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Outfit:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,600;1,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Rozha+One&display=swap');

:root {
    /* ==========================================================================
       CENTRALIZED THEME COLOR SYSTEM (LIGHT MODE DEFAULT)
       ========================================================================== */
    --bg-primary: #FAF8F5;          /* Silk Cream Body Background */
    --bg-secondary: #F3EFEA;        /* Soft Linen Secondary Background */
    --bg-card: #FFFFFF;             /* Pure White Surface / Card */
    --text-primary: #1E1E24;        /* Royal Charcoal Primary Text */
    --text-secondary: #475569;      /* Slate Grey Secondary Text */
    --text-muted: #64748B;          /* Muted Slate Text */
    --border-color: #E8E2D9;        /* Warm Heritage Border */
    --input-bg: #FFFFFF;            /* White Form Input Background */
    --input-text: #1E1E24;          /* Dark Form Input Text */

    /* Legacy Token Aliases */
    --background: var(--bg-primary);
    --surface: var(--bg-card);
    --surface-elevated: #FFFFFF;
    --surface-muted: var(--bg-secondary);
    --text: var(--text-primary);
    --border: var(--border-color);
    --border-subtle: #F1ECE4;

    /* Brand Heritage Palette */
    --primary: #881337;          /* Royal Heritage Crimson / Vermilion */
    --primary-hover: #701a31;
    --primary-light: #fff1f2;
    --primary-surface: #fdf2f4;
    --primary-border: #fecdd3;

    --secondary: #b45309;        /* Sandalwood Gold / Warm Amber */
    --secondary-hover: #92400e;
    --secondary-light: #fef3c7;
    --secondary-border: #fde68a;

    --accent: #e11d48;           /* Auspicious Rose */
    --accent-light: #ffe4e6;

    /* Luxury Gold & Aurora Tokens */
    --gold-metallic: #d4af37;
    --gold-bright: #f59e0b;
    --gold-deep: #b45309;
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 45%, #92400e 100%);
    --gradient-gold-subtle: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    --gradient-royal: linear-gradient(135deg, #881337 0%, #701a31 40%, #4c0519 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 100%);
    --gradient-aurora: linear-gradient(135deg, rgba(136, 19, 55, 0.05) 0%, rgba(217, 119, 6, 0.08) 50%, rgba(254, 243, 199, 0.25) 100%);

    /* Semantic Status */
    --success: #059669;
    --success-light: #ecfdf5;
    --warning: #d97706;
    --warning-light: #fffbeb;
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --info: #0284c7;
    --info-light: #f0f9ff;

    /* Typography */
    --font-heading: 'Playfair Display', 'Outfit', Georgia, serif;
    --font-subheading: 'Outfit', sans-serif;
    --font-royal: 'Cinzel', serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Elevation & Shadows */
    --shadow-sm: 0 2px 6px rgba(136, 19, 55, 0.04);
    --shadow-md: 0 6px 18px rgba(136, 19, 55, 0.08);
    --shadow-lg: 0 14px 32px rgba(136, 19, 55, 0.12);
    --shadow-warm: 0 10px 25px -5px rgba(180, 83, 9, 0.12);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Universal Safe Area & Viewport Variables */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);

    /* Bootstrap 5 Native Light Palette Alignment */
    --bs-body-bg: var(--bg-primary);
    --bs-body-color: var(--text-primary);
    --bs-primary: #881337;
    --bs-primary-rgb: 136, 19, 55;
    --bs-primary-text-emphasis: #701a31;
    --bs-primary-bg-subtle: #fff1f2;
    --bs-primary-border-subtle: #fecdd3;
    --bs-secondary: #b45309;
    --bs-secondary-rgb: 180, 83, 9;
}

/* ==========================================================================
   ROYAL DARK MODE DESIGN SYSTEM (Obsidian Velvet & Molten Gold)
   ========================================================================== */
[data-bs-theme="dark"],
[data-theme="dark"] {
    /* Centralized Theme Tokens (Dark Mode) */
    --bg-primary: #0D0B14;          /* Deep Obsidian Velvet Background */
    --bg-secondary: #1A1627;        /* Royal Amethyst Secondary Background */
    --bg-card: #151320;             /* Midnight Sanctuary Card Surface */
    --text-primary: #F8FAFC;        /* Starlight Bright Primary Text */
    --text-secondary: #CBD5E1;      /* Clear Silver Slate Secondary Text */
    --text-muted: #94A3B8;          /* Slate Grey Muted Text */
    --border-color: #2A243C;        /* Amethyst Rim Border */
    --input-bg: #1A1627;            /* Deep Amethyst Input Background */
    --input-text: #F8FAFC;          /* Bright Input Text */

    /* Legacy Token Aliases */
    --background: var(--bg-primary);
    --surface: var(--bg-card);
    --surface-elevated: #1F1B2E;    /* Royal Amethyst Elevated Surface */
    --surface-muted: var(--bg-secondary);
    --text: var(--text-primary);
    --border: var(--border-color);
    --border-subtle: #201B30;

    /* Heritage Brand Re-anchoring for High Dark Mode Contrast (AAA Readable) */
    --primary: #fb7185;             /* Luminous Royal Rose / Crimson */
    --primary-hover: #f43f5e;
    --primary-light: rgba(251, 113, 133, 0.16);
    --primary-surface: rgba(251, 113, 133, 0.08);
    --primary-border: rgba(251, 113, 133, 0.35);

    --secondary: #fbbf24;           /* Radiant Amber Gold */
    --secondary-hover: #f59e0b;
    --secondary-light: rgba(245, 158, 11, 0.16);
    --secondary-border: rgba(245, 158, 11, 0.35);

    --accent: #f43f5e;
    --accent-light: rgba(244, 63, 94, 0.18);

    --gold-metallic: #fde047;
    --gold-bright: #fbbf24;
    --gold-deep: #d97706;

    /* Bootstrap 5.3 Native Dark Tokens */
    --bs-body-bg: var(--bg-primary);
    --bs-body-color: var(--text-primary);
    --bs-emphasis-color: #FFFFFF;
    --bs-secondary-color: var(--text-secondary);
    --bs-tertiary-color: var(--text-muted);
    --bs-tertiary-bg: var(--bg-secondary);
    --bs-secondary-bg: var(--surface-elevated);
    --bs-border-color: var(--border-color);
    --bs-border-color-translucent: rgba(255, 255, 255, 0.14);
    --bs-card-bg: var(--bg-card);
    --bs-card-color: var(--text-primary);
    --bs-card-border-color: var(--border-color);
    --bs-modal-bg: var(--bg-card);
    --bs-modal-color: var(--text-primary);
    --bs-dropdown-bg: var(--bg-card);
    --bs-dropdown-color: var(--text-primary);
    --bs-dropdown-link-color: var(--text-primary);
    --bs-dropdown-link-hover-bg: var(--surface-elevated);
    --bs-dropdown-border-color: var(--border-color);
    --bs-table-bg: var(--bg-card);
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: var(--border-color);
    --bs-primary: #fb7185;
    --bs-primary-rgb: 251, 113, 133;
    --bs-primary-text-emphasis: #fda4af;
    --bs-primary-bg-subtle: rgba(251, 113, 133, 0.16);
    --bs-primary-border-subtle: rgba(251, 113, 133, 0.35);
    --bs-secondary: #fbbf24;
    --bs-secondary-rgb: 251, 191, 36;
    --bs-link-color: #fb7185;
    --bs-link-hover-color: #f43f5e;

    --gradient-glass: linear-gradient(135deg, rgba(21, 19, 32, 0.94) 0%, rgba(31, 27, 46, 0.88) 100%);
    --gradient-aurora: linear-gradient(135deg, rgba(251, 113, 133, 0.18) 0%, rgba(245, 158, 11, 0.15) 50%, rgba(13, 11, 20, 0.9) 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
    --shadow-warm: 0 10px 30px rgba(245, 158, 11, 0.12);
}

/* ==========================================================================
   DARK MODE COMPONENT MAPPINGS & CONTRAST SAFEGUARDS
   ========================================================================== */
[data-bs-theme="dark"] body,
[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Structural Backgrounds */
[data-bs-theme="dark"] .bg-white,
[data-theme="dark"] .bg-white {
    background-color: var(--bg-card) !important;
    color: var(--text-primary);
}

[data-bs-theme="dark"] .bg-light,
[data-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-light-subtle,
[data-theme="dark"] .bg-light-subtle {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary);
    border-color: var(--border-color) !important;
}

[data-bs-theme="dark"] .bg-body,
[data-theme="dark"] .bg-body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary);
}

[data-bs-theme="dark"] .bg-body-secondary,
[data-theme="dark"] .bg-body-secondary,
[data-bs-theme="dark"] .bg-body-tertiary,
[data-theme="dark"] .bg-body-tertiary {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary);
}

/* Headings and Typography in Dark Mode */
[data-bs-theme="dark"] h1, [data-theme="dark"] h1,
[data-bs-theme="dark"] h2, [data-theme="dark"] h2,
[data-bs-theme="dark"] h3, [data-theme="dark"] h3,
[data-bs-theme="dark"] h4, [data-theme="dark"] h4,
[data-bs-theme="dark"] h5, [data-theme="dark"] h5,
[data-bs-theme="dark"] h6, [data-theme="dark"] h6 {
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .royal-heading,
[data-theme="dark"] .royal-heading {
    color: var(--text-primary) !important;
}

/* Strict Text Guard: Avoid white text on yellow badges/buttons */
[data-bs-theme="dark"] .text-dark:not(.bg-warning *):not(.bg-warning):not(.btn-warning):not(.badge.bg-warning):not(.badge-warning):not(.bg-gold):not(.bg-amber *),
[data-theme="dark"] .text-dark:not(.bg-warning *):not(.bg-warning):not(.btn-warning):not(.badge.bg-warning):not(.badge-warning):not(.bg-gold):not(.bg-amber *) {
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .badge.bg-warning.text-dark,
[data-bs-theme="dark"] .btn.btn-warning.text-dark,
[data-bs-theme="dark"] .bg-warning .text-dark,
[data-theme="dark"] .badge.bg-warning.text-dark,
[data-theme="dark"] .btn.btn-warning.text-dark,
[data-theme="dark"] .bg-warning .text-dark {
    color: #1E1E24 !important;
}

[data-bs-theme="dark"] .text-muted,
[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-bs-theme="dark"] .text-secondary,
[data-theme="dark"] .text-secondary,
[data-bs-theme="dark"] .text-body-secondary,
[data-theme="dark"] .text-body-secondary {
    color: var(--text-secondary) !important;
}

[data-bs-theme="dark"] .text-primary,
[data-theme="dark"] .text-primary {
    color: var(--primary) !important;
}

/* Hyperlinks in Dark Mode */
[data-bs-theme="dark"] a:not(.btn):not(.badge):not(.nav-link):not(.dropdown-item),
[data-theme="dark"] a:not(.btn):not(.badge):not(.nav-link):not(.dropdown-item) {
    color: var(--primary);
}

[data-bs-theme="dark"] a:not(.btn):not(.badge):not(.nav-link):not(.dropdown-item):hover,
[data-theme="dark"] a:not(.btn):not(.badge):not(.nav-link):not(.dropdown-item):hover {
    color: var(--primary-hover);
}

/* Cards & Elevated Containers */
[data-bs-theme="dark"] .card,
[data-theme="dark"] .card,
[data-bs-theme="dark"] .heritage-card,
[data-theme="dark"] .heritage-card,
[data-bs-theme="dark"] .profile-card,
[data-theme="dark"] .profile-card,
[data-bs-theme="dark"] .stat-card,
[data-theme="dark"] .stat-card,
[data-bs-theme="dark"] .stat-counter-card,
[data-theme="dark"] .stat-counter-card,
[data-bs-theme="dark"] .ceremony-card,
[data-theme="dark"] .ceremony-card,
[data-bs-theme="dark"] .dream-wedding-banner-card,
[data-theme="dark"] .dream-wedding-banner-card,
[data-bs-theme="dark"] .deck-card,
[data-theme="dark"] .deck-card,
[data-bs-theme="dark"] .luxury-glass-card,
[data-theme="dark"] .luxury-glass-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .card-title,
[data-theme="dark"] .card-title {
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .card-text,
[data-theme="dark"] .card-text {
    color: var(--text-secondary) !important;
}

[data-bs-theme="dark"] .card-header,
[data-theme="dark"] .card-header,
[data-bs-theme="dark"] .card-footer,
[data-theme="dark"] .card-footer {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-bs-theme="dark"] .deck-card-content,
[data-theme="dark"] .deck-card-content {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

/* Form Controls & Inputs */
[data-bs-theme="dark"] .form-control,
[data-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-theme="dark"] .form-select,
[data-bs-theme="dark"] textarea,
[data-theme="dark"] textarea,
[data-bs-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]) {
    background-color: var(--input-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--input-text) !important;
}

[data-bs-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-select:focus,
[data-bs-theme="dark"] textarea:focus,
[data-theme="dark"] textarea:focus,
[data-bs-theme="dark"] input:focus {
    background-color: var(--bg-card) !important;
    color: var(--input-text) !important;
    border-color: var(--gold-bright) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25) !important;
}

[data-bs-theme="dark"] ::placeholder,
[data-theme="dark"] ::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.85 !important;
}

[data-bs-theme="dark"] .form-label,
[data-theme="dark"] .form-label,
[data-bs-theme="dark"] label:not(.btn),
[data-theme="dark"] label:not(.btn) {
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .form-check-label,
[data-theme="dark"] .form-check-label {
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .form-check-input,
[data-theme="dark"] .form-check-input {
    background-color: var(--input-bg) !important;
    border-color: var(--border-color) !important;
}

[data-bs-theme="dark"] .form-check-input:checked,
[data-theme="dark"] .form-check-input:checked {
    background-color: var(--gold-bright) !important;
    border-color: var(--gold-bright) !important;
}

[data-bs-theme="dark"] .form-text,
[data-theme="dark"] .form-text {
    color: var(--text-secondary) !important;
}

[data-bs-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.2);
    cursor: pointer;
}

[data-bs-theme="dark"] input:-webkit-autofill,
[data-theme="dark"] input:-webkit-autofill {
    -webkit-text-fill-color: var(--text-primary) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--input-bg) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Modals & Popups */
[data-bs-theme="dark"] .modal-content,
[data-theme="dark"] .modal-content,
[data-bs-theme="dark"] .offcanvas,
[data-theme="dark"] .offcanvas {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .modal-header,
[data-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-body,
[data-theme="dark"] .modal-body,
[data-bs-theme="dark"] .modal-footer,
[data-theme="dark"] .modal-footer {
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .modal-header.bg-light,
[data-theme="dark"] .modal-header.bg-light,
[data-bs-theme="dark"] .modal-footer.bg-light,
[data-theme="dark"] .modal-footer.bg-light {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

[data-bs-theme="dark"] .btn-close,
[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Dropdown Menus */
[data-bs-theme="dark"] .dropdown-menu,
[data-theme="dark"] .dropdown-menu {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6) !important;
}

[data-bs-theme="dark"] .dropdown-item,
[data-theme="dark"] .dropdown-item {
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus,
[data-theme="dark"] .dropdown-item:focus {
    background-color: var(--bg-secondary) !important;
    color: var(--gold-bright) !important;
}

[data-bs-theme="dark"] .dropdown-divider,
[data-theme="dark"] .dropdown-divider {
    border-color: var(--border-color) !important;
}

/* Tables */
[data-bs-theme="dark"] .table,
[data-theme="dark"] .table {
    --bs-table-bg: var(--bg-card) !important;
    --bs-table-color: var(--text-primary) !important;
    --bs-table-border-color: var(--border-color) !important;
    --bs-table-hover-bg: var(--bg-secondary) !important;
    --bs-table-hover-color: var(--text-primary) !important;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02) !important;
    --bs-table-striped-color: var(--text-primary) !important;
    color: var(--text-primary) !important;
    background-color: var(--bg-card) !important;
}

[data-bs-theme="dark"] .table th,
[data-theme="dark"] .table th,
[data-bs-theme="dark"] .table td,
[data-theme="dark"] .table td {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

/* Buttons in Dark Mode */
[data-bs-theme="dark"] .btn-outline-heritage,
[data-theme="dark"] .btn-outline-heritage {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background-color: transparent !important;
}

[data-bs-theme="dark"] .btn-outline-heritage:hover,
[data-theme="dark"] .btn-outline-heritage:hover {
    background-color: var(--primary-light) !important;
    color: #FFFFFF !important;
    border-color: var(--primary) !important;
}

[data-bs-theme="dark"] .btn-outline-dark,
[data-theme="dark"] .btn-outline-dark,
[data-bs-theme="dark"] .btn-outline-secondary,
[data-theme="dark"] .btn-outline-secondary {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
    background-color: transparent !important;
}

[data-bs-theme="dark"] .btn-outline-dark:hover,
[data-theme="dark"] .btn-outline-dark:hover,
[data-bs-theme="dark"] .btn-outline-secondary:hover,
[data-theme="dark"] .btn-outline-secondary:hover {
    color: var(--gold-bright) !important;
    background-color: var(--bg-secondary) !important;
    border-color: var(--gold-bright) !important;
}

[data-bs-theme="dark"] .btn-soft,
[data-theme="dark"] .btn-soft {
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
}

[data-bs-theme="dark"] .btn-soft:hover,
[data-theme="dark"] .btn-soft:hover {
    background-color: rgba(251, 113, 133, 0.28) !important;
    color: #FFFFFF !important;
}

[data-bs-theme="dark"] .btn-light,
[data-theme="dark"] .btn-light {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-bs-theme="dark"] .btn-deck-pass,
[data-theme="dark"] .btn-deck-pass {
    background-color: var(--bg-secondary) !important;
}

[data-bs-theme="dark"] .btn-deck-chat,
[data-theme="dark"] .btn-deck-chat {
    background-color: var(--bg-secondary) !important;
}

/* Navbar in Dark Mode */
[data-bs-theme="dark"] .site-navbar,
[data-theme="dark"] .site-navbar {
    background-color: rgba(13, 11, 20, 0.96) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

[data-bs-theme="dark"] .site-navbar .navbar-brand,
[data-theme="dark"] .site-navbar .navbar-brand {
    color: var(--primary) !important;
}

[data-bs-theme="dark"] .site-navbar .nav-link,
[data-theme="dark"] .site-navbar .nav-link {
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .site-navbar .nav-link:hover,
[data-theme="dark"] .site-navbar .nav-link:hover,
[data-bs-theme="dark"] .site-navbar .nav-link.active,
[data-theme="dark"] .site-navbar .nav-link.active {
    color: var(--gold-bright) !important;
    background-color: var(--bg-secondary) !important;
}

@media (max-width: 991.98px) {
    [data-bs-theme="dark"] .site-navbar .navbar-collapse,
    [data-theme="dark"] .site-navbar .navbar-collapse {
        background-color: var(--bg-card) !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6) !important;
    }
}

/* Footer in Dark Mode */
[data-bs-theme="dark"] .site-footer,
[data-theme="dark"] .site-footer {
    background-color: #0A0811 !important;
    border-top: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .site-footer h5,
[data-theme="dark"] .site-footer h6,
[data-theme="dark"] .site-footer strong,
[data-theme="dark"] .site-footer .text-dark {
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .site-footer .text-muted,
[data-theme="dark"] .site-footer .text-muted {
    color: var(--text-muted) !important;
}

[data-bs-theme="dark"] .site-footer a.text-muted:hover,
[data-theme="dark"] .site-footer a.text-muted:hover,
[data-bs-theme="dark"] .hover-primary:hover,
[data-theme="dark"] .hover-primary:hover {
    color: var(--gold-bright) !important;
}

/* List Groups, Accordions, Tabs */
[data-bs-theme="dark"] .list-group-item,
[data-theme="dark"] .list-group-item,
[data-bs-theme="dark"] .accordion-item,
[data-theme="dark"] .accordion-item {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .accordion-button,
[data-theme="dark"] .accordion-button {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .accordion-button:not(.collapsed),
[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: var(--surface-elevated) !important;
    color: var(--gold-bright) !important;
}

[data-bs-theme="dark"] .nav-tabs,
[data-theme="dark"] .nav-pills {
    border-color: var(--border-color) !important;
}

[data-bs-theme="dark"] .border,
[data-theme="dark"] .border-top,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-start,
[data-theme="dark"] .border-end {
    border-color: var(--border-color) !important;
}

[data-bs-theme="dark"] .social-icon-btn,
[data-theme="dark"] .social-icon-btn {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* Mobile Bottom Navigation */
[data-bs-theme="dark"] .mobile-bottom-nav,
[data-theme="dark"] .mobile-bottom-nav {
    background-color: rgba(13, 11, 20, 0.96) !important;
    border-top-color: rgba(245, 158, 11, 0.35) !important;
}

[data-bs-theme="dark"] .mobile-nav-item,
[data-theme="dark"] .mobile-nav-item {
    color: var(--text-muted);
}

[data-bs-theme="dark"] .mobile-nav-item.active,
[data-theme="dark"] .mobile-nav-item:hover {
    color: var(--gold-bright) !important;
}

/* Hero Section in Dark Mode */
[data-bs-theme="dark"] .hero-section,
[data-theme="dark"] .hero-section {
    background: radial-gradient(circle at 15% 25%, rgba(136, 19, 55, 0.3) 0%, transparent 45%),
                radial-gradient(circle at 85% 75%, rgba(217, 119, 6, 0.22) 0%, transparent 45%),
                linear-gradient(180deg, #0D0B14 0%, #151320 100%) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

[data-bs-theme="dark"] .hero-search-box,
[data-theme="dark"] .hero-search-box {
    background: rgba(21, 19, 32, 0.94) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.7), 0 8px 24px rgba(217, 119, 6, 0.1) !important;
}

/* Badges & Special Tags in Dark Mode */
[data-bs-theme="dark"] .badge-created-for,
[data-theme="dark"] .badge-created-for {
    background-color: var(--bg-secondary) !important;
    color: var(--text-secondary) !important;
    border-color: var(--border-color) !important;
}

[data-bs-theme="dark"] .category-pill-self,
[data-theme="dark"] .category-pill-self {
    background-color: var(--bg-secondary) !important;
    color: var(--text-secondary) !important;
    border-color: var(--border-color) !important;
}

[data-bs-theme="dark"] .badge-kundali,
[data-theme="dark"] .badge-kundali {
    background-color: rgba(244, 63, 94, 0.16) !important;
    color: #fda4af !important;
    border-color: rgba(244, 63, 94, 0.35) !important;
}

[data-bs-theme="dark"] .badge-compatibility,
[data-theme="dark"] .badge-compatibility {
    background: rgba(5, 150, 105, 0.16) !important;
    color: #6ee7b7 !important;
    border-color: rgba(5, 150, 105, 0.35) !important;
}

[data-bs-theme="dark"] .badge-verified,
[data-theme="dark"] .badge-verified {
    background-color: rgba(245, 158, 11, 0.18) !important;
    color: #fde68a !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
}

[data-bs-theme="dark"] .badge-premium,
[data-theme="dark"] .badge-premium {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.28) 0%, rgba(217, 119, 6, 0.2) 100%) !important;
    color: #fde68a !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
}

/* Shimmer & Royal Headings in Dark Mode */
[data-bs-theme="dark"] .royal-crimson-text,
[data-theme="dark"] .royal-crimson-text {
    background: linear-gradient(135deg, #fb7185 0%, #fda4af 50%, #f43f5e 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

[data-bs-theme="dark"] .shimmer-gold-text,
[data-theme="dark"] .shimmer-gold-text {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 25%, #f59e0b 50%, #fde047 75%, #fef08a 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Pricing & Dashboard Metrics in Dark Mode */
[data-bs-theme="dark"] .price-value,
[data-theme="dark"] .price-value {
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .currency-symbol,
[data-theme="dark"] .currency-symbol {
    color: var(--primary) !important;
}

[data-bs-theme="dark"] .validity-tag,
[data-theme="dark"] .validity-tag {
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
    border-color: var(--primary-border) !important;
}

[data-bs-theme="dark"] .feature-icon-box,
[data-theme="dark"] .feature-icon-box {
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
}

[data-bs-theme="dark"] .stat-val,
[data-theme="dark"] .stat-val {
    color: var(--text-primary);
}

[data-bs-theme="dark"] .stat-val.text-primary,
[data-theme="dark"] .stat-val.text-primary {
    color: var(--primary) !important;
}

[data-bs-theme="dark"] .stat-lbl,
[data-theme="dark"] .stat-lbl {
    color: var(--text-secondary) !important;
}

[data-bs-theme="dark"] .trust-meter-card,
[data-theme="dark"] .trust-meter-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(31, 27, 46, 0.8) 50%, rgba(5, 150, 105, 0.15) 100%) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

[data-bs-theme="dark"] .trust-check-item,
[data-theme="dark"] .trust-check-item {
    color: var(--text-primary) !important;
}

/* Biodata Modal & Special Components */
[data-bs-theme="dark"] #biodataPrintArea,
[data-theme="dark"] #biodataPrintArea {
    background-color: var(--bg-card) !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] #whatsappDigestSimulatorModal .modal-body {
    background-color: #0b141a !important;
}

[data-bs-theme="dark"] #whatsappDigestSimulatorModal .bg-white {
    background-color: #1f2c34 !important;
    color: #e9edef !important;
}

[data-bs-theme="dark"] #whatsappDigestSimulatorModal .bg-light {
    background-color: #111b21 !important;
    color: #e9edef !important;
    border-color: #2a3942 !important;
}

/* Single Theme Toggle Button */
.theme-toggle-btn {
    min-width: 36px;
    height: 36px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    font-weight: 700;
}

.theme-toggle-btn:hover {
    border-color: var(--gold-bright);
    color: var(--gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

[data-bs-theme="dark"] .theme-toggle-btn,
[data-theme="dark"] .theme-toggle-btn {
    background-color: var(--bg-secondary) !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
    color: var(--gold-bright) !important;
}

/* ==========================================================================
   COMPREHENSIVE DARK & LIGHT MODE VISIBILITY & CONTRAST GUARDS
   Guarantees 100% data and text visibility across the entire application
   ========================================================================== */

/* 1. Membership Plan Cards in Dark Mode */
[data-bs-theme="dark"] .membership-plan-card,
[data-theme="dark"] .membership-plan-card {
    background: var(--bg-card) !important;
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

[data-bs-theme="dark"] .membership-plan-card.recommended-plan,
[data-theme="dark"] .membership-plan-card.recommended-plan {
    background: linear-gradient(180deg, #1c182b 0%, #151320 100%) !important;
    background-color: #151320 !important;
    border: 2px solid #f59e0b !important;
    box-shadow: 0 16px 40px -8px rgba(245, 158, 11, 0.25) !important;
}

[data-bs-theme="dark"] .membership-plan-card.rm-plan-card,
[data-theme="dark"] .membership-plan-card.rm-plan-card {
    background: linear-gradient(180deg, #1e192c 0%, #151320 100%) !important;
    background-color: #151320 !important;
    border: 2px solid rgba(253, 230, 138, 0.35) !important;
}

[data-bs-theme="dark"] .membership-plan-card.rm-plan-card.recommended-plan,
[data-theme="dark"] .membership-plan-card.rm-plan-card.recommended-plan {
    border: 2px solid #d97706 !important;
}

/* Membership Plan Card Text in Dark Mode (High Contrast Guarantee) */
[data-bs-theme="dark"] .membership-plan-card .plan-name,
[data-theme="dark"] .membership-plan-card .plan-name,
[data-bs-theme="dark"] .membership-plan-card h3,
[data-theme="dark"] .membership-plan-card h3,
[data-bs-theme="dark"] .membership-plan-card .price-value,
[data-theme="dark"] .membership-plan-card .price-value,
[data-bs-theme="dark"] .membership-plan-card strong,
[data-theme="dark"] .membership-plan-card strong {
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .membership-plan-card .price-suffix,
[data-theme="dark"] .membership-plan-card .price-suffix {
    color: #CBD5E1 !important;
}

[data-bs-theme="dark"] .membership-plan-card .validity-subtext,
[data-theme="dark"] .membership-plan-card .validity-subtext,
[data-bs-theme="dark"] .membership-plan-card .feature-note,
[data-theme="dark"] .membership-plan-card .feature-note {
    color: #94A3B8 !important;
}

[data-bs-theme="dark"] .membership-plan-card .feature-text,
[data-theme="dark"] .membership-plan-card .feature-text {
    color: #E2E8F0 !important;
}

[data-bs-theme="dark"] .membership-plan-card .plan-card-header,
[data-theme="dark"] .membership-plan-card .plan-card-header {
    border-color: var(--border-color) !important;
}

[data-bs-theme="dark"] .category-pill-self,
[data-theme="dark"] .category-pill-self {
    background-color: var(--bg-secondary) !important;
    color: #F8FAFC !important;
    border: 1px solid var(--border-color) !important;
}

[data-bs-theme="dark"] .category-pill-rm,
[data-theme="dark"] .category-pill-rm {
    background-color: rgba(245, 158, 11, 0.18) !important;
    color: #fde047 !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
}

[data-bs-theme="dark"] .feature-icon-muted,
[data-theme="dark"] .feature-icon-muted {
    background-color: var(--bg-secondary) !important;
    color: var(--text-muted) !important;
}

/* 2. Membership Banners & Helpline Pills in Dark Mode */
[data-bs-theme="dark"] .membership-category-banner,
[data-theme="dark"] .membership-category-banner {
    background: linear-gradient(135deg, rgba(26, 22, 39, 0.95) 0%, rgba(13, 11, 20, 0.95) 100%) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .membership-category-banner h2,
[data-theme="dark"] .membership-category-banner h2 {
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .membership-category-banner-rm,
[data-theme="dark"] .membership-category-banner-rm {
    background: linear-gradient(135deg, rgba(31, 27, 46, 0.95) 0%, rgba(26, 22, 39, 0.95) 100%) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .membership-category-banner-rm h2,
[data-theme="dark"] .membership-category-banner-rm h2 {
    color: #fde047 !important;
}

[data-bs-theme="dark"] .helpline-pill,
[data-theme="dark"] .helpline-pill {
    background-color: var(--bg-card) !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
    color: #fde047 !important;
}

[data-bs-theme="dark"] .helpline-pill strong,
[data-theme="dark"] .helpline-pill strong {
    color: #FFFFFF !important;
}

/* 3. Cultural Posters, Bureaus & Glass Cards in Dark Mode */
[data-bs-theme="dark"] .offline-bureau-card,
[data-theme="dark"] .offline-bureau-card,
[data-bs-theme="dark"] .marathi-heritage-banner,
[data-theme="dark"] .marathi-heritage-banner {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--surface-elevated) 100%) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .offline-bureau-card h3,
[data-theme="dark"] .offline-bureau-card h3,
[data-bs-theme="dark"] .marathi-heritage-banner h3,
[data-theme="dark"] .marathi-heritage-banner h3 {
    color: #F8FAFC !important;
}

/* 4. CRM Components in Dark Mode */
[data-bs-theme="dark"] .crm-card,
[data-theme="dark"] .crm-card,
[data-bs-theme="dark"] .crm-nav-card,
[data-theme="dark"] .crm-nav-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .crm-kpi-val,
[data-theme="dark"] .crm-kpi-val {
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .crm-kpi-label,
[data-theme="dark"] .crm-kpi-label {
    color: #CBD5E1 !important;
}

/* 5. Alerts in Dark Mode */
[data-bs-theme="dark"] .alert-warning,
[data-theme="dark"] .alert-warning {
    background-color: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: #fde68a !important;
}

[data-bs-theme="dark"] .alert-warning strong,
[data-theme="dark"] .alert-warning strong,
[data-bs-theme="dark"] .alert-warning h5,
[data-theme="dark"] .alert-warning h5 {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .alert-success,
[data-theme="dark"] .alert-success {
    background-color: rgba(5, 150, 105, 0.15) !important;
    border-color: rgba(5, 150, 105, 0.35) !important;
    color: #a7f3d0 !important;
}

[data-bs-theme="dark"] .alert-danger,
[data-theme="dark"] .alert-danger {
    background-color: rgba(220, 38, 38, 0.15) !important;
    border-color: rgba(220, 38, 38, 0.35) !important;
    color: #fca5a5 !important;
}

[data-bs-theme="dark"] .alert-info,
[data-theme="dark"] .alert-info {
    background-color: rgba(2, 132, 199, 0.15) !important;
    border-color: rgba(2, 132, 199, 0.35) !important;
    color: #bae6fd !important;
}

/* 6. Universal Light Mode Text Contrast Safeguards */
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .membership-plan-card .plan-name,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .membership-plan-card h3,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .membership-plan-card .price-value,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .membership-plan-card strong,
[data-bs-theme="light"] .membership-plan-card .plan-name,
[data-bs-theme="light"] .membership-plan-card h3,
[data-bs-theme="light"] .membership-plan-card .price-value,
[data-bs-theme="light"] .membership-plan-card strong,
[data-theme="light"] .membership-plan-card .plan-name,
[data-theme="light"] .membership-plan-card h3,
[data-theme="light"] .membership-plan-card .price-value,
[data-theme="light"] .membership-plan-card strong {
    color: #1E1E24 !important;
}

html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .membership-plan-card .price-suffix,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .membership-plan-card .validity-subtext,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .membership-plan-card .feature-note,
[data-bs-theme="light"] .membership-plan-card .price-suffix,
[data-bs-theme="light"] .membership-plan-card .validity-subtext,
[data-bs-theme="light"] .membership-plan-card .feature-note,
[data-theme="light"] .membership-plan-card .price-suffix,
[data-theme="light"] .membership-plan-card .validity-subtext,
[data-theme="light"] .membership-plan-card .feature-note {
    color: #64748B !important;
}

html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .membership-category-banner h2,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .membership-category-banner-rm h2,
[data-bs-theme="light"] .membership-category-banner h2,
[data-bs-theme="light"] .membership-category-banner-rm h2,
[data-theme="light"] .membership-category-banner h2,
[data-theme="light"] .membership-category-banner-rm h2 {
    color: #1E1E24 !important;
}

/* ==========================================================================
   UNIVERSAL RESPONSIVE RESET & ZERO-OVERFLOW FOUNDATION
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    max-width: 100%;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    max-width: 100vw;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

/* Fluid Responsive Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    margin-top: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

h1, .royal-heading {
    font-size: clamp(1.65rem, 2.8vw + 0.9rem, 2.75rem);
}

h2 {
    font-size: clamp(1.35rem, 2.2vw + 0.7rem, 2.2rem);
}

h3 {
    font-size: clamp(1.18rem, 1.6vw + 0.6rem, 1.75rem);
}

h4 {
    font-size: clamp(1.05rem, 1.2vw + 0.5rem, 1.35rem);
}

/* Responsive Media - Never Exceed Viewport */
img, video, iframe, svg, canvas {
    max-width: 100%;
    height: auto;
}

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

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

/* ==========================================================================
   BUTTON SYSTEM
   ========================================================================== */

.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 10px 22px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 1px solid transparent;
}

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

.btn-primary, .btn-heritage {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(136, 19, 55, 0.2);
}

.btn-primary:hover, .btn-heritage:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(136, 19, 55, 0.3);
    color: #ffffff !important;
}

.btn-gold {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    border-color: #b45309;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.25);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(180, 83, 9, 0.35);
}

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

.btn-outline-heritage:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-hover) !important;
}

.btn-soft {
    background-color: var(--primary-light);
    color: var(--primary) !important;
    border-color: transparent;
}

.btn-soft:hover {
    background-color: #ffe4e6;
    color: var(--primary-hover) !important;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   NAVIGATION SYSTEM
   ========================================================================== */

.site-navbar {
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.5), rgba(136, 19, 55, 0.4), transparent) 1;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 6px 22px rgba(136, 19, 55, 0.05);
    transition: all var(--transition-normal);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.25s ease;
}

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

.site-navbar .nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text) !important;
    font-size: 13.5px;
    padding: 8px 14px !important;
    border-radius: var(--radius-full);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.site-navbar .nav-link:hover {
    color: var(--primary) !important;
    background-color: #fff1f2;
    transform: translateY(-2px);
}

.site-navbar .nav-link.active {
    color: var(--primary) !important;
    background-color: var(--primary-surface);
}

/* ==========================================================================
   UNIVERSAL NAV-PILLS & TAB NAVIGATION SYSTEM (FIX FOR HIDDEN ACTIVE TAB TEXT)
   ========================================================================== */
.nav-pills .nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-secondary) !important;
    border-radius: var(--radius-full) !important;
    padding: 8px 18px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.nav-pills .nav-link:hover:not(.active) {
    color: var(--primary) !important;
    background-color: var(--primary-light, #fff1f2) !important;
    transform: translateY(-1px);
}

/* Nav-Pills Active State (Light Mode) */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.nav-pills .nav-link.active:hover,
.nav-pills .nav-link.active:focus {
    background: linear-gradient(135deg, #881337 0%, #9f1239 50%, #701a31 100%) !important;
    background-color: #881337 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(136, 19, 55, 0.28) !important;
    border: 1px solid rgba(217, 119, 6, 0.25) !important;
}

.nav-pills .nav-link.active *,
.nav-pills .show > .nav-link * {
    color: #ffffff !important;
}

/* Nav-Pills Active State (Dark Mode Overrides) */
[data-bs-theme="dark"] .nav-pills .nav-link.active,
[data-theme="dark"] .nav-pills .nav-link.active,
[data-bs-theme="dark"] .nav-pills .show > .nav-link,
[data-theme="dark"] .nav-pills .show > .nav-link,
[data-bs-theme="dark"] .nav-pills .nav-link.active:hover,
[data-theme="dark"] .nav-pills .nav-link.active:hover {
    background: linear-gradient(135deg, #881337 0%, #be123c 60%, #9f1239 100%) !important;
    background-color: #be123c !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.4) !important;
    border: 1px solid rgba(254, 240, 138, 0.4) !important;
}

[data-bs-theme="dark"] .nav-pills .nav-link.active *,
[data-theme="dark"] .nav-pills .nav-link.active * {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .nav-pills .nav-link:not(.active),
[data-theme="dark"] .nav-pills .nav-link:not(.active) {
    color: #cbd5e1 !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .nav-pills .nav-link:not(.active):hover,
[data-theme="dark"] .nav-pills .nav-link:not(.active):hover {
    color: #fde047 !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        background: #ffffff;
        padding: 16px;
        margin-top: 10px;
        border-radius: var(--radius-lg);
        box-shadow: 0 16px 36px rgba(136, 19, 55, 0.12);
        border: 1px solid rgba(217, 119, 6, 0.2);
    }
    .site-navbar .navbar-nav .nav-link {
        padding: 10px 14px !important;
        margin-bottom: 4px;
    }
}

/* Mobile Bottom Navigation - Luxury Floating Glass Dock */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(217, 119, 6, 0.25);
    z-index: 1030;
    box-shadow: 0 -6px 24px rgba(136, 19, 55, 0.08);
    align-items: center;
    justify-content: space-around;
}

@media (max-width: 991.98px) {
    .mobile-bottom-nav {
        display: flex !important;
    }
    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    body {
        padding-bottom: 0px !important;
    }
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    min-height: 48px;
    padding: 6px 0;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-bottom-nav .nav-item.active {
    color: var(--primary);
    transform: translateY(-2px);
}

.mobile-bottom-nav .nav-item.active svg {
    color: #881337;
    filter: drop-shadow(0 2px 6px rgba(136, 19, 55, 0.35));
}

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

.mobile-bottom-nav .nav-item svg {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
    transition: transform 0.2s ease;
}

/* ==========================================================================
   HERO SECTION & BANNER SHOWCASE
   ========================================================================== */

.hero-section {
    position: relative;
    background: linear-gradient(135deg, #FFFDF9 0%, #FFF5F5 45%, #FEF9EE 100%);
    padding: 85px 0 75px;
    border-bottom: 2px solid var(--secondary-border);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 243, 199, 0.55) 0%, rgba(255, 241, 242, 0.35) 50%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 228, 230, 0.45) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-section > .container {
    position: relative;
    z-index: 2;
}

.hero-search-box {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border: 2px solid var(--secondary-border);
    border-radius: var(--radius-xl);
    padding: 34px 30px;
    box-shadow: 0 16px 40px rgba(136, 19, 55, 0.14);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hero-search-box:hover {
    box-shadow: 0 20px 48px rgba(136, 19, 55, 0.18);
    transform: translateY(-2px);
}

.dream-wedding-banner-card {
    border: 2px solid #fde68a;
    box-shadow: var(--shadow-warm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.dream-wedding-banner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(180, 83, 9, 0.22);
}

/* ==========================================================================
   CARDS & CONTAINERS
   ========================================================================== */

.heritage-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.heritage-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-gold);
}

/* Profile Card */
.profile-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-border);
}

.profile-card-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 110%; /* Aspect ratio ~ 1:1.1 */
    background: radial-gradient(circle, rgba(136, 19, 55, 0.04) 0%, rgba(15, 23, 42, 0.06) 100%);
    overflow: hidden;
}

.profile-card-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.profile-card:hover .profile-card-image-wrap img {
    transform: scale(1.02);
}

.profile-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.profile-card-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-card-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.profile-card-details {
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    flex-grow: 1;
}

.profile-card-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

/* ==========================================================================
   BADGES & CHIPS
   ========================================================================== */

.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    border: 1px solid #fde68a;
}

.badge-trust-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: var(--radius-full);
    border: 1px solid #a7f3d0;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.10);
}

.badge-trust-score.high-trust {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #78350f;
    border: 1px solid #f59e0b;
}

.badge-created-for {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.trust-meter-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 40%, #ecfdf5 100%);
    border: 1.5px solid #fde68a;
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    box-shadow: 0 4px 16px rgba(180, 83, 9, 0.08);
}

.trust-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.trust-check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

.trust-check-icon.active {
    background-color: #059669;
    color: #ffffff;
}

.trust-check-icon.inactive {
    background-color: #e2e8f0;
    color: #94a3b8;
}

/* Printable Sacred Matrimonial Biodata */
@media print {
    body * {
        visibility: hidden;
    }
    #biodataPrintArea, #biodataPrintArea * {
        visibility: visible;
    }
    #biodataPrintArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 24px;
    }
}

.badge-compatibility {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid #a7f3d0;
}

.badge-kundali {
    background-color: #fff1f2;
    color: #9f1239;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid #fecdd3;
}

.badge-premium {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #78350f;
    font-weight: 700;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */

.form-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 6px;
}

.form-control, .form-select {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 14px;
    background-color: var(--input-bg);
    color: var(--input-text);
    transition: all var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(136, 19, 55, 0.1);
    outline: none;
}

/* ==========================================================================
   STAT CARDS & DASHBOARD
   ========================================================================== */

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    border-color: var(--secondary-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-lbl {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================================================
   REAL-TIME CHAT UI
   ========================================================================== */

.chat-container {
    display: flex;
    height: calc(100vh - 160px);
    min-height: 520px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.chat-sidebar {
    width: 320px;
    border-right: 1px solid var(--border-color);
    background-color: var(--bg-card);
    display: flex;
    flex-direction: column;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-secondary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
}

.chat-bubble-sent {
    align-self: flex-end;
    background-color: var(--primary);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.chat-bubble-received {
    align-self: flex-start;
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.chat-time {
    font-size: 11px;
    opacity: 0.75;
    margin-top: 4px;
    display: block;
    text-align: right;
}

/* ==========================================================================
   HERO & SEARCH WIDGET
   ========================================================================== */

.site-logo-img {
    height: 52px;
    width: auto;
    max-height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(136, 19, 55, 0.15));
    transition: transform var(--transition-fast);
}

.site-logo-img:hover {
    transform: scale(1.02);
}

.footer-logo-img {
    height: 68px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
}

/* ==========================================================================
   SACRED CEREMONIES & BRAND VISUALS (FULLY RESPONSIVE)
   ========================================================================== */

.ceremony-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(136, 19, 55, 0.07);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
}

.ceremony-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(136, 19, 55, 0.15);
    border-color: #f59e0b;
}

.ceremony-card-img-wrap {
    width: 100%;
    height: 270px;
    aspect-ratio: 4 / 3;
    max-height: 290px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff1f2 0%, #fef3c7 100%);
    border-top-left-radius: calc(var(--radius-xl) - 1.5px);
    border-top-right-radius: calc(var(--radius-xl) - 1.5px);
}

.ceremony-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.ceremony-card:hover .ceremony-card-img-wrap img {
    transform: scale(1.03);
}

/* Individual Ritual Focal Points */
.ceremony-img-mangalsutra {
    object-position: center !important;
}

.ceremony-img-sindoor {
    object-position: center !important;
}

.ceremony-img-jaimala {
    object-position: center !important;
}

/* Grand Official Banner Showcase */
.dream-wedding-banner-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(180, 83, 9, 0.12);
    background: var(--bg-card);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.dream-wedding-banner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(180, 83, 9, 0.22);
}

.dream-wedding-banner-img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

/* Cultural Heritage & Feature Posters */
.marathi-heritage-banner {
    background: linear-gradient(135deg, #fffbeb 0%, #fff1f2 100%);
    border: 2px solid #fde68a;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-warm);
}

.poster-heritage-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.poster-features-img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.story-photo-wrap {
    width: 100%;
    height: 220px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: radial-gradient(circle, rgba(136, 19, 55, 0.04) 0%, rgba(15, 23, 42, 0.06) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.cta-wedding-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(136, 19, 55, 0.92) 0%, rgba(112, 26, 49, 0.92) 100%),
                url('../images/home_background_banner.png') center/cover no-repeat;
    color: #ffffff;
}

/* ==========================================================================
   MASTER UNIVERSAL RESPONSIVE ARCHITECTURE
   Covers All Viewports:
   - Small mobile: 320px–359px (iPhone SE 1st gen, Fold cover screen)
   - Mobile: 360px–479px (All Android & iPhones)
   - Large mobile / Foldables: 480px–767px
   - Tablets & iPads: 768px–1023px (Portrait & Landscape)
   - Laptops: 1024px–1365px
   - Desktop computers: 1366px–1919px
   - Large desktop & 4K screens: 1920px–2560px+
   - Landscape Mobile & Safe Area Inset Support
   ========================================================================== */

/* 1. Large Desktop & 4K Monitors (1920px and above) */
@media (min-width: 1920px) {
    .container, .container-lg, .container-xl, .container-xxl {
        max-width: 1540px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .hero-section {
        padding: 95px 0 80px;
    }
    .hero-search-box {
        padding: 38px 34px;
    }
    .profile-card-image-wrap {
        padding-top: 105%;
    }
}

@media (min-width: 2560px) {
    .container, .container-lg, .container-xl, .container-xxl {
        max-width: 1720px !important;
    }
    body {
        font-size: 16px;
    }
}

/* 2. Desktop Computers (1366px to 1919.98px) */
@media (min-width: 1366px) and (max-width: 1919.98px) {
    .hero-section {
        padding: 85px 0 70px;
    }
    .hero-search-box {
        padding: 32px 28px;
    }
}

/* 3. Laptops (1024px to 1365.98px) */
@media (min-width: 1024px) and (max-width: 1365.98px) {
    .hero-section {
        padding: 70px 0 55px;
    }
    .hero-search-box {
        padding: 28px 24px;
    }
    .stat-counter-card {
        padding: 14px 16px;
    }
    .stat-number-glow {
        font-size: 1.55rem;
    }
}

/* 4. Tablets & iPads (768px to 1023.98px) */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .hero-section {
        padding: 48px 0 38px;
    }
    .hero-search-box {
        padding: 26px 22px;
        border-radius: var(--radius-lg);
    }
    .ceremony-card-img-wrap {
        height: 220px;
        max-height: 240px;
    }
    .poster-heritage-img {
        max-height: 360px;
    }
    .poster-features-img {
        max-height: 380px;
    }
    .dream-wedding-banner-img {
        max-height: 340px;
    }
    /* Reset sticky sidebar on tablets to prevent overlapping while scrolling */
    .sticky-top {
        position: static !important;
        top: auto !important;
    }
    .stat-card {
        padding: 14px 12px;
    }
    .stat-val {
        font-size: 22px;
    }
    .membership-plan-card {
        margin-bottom: 24px;
    }
}

/* 5. Mobile & Tablet General Rules (< 992px) */
@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        background: #ffffff;
        padding: 16px;
        margin-top: 10px;
        border-radius: var(--radius-lg);
        box-shadow: 0 16px 36px rgba(136, 19, 55, 0.12);
        border: 1px solid rgba(217, 119, 6, 0.2);
    }
    .site-navbar .navbar-nav .nav-link {
        padding: 10px 14px !important;
        margin-bottom: 4px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    /* Sticky sidebar reset on mobile/tablet */
    .sticky-top {
        position: static !important;
        top: auto !important;
    }
    /* Mobile responsive offcanvas & modals */
    .offcanvas {
        max-width: 90vw !important;
        width: 380px !important;
    }
    .modal-dialog {
        margin: 12px auto;
        max-width: calc(100vw - 24px);
    }
    /* Prevent iOS Safari auto-zoom on input focus by setting 16px font-size */
    input, select, textarea, .form-control, .form-select {
        font-size: 16px !important;
    }
    /* Profile edit horizontal tab navigation */
    .col-lg-3 .nav.flex-column.nav-pills {
        flex-direction: row !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
    }
    .col-lg-3 .nav.flex-column.nav-pills .nav-link {
        white-space: nowrap;
        font-size: 13px;
        padding: 8px 14px;
        border-radius: var(--radius-full);
        background: #f8fafc;
        border: 1px solid var(--border);
    }
    .col-lg-3 .nav.flex-column.nav-pills .nav-link.active {
        background: linear-gradient(135deg, #881337 0%, #be123c 60%, #9f1239 100%) !important;
        background-color: #881337 !important;
        color: #ffffff !important;
        font-weight: 700 !important;
    }
}

/* 6. All Mobile Devices (< 768px) - Universal Zero Overflow */
@media (max-width: 767.98px) {
    /* Responsive Header & Brand */
    .site-logo-img {
        height: 40px;
    }
    .footer-logo-img {
        height: 48px;
    }

    /* Hero & Sections */
    .hero-section {
        padding: 32px 0 22px;
    }
    .hero-search-box {
        padding: 18px 14px;
        border-radius: var(--radius-lg);
    }

    /* Cards & Grids */
    .heritage-card {
        padding: 18px 14px;
        border-radius: var(--radius-md);
    }
    .ceremony-card {
        margin-bottom: 12px;
    }
    .ceremony-card-img-wrap {
        height: clamp(200px, 54vw, 260px);
        max-height: 270px;
        aspect-ratio: 16 / 10;
    }
    .dream-wedding-banner-img {
        max-height: 210px;
    }
    .poster-heritage-img {
        max-height: 280px;
    }
    .poster-features-img {
        max-height: 280px;
    }
    .story-photo-wrap {
        height: 160px;
    }

    /* Stat Cards & Counters */
    .stat-card {
        padding: 10px 8px;
        gap: 8px;
        border-radius: var(--radius-md);
    }
    .stat-val {
        font-size: 19px;
    }
    .stat-lbl {
        font-size: 11px;
    }
    .stat-counter-card {
        padding: 10px 6px;
        border-radius: var(--radius-md);
    }
    .stat-number-glow {
        font-size: 1.25rem;
    }
    .stat-counter-card small {
        font-size: 10.5px;
    }

    /* Buttons & Interactive Targets */
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .btn-royal-gold, .btn-royal-crimson, .btn-heritage {
        padding: 10px 16px;
        font-size: 13.5px;
    }

    /* Community Pills */
    .community-pill-btn {
        padding: 6px 13px;
        font-size: 12px;
    }

    /* Responsive Tables - Zero Horizontal Page Scroll */
    .table-responsive {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
        border-radius: var(--radius-md);
    }
    .table-responsive table {
        width: 100%;
        min-width: 480px;
    }
    .table-responsive th, .table-responsive td {
        padding: 8px 10px;
        font-size: 12.5px;
        white-space: normal;
    }

    /* Pagination - Wrap Cleanly */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }
    .pagination .page-item .page-link {
        padding: 6px 12px;
        font-size: 13px;
        min-height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Real-Time Chat Container */
    .chat-container {
        height: calc(100dvh - 140px);
        min-height: 380px;
        border-radius: var(--radius-md);
    }
    .chat-bubble {
        max-width: 86%;
        font-size: 13px;
        padding: 10px 14px;
    }

    /* Discover Swipe Deck */
    .discover-deck-wrapper {
        padding: 6px 0 16px;
    }
    .discover-deck-container {
        height: clamp(380px, 62vh, 500px);
    }
}

/* 7. Large Mobile & Foldables (480px to 767.98px) */
@media (min-width: 480px) and (max-width: 767.98px) {
    .hero-search-box {
        padding: 22px 18px;
    }
    .stat-counter-card {
        padding: 12px 8px;
    }
    .stat-number-glow {
        font-size: 1.35rem;
    }
    .ceremony-card-img-wrap {
        height: clamp(210px, 48vw, 250px);
    }
}

/* 8. Standard Mobile (360px to 479.98px) */
@media (min-width: 360px) and (max-width: 479.98px) {
    .hero-section {
        padding: 28px 0 20px;
    }
    .hero-search-box {
        padding: 16px 12px;
    }
    .stat-counter-card {
        padding: 8px 4px;
    }
    .stat-number-glow {
        font-size: 1.18rem;
    }
    .ceremony-card-img-wrap {
        height: clamp(190px, 52vw, 240px);
        aspect-ratio: 4 / 3;
    }
    .dream-wedding-banner-img {
        max-height: 180px;
    }
}

/* 9. Small Mobile Devices (320px to 359.98px) */
/* Extreme Constraint: iPhone SE 1st gen, Galaxy Fold Cover Screen */
@media (max-width: 359.98px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .site-logo-img {
        height: 35px !important;
    }
    .navbar-toggler {
        padding: 4px 6px !important;
        font-size: 11px !important;
    }
    .navbar-toggler span.fs-8 {
        display: none !important;
    }
    .hero-section {
        padding: 20px 0 16px !important;
    }
    .hero-search-box {
        padding: 12px 10px !important;
        border-radius: var(--radius-md) !important;
    }
    .stat-counter-card {
        padding: 6px 2px !important;
        border-radius: var(--radius-sm) !important;
    }
    .stat-number-glow {
        font-size: 1.05rem !important;
    }
    .stat-counter-card small {
        font-size: 9.5px !important;
    }
    .stat-card {
        padding: 8px 4px !important;
        border-radius: var(--radius-sm) !important;
    }
    .stat-val {
        font-size: 16px !important;
    }
    .stat-lbl {
        font-size: 9.5px !important;
    }
    .heritage-card {
        padding: 12px 10px !important;
        border-radius: var(--radius-sm) !important;
    }
    .btn {
        font-size: 12px !important;
        padding: 8px 10px !important;
        min-height: 40px !important;
    }
    .btn-royal-gold, .btn-royal-crimson, .btn-heritage {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
    .community-pill-btn {
        padding: 5px 9px !important;
        font-size: 11px !important;
    }
    .ceremony-card-img-wrap {
        height: 180px !important;
        aspect-ratio: 4 / 3 !important;
    }
    .dream-wedding-banner-img {
        max-height: 160px !important;
    }
    .mobile-bottom-nav {
        height: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .mobile-bottom-nav .nav-item {
        font-size: 9.5px !important;
        min-height: 42px !important;
    }
    .mobile-bottom-nav .nav-item svg {
        width: 19px !important;
        height: 19px !important;
    }
    .discover-deck-container {
        height: 380px !important;
    }
    .social-icon-btn {
        width: 32px !important;
        height: 32px !important;
    }
}

/* 10. Smartphone Landscape Orientation (Max Height 520px) */
@media (orientation: landscape) and (max-height: 520px) {
    .site-navbar {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }
    .site-logo-img {
        height: 34px !important;
    }
    .hero-section {
        padding: 18px 0 14px !important;
    }
    .mobile-bottom-nav {
        height: calc(48px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .mobile-bottom-nav .nav-item {
        font-size: 9.5px !important;
        min-height: 38px !important;
        padding: 2px 0 !important;
    }
    .mobile-bottom-nav .nav-item svg {
        width: 18px !important;
        height: 18px !important;
        margin-bottom: 0 !important;
    }
    body {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .chat-container {
        height: calc(100vh - 100px) !important;
        min-height: 280px !important;
    }
    .discover-deck-container {
        height: 320px !important;
    }
    .modal-body, .offcanvas-body {
        max-height: 70vh !important;
        overflow-y: auto !important;
    }
}

/* ==========================================================================
   MEMBERSHIP PLANS & PRICING COMPONENT STYLES
   ========================================================================== */

.membership-plan-card {
    background-color: var(--surface);
    border: 1.5px solid var(--border);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    box-shadow: 0 4px 18px rgba(136, 19, 55, 0.05);
    position: relative;
}

.membership-plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(136, 19, 55, 0.16);
    border-color: var(--secondary);
}

.membership-plan-card.recommended-plan {
    border: 2px solid #f59e0b;
    box-shadow: 0 16px 40px -8px rgba(180, 83, 9, 0.3);
    background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
    animation: pulseGoldAura 3.5s infinite;
}

.membership-plan-card.rm-plan-card {
    border: 2px solid #fde68a;
    background: linear-gradient(180deg, #fffcf6 0%, #ffffff 100%);
}

.membership-plan-card.rm-plan-card.recommended-plan {
    border: 2px solid #d97706;
}

.plan-badge-wrapper {
    z-index: 2;
    animation: floatGentle 3s ease-in-out infinite;
}

.plan-badge {
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 50%, #d97706 100%);
    color: #ffffff;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}

.rm-plan-card .plan-badge {
    background: linear-gradient(135deg, #881337 0%, #b45309 100%);
    box-shadow: 0 4px 14px rgba(136, 19, 55, 0.4);
}

.category-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-full);
}

.category-pill-self {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.category-pill-rm {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.validity-tag {
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary-border);
}

.currency-symbol {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-right: 2px;
}

.price-value {
    font-size: 2.35rem;
    line-height: 1;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.price-suffix {
    font-size: 1rem;
    font-weight: 600;
}

.feature-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.feature-icon-unlimited {
    background-color: var(--success-light);
    color: var(--success);
}

.feature-icon-rm {
    background-color: var(--secondary-light);
    color: var(--secondary);
    border: 1px solid var(--secondary-border);
}

.feature-icon-muted {
    background-color: #f1f5f9;
    color: #94a3b8;
}

.plan-cta-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    min-height: 48px;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    border: none;
}

.plan-cta-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #4c0519 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(136, 19, 55, 0.28);
    transform: translateY(-1px);
}

.recommended-plan .plan-cta-btn {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    color: #ffffff;
}

.recommended-plan .plan-cta-btn:hover {
    background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(180, 83, 9, 0.32);
}

/* Membership Section Headers & Banners */
.membership-category-banner {
    background: linear-gradient(135deg, #fffdf9 0%, #fff1f2 100%);
    border: 1.5px solid #fecdd3;
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
}

.membership-category-banner-rm {
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
    border: 1.5px solid #fde68a;
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-warm);
}

.helpline-pill {
    background: #ffffff;
    border: 1.5px solid var(--secondary-border);
    color: var(--secondary-hover);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

/* Social media & footer utilities */
.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--surface);
    border: 1.5px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--text-muted);
    transition: all var(--transition-normal);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    line-height: 1;
}

.social-icon-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.social-icon-btn.social-whatsapp {
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.35);
}
.social-icon-btn.social-whatsapp:hover {
    background-color: #25D366;
    color: #ffffff !important;
    border-color: #25D366;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.social-icon-btn.social-instagram {
    color: #E1306C;
    border-color: rgba(225, 48, 108, 0.35);
}
.social-icon-btn.social-instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(225, 48, 108, 0.4);
}

.social-icon-btn.social-facebook {
    color: #1877F2;
    border-color: rgba(24, 119, 242, 0.35);
}
.social-icon-btn.social-facebook:hover {
    background-color: #1877F2;
    color: #ffffff !important;
    border-color: #1877F2;
    box-shadow: 0 6px 18px rgba(24, 119, 242, 0.4);
}

.social-icon-btn.social-youtube {
    color: #FF0000;
    border-color: rgba(255, 0, 0, 0.35);
}
.social-icon-btn.social-youtube:hover {
    background-color: #FF0000;
    color: #ffffff !important;
    border-color: #FF0000;
    box-shadow: 0 6px 18px rgba(255, 0, 0, 0.4);
}

.hover-primary {
    transition: color var(--transition-fast);
}

.hover-primary:hover {
    color: var(--primary) !important;
}

.letter-spacing-1 {
    letter-spacing: 0.06em;
}

/* ==========================================================================
   MATRIMONIAL INDUSTRY ADVANCED FEATURES (SHAADI, BHARAT, ANUROOP, JEEVANSATHI)
   ========================================================================== */

/* Community Matchmaking Quick Pills (like BharatMatrimony / MarathiMatrimony) */
.community-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background-color: var(--bg-card);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.06);
    transition: all var(--transition-normal);
}

.community-pill-btn:hover {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #b45309;
    color: #881337;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(180, 83, 9, 0.15);
}

/* Photo Watermark Security Badge (like Jeevansathi Prime & Shaadi Protection) */
.photo-watermark-tag {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(136, 19, 55, 0.82);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(254, 230, 138, 0.4);
    pointer-events: none;
    z-index: 3;
}

/* Physical Offline Trust Bureau Card (like Anuroop Mandal & Jeevansathi Match Point) */
.offline-bureau-card {
    background: linear-gradient(135deg, #ffffff 0%, #fffdf8 100%);
    border: 2px solid #fde68a;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: 0 8px 30px rgba(180, 83, 9, 0.10);
}

/* ==========================================================================
   DISCOVER MATCHES — SWIPEABLE DECK & RESPONSIVE GRID
   ========================================================================== */

/* Top Controls & View Switcher */
.discover-top-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.discover-view-switcher {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: var(--radius-full);
    padding: 3px;
    border: 1px solid var(--border);
}

.discover-view-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.discover-view-btn.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Mobile Swipe Deck Wrapper & Container */
.discover-deck-wrapper {
    max-width: 440px;
    margin: 0 auto;
    padding: 10px 0 24px;
}

.discover-deck-container {
    position: relative;
    width: 100%;
    height: 550px;
    perspective: 1000px;
    margin: 0 auto 16px;
}

/* Individual Swipe Deck Card */
.deck-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1.5px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    transform-origin: 50% 100%;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.25s ease;
    will-change: transform, opacity;
}

.deck-card.is-active {
    z-index: 10;
    cursor: grab;
}

.deck-card.is-active:active {
    cursor: grabbing;
}

.deck-card.is-next {
    z-index: 9;
    transform: translateY(12px) scale(0.96);
    opacity: 0.92;
    pointer-events: none;
}

.deck-card.is-third {
    z-index: 8;
    transform: translateY(24px) scale(0.92);
    opacity: 0.75;
    pointer-events: none;
}

.deck-card.is-hidden {
    z-index: 1;
    transform: translateY(36px) scale(0.88);
    opacity: 0;
    pointer-events: none;
}

/* Flying Out Transitions */
.deck-card.fly-right {
    transition: transform 0.42s ease-out, opacity 0.42s ease-out !important;
    transform: translate(140%, 35px) rotate(25deg) !important;
    opacity: 0 !important;
}

.deck-card.fly-left {
    transition: transform 0.42s ease-out, opacity 0.42s ease-out !important;
    transform: translate(-140%, 35px) rotate(-25deg) !important;
    opacity: 0 !important;
}

.deck-card.fly-up {
    transition: transform 0.38s ease-out, opacity 0.38s ease-out !important;
    transform: translate(0, -140%) scale(0.9) !important;
    opacity: 0 !important;
}

.deck-card.fly-down {
    transition: transform 0.38s ease-out, opacity 0.38s ease-out !important;
    transform: translate(0, 140%) scale(0.9) !important;
    opacity: 0 !important;
}

/* Floating Decision Stamps on Card */
.deck-stamp {
    position: absolute;
    top: 24px;
    padding: 6px 18px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 10px;
    border: 3.5px solid;
    pointer-events: none;
    opacity: 0;
    z-index: 20;
    transform: scale(0.85);
    transition: opacity 0.1s linear, transform 0.1s linear;
}

.deck-stamp-like {
    left: 20px;
    color: #16a34a;
    border-color: #16a34a;
    background: rgba(240, 253, 244, 0.85);
    transform: rotate(-18deg) scale(0.85);
}

.deck-stamp-pass {
    right: 20px;
    color: #dc2626;
    border-color: #dc2626;
    background: rgba(254, 242, 242, 0.85);
    transform: rotate(18deg) scale(0.85);
}

.deck-stamp-view {
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    color: #b45309;
    border-color: #b45309;
    background: rgba(254, 243, 199, 0.95);
}

/* Photo Area in Deck Card */
.deck-card-photo-box {
    position: relative;
    width: 100%;
    height: 58%;
    min-height: 270px;
    background: radial-gradient(circle, rgba(136, 19, 55, 0.04) 0%, rgba(15, 23, 42, 0.06) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deck-card-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.deck-card-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    pointer-events: none;
}

/* Content Area in Deck Card */
.deck-card-content {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: var(--bg-card);
    color: var(--text-primary);
    justify-content: space-between;
}

/* Deck Action Buttons Bar */
.deck-action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.btn-deck-pass {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 2px solid #ef4444;
    background: #ffffff;
    color: #dc2626;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.2);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.btn-deck-pass:hover, .btn-deck-pass:active {
    transform: scale(1.1);
    background: #fef2f2;
}

.btn-deck-interest {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #881337 0%, #b45309 100%);
    color: #ffffff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 22px rgba(136, 19, 55, 0.35);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.btn-deck-interest:hover, .btn-deck-interest:active {
    transform: scale(1.12);
    box-shadow: 0 8px 26px rgba(136, 19, 55, 0.45);
}

.btn-deck-chat {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 2px solid #059669;
    background: #ffffff;
    color: #059669;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.2);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.btn-deck-chat:hover, .btn-deck-chat:active {
    transform: scale(1.1);
    background: #ecfdf5;
}

.btn-deck-label {
    font-size: 10px;
    font-weight: 700;
    margin-top: 1px;
}

/* Floating Toast Feedback for Swipes */
.swipe-feedback-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #1e293b;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 1060;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.swipe-feedback-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.swipe-feedback-toast.toast-like {
    background: #065f46;
    border: 1.5px solid #34d399;
}

.swipe-feedback-toast.toast-pass {
    background: #475569;
    border: 1.5px solid #94a3b8;
}

/* Gesture Hints Guide */
.deck-gesture-hints {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}

.deck-gesture-hints span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   MASTERCLASS ANIMATION & ULTRA-LUXURY HERITAGE DESIGN SYSTEM
   World-class matrimonial UI with living animations, glassmorphism & gold accents
   ========================================================================== */

/* 1. Custom Luxury Smooth Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #FAF8F5;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d97706 0%, #881337 100%);
    border-radius: 999px;
    border: 2px solid #FAF8F5;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b45309 0%, #701a31 100%);
}

/* 2. Keyframe Masterclass Animations */
@keyframes auroraGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes goldShimmerSweep {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

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

@keyframes floatGentleOpposite {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(6px) rotate(1deg);
    }
}

@keyframes pulseGoldAura {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.45);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(217, 119, 6, 0);
    }
}

@keyframes pulseCrimsonAura {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(136, 19, 55, 0.45);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(136, 19, 55, 0);
    }
}

@keyframes spinVedicMotif {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes heartBeatSmooth {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.15);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.12);
    }
    70% {
        transform: scale(1);
    }
}

@keyframes iridescentBorderShift {
    0% {
        border-color: #f59e0b;
    }
    33% {
        border-color: #881337;
    }
    66% {
        border-color: #e11d48;
    }
    100% {
        border-color: #f59e0b;
    }
}

/* 3. Hero Section Luxury Aura & Depth */
.hero-section {
    position: relative;
    padding: 70px 0 60px;
    background: radial-gradient(circle at 15% 25%, rgba(254, 243, 199, 0.6) 0%, transparent 45%),
                radial-gradient(circle at 85% 75%, rgba(255, 228, 230, 0.5) 0%, transparent 45%),
                linear-gradient(180deg, #FAF8F5 0%, #FFFFFF 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.04) 10%, transparent 20%),
                radial-gradient(circle, rgba(136, 19, 55, 0.03) 15%, transparent 25%);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    animation: auroraGlow 30s ease infinite;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* 4. Luxury Royal Typography Classes */
.royal-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.shimmer-gold-text {
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 25%, #d97706 50%, #f59e0b 75%, #92400e 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShimmerSweep 5s linear infinite;
    display: inline-block;
    font-weight: 800;
}

.royal-crimson-text {
    background: linear-gradient(135deg, #881337 0%, #e11d48 50%, #701a31 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 800;
}

/* 5. Glassmorphism & Elevated Heritage Cards */
.luxury-glass-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(232, 226, 217, 0.85);
    border-radius: var(--radius-xl);
    box-shadow: 0 16px 36px -8px rgba(136, 19, 55, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.luxury-glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px -10px rgba(136, 19, 55, 0.16), 0 8px 20px rgba(217, 119, 6, 0.1);
    border-color: rgba(217, 119, 6, 0.4);
}

.heritage-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px -6px rgba(136, 19, 55, 0.06);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.heritage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(136, 19, 55, 0.14);
}

/* 6. Interactive 3D Card Hover Effects */
.hover-elevate-3d {
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform, box-shadow;
}

.hover-elevate-3d:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 22px 45px -10px rgba(136, 19, 55, 0.18), 0 10px 20px -5px rgba(217, 119, 6, 0.12) !important;
}

/* 7. Royal Action Buttons with Light Shimmer */
.btn-royal-gold {
    position: relative;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    color: #ffffff !important;
    border: none;
    font-weight: 700;
    border-radius: var(--radius-full);
    padding: 12px 28px;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.32);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-royal-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: all 0.6s ease;
}

.btn-royal-gold:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.45);
    color: #ffffff !important;
}

.btn-royal-gold:hover::after {
    left: 140%;
}

.btn-royal-gold:active {
    transform: translateY(0px) scale(0.98);
}

.btn-royal-crimson {
    position: relative;
    background: linear-gradient(135deg, #881337 0%, #701a31 50%, #4c0519 100%);
    color: #ffffff !important;
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-weight: 700;
    border-radius: var(--radius-full);
    padding: 12px 28px;
    box-shadow: 0 8px 20px rgba(136, 19, 55, 0.28);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-royal-crimson:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 26px rgba(136, 19, 55, 0.4);
    border-color: #f59e0b;
    color: #ffffff !important;
}

.btn-pulse-gold {
    animation: pulseGoldAura 2.2s infinite;
}

.btn-pulse-crimson {
    animation: pulseCrimsonAura 2.2s infinite;
}

/* 8. Floating Micro-Badges & Pulsing Verification */
.float-animation {
    animation: floatGentle 3.5s ease-in-out infinite;
}

.float-animation-alt {
    animation: floatGentleOpposite 4s ease-in-out infinite;
}

.heart-beat-anim {
    animation: heartBeatSmooth 2s ease-in-out infinite;
    display: inline-block;
}

.badge-trust-score {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.badge-trust-score.high-trust {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

.badge-compatibility {
    background: linear-gradient(135deg, #881337 0%, #e11d48 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3);
}

.badge-verified-gold {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    color: #92400e;
    font-weight: 700;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

/* 9. Stat Counters with Luxury Styling */
.stat-counter-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(232, 226, 217, 0.9);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.stat-counter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
}

.stat-counter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.15);
}

.stat-number-glow {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    color: #881337;
    display: block;
    line-height: 1.1;
}

/* 10. Community Matrimonial Pills with Bounce Feedback */
.community-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.community-pill-btn:hover {
    transform: translateY(-3px) scale(1.03);
    background: var(--bg-secondary);
    border-color: var(--gold-bright);
    color: var(--primary);
    box-shadow: 0 6px 14px rgba(136, 19, 55, 0.15);
}

/* 11. Profile Cards in Grid: Luxury Image Mask & Border */
.profile-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(136, 19, 55, 0.18), 0 8px 18px rgba(217, 119, 6, 0.1);
    border-color: rgba(217, 119, 6, 0.35);
}

.profile-card-image-wrap {
    overflow: hidden;
    position: relative;
    padding-top: 110%;
    background: #f1ece4;
}

.profile-card-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.profile-card:hover .profile-card-image-wrap img {
    transform: scale(1.06);
}

.photo-watermark-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 8px;
    text-align: center;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #ffffff;
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 0.5px;
    z-index: 2;
    pointer-events: none;
}

/* 12. Floating Quick Search Box on Hero */
.hero-search-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid rgba(217, 119, 6, 0.28);
    box-shadow: 0 20px 48px -12px rgba(136, 19, 55, 0.16), 0 8px 24px rgba(217, 119, 6, 0.12);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-search-box:hover {
    box-shadow: 0 24px 54px -10px rgba(136, 19, 55, 0.2), 0 10px 28px rgba(217, 119, 6, 0.18);
    border-color: rgba(217, 119, 6, 0.45);
}

/* 13. Festive Confetti Particle Elements (Pure CSS) */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* 14. Royal Wedding Call-To-Action Banner */
.cta-wedding-banner {
    background: linear-gradient(135deg, rgba(136, 19, 55, 0.94) 0%, rgba(112, 26, 49, 0.94) 100%), url('../images/home_background_banner.png') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   15. PROFILE PHOTO GALLERY & FULL-SCREEN LIGHTBOX VIEWER
   Universal Responsive Lightbox: Android, iPhone, Tablet, Desktop, 4K Screens
   ========================================================================== */

/* Main Profile Image Interactive Container */
.profile-main-photo-wrap {
    cursor: pointer;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile-main-photo-wrap:hover {
    box-shadow: 0 10px 28px rgba(136, 19, 55, 0.16) !important;
}

.profile-main-photo-wrap:hover .main-photo-smooth {
    transform: scale(1.025);
}

.main-photo-smooth {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-view-badge {
    letter-spacing: 0.3px;
    font-size: 0.72rem !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.main-photo-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 12, 20, 0.38);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2;
    pointer-events: none;
}

.profile-main-photo-wrap:hover .main-photo-hover-overlay {
    opacity: 1;
}

.main-photo-hover-pill {
    background: rgba(15, 12, 20, 0.82);
    color: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.6);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transform: translateY(6px);
    transition: transform 0.25s ease;
}

.profile-main-photo-wrap:hover .main-photo-hover-pill {
    transform: translateY(0);
}

/* Page Thumbnails Section & Horizontal Track */
.profile-gallery-thumbnails-section {
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
}

.profile-thumbnails-scroll-container {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.profile-thumbnails-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 8px 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.5) transparent;
}

.profile-thumbnails-track::-webkit-scrollbar {
    height: 4px;
}

.profile-thumbnails-track::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 4px;
}

.profile-thumb-btn {
    flex: 0 0 auto;
    width: 62px;
    height: 62px;
    padding: 0;
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-bs-theme="dark"] .profile-thumb-btn,
[data-theme="dark"] .profile-thumb-btn {
    border-color: rgba(255, 255, 255, 0.15);
    background: #1a1627;
}

.profile-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0f172a;
    display: block;
}

.profile-thumb-btn:hover {
    transform: translateY(-2px);
    border-color: var(--gold-metallic, #d4af37);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.28);
}

.profile-thumb-btn.active {
    border-color: var(--gold-metallic, #d4af37) !important;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.4), 0 4px 12px rgba(136, 19, 55, 0.18) !important;
    transform: scale(1.04);
}

.thumb-badge-num {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
    line-height: 1;
    pointer-events: none;
}

.thumb-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #1e1e24;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-bs-theme="dark"] .thumb-scroll-btn,
[data-theme="dark"] .thumb-scroll-btn {
    background: #2a243c;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.thumb-scroll-btn.scroll-left {
    left: -12px;
}

.thumb-scroll-btn.scroll-right {
    right: -12px;
}

.thumb-scroll-btn:hover {
    background: var(--gold-metallic, #d4af37);
    color: #ffffff;
    border-color: var(--gold-metallic, #d4af37);
}

/* ==========================================================================
   Full-Screen Lightbox Modal Architecture
   ========================================================================== */
.profile-lightbox-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.profile-lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 16, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1;
    cursor: zoom-out;
}

.lightbox-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100dvh;
}

/* Lightbox Top Control Bar */
.lightbox-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: max(14px, env(safe-area-inset-top)) 20px 10px 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, transparent 100%);
    z-index: 5;
}

.lightbox-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lightbox-counter-pill {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
}

.lightbox-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lightbox-btn-action {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-btn-action:hover {
    background: rgba(220, 38, 38, 0.9);
    border-color: rgba(220, 38, 38, 1);
    color: #ffffff;
    transform: scale(1.08);
}

/* Lightbox Stage (Photo Viewport) */
.lightbox-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 16px;
    min-height: 0;
    user-select: none;
    overflow: hidden;
}

.lightbox-image-wrapper {
    position: relative;
    max-width: 92vw;
    max-height: calc(100dvh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Photo Display: contain, never crop, maintain aspect ratio */
.lightbox-active-img {
    max-width: 92vw;
    max-height: calc(100dvh - 180px);
    width: auto;
    height: auto;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-nav-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.lightbox-nav-control.lightbox-prev {
    left: 20px;
}

.lightbox-nav-control.lightbox-next {
    right: 20px;
}

.lightbox-nav-control:hover {
    background: var(--gold-metallic, #d4af37);
    color: #ffffff;
    border-color: var(--gold-metallic, #d4af37);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.lightbox-nav-control:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox-watermark-tag {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-family: monospace;
    font-size: 11px;
    padding: 3px 12px;
    border-radius: 999px;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Lightbox Bottom Strip & Thumbnails Carousel */
.lightbox-bottom-strip {
    padding: 8px 20px max(14px, env(safe-area-inset-bottom)) 20px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, transparent 100%);
    z-index: 5;
    display: flex;
    justify-content: center;
}

.lightbox-thumbs-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    padding: 6px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.6) transparent;
}

.lightbox-thumbs-carousel::-webkit-scrollbar {
    height: 4px;
}

.lightbox-thumbs-carousel::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.6);
    border-radius: 4px;
}

.lightbox-thumb-item {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: #111111;
    padding: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.lightbox-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
    display: block;
}

.lightbox-thumb-item:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.6);
}

.lightbox-thumb-item.active {
    opacity: 1;
    border-color: var(--gold-metallic, #d4af37) !important;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.8) !important;
    transform: scale(1.08);
}

.lightbox-thumb-num {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 3px;
    border-radius: 3px;
    line-height: 1;
    pointer-events: none;
}

/* ==========================================================================
   Responsive Adaptations: Mobile & Tablets
   ========================================================================== */
@media (max-width: 768px) {
    .profile-thumb-btn {
        width: 54px;
        height: 54px;
        border-radius: 10px;
    }

    .lightbox-nav-control {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .lightbox-nav-control.lightbox-prev {
        left: 8px;
    }

    .lightbox-nav-control.lightbox-next {
        right: 8px;
    }

    .lightbox-thumb-item {
        width: 50px;
        height: 50px;
        border-radius: 8px;
    }

    .lightbox-topbar {
        padding: max(10px, env(safe-area-inset-top)) 14px 6px 14px;
    }

    .lightbox-bottom-strip {
        padding: 6px 14px max(10px, env(safe-area-inset-bottom)) 14px;
    }

    .lightbox-counter-pill {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
}

@media (max-width: 480px) {
    .profile-thumb-btn {
        width: 50px;
        height: 50px;
        border-radius: 8px;
    }

    .lightbox-image-wrapper {
        max-width: 98vw;
        max-height: calc(100dvh - 145px);
    }

    .lightbox-active-img {
        max-width: 98vw;
        max-height: calc(100dvh - 145px);
        border-radius: 6px;
    }

    .lightbox-nav-control {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        background: rgba(0, 0, 0, 0.45);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .lightbox-nav-control.lightbox-prev {
        left: 4px;
    }

    .lightbox-nav-control.lightbox-next {
        right: 4px;
    }

    .lightbox-thumb-item {
        width: 46px;
        height: 46px;
    }

    .lightbox-btn-action {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   Universal 3-Language Header Switcher Styles [ मराठी ] [ हिन्दी ] [ English ]
   ========================================================================== */
.lang-switcher-container {
    display: inline-flex;
    align-items: center;
}

.lang-switcher-pills {
    display: inline-flex;
    align-items: center;
    background: rgba(248, 249, 250, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
    padding: 2px;
    gap: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.btn-lang {
    border: 1px solid transparent;
    background: transparent;
    color: #4b5563;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 10px;
    line-height: 1.25;
    border-radius: 9999px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
}

.btn-lang:hover:not(.active) {
    background: rgba(128, 0, 32, 0.06);
    color: #800020;
}

.btn-lang.active {
    background: linear-gradient(135deg, #800020 0%, #991b1b 100%) !important;
    color: #ffffff !important;
    border-color: #d4af37 !important;
    box-shadow: 0 2px 6px rgba(128, 0, 32, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

/* Dark Mode Overrides */
[data-bs-theme="dark"] .lang-switcher-pills,
[data-theme="dark"] .lang-switcher-pills {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .btn-lang,
[data-theme="dark"] .btn-lang {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .btn-lang:hover:not(.active),
[data-theme="dark"] .btn-lang:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: #fef08a;
}

[data-bs-theme="dark"] .btn-lang.active,
[data-theme="dark"] .btn-lang.active {
    background: linear-gradient(135deg, #991b1b 0%, #b91c1c 100%) !important;
    color: #fef08a !important;
    border-color: #eab308 !important;
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.25);
}

/* Mobile Language Dropdown Adjustments */
.dropdown-menu .btn-lang {
    width: 100%;
    text-align: left;
    border-radius: 6px;
    padding: 6px 12px;
}

.dropdown-menu .btn-lang.active {
    border-radius: 6px;
    transform: none;
}

/* ==========================================================================
   PWA (Progressive Web App) Install Banner & Prompt Styles
   ========================================================================== */
.pwa-install-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1040;
    max-width: 440px;
    width: calc(100% - 32px);
    animation: pwaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.pwa-banner-card {
    background-color: var(--bg-card, #ffffff);
    color: var(--text-primary, #1e293b);
    border: 1px solid var(--border-color, #fecdd3);
    border-radius: 20px;
    padding: 14px 18px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.pwa-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    background: #ffffff;
    padding: 2px;
    flex-shrink: 0;
}

.pwa-title {
    font-size: 0.95rem;
    color: var(--text-primary, #1e293b);
}

.pwa-subtitle {
    font-size: 0.8rem;
}

.btn-crimson {
    background: linear-gradient(135deg, #800020 0%, #b91c1c 100%);
    color: #ffffff !important;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-crimson:hover {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(128, 0, 32, 0.3);
}

@media (max-width: 768px) {
    .pwa-install-banner {
        left: 16px;
        right: 16px;
        bottom: 76px;
        max-width: none;
        width: auto;
    }
}

/* ==========================================================================
   COMPLETE IMAGE VISIBILITY & 100% UN-CROPPED DISPLAY SYSTEM
   ========================================================================== */

/* Universal Image Safeguards: Never stretch or distort */
img {
    max-width: 100%;
}

/* Smart Responsive Image Display: object-fit: contain ensures 100% visibility without cropping */
.img-contain,
.object-fit-contain,
.profile-card-image-wrap img,
.deck-card-photo-box img,
.biodata-photo-frame img,
.dream-wedding-banner-img,
.poster-heritage-img,
.poster-features-img,
.story-photo-wrap img,
.ceremony-card-img-wrap img,
.profile-thumb-btn img,
.lightbox-thumb-item img,
.pwa-app-icon {
    object-fit: contain !important;
}

/* Brand Logos: 100% visible, unclipped, crisp across all screens */
.site-logo-img,
.footer-logo-img,
.auth-logo-img {
    max-width: 100%;
    width: auto;
    object-fit: contain !important;
}

/* Avatars & Circular Frames: Never crop, preserve aspect ratio with background padding */
.avatar-img-contain,
.rounded-circle.object-fit-contain,
.rounded-circle.object-fit-cover {
    object-fit: contain !important;
    background-color: var(--surface-muted, #f1f5f9);
    padding: 1px;
}

/* Neutral backdrop & letterbox styling for image containers */
.profile-card-image-wrap,
.deck-card-photo-box,
.story-photo-wrap,
.ceremony-card-img-wrap {
    background: radial-gradient(circle, rgba(136, 19, 55, 0.04) 0%, rgba(15, 23, 42, 0.06) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-bs-theme="dark"] .profile-card-image-wrap,
[data-theme="dark"] .profile-card-image-wrap,
[data-bs-theme="dark"] .deck-card-photo-box,
[data-theme="dark"] .deck-card-photo-box {
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, rgba(15, 23, 42, 0.4) 100%);
}

/* Image Upload Live Full Preview Component */
.image-upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    padding: 24px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease;
}

.image-upload-dropzone:hover,
.image-upload-dropzone.drag-active {
    border-color: #800020;
    background: #fff1f2;
}

.image-upload-preview-box {
    width: 100%;
    min-height: 220px;
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.04) 0%, rgba(15, 23, 42, 0.09) 100%);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    margin-top: 14px;
    padding: 12px;
}

[data-bs-theme="dark"] .image-upload-preview-box,
[data-theme="dark"] .image-upload-preview-box {
    background: #0f172a;
}

.image-upload-preview-img {
    max-width: 100%;
    max-height: 390px;
    width: auto;
    height: auto;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease;
}

.image-upload-meta-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    margin-top: 10px;
    font-size: 0.82rem;
    color: #64748b;
}

/* Lightbox Interactive Zoom Controls */
.lightbox-zoom-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lightbox-zoom-level-pill {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.8rem;
    font-family: monospace;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}




