/* ============================================================

/* ── 1. DESIGN TOKENS ── */
:root {
    --black:          #000000;
    --white:          #FFFFFF;
    
    /* Gold Accents (Only for Black Backgrounds) */
    --gold:           #D4AF37;
    --gold-dark:      #B8860B;
    --gold-light:     #F9F1D7;
    --gold-gradient:  linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    --gold-glow:      0 0 15px rgba(212, 175, 55, 0.3);
    --black-gold-gradient: linear-gradient(145deg, #000000 0%, #121008 100%);

    --gray-50:        #FAFAFA;
    --gray-100:       #F6F6F6;
    --gray-200:       #EEEEEE;
    --gray-300:       #D9D9D9;
    --gray-400:       #B0B0B0;
    --gray-500:       #8D8D8D;
    --gray-600:       #545454;
    --gray-700:       #333333;
    --gray-800:       #1C1C1C;
    --gray-900:       #111111;

    --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-xs:      4px;
    --radius-sm:      6px; /* Uber style uses slightly sharper corners */
    --radius-md:      8px;
    --radius-lg:      12px;
    --radius-xl:      16px;
    --radius-pill:    9999px;

    --shadow-sm:      0 1px 4px rgba(0,0,0,0.06);
    --shadow-md:      0 4px 16px rgba(0,0,0,0.08); /* Minimalist shadows */
    --shadow-lg:      0 8px 32px rgba(0,0,0,0.1);
    --shadow-xl:      0 16px 48px rgba(0,0,0,0.12);

    --nav-height:     64px;
    --container:      1200px;

    --transition:     0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-md:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5; /* Uber uses slightly tighter line height for headlines */
    color: var(--black); /* Standardize on pure black for text */
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em; /* Subtle tightening for premium look */
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font); }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }

.hidden { display: none !important; }
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── 3. SCROLL PROGRESS ── */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: var(--black); /* Strict B&W on top */
    z-index: 10000;
    transition: width 0.1s linear;
}

/* ── 4. COOKIE BANNER ── */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 44px; /* Offset for better balance */
    transform: none;
    z-index: 9000;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    width: auto;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.1); /* Subtle dark border */
}
.cookie-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 200px; font-size: 14px; line-height: 1.5; }
.cookie-text strong { display: block; margin-bottom: 2px; }
.cookie-text span { color: var(--gray-400); }
.cookie-link { color: var(--green); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── 5. BACK TO TOP ── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 8000;
    width: 44px; height: 44px;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transform: translateY(16px);
    transition: all var(--transition);
    box-shadow: var(--shadow-lg);
}
.back-to-top svg { width: 18px; height: 18px; }
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { 
    background: var(--black); 
    color: var(--white); /* White accent on black background */
    transform: translateY(-2px); 
    box-shadow: var(--gold-glow);
}

/* ── 6. BUTTONS ── */
.btn-black, .btn-green {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--black);
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: var(--radius-sm); /* Sharper corners */
    transition: all var(--transition);
    white-space: nowrap;
    border: 1px solid transparent;
}
.btn-black:hover, .btn-green:hover { 
    background: var(--black); 
    color: var(--white); /* White text on black */
    border-color: var(--white); /* White border */
    box-shadow: var(--gold-glow);
    transform: translateY(-1px);
}
.btn-black:active, .btn-green:active { transform: translateY(0); }

.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: transparent;
    color: var(--black);
    font-weight: 600;
    font-size: 15px;
    padding: 13px 28px;
    border: 1.5px solid var(--black);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-outline:hover { 
    background: var(--black); 
    color: var(--white); /* Strict B&W toggle */
}
.btn-outline svg { width: 16px; height: 16px; }

.btn-white {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--white);
    color: var(--black);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-white:hover { background: var(--gray-100); }

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}
.btn-ghost:hover { background: var(--gray-100); color: var(--black); }

.btn-green-sm {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--black);
    color: var(--white);
    font-weight: 600;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.btn-green-sm:hover { 
    background: var(--black); 
    color: var(--white);
    box-shadow: var(--gold-glow);
}

.btn-ghost-sm {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent;
    color: var(--gray-600);
    font-weight: 600;
    font-size: 13px;
    padding: 10px 18px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.btn-ghost-sm:hover { border-color: var(--black); color: var(--black); background: var(--gray-100); }

.btn-outline-sm {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent;
    color: var(--black);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}
.btn-outline-sm:hover { border-color: var(--black); }

.btn-lg { padding: 17px 36px; font-size: 16px; }
.btn-full { width: 100%; }

.btn-itsme {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(135deg, #E30613 0%, #F15A24 100%);
    color: var(--white);
    font-weight: 800;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
    border: none;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.2);
    text-transform: none;
    letter-spacing: -0.2px;
}
.btn-itsme:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(227, 6, 19, 0.35);
    filter: saturate(1.1) brightness(1.05);
}
.btn-itsme:active {
    transform: translateY(0);
}
.btn-itsme svg { width: 22px; height: 22px; }

/* ── 7. NAVIGATION ── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    z-index: 5000;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.navbar.scrolled { 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05); /* Minimalist scroll shadow */
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-left { display: flex; align-items: center; gap: 32px; }

.logo {
    font-size: 18px;
    font-weight: 900;
    color: var(--black);
    letter-spacing: -0.8px;
    line-height: 1;
    text-transform: uppercase;
}
.logo-accent { color: var(--black); opacity: 0.6; } /* Subtle B&W contrast */

.nav-links.desktop-only { display: flex; align-items: center; gap: 4px; }
.nav-link {
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: color var(--transition);
}
.nav-link:hover { color: var(--black); }

.nav-mode-toggle {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 0;
}
.mode-tab {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}
.mode-tab.active {
    background: var(--black);
    color: var(--white);
}
.mode-tab:not(.active):hover { color: var(--black); background: var(--gray-200); }

.nav-right { display: flex; align-items: center; gap: 8px; }

.nav-icon-btn {
    position: relative;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav-icon-btn svg { width: 20px; height: 20px; }
.nav-icon-btn:hover { background: var(--gray-100); color: var(--black); }

.notif-dot {
    position: absolute;
    top: 8px; right: 8px;
    width: 8px; height: 8px;
    background: var(--black);
    border-radius: 50%;
    border: 2px solid var(--white);
    display: none;
}

.nav-cta { padding: 9px 20px; font-size: 14px; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.hamburger span {
    width: 20px; height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: all var(--transition-md);
    display: block;
}
.hamburger:hover { background: var(--gray-100); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Notifications Dropdown */
.notifications-dropdown {
    position: absolute;
    top: calc(var(--nav-height) + 8px);
    right: 24px;
    width: 360px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    animation: fadeInDown 0.2s ease;
    z-index: 999;
}
.notif-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--gray-200);
}
.notif-title { font-weight: 700; font-size: 15px; color: var(--black); }
.notif-clear-btn { font-size: 13px; color: var(--black); font-weight: 600; }
.notif-clear-btn:hover { text-decoration: underline; }

.notif-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition);
    cursor: pointer;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--gray-50); }
.notif-item.unread { background: var(--gray-50); }
.notif-item.unread:hover { background: var(--gray-100); }

.notif-icon {
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.notif-icon svg { width: 18px; height: 18px; }
.notif-icon.green { background: var(--gray-200); color: var(--black); }
.notif-icon.black { background: var(--gray-100); color: var(--black); }
.notif-icon.gray { background: var(--gray-200); color: var(--gray-600); }

.notif-body p { font-size: 14px; font-weight: 500; color: var(--black); line-height: 1.4; }
.notif-body span { font-size: 12px; color: var(--gray-500); margin-top: 2px; display: block; }

.btn-green-xs {
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-green-xs:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

.btn-ghost-xs {
    background: transparent;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-ghost-xs:hover { background: var(--gray-50); }

.notif-actions {
    margin-top: 8px;
    flex-wrap: wrap;
}

/* ── 8. MOBILE MENU ── */
.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0; bottom: 0;
    background: var(--black);
    z-index: 900;
    animation: fadeIn 0.2s ease;
    overflow-y: auto;
}
.mobile-menu-inner {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.mobile-menu-links { display: flex; flex-direction: column; }
.mobile-menu-links a {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-800);
    transition: color var(--transition);
    display: block;
}
.mobile-menu-links a:hover { color: var(--gray-400); }

/* ── 9. HERO ── */
.hero {
    min-height: 100vh;
    padding-top: var(--nav-height);
    background: var(--white);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 80px 24px 60px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 48px;
    align-items: center;
}

.hero-text { grid-column: 1; grid-row: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white); /* White on black */
    margin-bottom: 24px;
    padding: 8px 16px;
    background: var(--black);
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.badge-pulse {
    width: 8px; height: 8px;
    background: var(--gray-400);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
.badge-pulse.green { background: var(--black); }

.hero-title {
    font-size: clamp(44px, 7vw, 76px);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -2.5px;
    color: var(--black);
    margin-bottom: 24px;
}
.hero-accent {
    font-style: normal; /* Uber style is less 'italic', more bold underline */
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 4px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--gray-600);
    max-width: 460px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Hero Visual (floating cards) */
.hero-visual {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 380px;
}

.hero-card-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.card-1 {
    top: 20px; left: 0;
    width: 260px;
    animation: float1 6s ease-in-out infinite;
}
.card-2 {
    top: 50%; left: 50%;
    transform: translate(-30%, -50%);
    width: 240px;
    animation: float2 6s ease-in-out infinite 1.5s;
}
.card-3 {
    bottom: 20px; right: 0;
    width: 220px;
    animation: float3 6s ease-in-out infinite 3s;
}

.fc-label {
    display: inline-flex;
    font-size: 11px; font-weight: 700;
    background: var(--gray-200);
    color: var(--black);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.fc-label.music { background: var(--gray-300); color: var(--black); }

.fc-title { font-size: 16px; font-weight: 700; color: var(--black); margin-bottom: 6px; }
.fc-meta { font-size: 12px; color: var(--gray-500); margin-bottom: 10px; }
.fc-bar { height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.fc-bar-fill { height: 100%; background: var(--black); border-radius: 3px; }
.fc-pct { font-size: 12px; font-weight: 600; color: var(--black); }

.match-badge {
    display: inline-flex;
    font-size: 12px; font-weight: 700;
    background: var(--black);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 10px;
}
.match-badge.green { background: var(--white); color: var(--black); }

.sponsor-card .roi-label { font-size: 12px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.sponsor-card .roi-value { font-size: 42px; font-weight: 900; color: var(--black); line-height: 1; margin-bottom: 4px; }
.sponsor-card .roi-sub { font-size: 12px; color: var(--gray-500); }

/* Hero Stats Bar */
.hero-stats-bar {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--black-gold-gradient); /* Subtle gold gradient on black */
    border-radius: var(--radius-xl); /* More radius */
    padding: 32px 48px;
    margin-top: 40px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}
.hero-stat { flex: 1; text-align: center; }
.hero-stat-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--white); /* White accent on black */
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 4px;
}
.hero-stat-label { font-size: 12px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
    margin: 0 32px;
}

/* ── 10. CATEGORIES ── */
.categories-section {
    padding: 24px 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: var(--nav-height);
    z-index: 100;
}
.categories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.category-pill {
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap;
    padding: 10px 20px;
    border-radius: var(--radius-sm); /* Sharper */
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    background: var(--gray-100);
    border: 1px solid transparent;
    transition: all var(--transition);
    flex-shrink: 0;
}
.category-pill:hover { background: var(--gray-200); color: var(--black); }
.category-pill.active {
    background: var(--black);
    color: var(--white); /* White on black */
    border-color: var(--black);
}

/* ── 11. SECTION HEADERS ── */
.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 16px;
}
.section-header.centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    background: var(--black);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}
.section-tag.light { background: rgba(255,255,255,0.2); color: var(--white); }
.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    color: var(--black);
    letter-spacing: -1px;
    line-height: 1.1;
}
.section-subtitle {
    font-size: 16px;
    color: var(--gray-500);
    margin-top: 8px;
}

/* ── 12. DISCOVER SECTION ── */
.discover-section {
    padding: 80px 0;
    background: var(--white);
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 0;
}
.view-btn {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600;
    color: var(--gray-500);
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}
.view-btn svg { width: 16px; height: 16px; }
.view-btn.active { background: var(--white); color: var(--black); box-shadow: var(--shadow-sm); }
.view-btn:not(.active):hover { color: var(--black); }

/* Search */
.search-filters-container { margin-bottom: 32px; }
.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 1.5px solid var(--black);
    border-radius: var(--radius-sm);
    padding: 0 20px;
    height: 52px;
    transition: border-color var(--transition), box-shadow var(--transition);
    margin-bottom: 12px;
}
.search-bar:focus-within {
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.search-icon { width: 20px; height: 20px; color: var(--gray-400); flex-shrink: 0; }
.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--black);
    background: transparent;
}
.search-bar input::placeholder { color: var(--gray-400); }
.search-clear-btn {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-500);
    border-radius: var(--radius-pill);
    background: var(--gray-200);
    transition: all var(--transition);
    flex-shrink: 0;
}
.search-clear-btn svg { width: 14px; height: 14px; }
.search-clear-btn:hover { background: var(--gray-300); color: var(--black); }

.filters-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.filter-btn {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600;
    color: var(--black);
    padding: 10px 18px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-pill);
    transition: all var(--transition);
    background: var(--white);
}
.filter-btn svg { width: 16px; height: 16px; }
.filter-btn:hover { border-color: var(--black); }
.filter-count-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px;
    background: var(--black);
    color: var(--white);
    font-size: 11px; font-weight: 700;
    border-radius: var(--radius-pill);
    padding: 0 6px;
}
.results-count { font-size: 14px; color: var(--gray-500); font-weight: 500; }

/* Filters Dropdown */
.filters-dropdown {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 12px;
    box-shadow: var(--shadow-lg);
    animation: fadeInDown 0.2s ease;
}
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-label { font-size: 13px; font-weight: 600; color: var(--black); }
.filter-value-display { color: var(--green-dark); font-weight: 700; }
.filter-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--black);
    background: var(--white);
    outline: none;
    cursor: pointer;
    transition: border-color var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23545454' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.filter-select:focus { border-color: var(--black); }
.filter-range {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--gray-200);
    outline: none;
    cursor: pointer;
    accent-color: var(--black);
}
.filters-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

/* Project Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Project Card */
/* ── 26. PROJECT CARD (ELITE COUTURE PREMIUM) ── */
.project-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.1);
    border-color: #000;
}

.project-card-banner {
    height: 140px;
    background: #000;
    position: relative;
    overflow: hidden;
}

.project-card-banner::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 100%);
}

.project-card-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: #000;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.project-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-card-name {
    font-size: 20px;
    font-weight: 950;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.project-card-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 5px;
}

.project-card-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project-card-metric-label { font-size: 10px; font-weight: 800; color: #cbd5e1; text-transform: uppercase; letter-spacing: 0.5px; }
.project-card-metric-value { font-size: 13px; font-weight: 800; color: #0f172a; }

.project-card-progress-wrap {
    margin-top: 10px;
}

.project-card-progress-track {
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    overflow: hidden;
}

.project-card-progress-bar {
    height: 100%;
    background: #000;
    border-radius: 2px;
    transition: width 1s ease;
}

.project-card-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 800;
    margin-top: 8px;
    color: #0f172a;
}

.project-card-footer-btns {
    display: grid;
    grid-template-columns: 1fr 40px;
    gap: 10px;
    padding: 20px 24px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

/* Empty state */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
}
.empty-state-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; color: var(--black); margin-bottom: 8px; }
.empty-state p { color: var(--gray-500); margin-bottom: 24px; }

/* Load more */
.load-more-container { text-align: center; margin-top: 32px; }

/* Map */
.map-view { width: 100%; }
.map-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
    height: 520px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1.5px solid var(--gray-200);
}
.map-container {
    width: 100%;
    height: 100%;
    background: var(--gray-100);
}
.map-sidebar {
    background: var(--white);
    overflow-y: auto;
    border-left: 1px solid var(--gray-200);
    padding: 16px;
}
.map-sidebar-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--gray-500); margin-bottom: 12px; }

.map-project-item {
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition);
    border: 1px solid transparent;
    margin-bottom: 8px;
}
.map-project-item:hover { background: var(--gray-100); border-color: var(--gray-200); }
.map-project-item h5 { font-size: 14px; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.map-project-item p { font-size: 12px; color: var(--gray-500); }

/* Compare Bar */
.compare-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5000;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-pill);
    padding: 14px 24px;
    box-shadow: var(--shadow-xl);
    min-width: 360px;
    animation: slideUp 0.3s ease;
}
.compare-bar-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-size: 14px; font-weight: 500;
}
.compare-actions { display: flex; gap: 8px; }

/* ── 13. STATS SECTION ── */
.stats-section {
    padding: 96px 0;
    background: var(--black);
    color: var(--white);
}
.stats-header {
    text-align: center;
    margin-bottom: 64px;
}
.stats-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--gray-800);
}
.stat-card {
    background: var(--black);
    padding: 48px 32px;
    text-align: center;
    transition: background var(--transition);
}
.stat-card:hover { background: var(--gray-900); }
.stat-card.highlight { background: var(--gray-900); }

.stat-icon-wrap { font-size: 32px; margin-bottom: 16px; }
.stat-number {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-card.highlight .stat-number { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.stat-label { font-size: 14px; color: var(--gray-400); font-weight: 500; }

/* ── 14. FEATURES / HOW IT WORKS ── */
.features-section {
    padding: 96px 0;
    background: var(--gray-100);
}

.steps-grid {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 56px;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1.5px solid var(--gray-200);
}
.step-card {
    flex: 1;
    padding: 40px 32px;
    border-right: 1.5px solid var(--gray-200);
    transition: background var(--transition);
}
.step-card:last-child { border-right: none; }
.step-card:hover { background: var(--gray-50); }

.step-arrow {
    font-size: 24px;
    color: var(--gray-300);
    flex-shrink: 0;
    padding: 0 4px;
    display: none;
}

.step-number {
    font-size: 13px;
    font-weight: 800;
    color: var(--green);
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.step-icon-wrap { margin-bottom: 16px; }
.step-icon-wrap svg { width: 48px; height: 48px; }
.step-card h3 { font-size: 18px; font-weight: 700; color: var(--black); margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.feature-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all var(--transition);
    animation: fadeInUp 0.5s ease both;
}
.feature-card:hover {
    border-color: var(--black);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h4 { font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--gray-600); line-height: 1.5; }

/* ── 15. TRUST SECTION ── */
.trust-section {
    padding: 48px 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}
.trust-label {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}
.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.trust-logo {
    font-size: 16px;
    font-weight: 900;
    color: var(--gray-300);
    letter-spacing: 1px;
    transition: color var(--transition);
    cursor: default;
}
.trust-logo:hover { color: var(--gray-500); }

/* ── 16. TESTIMONIALS ── */
.testimonials-section {
    padding: 96px 0;
    background: var(--white);
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}
.carousel-track-outer {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius-xl);
}
.carousel {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: 100%;
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.testimonial-stars {
    font-size: 22px;
    color: var(--orange);
    letter-spacing: 2px;
}
.testimonial-text {
    font-size: 20px;
    font-weight: 500;
    color: var(--black);
    line-height: 1.6;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.author-avatar {
    width: 48px; height: 48px;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-pill);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800;
    flex-shrink: 0;
}
.author-info strong { display: block; font-size: 15px; font-weight: 700; color: var(--black); }
.author-info span { font-size: 13px; color: var(--gray-500); }

.carousel-arrow {
    width: 48px; height: 48px;
    border-radius: var(--radius-pill);
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    display: flex; align-items: center; justify-content: center;
    color: var(--black);
    transition: all var(--transition);
    flex-shrink: 0;
}
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow:hover { background: var(--black); border-color: var(--black); color: var(--white); }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}
.dot {
    width: 8px; height: 8px;
    border-radius: var(--radius-pill);
    background: var(--gray-300);
    transition: all var(--transition);
}
.dot.active { background: var(--black); width: 24px; }
.dot:hover { background: var(--gray-500); }

/* ── 17. CALCULATOR ── */
.calculator-section {
    padding: 96px 0;
    background: var(--gray-900);
    color: var(--white);
}
.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.calculator-info .section-title { color: var(--white); }
.calculator-info p { color: var(--gray-400); font-size: 16px; margin: 16px 0 24px; line-height: 1.7; }

.calc-benefits { display: flex; flex-direction: column; gap: 10px; }
.calc-benefits li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--gray-300); }
.check-green { color: var(--white); font-weight: 700; }

.calculator-widget {
    background: var(--gray-800);
    border-radius: var(--radius-xl);
    padding: 36px;
    border: 1px solid var(--gray-700);
}
/* ── 17. ROI COCKPIT (Apple Business Style) ── */
.calculator-section.apple-style {
    padding: 120px 0;
    background: #F5F5F7; /* Apple Off-White */
    color: #1D1D1F;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.executive-tag {
    display: inline-block;
    background: #E8E8ED;
    color: #86868B;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.apple-style .section-title { color: #1D1D1F; letter-spacing: -0.5px; }
.apple-style .section-subtitle { color: #86868B; }

.roi-cockpit {
    display: flex;
    gap: 24px;
    margin: 60px 0;
    align-items: stretch;
}

.apple-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    flex: 1;
    border: 1px solid rgba(0,0,0,0.02);
}

.cockpit-display {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cockpit-group { margin-bottom: 32px; }
.cockpit-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #86868B;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.budget-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.budget-symbol {
    font-size: 36px;
    font-weight: 800;
    color: #1D1D1F;
}

.budget-num-input {
    background: transparent;
    border: none;
    color: #1D1D1F;
    font-size: 44px;
    font-weight: 800;
    width: 100%;
    outline: none;
    letter-spacing: -1px;
}

.apple-slider {
    width: 100%;
    height: 4px;
    background: #E8E8ED;
    border-radius: 100px;
    appearance: none;
    outline: none;
}

.apple-slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    background: #FFFFFF;
    border: 0.5px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.sector-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sector-chip {
    background: #F5F5F7;
    border: 1px solid #D2D2D7;
    color: #1D1D1F;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sector-chip.active {
    background: #007AFF;
    color: #FFFFFF;
    border-color: #007AFF;
}

/* Gauge Styles (Apple) */
.gauge-container {
    position: relative;
    width: 280px;
    height: 280px;
}

.roi-gauge-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gauge-bg {
    fill: none;
    stroke: #E8E8ED;
    stroke-width: 4;
}

.gauge-progress {
    fill: none;
    stroke: #007AFF;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 289; /* 2*PI*46 */
    stroke-dashoffset: 289;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.2, 0, 0.4, 1);
}

.gauge-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.gauge-label { font-size: 10px; font-weight: 700; color: #86868B; letter-spacing: 1px; }
.gauge-value { display: block; font-size: 68px; font-weight: 800; color: #1D1D1F; margin: 4px 0; }
.gauge-status-pill {
    display: inline-block;
    background: #E8F5E9;
    color: #2E7D32;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
}

/* Data Feed Styles (Apple) */
.data-summary { margin-bottom: 24px; border-bottom: 1px solid #F5F5F7; padding-bottom: 24px; }
.data-summary label { display: block; font-size: 10px; font-weight: 700; color: #86868B; margin-bottom: 8px; }
.data-value-hero { font-size: 40px; font-weight: 800; color: #1D1D1F; letter-spacing: -1px; }
.data-sub-badge { font-size: 12px; color: #86868B; margin-top: 4px; font-weight: 500; }

.data-grid-minimal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.data-field { display: flex; flex-direction: column; gap: 4px; }
.field-label { font-size: 11px; font-weight: 600; color: #86868B; }
.field-value { font-size: 18px; font-weight: 700; color: #1D1D1F; }

.cockpit-actions {
    text-align: center;
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.btn-apple-primary {
    background: #007AFF;
    color: #FFFFFF;
    padding: 16px 40px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-apple-primary:hover { opacity: 0.9; }

.btn-apple-secondary {
    background: transparent;
    color: #007AFF;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.apple-footer-note {
    font-size: 12px;
    color: #86868B;
    font-weight: 500;
    max-width: 400px;
}

/* Confidence Index */
.confidence-index { margin-top: 24px; }
.confidence-row { display: flex; align-items: center; gap: 15px; }
.confidence-value { font-size: 18px; font-weight: 800; color: #007AFF; }
.confidence-track { flex: 1; height: 4px; background: #E8E8ED; border-radius: 100px; overflow: hidden; }
.confidence-fill { height: 100%; background: #007AFF; border-radius: 100px; transition: width 0.6s ease; }

/* Market Comparison Table */
.market-comparison-table {
    background: #F9F9FB;
    border-radius: 14px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #E8E8ED;
}

.comp-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 12px;
    border-bottom: 0.5px solid rgba(0,0,0,0.05);
}

.comp-row:last-child { border-bottom: none; }
.comp-row.head { font-weight: 700; color: #86868B; text-transform: uppercase; font-size: 10px; margin-bottom: 5px; }
.comp-row span:last-child { font-weight: 700; color: #1D1D1F; font-family: 'SF Mono', 'Courier New', monospace; }
.comp-row.sponso { color: #007AFF; font-weight: 800; border-top: 1px solid #007AFF33; margin-top: 5px; padding-top: 12px; }
.comp-row.sponso span:last-child { color: #007AFF; }

/* Methodology Panel */
.methodology-trigger {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #007AFF;
    cursor: pointer;
    margin-top: 30px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.methodology-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #FFFFFF;
    border-radius: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.methodology-panel.active { max-height: 600px; padding: 30px; border: 1px solid #E8E8ED; }

.meth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.meth-item h5 { font-size: 13px; font-weight: 800; color: #1D1D1F; margin-bottom: 10px; text-transform: uppercase; }
.meth-item p { font-size: 12px; color: #86868B; line-height: 1.6; }
.meth-item p span { font-weight: 700; color: #007AFF; }

/* Premium Print/Audit Aesthetics */
.audit-ready { position: relative; }
.audit-ready::before {
    content: "AUDIT SYSTEM v4.1 - CONFORMITY SECURED";
    position: absolute;
    top: 40px;
    right: 5%;
    transform: rotate(90deg);
    transform-origin: right top;
    font-size: 10px;
    font-weight: 900;
    color: #E8E8ED;
    letter-spacing: 5px;
    pointer-events: none;
}

/* ── 18. PRICING ── */
.pricing-section {
    padding: 96px 0;
    background: var(--white);
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}
.pricing-card {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    transition: all var(--transition-md);
    animation: fadeInUp 0.5s ease both;
}
.pricing-card:hover { border-color: var(--gray-400); box-shadow: var(--shadow-md); }
.pricing-card.featured {
    border-color: var(--black);
    border-width: 2px;
    box-shadow: var(--shadow-lg);
}

.pricing-popular {
    display: inline-flex;
    background: var(--black);
    color: var(--white);
    font-size: 11px; font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.pricing-tier {
    font-size: 13px; font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.pricing-price {
    font-size: 40px; font-weight: 900;
    color: var(--black);
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 8px;
}
.pricing-price span { font-size: 16px; font-weight: 500; color: var(--gray-500); letter-spacing: 0; }
.pricing-desc { font-size: 14px; color: var(--gray-500); margin-bottom: 28px; margin-top: 4px; }

.pricing-features {
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 32px;
    flex: 1;
}
.pricing-features li {
    font-size: 14px;
    display: flex; align-items: center; gap: 8px;
    padding-left: 4px;
}
.pricing-features li::before {
    font-size: 16px;
    flex-shrink: 0;
}
.pricing-features li.ok { color: var(--black); font-weight: 500; }
.pricing-features li.ok::before { content: '✓'; color: var(--green); font-weight: 700; }
.pricing-features li.no { color: var(--gray-400); }
.pricing-features li.no::before { content: '✗'; color: var(--gray-300); }

.pricing-note {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: var(--gray-500);
}

/* ── 19. MEDIA KIT ── */
.media-section {
    padding: 96px 0;
    background: var(--gray-100);
}
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
}
.media-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    transition: all var(--transition);
}
.media-card:hover { border-color: var(--black); box-shadow: var(--shadow-md); }
.media-icon { font-size: 28px; flex-shrink: 0; }
.media-info { flex: 1; }
.media-info h4 { font-size: 14px; font-weight: 700; color: var(--black); margin-bottom: 2px; }
.media-info p { font-size: 12px; color: var(--gray-500); }

/* ── 20. FAQ ── */
.faq-section {
    padding: 96px 0;
    background: var(--white);
}
.faq-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 80px;
    align-items: flex-start;
}
.faq-header-col { position: sticky; top: 120px; }
.faq-header-col .section-title { margin-bottom: 12px; }
.faq-header-col p { color: var(--gray-500); font-size: 15px; }

.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    padding: 24px 0;
    font-size: 16px; font-weight: 600;
    color: var(--black);
    text-align: left;
    cursor: pointer;
    transition: color var(--transition);
}
.faq-question:hover { color: var(--gray-600); }
.faq-arrow {
    width: 20px; height: 20px;
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--gray-400);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--black); }
.faq-answer {
    display: none;
    padding: 0 0 24px;
    animation: fadeIn 0.2s ease;
}
.faq-item.open .faq-answer { display: block; }
.faq-answer p { font-size: 15px; color: var(--gray-600); line-height: 1.7; }

/* ── 21. CTA SECTION ── */
.cta-section {
    padding: 96px 0;
    background: var(--black);
}
.cta-content { text-align: center; }
.cta-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 16px;
}
.cta-subtitle { font-size: 18px; color: rgba(255,255,255,0.6); margin-bottom: 40px; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.cta-actions .btn-green { background: var(--white); color: var(--black); }
.cta-actions .btn-green:hover { background: var(--gray-200); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,255,255,0.15); }
.cta-actions .btn-white { border: 2px solid rgba(255,255,255,0.25); color: var(--white); background: transparent; }
.cta-actions .btn-white:hover { background: rgba(255,255,255,0.1); }

.cta-trust-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
}

/* ── 22. FOOTER ── */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--gray-800);
}
.footer-logo {
    font-size: 22px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 14px;
    letter-spacing: -0.8px;
    text-transform: uppercase;
}
.footer-logo span { color: var(--gray-400); } /* Gray accent on black background */
.footer-tagline { font-size: 14px; color: var(--gray-500); line-height: 1.6; margin-bottom: 24px; max-width: 280px; }

.footer-social { display: flex; gap: 8px; }
.social-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: #111;
    border: 1px solid #222;
    border-radius: var(--radius-sm);
    color: var(--white);
    transition: all var(--transition);
}
.social-btn svg { width: 16px; height: 16px; }
.social-btn:hover { 
    background: var(--black); 
    color: var(--white); 
    border-color: var(--white);
    box-shadow: var(--gold-glow);
}

.footer-col h5 {
    font-size: 13px; font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--gray-500); transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }

.footer-newsletter-desc { font-size: 14px; color: var(--gray-500); line-height: 1.5; margin-bottom: 16px; }
.newsletter-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.newsletter-input {
    flex: 1;
    background: #111;
    border: 1px solid #222;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--white);
    outline: none;
    transition: all var(--transition);
}
.newsletter-input::placeholder { color: var(--gray-600); }
.newsletter-input:focus { border-color: var(--white); box-shadow: var(--gold-glow); }

.newsletter-btn {
    width: 46px; height: 46px;
    background: var(--white);
    color: var(--black);
    font-size: 18px; font-weight: 700;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}
.newsletter-btn:hover { 
    background: var(--black); 
    color: var(--white);
    border: 1px solid var(--white);
    box-shadow: var(--gold-glow);
}

.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge {
    font-size: 12px; font-weight: 600;
    color: var(--gray-500);
    background: var(--gray-800);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 13px;
    color: var(--gray-600);
    flex-wrap: wrap;
    gap: 12px;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: var(--gray-600); transition: color var(--transition); }
.footer-legal a:hover { color: var(--white); }

/* ── 23.5 PREMIUM CONTRACT WIZARD (COUTURE REDESIGN) ── */
.form-sub-title {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 4px;
    border-bottom: 2px solid #f1f5f9;
}

.health-score-gauge {
    position: relative;
    padding: 10px 0;
}

#wizard-health-val {
    transition: all 0.3s ease;
}

#health-recommendations ul li {
    position: relative;
    list-style: none;
    padding-left: 18px;
    margin-bottom: 6px;
}

#health-recommendations ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4338ca;
    font-weight: 900;
}

#offer-submit-lock-msg {
    animation: fadeInScale 0.4s ease;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.contract-wizard-content {
    max-width: 1000px !important;
    width: 95vw !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: var(--white) !important;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.3) !important;
    border-radius: 28px !important;
}

.wizard-container {
    display: flex;
    height: 85vh;
    max-height: 780px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

/* Sidebar Navigation - Sleek & High Contrast */
.wizard-sidebar {
    width: 250px;
    background: #ffffff; /* Stark White */
    color: var(--black);
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 10;
    border-right: 1px solid #f1f5f9;
}

.wizard-sidebar-header {
    padding: 0 35px 30px;
}

.wizard-logo {
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--black);
}

.wizard-logo span { color: #94a3b8; }

.wizard-sidebar-header p {
    font-size: 9px;
    color: #94a3b8;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.wizard-nav {
    flex: 1;
    margin-top: 10px;
}

.wizard-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 35px;
    color: #94a3b8;
    transition: all 0.3s var(--transition);
    text-align: left;
    position: relative;
    border: none;
    background: transparent;
    cursor: pointer;
}

.wizard-nav-item .step-num {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
}

.wizard-nav-item .step-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.wizard-nav-item:hover { color: var(--black); }

.wizard-nav-item.active {
    color: var(--black);
    background: rgba(0,0,0,0.02);
}

.wizard-nav-item.active::after {
    content: '';
    position: absolute;
    left: 0; top: 25%; bottom: 25%;
    width: 4px;
    background: var(--black);
    border-radius: 0 4px 4px 0;
}

.wizard-nav-item.active .step-num {
    background: var(--black);
    color: var(--white);
}

.wizard-sidebar-footer {
    padding: 35px;
}

.completion-track {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.completion-bar {
    height: 4px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.completion-fill {
    height: 100%;
    background: var(--white);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.completion-track p {
    font-size: 10px;
    color: #50555F;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main Area - Focused & Clean */
.wizard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--white);
    position: relative;
    z-index: 5;
    min-width: 0;
}

.wizard-header {
    padding: 35px 50px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wizard-header-text h2 {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--black);
}

.wizard-header-text p {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
}

.ai-header-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-600);
    transition: all var(--transition);
}

.ai-header-toggle:hover {
    background: var(--gray-100);
    border-color: var(--black);
    color: var(--black);
}

.ai-header-toggle svg { width: 14px; height: 14px; }

#offer-proposal-form {
    flex: 1;
    overflow-y: auto;
    padding: 40px 50px;
    scroll-behavior: smooth;
}

/* Custom Scrollbar for form */
#offer-proposal-form::-webkit-scrollbar { width: 6px; }
#offer-proposal-form::-webkit-scrollbar-track { background: transparent; }
#offer-proposal-form::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 10px; }

.wizard-tab {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}

.wizard-tab.active {
    display: block;
    animation: wizardStepIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.form-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section-title {
    font-size: 11px;
    font-weight: 900;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-100);
}

/* High-end Styled Inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-600);
    margin-left: 2px;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 18px;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    transition: all var(--transition) cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-input:focus {
    background: var(--white);
    border-color: var(--black);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    outline: none;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* AI Drawer - The Magical Hidden Panel */
.wizard-ai {
    position: absolute;
    top: 0; right: -360px;
    width: 360px;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -15px 0 50px rgba(0,0,0,0.08);
}

.wizard-ai.open {
    right: 0;
}

.ai-header {
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
}

.ai-close-btn {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    color: #475569;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #0f172a;
    transform: scale(1.1);
}

.ai-icon {
    width: 36px;
    height: 36px;
    background: #000;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ai-header-text h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--black);
}

.ai-header-text p {
    font-size: 11px;
    color: var(--gray-500);
}

.ai-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.ai-message {
    background: var(--black);
    color: var(--white);
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 24px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
}

.ai-suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-suggestion-item {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--gray-200);
    padding: 18px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition) cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-suggestion-item:hover {
    background: var(--white);
    border-color: var(--black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ── WIZARD COMPONENTS: CATALOG & PREMIUM BUTTON ── */
.catalog-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

.catalog-item {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.catalog-item:hover {
    border-color: var(--black);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.catalog-item.selected {
    border-color: var(--black);
    background: var(--gray-50);
    box-shadow: inset 0 0 0 1px var(--black);
}

.catalog-item .item-illustration {
    font-size: 28px;
    margin-bottom: 12px;
    transition: transform var(--transition);
}

.catalog-item:hover .item-illustration {
    transform: scale(1.15);
}

.catalog-item .item-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.3;
    margin-bottom: 8px;
}

.catalog-item .item-checkbox-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.catalog-item .item-detail {
    margin-top: 12px;
    width: 100%;
    animation: fadeInDown 0.3s ease;
}

.catalog-item .item-detail input {
    width: 100%;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    background: var(--white);
}

.catalog-item .item-detail input:focus {
    border-color: var(--black);
    outline: none;
}

.btn-premium {
    position: relative;
    background: var(--black);
    color: var(--white);
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--black);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    overflow: hidden;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s ease;
}

.btn-premium:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    border-color: var(--gray-800);
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:active {
    transform: translateY(0) scale(0.98);
}

/* Tab 4 category spacing */
.catalog-category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gray-400);
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-100);
}

.ai-suggestion-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    color: #6366F1;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.ai-suggestion-item p {
    font-size: 13px;
    color: #1E293B;
    line-height: 1.5;
    font-weight: 600;
}

.ai-footer {
    padding: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.ai-help-btn {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ai-loading-state {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pulse-loader {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    border-radius: 14px;
    animation: pulseLoader 1.5s infinite ease-in-out;
    margin-bottom: 20px;
}

@keyframes pulseLoader {
    0% { transform: scale(0.9); opacity: 0.5; box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 20px rgba(99, 102, 241, 0); }
    100% { transform: scale(0.9); opacity: 0.5; box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.ai-loading-state p {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
}

.ai-loading-state span {
    font-size: 11px;
    color: #94A3B8;
    font-weight: 600;
}

/* Footer & Actions */
.wizard-footer {
    padding: 24px 50px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wizard-btn-prev, .wizard-btn-next {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.wizard-btn-prev {
    background: transparent;
    color: #64748b;
}

.wizard-btn-prev:hover:not(:disabled) {
    color: #090B10;
    background: #f8fafc;
}

.wizard-btn-prev:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.wizard-btn-next {
    background: #090B10;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(9, 11, 16, 0.15);
}

.wizard-btn-next:hover {
    background: #1a1e26;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(9, 11, 16, 0.25);
}

.wizard-btn-next svg {
    transition: transform 0.3s ease;
}

.wizard-btn-next:hover svg {
    transform: translateX(4px);
}

.wizard-btn-prev svg {
    transition: transform 0.3s ease;
}

.wizard-btn-prev:hover:not(:disabled) svg {
    transform: translateX(-4px);
}

.wizard-final-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.perks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.perk-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.perk-checkbox:hover { border-color: #4B5563; }

.perk-checkbox input:checked + span { color: #000; font-weight: 800; }
.perk-checkbox span { font-size: 13px; font-weight: 600; color: #64748B; }

.legal-notice {
    font-size: 11px;
    line-height: 1.5;
    color: #94A3B8;
    padding: 15px;
    background: #F8FAFC;
    border-radius: 10px;
    margin-bottom: 10px;
}


/* ── 24. TOAST NOTIFICATIONS ── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 30000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--black);
    color: var(--white);
    padding: 14px 20px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    pointer-events: all;
    animation: slideUpFade 0.3s ease;
    max-width: 380px;
}
.toast.success .toast-icon { color: var(--white); }
.toast.error .toast-icon { color: #FF6B6B; }
.toast.info .toast-icon { color: var(--gray-400); }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast.hide { animation: slideDownFade 0.3s ease forwards; }

/* ── 25. PROJECT DETAIL MODAL ── */
/* ── MODALS ── */
.modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    place-items: center; /* Center everything perfectly */
    z-index: 10000;
    overflow-y: auto;
}
.modal.active { display: grid !important; }
.modal-content {
    background: var(--white);
    border-radius: var(--radius-sm);
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--gray-100);
}

/* Elite Auth Styles */
.auth-logo-header {
    text-align: center;
    margin-bottom: 24px;
}
.auth-brand-icon {
    width: 48px;
    height: 48px;
    background: var(--black);
    color: var(--white);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.social-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    transition: all 0.2s;
    cursor: pointer;
}
.btn-social:hover {
    background: var(--gray-50);
    border-color: var(--black);
    transform: translateY(-1px);
}
.btn-social svg { width: 18px; height: 18px; }

.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--gray-400);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.login-divider::before, .login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gray-100);
}

#reg-form-creator {
    overflow-y: visible !important;
    max-height: none !important;
}
@keyframes modalPop {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}
.modal-close:hover { background: var(--gray-200); transform: scale(1.1); }

/* ── CONTRACT VIEWER (COUTURE REBOOT) ── */
.contract-viewer-container {
    background: #f1f5f9; /* Slate 100 for better document contrast */
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    padding: 60px 40px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
    min-height: 400px; /* Force visibility even if empty during transition */
    overflow: visible;
}

/* Paper look inside the viewer */
.contract-paper {
    background: #ffffff;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.12); /* Deep elegant shadow */
    border: 1px solid var(--gray-200);
    border-radius: 4px; /* Document-like sharpness */
    text-align: left;
    position: relative;
    overflow: hidden;
    user-select: text;
    padding: 0;
}

/* ── COUTURE CONTRACT MODAL REFINEMENTS ── */
.contract-modal-content {
    max-width: 1000px !important;
    width: 95% !important;
    background: var(--white) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.25) !important;
    border: 1px solid var(--gray-100) !important;
}

.contract-modal-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 24px;
}

.contract-modal-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--black);
    letter-spacing: -0.6px;
    margin-bottom: 6px;
}

.contract-modal-header p {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

.contract-actions-bar {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
}

.contract-actions-bar .btn-primary,
.contract-actions-bar .btn-outline,
.contract-actions-bar .btn-black {
    flex: 1;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.contract-actions-bar .btn-black { 
    flex: 1.5; 
    font-weight: 800;
    background: var(--black);
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-red {
    color: var(--black) !important;
    border-color: var(--gray-300) !important;
    background: var(--white) !important;
    opacity: 0.6;
}

.btn-red:hover {
    opacity: 1;
    background: var(--gray-50) !important;
    border-color: var(--black) !important;
}

.contract-signature-section {
    display: none;
    border-top: 1px dashed var(--gray-200);
    padding-top: 32px;
    margin-top: 24px;
}

.signature-pad-wrapper {
    background: var(--gray-50);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
}

.signature-canvas-container {
    background: #ffffff;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    overflow: hidden;
    margin: 12px 0;
}

#signature-pad {
    width: 100%;
    height: 180px;
    display: block;
    cursor: crosshair;
    touch-action: none;
}

.signature-pad-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cert-badge {
    font-size: 12px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.signature-submit-group {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contract-signed-notice {
    display: none;
    text-align: center;
    padding: 20px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    font-weight: 700;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .contract-viewer-container {
        padding: 24px 10px;
    }
    .contract-paper {
        border-radius: 0;
    }
    .project-detail-container {
        padding: 24px;
    }
    .project-detail-modal .modal-content {
        max-width: 100%;
        border-radius: 24px 24px 0 0;
    }
}

/* ── 25. COMPANY DETAIL MODAL (ELITE COUTURE V2) ── */
.sponsor-detail-v2 .modal-content {
    max-width: 820px; /* "Dezoom" effect by reducing width */
    background: #ffffff;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.25);
    border: none; /* Removed white border */
}

.sponsor-hero {
    position: relative;
    padding: 80px 50px 50px;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #ffffff;
    display: flex;
    align-items: flex-end;
    gap: 40px;
}

.sponsor-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent);
}

.sponsor-main-logo {
    width: 120px;
    height: 120px;
    background: #ffffff;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 900;
    color: #000;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    z-index: 1;
    border: 4px solid #ffffff;
    object-fit: contain;
}

.sponsor-hero-content { z-index: 1; }

.sponsor-hero-name {
    font-size: 48px;
    font-weight: 950;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 12px;
}

.sponsor-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
}

.sponsor-verified-tag {
    background: var(--gold-gradient);
    color: #000;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.sponsor-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.sponsor-metric {
    padding: 30px;
    border-right: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sponsor-metric-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 1px;
}

.sponsor-metric-value {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.sponsor-detail-content {
    padding: 50px;
    max-height: 60vh;
    overflow-y: auto;
}

.sponsor-pane-title {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #cbd5e1;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sponsor-pane-title::after { content: ""; flex: 1; height: 1px; background: #f1f5f9; }

.sponsor-bio {
    font-size: 17px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 40px;
}

.sponsor-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.sponsor-tag-v2 {
    padding: 8px 18px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a; /* Darker text for visibility */
}

.sponsor-action-footer {
    padding: 30px 50px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ── 25. PREMIUM PROJECT DETAIL (MONOCHROME COUTURE) ── */
.project-detail-modal .modal-content { 
    max-width: 1100px; 
    width: 95%;
    padding: 0; 
    overflow: hidden;
    border-radius: 40px; 
    background: #ffffff; 
    box-shadow: 0 100px 150px -30px rgba(0,0,0,0.25);
    border: 1px solid rgba(0,0,0,0.05);
    animation: modalSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.premium-project-detail {
    display: flex;
    flex-direction: column;
    height: 90vh;
}

.premium-project-body {
    overflow-y: auto;
    flex: 1;
    background: #ffffff;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none;    /* Firefox */
}

.premium-project-body::-webkit-scrollbar {
    display: none; /* Webkit browsers */
}

/* Immersive Hero B&W */
.pd-hero {
    position: relative;
    padding: 120px 80px 80px;
    background-image: url('assets/premium_hero_bw.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    overflow: hidden;
}

.pd-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.pd-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: fadeInReveal 1s ease-out;
}

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

.pd-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 32px;
}

.pd-title {
    font-size: 82px;
    font-weight: 950;
    line-height: 0.9;
    letter-spacing: -4px;
    margin-bottom: 24px;
    color: #ffffff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.pd-meta-row {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.pd-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Editorial Grid */
.pd-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 0;
    background: #ffffff;
}

.pd-main {
    padding: 60px 40px 60px 60px;
}

.pd-sidebar {
    padding: 60px 60px 60px 40px;
    background: #f8fafc;
}

/* Sections */
.pd-section {
    margin-bottom: 80px;
    animation: fadeInReveal 1.2s ease-out both;
}

.pd-section-header {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.pd-section-header h3 {
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #000000;
    white-space: nowrap;
}

.pd-section-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent);
}

.pd-story-text {
    font-size: 18px;
    line-height: 1.7;
    color: #334155;
    font-weight: 400;
}

/* Exact Image Match: Impact & Analyse Grid */
.pd-impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.pd-impact-card {
    padding: 40px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

.pd-impact-card:hover {
    border-color: #cbd5e1;
}

.pd-impact-top-lbl {
    font-size: 13px;
    font-weight: 850;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
}

.pd-impact-main-text {
    font-size: 24px;
    font-weight: 900;
    color: #000000;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.pd-impact-big-val {
    font-size: 56px;
    font-weight: 950;
    color: #000000;
    line-height: 1;
    margin: 8px 0;
    letter-spacing: -2px;
}

.pd-impact-bot-lbl {
    font-size: 13px;
    font-weight: 850;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 10px;
}

/* Package List */
/* Exact Image Match: Editorial Package Stack */
.pd-package-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.pd-package-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 380px;
}

.pd-package-card:hover {
    border-color: #cbd5e1;
}

.pd-package-info h4 {
    font-size: 36px;
    font-weight: 900;
    color: #000000;
    margin-bottom: 12px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.pd-package-info p {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 40px;
}

.pd-package-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.pd-package-price {
    display: flex;
    flex-direction: column;
}

.pd-package-price .price-val {
    font-size: 44px;
    font-weight: 950;
    color: #000000;
    line-height: 1;
}

.pd-package-price .price-lbl {
    font-size: 12px;
    font-weight: 850;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

.pd-package-select {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #000000;
}

.pd-package-card:hover .pd-package-select {
    background: #eef2f6;
    transform: scale(1.05);
}

/* Sidebar B&W */
.pd-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.pd-funding-card {
    background: #000000;
    border-radius: 40px;
    padding: 48px;
    color: #ffffff;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.3);
}

.pd-progress-header {
    margin-bottom: 24px;
}

.pd-progress-pct {
    font-size: 56px;
    font-weight: 950;
    letter-spacing: -2px;
    line-height: 1;
}

.pd-progress-lbl {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2px;
    margin-top: 8px;
}

.pd-progress-track {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    margin: 32px 0;
    overflow: hidden;
}

.pd-progress-bar {
    height: 100%;
    background: #ffffff;
    border-radius: 100px;
}

/* 3.0 Additions: Links & Audience */
.pd-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.pd-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #000000;
    color: #ffffff;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pd-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.pd-audience-card {
    background: #ffffff;
    border-radius: 40px;
    padding: 60px;
    border: 1.5px dashed #eef2f6;
    margin-bottom: 40px;
}

.pd-audience-main {
    font-size: 42px;
    font-weight: 950;
    color: #000000;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.pd-audience-detail {
    font-size: 20px;
    color: #94a3b8;
    line-height: 1.5;
    font-weight: 600;
}

.pd-trust-chip {
    display: inline-flex;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.pd-history-stamp {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pd-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-btn-sponsor {
    width: 100%;
    padding: 24px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 850;
    cursor: pointer;
    transition: var(--transition);
}

.pd-btn-sponsor:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(255,255,255,0.3);
}

.pd-btn-outline {
    width: 100%;
    padding: 18px;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: var(--transition);
}

.pd-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #ffffff;
}

/* ── 26. DASHBOARD PACKAGE EDITOR ── */
.ed-package-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.ed-package-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    position: relative;
    transition: all 0.3s ease;
    animation: fadeInSlideIn 0.4s ease-out;
}

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

.ed-package-item:hover {
    border-color: #000000;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
}

.ed-package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ed-package-title {
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
}

.btn-remove-pkg {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove-pkg:hover {
    background: #ef4444;
    color: #ffffff;
}

.ed-package-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.btn-add-pkg {
    width: 100%;
    padding: 16px;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    color: #64748b;
    font-size: 14px;
    font-weight: 750;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 24px;
}

.btn-add-pkg:hover {
    background: #ffffff;
    border-color: #000000;
    color: #000000;
}

.pd-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.pd-proof-item {
    text-align: center;
}

.pd-proof-val {
    font-size: 18px;
    font-weight: 900;
    color: #000000;
}

.pd-proof-lbl {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    margin-top: 4px;
}
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-btn-sponsor {
    padding: 20px;
    background: var(--white);
    color: var(--black);
    font-weight: 900;
    font-size: 16px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
}

.pd-btn-sponsor:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.pd-btn-secondary {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-weight: 700;
    border-radius: 14px;
    font-size: 14px;
    text-align: center;
    transition: var(--transition);
}

.pd-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Trust Wall */
.pd-trust-section {
    padding: 0;
}

.pd-trust-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pd-trust-chip {
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    color: var(--gray-600);
}

/* Responsive */
@media (max-width: 900px) {
    .pd-grid { grid-template-columns: 1fr; }
    .pd-main { padding: 40px; border-right: none; }
    .pd-sidebar { padding: 40px; }
    .pd-title { font-size: 40px; }
}

@media (max-width: 600px) {
    .pd-hero { padding: 80px 30px 40px; }
    .pd-impact-grid { grid-template-columns: 1fr; }
    .pd-meta-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}


/* ── 26. ANIMATIONS ── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDownFade { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(16px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.7; } }
@keyframes float1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float2 { 0%, 100% { transform: translate(-30%, -50%); } 50% { transform: translate(-30%, calc(-50% - 10px)); } }
@keyframes float3 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── 27. UTILITY CLASSES ── */
.desktop-only { display: flex; }

/* ── 28. RESPONSIVE ── */
@media (max-width: 1100px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
    .media-grid { grid-template-columns: repeat(2, 1fr); }
    .calculator-layout { grid-template-columns: 1fr; gap: 48px; }
    .faq-layout { grid-template-columns: 1fr; }
    .faq-header-col { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .map-layout { grid-template-columns: 1fr; height: auto; }
    .map-container { height: 400px; }
    .map-sidebar { max-height: 300px; border-left: none; border-top: 1px solid var(--gray-200); }
}

@media (max-width: 768px) {
    :root { --nav-height: 60px; }

    .desktop-only { display: none !important; }
    .hamburger { display: flex; }
    .nav-cta { padding: 8px 16px; font-size: 13px; }
    .nav-mode-toggle { display: none; }

    .hero { min-height: auto; }
    .hero-inner { padding: 48px 24px 40px; gap: 32px; }
    .hero-title { letter-spacing: -1.5px; }
    .hero-subtitle { font-size: 16px; }
    .hero-stats-bar { flex-wrap: wrap; padding: 20px 24px; gap: 16px; }
    .hero-stat-divider { display: none; }
    .hero-stat { min-width: calc(50% - 8px); text-align: left; }
    .hero-stat-number { font-size: 24px; }

    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { flex-direction: column; border-radius: var(--radius-lg); }
    .step-card { border-right: none; border-bottom: 1px solid var(--gray-200); }
    .step-card:last-child { border-bottom: none; }

    .pricing-grid { grid-template-columns: 1fr; }

    .calculator-layout { gap: 32px; }
    .calc-results { flex-direction: column; gap: 20px; }
    .calc-result-divider { width: 100%; height: 1px; }

    .media-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .testimonial-card { padding: 28px 24px; }
    .testimonial-text { font-size: 17px; }

    .trust-logos { gap: 20px; }
    .trust-logo { font-size: 13px; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
    .stat-card { padding: 32px 20px; }
    .stat-number { font-size: 36px; }

    .cta-trust-row { gap: 12px; font-size: 13px; }

    .notifications-dropdown { right: 16px; left: 16px; width: auto; }
    .back-to-top { bottom: 20px; right: 20px; }

    .hero-stat { min-width: 45%; }
    .section-title { letter-spacing: -0.5px; }

    .discover-section { padding: 48px 0; }
    .features-section { padding: 64px 0; }
    .stats-section { padding: 64px 0; }
    .testimonials-section { padding: 64px 0; }
    .calculator-section { padding: 64px 0; }
    .pricing-section { padding: 64px 0; }
    .media-section { padding: 64px 0; }
    .faq-section { padding: 64px 0; }
    .cta-section { padding: 64px 0; }
    .footer { padding-top: 48px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn-outline,
    .hero-actions .btn-green { width: 100%; justify-content: center; }
    .cta-actions { flex-direction: column; align-items: center; }
    .projects-grid { grid-template-columns: 1fr; }
    .cookie-banner { bottom: 12px; width: calc(100% - 24px); }
}

/* ══════════════════════════════════════════════════════════
   NEW FEATURES — Role distinction & additions
   ══════════════════════════════════════════════════════════ */

/* ── ONBOARDING OVERLAY ── */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.3s ease;
}
.onboarding-overlay.hidden { display: none !important; }
.onboarding-inner {
    max-width: 700px;
    width: 100%;
    text-align: center;
}
.onboarding-logo {
    font-size: 22px;
    font-weight: 900;
    color: var(--black);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}
.onboarding-logo span { color: var(--gray-400); }
.onboarding-tagline { font-size: 14px; color: var(--gray-500); margin-bottom: 52px; }
.onboarding-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    color: var(--black);
    margin-bottom: 40px;
    letter-spacing: -2px;
    line-height: 1.05;
}
.onboarding-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}
.onboarding-card {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
}
.onboarding-card:hover {
    border-color: var(--black);
    background: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}
.onboarding-emoji {
    font-size: 44px;
    margin-bottom: 16px;
    display: block;
    line-height: 1;
}
.onboarding-card h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}
.onboarding-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: 20px;
}
.onboarding-cta {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    display: block;
}
.onboarding-skip {
    font-size: 13px;
    color: var(--gray-400);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
}
.onboarding-skip:hover { color: var(--gray-600); text-decoration: underline; }

/* ── HERO BADGE VARIANTS ── */
.creator-badge {
    border-left: 3px solid var(--black);
    padding-left: 13px;
}
.sponsor-badge {
    background: var(--black);
    color: var(--white);
}
.sponsor-badge .badge-pulse { background: var(--white); }

/* ── MODE TABS — updated styles ── */
.mode-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    line-height: 1.2;
}
.mode-tab-icon { font-size: 13px; }
.mode-tab-text { font-size: 10px; font-weight: 600; }

/* ── MOBILE ROLE SWITCH ── */
.mobile-role-switch {
    border-bottom: 1px solid var(--gray-800);
    padding-bottom: 24px;
    margin-bottom: 8px;
}
.mobile-role-label {
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 12px;
    font-weight: 500;
}
.mobile-role-btns { display: flex; gap: 8px; }
.mobile-role-btn {
    flex: 1;
    padding: 13px 16px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    background: var(--gray-800);
    color: var(--gray-400);
    transition: all var(--transition);
    text-align: center;
}
.mobile-role-btn.active { background: var(--white); color: var(--black); }

/* ── LIVE ACTIVITY STRIP ── */
.live-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-pill);
    padding: 9px 18px;
    margin-bottom: 24px;
    font-size: 13px;
    overflow: hidden;
}
.live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 1.5s infinite;
}
.live-label {
    font-weight: 700;
    color: var(--black);
    flex-shrink: 0;
}
.live-items {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
}
.live-item { color: var(--gray-600); font-size: 13px; }
.live-sep { color: var(--gray-300); flex-shrink: 0; }

/* ── PATHS SECTION ── */
.paths-section { padding: 96px 0; background: var(--gray-50); }
.paths-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: start;
    margin-top: 48px;
}
.path-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 40px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.path-card:hover,
.path-card.active-path {
    border-color: var(--black);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}
.path-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.creator-tag { background: var(--black); color: var(--white); }
.sponsor-tag { background: var(--gray-200); color: var(--gray-700); }
.path-card.active-path .sponsor-tag { background: var(--black); color: var(--white); }
.path-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.path-desc {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 24px;
}
.path-features {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.path-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-700);
}
.path-features li span {
    font-weight: 800;
    color: var(--black);
    flex-shrink: 0;
    font-size: 15px;
}
.paths-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 32px;
    gap: 16px;
    align-self: stretch;
    justify-content: center;
}
.paths-vs-line {
    flex: 1;
    width: 1px;
    background: var(--gray-200);
    min-height: 40px;
}
.paths-vs-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-400);
    background: var(--gray-50);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--gray-200);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── CTA DUAL PATH ── */
.cta-dual {
    display: flex;
    align-items: stretch;
    margin: 40px 0 32px;
    background: rgba(255,255,255,0.07);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
}
.cta-path {
    flex: 1;
    padding: 36px 40px;
    text-align: center;
    transition: background var(--transition);
}
.cta-path:hover { background: rgba(255,255,255,0.05); }
.cta-path-icon { font-size: 40px; margin-bottom: 12px; line-height: 1; }
.cta-path-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.cta-path-desc { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 24px; }
.cta-divider {
    width: 1px;
    background: rgba(255,255,255,0.12);
    margin: 24px 0;
    flex-shrink: 0;
}

/* ── MATCH SCORE BADGE (sponsor mode) ── */
.match-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--black);
    color: var(--white);
    flex-shrink: 0;
}
.project-view-btn.sponsor-mode {
    font-weight: 700;
    color: var(--black);
}

/* ── RESPONSIVE: new components ── */
@media (max-width: 768px) {
    .onboarding-cards { grid-template-columns: 1fr; gap: 12px; }
    .onboarding-title { letter-spacing: -1px; }
    .paths-grid { grid-template-columns: 1fr; }
    .paths-vs {
        flex-direction: row;
        padding: 16px 0;
        align-self: auto;
    }
    .paths-vs-line { flex: 1; width: auto; height: 1px; min-height: unset; }
    .cta-dual { flex-direction: column; }
    .cta-divider { width: calc(100% - 80px); height: 1px; margin: 0 40px; }
    .live-strip { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
    .mode-tab-text { display: none; }
    .mode-tab-icon { font-size: 16px; }
    .paths-section { padding: 64px 0; }
}

/* ══════════════════════════════════════════════════════════
   TYPOGRAPHIC DESIGN ELEMENTS
   ══════════════════════════════════════════════════════════ */

/* ── STAT ICON TYPOGRAPHIC ── */
.stat-icon-typo {
    display: flex;
    align-items: center; justify-content: center;
    width: 48px; height: 48px;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 20px; font-weight: 900;
    margin-bottom: 16px;
    margin-left: auto; margin-right: auto;
    letter-spacing: -0.5px;
    line-height: 1;
}

/* ── CAT-MARK: replaces category emoji ── */
.cat-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    font-size: 11px;
    font-weight: 900;
    background: var(--black);
    color: var(--white);
    border-radius: 4px;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    vertical-align: middle;
}
.cat-mark.sports   { background: #1a1a1a; }
.cat-mark.culture  { background: #2d2d2d; }
.cat-mark.music    { background: #0a0a0a; }
.cat-mark.env      { background: #1f2f1f; }
.cat-mark.edu      { background: #1a1f2d; }
.cat-mark.tech     { background: #0d1a2d; }

/* ── ROLE-MARK: replaces role emoji ── */
.role-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    font-size: 12px;
    font-weight: 900;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
    vertical-align: middle;
}
.role-mark.creator { background: var(--black); color: var(--white); }
.role-mark.sponsor { background: var(--gray-200); color: var(--gray-700); }
.mode-tab.active .role-mark { background: rgba(255,255,255,0.2); color: var(--white); }

/* ══════════════════════════════════════════════════════════
   SPONSORS SECTION
   ══════════════════════════════════════════════════════════ */
.sponsors-section {
    padding: 80px 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.sponsor-card-item {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    cursor: pointer;
    transition: all var(--transition-md);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sponsor-card-item:hover {
    border-color: var(--black);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.sponsor-card-item.sponsor-featured {
    border-color: var(--black);
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    position: relative;
}
.sponsor-featured-badge {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--black);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    letter-spacing: 0.3px;
}
.sponsor-card-logo {
    width: 56px; height: 56px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    font-weight: 900;
    color: var(--gray-600);
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.sponsor-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
}
.sponsor-card-sector {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sponsor-card-desc {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
    flex: 1;
}
.sponsor-card-budget {
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    padding: 6px 0;
    border-top: 1px solid var(--gray-100);
}
.sponsor-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sponsor-tag-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: var(--radius-pill);
}

/* ══════════════════════════════════════════════════════════
   PROJECT DETAIL MODAL — TABBED
   ══════════════════════════════════════════════════════════ */
.detail-tabs {
    display: flex;
    gap: 2px;
    background: var(--gray-100);
    border-radius: var(--radius-pill);
    padding: 4px;
    margin-bottom: 24px;
}
.detail-tab {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

/* ══════════════════════════════════════════════════════════
   WIZARD REDESIGN: LEGAL TERMINAL & PROTECTION MODULES (v15.0)
   ══════════════════════════════════════════════════════════ */

.legal-terminal-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    height: 480px;
}

.legal-modules-sidebar {
    width: 240px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-module-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    padding: 16px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.legal-module-card:hover {
    border-color: var(--black);
    background: var(--white);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.legal-module-card.active {
    background: var(--black);
    border-color: var(--black);
}

.legal-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-module-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-700);
}

.legal-module-card.active .legal-module-label { color: var(--white); }

.legal-module-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    box-shadow: 0 0 0 2px var(--white);
}

.legal-module-card.active .legal-module-status {
    background: var(--gold);
    box-shadow: var(--gold-glow);
}

.legal-module-desc {
    font-size: 11px;
    color: var(--gray-400);
    line-height: 1.4;
}

.legal-module-card.active .legal-module-desc { color: rgba(255,255,255,0.6); }

/* The Terminal Container */
.legal-terminal-container {
    flex: 1;
    background: #090B10;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.25);
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

.legal-terminal-header {
    padding: 16px 24px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 10px;
    color: #50555F;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-terminal-body {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.legal-terminal-body::-webkit-scrollbar { width: 6px; }
.legal-terminal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

.legal-clause-block {
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s forwards;
}

.clause-num { color: #50555F; margin-right: 15px; font-weight: 200; }
.clause-content { display: inline; }
.clause-highlight { color: #fff; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.1); }

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

/* Legal Health Gauge Premium */
.legal-health-meter {
    position: absolute;
    top: 30px;
    right: 30px;
    padding: 15px 20px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 20;
}

.mini-gauge-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mini-gauge-fill {
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow: var(--gold-glow);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Adjusted via JS */
    transition: all 0.5s var(--transition);
}

.mini-gauge-val {
    font-size: 11px;
    font-weight: 900;
    color: #fff;
}

.legal-health-info {
    display: flex;
    flex-direction: column;
}

.legal-health-info span {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #50555F;
}

.legal-health-info strong {
    font-size: 13px;
    color: #fff;
}

/* Special effects for generation */
.scanning-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: scanMove 3s infinite linear;
    z-index: 10;
    display: none;
}

@keyframes scanMove {
    0% { top: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.legal-terminal-container.scanning .scanning-line { display: block; }
.legal-terminal-container.scanning .legal-terminal-body { filter: blur(2px); opacity: 0.5; }

/* Action Footer */
.legal-terminal-footer {
    padding: 24px 30px;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    gap: 12px;
}

.btn-terminal {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-terminal:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.btn-terminal.primary {
    background: var(--black-gold-gradient);
    color: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.btn-terminal.primary:hover {
    background: var(--black);
    color: var(--white);
    border: 1px solid var(--white);
    box-shadow: var(--gold-glow);
}
    color: var(--gray-500);
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
    text-align: center;
    white-space: nowrap;
}
.detail-tab.active {
    background: var(--white);
    color: var(--black);
    box-shadow: var(--shadow-sm);
}
.detail-tab:not(.active):hover { color: var(--black); }
.detail-tab-pane { display: none; }
.detail-tab-pane.active { display: block; }

/* Packages (Finances tab) */
.packages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}
.package-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    transition: border-color var(--transition);
}
.package-item:hover { border-color: var(--black); }
.package-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--black);
    letter-spacing: -0.5px;
    min-width: 72px;
    flex-shrink: 0;
}
.package-info { flex: 1; }
.package-name { font-size: 14px; font-weight: 700; color: var(--black); margin-bottom: 2px; }
.package-desc { font-size: 12px; color: var(--gray-500); line-height: 1.4; }

/* Benefits (Avantages tab) */
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--gray-700);
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}
.benefit-item:last-child { border-bottom: none; }
.benefit-mark {
    width: 24px; height: 24px;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-pill);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Contact tab form */
.contact-form-mini {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-form-mini .form-input {
    padding: 10px 14px;
    font-size: 14px;
}
.contact-form-mini textarea.form-input {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

/* Previous sponsors chips */
.prev-sponsors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.prev-sponsor-chip {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-pill);
    border: 1px solid var(--gray-200);
}

/* Presentation tab */
.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.detail-info-item {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}
.detail-info-label { font-size: 11px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.detail-info-value { font-size: 14px; font-weight: 600; color: var(--black); }

@media (max-width: 480px) {
    .detail-tabs { overflow-x: auto; }
    .detail-tab { font-size: 12px; padding: 7px 10px; }
    .sponsors-grid { grid-template-columns: 1fr; }
    .detail-info-grid { grid-template-columns: 1fr; }
}

/* ── NAV REDESIGN ── */
.nav-center { display: flex; align-items: center; gap: 4px; }
.nav-auth-row { display: flex; align-items: center; gap: 8px; }

/* Compact mode toggle in nav */
.nav-mode-toggle { gap: 2px; }
.nav-mode-toggle .mode-tab { padding: 7px 14px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.nav-mode-toggle .mode-tab-text { font-size: 13px; font-weight: 600; }

/* btn-primary (alias for btn-black, used in dashboard) */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--black-gold-gradient);
    color: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 14px; font-weight: 700;
    padding: 11px 22px; border-radius: var(--radius-pill);
    transition: all var(--transition);
    cursor: pointer; white-space: nowrap;
}
.btn-primary:hover { background: var(--black); box-shadow: var(--gold-glow); transform: translateY(-1px); }

/* btn-sm modifier */
.btn-primary.btn-sm,
.btn-outline.btn-sm {
    font-size: 12px;
    padding: 7px 14px;
}

/* btn-black (solid black, white text) */
.btn-black {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--black); color: var(--white);
    font-size: 14px; font-weight: 700;
    padding: 10px 20px; border-radius: var(--radius-pill);
    transition: all var(--transition);
    border: none; cursor: pointer;
}
.btn-black:hover { background: var(--gray-800); }
.btn-black.btn-full { width: 100%; }
.btn-black.btn-lg { padding: 17px 36px; font-size: 16px; }

/* User chip (logged-in nav button) */
.nav-user-chip {
    display: flex; align-items: center; gap: 8px;
    background: var(--gray-100); border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-pill);
    padding: 6px 14px 6px 6px;
    font-size: 13px; font-weight: 600; color: var(--black);
    cursor: pointer; transition: all var(--transition);
}
.nav-user-chip:hover { border-color: var(--black); background: var(--gray-200); }
.nav-user-avatar-circle {
    width: 28px; height: 28px;
    background: var(--black); color: var(--white);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 900;
}

/* ── REGISTRATION MODAL ── */
.reg-modal-content {
    max-width: 560px;
    padding: 0;
    overflow: hidden;
}
.reg-modal-content .modal-close { top: 16px; right: 16px; }

/* Progress bar */
.reg-progress {
    height: 3px;
    background: var(--gray-200);
}
.reg-progress-bar {
    height: 100%;
    background: var(--black);
    transition: width 0.4s ease;
}

/* Step container */
.reg-step { padding: 32px 32px 24px; }
.reg-step .modal-header { margin-bottom: 24px; }

/* Expanded width for project creation step */
#register-modal:has(#reg-step-3a:not(.hidden)) .modal-content {
    max-width: 1000px;
    transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Choice Cards (Step 2) */
.choice-cards-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.choice-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.choice-card:hover { 
    border-color: var(--black); 
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.choice-card.selected {
    border-color: var(--black);
    background: #FAFAFA;
}
.choice-card.selected::after {
    content: '✓';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
.choice-icon { font-size: 32px; }
.choice-title { font-weight: 800; font-size: 16px; color: var(--black); }
.choice-desc { font-size: 13px; color: var(--gray-500); line-height: 1.4; }

/* Stat Cards (Step 4) */
.stat-input-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px;
    transition: border-color 0.2s;
}
.stat-input-card:focus-within {
    border-color: var(--black);
    background: var(--white);
}

/* Premium Text Button */
.btn-text-premium {
    background: none; border: none; padding: 0;
    color: var(--black); font-weight: 700;
    text-decoration: underline; text-underline-offset: 4px;
    cursor: pointer;
    transition: color 0.2s;
}
.btn-text-premium:hover { color: var(--gray-600); }

/* Mini Map */
#mini-map-container {
    width: 100%;
    z-index: 10;
}

/* Tag System (Step 5) */
.tag-system-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--white);
    min-height: 48px;
    align-items: center;
}
.tag-chip {
    background: var(--gray-100);
    color: var(--black);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}
.tag-chip:hover { background: var(--gray-200); }
.tag-remove {
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}
.tag-input {
    border: none !important;
    outline: none !important;
    padding: 4px !important;
    font-size: 13px;
    background: transparent;
    flex: 1;
    min-width: 120px;
}

/* Address Suggestions */
.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 4px;
}
.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}
.suggestion-item:hover { background: var(--gray-50); }
.suggestion-item:not(:last-child) { border-bottom: 1px solid var(--gray-100); }

.suggestion-item-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.suggestion-item-profile:hover {
    background: var(--gray-50);
}
.suggestion-profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--gray-200);
}
.suggestion-profile-info {
    display: flex;
    flex-direction: column;
}
.suggestion-profile-handle {
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
}
.suggestion-profile-name {
    font-size: 11px;
    color: var(--gray-500);
}

/* Step Grouping */
.form-group-header {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gray-500);
    margin: 16px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-group-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-100);
}

.reg-step-label {
    display: inline-block;
    font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--white); 
    background: var(--black);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

/* Back button */
.reg-back-btn {
    margin-top: 16px;
    font-size: 13px; font-weight: 600; color: var(--gray-500);
    background: none; border: none; cursor: pointer;
    display: flex; align-items: center; gap: 4px;
    padding: 0;
}
.reg-back-btn:hover { color: var(--black); }

/* Role selection cards */
.reg-role-cards {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-bottom: 16px;
}
.reg-role-card {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition-md);
}
.reg-role-card:hover { border-color: var(--black); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.reg-role-card.selected { border-color: var(--black); background: var(--gray-50); }
.reg-role-mark {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 900;
    margin-bottom: 12px;
}
.reg-role-mark.creator { background: var(--black); color: var(--white); }
.reg-role-mark.sponsor { background: var(--gray-200); color: var(--gray-700); }
.reg-role-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.reg-role-card > p { font-size: 13px; color: var(--gray-500); margin-bottom: 12px; line-height: 1.5; }
.reg-role-list { list-style: none; margin-bottom: 16px; }
.reg-role-list li { font-size: 12px; color: var(--gray-600); padding: 2px 0; }
.reg-role-list li::before { content: "✓ "; font-weight: 700; color: var(--black); }
.reg-role-cta { font-size: 13px; font-weight: 700; color: var(--black); }

/* Form helpers */
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-textarea { resize: vertical; min-height: 80px; font-family: var(--font); }
.form-hint { font-size: 11px; font-weight: 400; color: var(--gray-400); float: right; }

/* Checkbox grid */
.checkbox-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; margin-top: 8px;
}
.checkbox-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 500; color: var(--gray-700);
    cursor: pointer;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    transition: all var(--transition);
}
.checkbox-item:hover { border-color: var(--gray-400); }
.checkbox-item input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--black); cursor: pointer; }

/* Password input with toggle button */
.input-with-toggle { position: relative; }
.input-with-toggle .form-input { padding-right: 56px; }
.input-toggle-btn {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    font-size: 10px; font-weight: 800; color: var(--gray-500);
    letter-spacing: 0.5px;
}
.input-toggle-btn:hover { color: var(--black); }

/* ============================================================
   RE-DESIGN: ELITE COUTURE DASHBOARD (v11.0 - STARK WHITE)
   ============================================================ */

#dashboard-modal .modal-content.db-panel {
    width: 1240px; /* Fixed width for stability */
    max-width: 95vw;
    padding: 0;
    display: flex;
    height: 92vh;
    max-height: 900px;
    background: #FFFFFF; /* Stark Couture White */
    color: #1A202C;
    border: none; /* Removed white border */
    border-radius: 32px;
    margin: auto; /* Force centering in grid/flex */
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.05);
    overflow: hidden; /* Ensure children like sidebar and body follow the rounded corners */
}


#dashboard-modal .modal-close {
    background: #F1F5F9;
    color: #000;
}
#dashboard-modal .modal-close:hover {
    background: #E2E8F0;
}


.db-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: linear-gradient(to bottom, #222222 0%, #000000 100%);
    border-right: 1px solid #111111;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    overflow: hidden;
    height: 100%;
}

.db-avatar-wrap {
    padding: 24px 30px;
    border-bottom: 1px solid #111111;
    flex-shrink: 0;
    min-height: 145px;
    box-sizing: border-box;
}

.db-avatar-circle {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: #1a1a1a;
    color: var(--white);
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.db-avatar-name {
    font-size: 15px;
    font-weight: 850;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}

.db-avatar-email {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}

.db-nav {
    flex: 1;
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.db-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.db-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-400);
    transition: all 0.3s var(--transition);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.db-nav-btn svg { width: 18px; height: 18px; opacity: 0.8; }
.db-nav-btn:hover { color: var(--white); background: rgba(255,255,255,0.05); }

.db-nav-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-right: 3px solid var(--white);
    border-radius: 0;
}
.db-nav-btn.active svg { opacity: 1; color: var(--white); }

.db-nav-badge {
    margin-left: auto;
    background: var(--white);
    color: var(--black);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 2px;
}

.db-sidebar-foot {
    padding: 20px 15px;
    border-top: 1px solid #111111;
    background: transparent;
    flex-shrink: 0;
    width: 100%;
}

.db-logout-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #222222;
    color: var(--gray-400);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}
.db-logout-btn:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* Dashboard Body */
.db-body {
    flex: 1;
    padding: 40px 60px;
    background: #FFFFFF;
    overflow-y: auto;
    border-radius: 0 32px 32px 0;
}

.db-pane { display: none; margin-top: 20px; }
.db-pane.active { display: block; animation: fadeInPane 0.4s ease-out; }

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

.db-pane-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 8px;
    color: #1A202C;
}

.db-pane-sub {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 40px;
}

/* Overview Layout */
.db-overview-grid {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.db-overview-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.db-overview-aside {
    width: 320px;
    flex-shrink: 0;
    min-width: 320px;
}

@media (max-width: 1024px) {
    .db-overview-grid {
        flex-direction: column;
    }
    .db-overview-aside {
        width: 100%;
    }
}


/* Custom Widgets */
.db-card-premium {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    padding: 30px;
    position: relative;
    overflow: visible; /* Allow text to breathe */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.db-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.db-stat-mini {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.3s var(--transition);
}
.db-stat-mini:hover { border-color: var(--black); box-shadow: var(--shadow-sm); }
.db-stat-mini span { font-size: 10px; font-weight: 800; color: var(--gray-500); text-transform: uppercase; letter-spacing: 1px; }
.db-stat-mini strong { display: block; font-size: 24px; font-weight: 900; margin-top: 5px; color: var(--black); }

/* Completion Ring Container */
.db-completion-ring-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative; /* CRITICAL FIX for absolute children */
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}


.completion-ring-svg {
    width: 140px;
    height: 140px;
    transform: rotate(-90deg);
}

.ring-bg { fill: none; stroke: var(--gray-100); stroke-width: 8; }
.ring-fill {
    fill: none;
    stroke: var(--black);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 415;
    stroke-dashoffset: 415;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ring-text {
    position: absolute;
    font-size: 28px;
    font-weight: 950;
    color: #000;
}

/* Activity Timeline */
.db-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.db-timeline-item {
    display: flex;
    gap: 15px;
    position: relative;
}

.db-timeline-item::before {
    content: '';
    position: absolute;
    left: 7px; top: 20px; bottom: -12px;
    width: 1px;
    background: var(--gray-200);
}
.db-timeline-item:last-child::before { display: none; }

.timeline-dot {
    width: 14px; height: 14px;
    border-radius: 0; /* Square/Diamond look for Uber style */
    background: var(--gray-300);
    border: 2px solid var(--white);
    z-index: 2;
    margin-top: 4px;
    transform: rotate(45deg);
}
.timeline-dot.active { background: var(--black); box-shadow: 0 0 10px rgba(0,0,0,0.1); }

.timeline-content { flex: 1; }
.timeline-title { font-size: 13px; font-weight: 800; color: #1A202C; }
.timeline-time { font-size: 11px; color: #64748B; margin-top: 2px; }

/* Verification Badge */
.db-v-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(47, 133, 90, 0.1); /* Lighter bg for premium feel */
    color: #2F855A;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    margin-top: 10px;
    white-space: nowrap; /* Prevent badge from wrapping */
}
.db-v-badge[data-verified="false"] { background: #FFFBEB; color: #B7791F; }

/* Multi-Account Switcher */
.db-account-switcher {
    margin-bottom: 25px;
    padding: 3px;
    background: rgba(255,255,255,0.05); /* Subtle dark container */
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    gap: 0; /* No gap to prevent width shifts */
    height: 40px; /* Fixed height */
    box-sizing: border-box;
    width: 100%;
}
.db-account-btn {
    flex: 1;
    height: 34px; /* Internal height */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.3s var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    background: transparent;
}
.db-account-btn.active { 
    background: var(--gray-800) !important; 
    color: var(--white) !important; 
    box-shadow: none; 
}

/* Scrollbar */
.db-body::-webkit-scrollbar { width: 4px; }
.db-body::-webkit-scrollbar-thumb { background: #EDF2F7; border-radius: 10px; }



/* Scrollbar premium */
.db-body::-webkit-scrollbar { width: 4px; }
.db-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
.db-status-card {
    background: #FFFFFF;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s var(--transition);
}
.db-status-card:hover { border-color: var(--black); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }

.db-status-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.db-status-card-name { font-size: 18px; font-weight: 900; color: var(--black); letter-spacing: -0.5px; }
.db-status-card-cat  { font-size: 11px; font-weight: 800; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

.db-status-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.db-info-row { 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
}
.db-info-row strong { 
    font-size: 10px; 
    font-weight: 800; 
    text-transform: uppercase; 
    color: var(--gray-400); 
    letter-spacing: 0.5px;
}
.db-info-row span { 
    font-size: 14px; 
    font-weight: 700; 
    color: var(--black); 
}





.db-rejection-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-top: 14px;
    font-size: 13px;
    color: #b91c1c;
    line-height: 1.5;
}

.db-tag-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--gray-500);
    margin-bottom: 6px;
}

.db-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.db-tag {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 99px;
    padding: 3px 10px;
    font-size: 12px;
    color: var(--gray-700);
}

/* Favorites */
.db-favs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.db-fav-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.db-fav-name { font-size: 14px; font-weight: 700; color: var(--black); }
.db-fav-meta { font-size: 12px; color: var(--gray-500); }
.db-fav-actions { display: flex; gap: 8px; margin-top: 8px; }

/* Settings */
.db-settings-section { margin-bottom: 34px; }
.db-settings-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.db-danger-title { color: #b91c1c; border-color: #fecaca; }

.db-pref-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.db-danger-btn {
    background: #fef2f2;
    color: #b91c1c;
    border: 1.5px solid #fecaca;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.db-danger-btn:hover { background: #fee2e2; border-color: #f87171; }

/* ══════════════════════════════════════════════════════════
   OFFER CARDS & NEGOTIATION
   ══════════════════════════════════════════════════════════ */
.chat-msg.offer {
    display: flex;
    justify-content: center;
    margin: 24px 0;
    width: 100%;
}
.offer-box {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.offer-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: var(--black);
}
.offer-box.accepted { border-color: #10b981; background: #f0fdf4; }
.offer-box.rejected { border-color: #ef4444; opacity: 0.85; }
.offer-header {
    background: var(--black); color: var(--white);
    padding: 16px 20px;
    display: flex; align-items: center; gap: 12px;
}
.offer-box.accepted .offer-header { background: #10b981; }
.offer-box.rejected .offer-header { background: #ef4444; }
.offer-icon { font-size: 20px; }
.offer-title { font-size: 15px; font-weight: 700; flex: 1; }
.offer-tag {
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px; border-radius: 4px;
}
.offer-body { padding: 20px; }
.offer-desc { font-size: 14px; line-height: 1.6; color: var(--gray-600); white-space: pre-wrap; }
.offer-amount-tag {
    display: inline-block; margin-top: 16px;
    background: var(--gray-100);
    padding: 8px 16px; border-radius: 12px;
    font-weight: 900; font-size: 22px;
    color: var(--black); letter-spacing: -0.5px;
}
.offer-actions-container { padding: 16px 20px 20px; border-top: 1px solid var(--gray-100); }
.offer-actions { display: flex; gap: 10px; }
.offer-btn-accept {
    flex: 2; background: var(--black); color: var(--white);
    border: none; padding: 12px; border-radius: 12px;
    font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.offer-btn-accept:hover { background: #333; transform: scale(1.02); }
.offer-btn-reject {
    flex: 1; background: var(--white); color: #ef4444;
    border: 1.5px solid #fee2e2; padding: 12px; border-radius: 12px;
    font-weight: 700; cursor: pointer;
}
.offer-btn-reject:hover { background: #fef2f2; border-color: #fecaca; }
.offer-btn-view {
    width: 100%; background: #10b981; color: var(--white);
    border: none; padding: 12px; border-radius: 12px;
    font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.offer-btn-view:hover { background: #059669; }
.offer-status-rejected {
    text-align: center; color: #ef4444; font-weight: 700; font-size: 14px; text-transform: uppercase;
}
.offer-waiting { text-align: center; font-size: 13px; font-style: italic; color: var(--gray-500); }

/* ============================================================
   CHAT / MESSAGING SYSTEM
   ============================================================ */

/* Chat container — full height within dashboard pane */
.db-chat-container {
    display: flex;
    height: 100%;
    min-height: 600px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

/* ── Chat Sidebar (conversation list) ── */
#db-chat-sidebar-panel {
    width: 260px;
    flex: 0 0 260px;
    border-right: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 5;
}

/* Super Compact Mode Override */
#db-chat-sidebar-panel.chat-conv-open {
    width: 84px !important;
    min-width: 84px !important;
    flex: 0 0 84px !important;
}

#db-chat-sidebar-panel.chat-conv-open .db-chat-sidebar-head,
#db-chat-sidebar-panel.chat-conv-open .db-chat-item:not(.active) {
    display: none !important;
}

#db-chat-sidebar-panel.chat-conv-open .db-chat-item-info {
    display: none !important;
}

#db-chat-sidebar-panel.chat-conv-open .db-chat-list {
    padding-top: 20px;
}

/* Resizer handle */
.db-chat-resizer {
    width: 4px;
    cursor: col-resize;
    background: transparent;
    transition: background 0.2s;
    position: relative;
    z-index: 10;
    margin-left: -2px;
    margin-right: -2px;
}
.db-chat-resizer:hover, .db-chat-resizer.resizing {
    background: var(--black);
}

/* Hide resizer in compact mode */
.db-chat-sidebar.chat-conv-open + .db-chat-resizer {
    display: none !important;
}

.db-chat-sidebar-head {
    padding: 24px 20px;
    font-size: 20px;
    font-weight: 900;
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: -0.8px;
    border-bottom: 1px solid #f1f5f9;
    min-height: 84px;
    width: 260px; /* Ensure head content doesn't squash */
}

/* Hide text elements and header only when collapsed AND not hovered */
#db-chat-sidebar-panel.chat-conv-open:not(:hover) .db-chat-sidebar-head span,
#db-chat-sidebar-panel.chat-conv-open:not(:hover) .db-chat-sidebar-head .chat-new-btn {
    display: none !important;
}

#db-chat-sidebar-panel .db-chat-sidebar-head span,
#db-chat-sidebar-panel .db-chat-sidebar-head .chat-new-btn {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

#db-chat-sidebar-panel h2,
#db-chat-sidebar-panel .chat-new-btn {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

#db-chat-sidebar-panel .chat-new-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    color: var(--white);
    border-radius: 12px;
    font-size: 22px;
    cursor: pointer;
}

.db-chat-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
}

.db-chat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.3s var(--transition-md);
    position: relative;
    border-radius: 16px;
    margin-bottom: 4px;
    min-width: 244px; /* Matches expanded sidebar content width to avoid reflow */
}
.db-chat-item:hover {
    background: #f8fafc;
}
.db-chat-item.active {
    background: #f1f5f9;
}
.db-chat-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 3px;
    background: var(--black);
    border-radius: 0 4px 4px 0;
}

.db-chat-item-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #1e293b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Info visibility logic: visible unless sidebar is collapsed and not hovered */
.db-chat-item-info {
    flex: 1;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.db-chat-sidebar.chat-conv-open:not(:hover) .db-chat-item-info {
    opacity: 0;
    visibility: hidden;
}

.db-chat-item-info {
    flex: 1;
    min-width: 0;
}

.db-chat-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.db-chat-item-name {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-chat-item-time {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
}

.db-chat-item-preview {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.db-chat-item-unread-dot {
    width: 10px;
    height: 10px;
    background: var(--black);
    border: 2px solid white;
    border-radius: 50%;
    position: absolute;
    left: 48px;
    top: 14px;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

/* Chat empty state */
.db-chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 60px 40px;
    text-align: center;
}
.db-chat-empty-icon {
    font-size: 64px;
    margin-bottom: 24px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}
.db-chat-empty h4 {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 12px;
}
.db-chat-empty p {
    font-size: 14px;
    color: #64748b;
    max-width: 260px;
    line-height: 1.6;
}

/* ── Chat Main Area ── */
.db-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
}

.db-chat-main-head {
    padding: 16px 32px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    z-index: 10;
}

.db-chat-head-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--black);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.db-chat-head-info {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.db-chat-head-info small {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.db-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #ffffff;
}

/* Date Separator */
.chat-date-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 32px 0;
}
.chat-date-sep span {
    background: #f8fafc;
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border: 1px solid #f1f5f9;
}

/* Individual message bubble */
.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: chatMsgIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.chat-msg.sent { align-self: flex-end; align-items: flex-end; }
.chat-msg.received { align-self: flex-start; align-items: flex-start; }

.chat-msg-bubble {
    padding: 16px 24px;
    font-size: 15.5px;
    line-height: 1.6;
    word-wrap: break-word;
    border-radius: 20px;
}

.chat-msg.sent .chat-msg-bubble {
    background: #0f172a;
    color: #ffffff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.1);
}
.chat-msg.received .chat-msg-bubble {
    background: #f1f5f9;
    color: #1e293b;
    border-bottom-left-radius: 4px;
    border: 1px solid #f1f5f9;
}

.chat-msg-time {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 8px;
    padding: 0 4px;
}

/* Input Area */
.db-chat-input-area {
    padding: 24px 48px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.db-chat-textarea {
    flex: 1;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 18px;
    padding: 16px 28px;
    font-size: 15px;
    line-height: 1.5;
    color: #1e293b;
    resize: none;
    max-height: 180px;
    transition: all 0.3s ease;
}
.db-chat-textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.db-chat-send-btn {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s var(--transition-md);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}
.db-chat-send-btn:hover {
    background: #1e293b;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
}
.db-chat-send-btn svg {
    width: 22px;
    height: 22px;
    color: white;
}

/* ── CONTRACTS DASHBOARD & CHAT CARDS ── */
.db-contracts-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}
.contract-row {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition);
}
.contract-row:hover {
    border-color: var(--black);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.contract-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.contract-title {
    font-weight: 800;
    font-size: 16px;
    color: var(--black);
}
.contract-meta {
    font-size: 13px;
    color: var(--gray-500);
}
.contract-actions {
    display: flex;
    gap: 10px;
}

/* ── CONTRACTS DASHBOARD & CHAT CARDS ── */
.contract-draft-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    width: 320px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin: 10px 0;
}
.contract-draft-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.contract-draft-icon { font-size: 24px; }
.contract-draft-title { font-size: 14px; font-weight: 900; color: #0f172a; text-transform: uppercase; letter-spacing: 0.5px; }
.contract-draft-terms { font-size: 14px; color: #64748b; line-height: 1.6; margin-bottom: 20px; }
.contract-draft-terms strong { color: #0f172a; font-weight: 800; display: block; margin-bottom: 4px; }
.contract-draft-actions { display: flex; gap: 10px; }



.contract-update-card-inner {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.contract-update-card-inner:hover { 
    border-color: #6366f1; 
    transform: translateY(-5px);
    background: #ffffff; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
}

.chat-msg.contract-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    padding: 24px;
    width: 320px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}
.contract-card-icon { font-size: 32px; margin-bottom: 12px; }
.contract-card-title { font-weight: 900; font-size: 15px; color: #0f172a; margin-bottom: 6px; }
.contract-card-desc { font-size: 13.5px; color: #64748b; line-height: 1.6; margin-bottom: 20px; }
.contract-card-btn {
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 12px;
    font-size: 13px;
    font-weight: 800;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}
.contract-card-btn:hover { background: #1e293b; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2); }
.contract-card-btn:hover {
    transform: translateY(-2px);
    background: #334155;
}
.chat-typing-dot {
    width: 6px;
    height: 6px;
    background: var(--gray-400);
    border-radius: 50%;
    animation: chatTypingBounce 1.4s ease-in-out infinite;
}
.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Chat message button in project detail */
.chat-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--black);
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 12px;
}
.chat-contact-btn:hover {
    background: var(--gray-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.chat-contact-btn svg { width: 16px; height: 16px; }

/* Start conversation modal */
.chat-start-modal-list {
    max-height: 360px;
    overflow-y: auto;
    margin-top: 12px;
}
.chat-start-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
}
.chat-start-item:hover {
    background: var(--gray-100);
    border-color: var(--gray-200);
}
.chat-start-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    background: var(--gray-200);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.chat-start-item-info {
    flex: 1;
}
.chat-start-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}
.chat-start-item-role {
    font-size: 12px;
    color: var(--gray-500);
}

/* Animations */
@keyframes chatMsgIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes chatTypingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* ── Chat Responsive ── */
@media (max-width: 680px) {
    .db-chat-container {
        flex-direction: column;
        min-height: 400px;
    }
    .db-chat-sidebar {
        width: 100%;
        min-width: unset;
        max-height: 100%;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
    .db-chat-sidebar.chat-conv-open {
        display: none;
    }
    .db-chat-main.chat-conv-closed {
        display: none;
    }
    .db-chat-head-back {
        display: flex;
    }
    .chat-msg {
        max-width: 85%;
    }
    .db-chat-messages {
        padding: 16px;
    }
    .db-chat-input-area {
        padding: 12px 16px;
    }
}

/* Responsive */
@media (max-width: 680px) {
    #dashboard-modal .modal-content.db-panel {
        flex-direction: column;
        height: 95vh;
        max-height: none;
    }
    .db-sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        padding: 14px 16px;
        gap: 16px;
        flex-shrink: 0;
        height: auto;
    }
    .db-avatar-wrap {
        flex-direction: row;
        border-bottom: none;
        padding: 0;
        gap: 12px;
        flex: 1;
        align-items: center;
    }
    .db-avatar-circle { width: 44px; height: 44px; font-size: 16px; margin-bottom: 0; }
    .db-avatar-email  { display: none; }
    .db-role-pill     { margin-top: 4px; }
    .db-nav { display: none; }
    .db-sidebar-foot  { display: none; }
    .db-body { padding: 20px; }
    .db-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .db-favs-grid  { grid-template-columns: 1fr; }
}

/* ============================================================
   DARK MODE
   ============================================================ */
:root.dark-mode {
    --black:          #FFFFFF;
    --white:          #0F0F0F;
    --green-dark:     #0F0F0F;
    --green-light:    #1C1C1C;
    --green-xlight:   #171717;
    --gray-50:        #111111;
    --gray-100:       #1A1A1A;
    --gray-200:       #272727;
    --gray-300:       #3A3A3A;
    --gray-400:       #5C5C5C;
    --gray-500:       #8D8D8D;
    --gray-600:       #A3A3A3;
    --gray-700:       #C9C9C9;
    --gray-800:       #DEDEDE;
    --gray-900:       #EEEEEE;
}

.dark-mode body { background: var(--white); color: var(--gray-900); }
.dark-mode .navbar { background: var(--white); border-color: var(--gray-200); }
.dark-mode .modal-content { background: var(--white); }
.dark-mode .form-input { background: var(--gray-100); color: var(--gray-900); border-color: var(--gray-300); }
.dark-mode .form-input:focus { border-color: var(--gray-400); background: var(--gray-100); }
.dark-mode .btn-green { background: #22C55E; }
.dark-mode .btn-ghost { color: var(--gray-900); }
.dark-mode .card { background: var(--gray-100); }
.dark-mode .hero-subtitle { color: var(--gray-700); }
.dark-mode .how-card { background: var(--gray-100); }
.dark-mode .pricing-card { background: var(--gray-100); border-color: var(--gray-300); }
.dark-mode .testimonial-card { background: var(--gray-100); }
.dark-mode .story-card { background: var(--gray-100); }

/* ── Dark Mode Icon Toggle ── */
.dark-mode .dark-icon { display: none; }
.dark-mode .light-icon { display: block !important; }

/* ============================================================
   DASHBOARD (legacy — unused, kept for compat)
   ============================================================ */

/* ============================================================
   RATINGS & REVIEWS
   ============================================================ */
.rating-stars {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.star {
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-300);
    transition: color 0.2s ease;
}

.star:hover { color: #F5A623; }
.star.active { color: #F5A623; }

/* ============================================================
   SAVE SEARCH / ALERTS
   ============================================================ */
.alerts-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.alert-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    transition: background 0.2s ease;
}

.alert-checkbox:hover { background: var(--gray-50); }
.alert-checkbox input { cursor: pointer; }

/* ============================================================
   SUCCESS STORIES SECTION
   ============================================================ */
.success-stories {
    background: linear-gradient(135deg, #F8F8F8 0%, #EEEEEE 100%);
    padding: 80px 0;
    margin: 80px 0 0 0;
}

.success-stories .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.success-stories h2 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
}

.success-stories .section-header p {
    font-size: 18px;
    color: var(--gray-500);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.story-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--gray-100);
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.story-badge {
    background: var(--green-light);
    color: var(--gray-600);
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-badge.culture { background: #EDE9FE; color: #6D28D9; }
.story-badge.musique { background: #FCE7F3; color: #BE185D; }

.story-rating {
    font-size: 13px;
    color: #F5A623;
    font-weight: 600;
}

.story-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--black);
}

.story-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 16px;
    font-style: italic;
}

.story-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 600;
}

/* ============================================================
   ADMIN NOTIFICATION POPUPS
   ============================================================ */

.admin-notification-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-notification-popup {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    animation: slideInRight 0.3s ease;
}

.admin-notif-info {
    border-left-color: #3b82f6;
}

.admin-notif-success {
    border-left-color: #10b981;
}

.admin-notif-warning {
    border-left-color: #f59e0b;
}

.admin-notif-error {
    border-left-color: #ef4444;
}

.admin-notif-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.admin-notif-message {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    flex: 1;
    line-height: 1.5;
}

.admin-notif-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-300);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.admin-notif-close:hover {
    color: var(--gray-500);
}

@keyframes slideInRight {
    from { transform: translateX(400px); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
}
@keyframes notifIn {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* ============================================================
   ADMIN TABLE STYLES
   ============================================================ */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.admin-table thead {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.admin-table th {
    padding: 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-500);
    letter-spacing: 0.5px;
}

.admin-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
    background: var(--gray-50);
}

.admin-table td {
    padding: 16px 12px;
    font-size: 13px;
    color: var(--gray-700);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .db-stats-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .reg-role-cards { grid-template-columns: 1fr; }
    .form-row-2 { grid-template-columns: 1fr; }
    .checkbox-grid { grid-template-columns: 1fr; }
    .reg-step { padding: 24px 20px 20px; }
    .db-stats-grid  { grid-template-columns: repeat(2, 1fr); }
    .success-stories { padding: 40px 0; }
    .success-stories h2 { font-size: 32px; }
    .stories-grid { grid-template-columns: 1fr; }
}

/* ── SPONSORSHIP OFFERS & SIGNATURES ── */
.chat-msg.offer {
    max-width: 85%;
    align-self: center;
    margin: 16px 0;
}
.offer-box {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    overflow: hidden;
}
.dark-mode .offer-box {
    background: var(--gray-900);
    border-color: var(--gray-700);
}
.offer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}
.dark-mode .offer-header { border-color: var(--gray-800); }
.offer-icon {
    width: 32px; height: 32px;
    background: var(--black);
    color: var(--white);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}
.offer-title { font-weight: 800; font-size: 15px; letter-spacing: -0.3px; }
.offer-body { font-size: 14px; line-height: 1.5; color: var(--gray-600); margin-bottom: 16px; }
.dark-mode .offer-body { color: var(--gray-400); }
.offer-price { font-size: 24px; font-weight: 900; color: var(--black); margin-bottom: 4px; }
.dark-mode .offer-price { color: var(--white); }

.offer-actions { display: flex; gap: 8px; }
.offer-actions button { flex: 1; padding: 10px; font-size: 13px; font-weight: 700; border-radius: 10px; cursor: pointer; transition: all 0.2s; }
.offer-btn-accept { background: var(--black); color: var(--white); border: none; }
.offer-btn-reject { background: var(--white); color: var(--red); border: 1px solid var(--red); }
.offer-btn-accept:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.offer-btn-reject:hover { background: #fff1f2; }

.offer-status-label {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px; font-size: 13px; font-weight: 700; border-radius: 10px;
}
.offer-status-accepted { background: #dcfce7; color: #166534; }
.offer-status-rejected { background: #fee2e2; color: #991b1b; }

.db-chat-plus-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    color: var(--black);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.db-chat-plus-btn:hover { background: var(--black); color: var(--white); transform: rotate(90deg); }
.dark-mode .db-chat-plus-btn { background: var(--gray-800); color: var(--white); }
.db-chat-plus-btn svg { width: 22px; height: 22px; }

.db-sponso-status.status-accepted { background: #ecfdf5; color: #059669; }
.db-sponso-status.status-rejected { background: #fef2f2; color: #dc2626; }
.db-sponso-status.status-pending  { background: #fffbeb; color: #d97706; }
.db-sponso-status.status-paid     { background: #dcfce7; color: #166534; }
.db-sponso-status.status-pending-payment { background: #fff7ed; color: #9a3412; }

.btn-black-xs { background: var(--black); color: var(--white); border-radius: 6px; padding: 4px 10px; font-size: 11px; font-weight: 700; transition: all 0.2s; }
.btn-black-xs:hover { opacity: 0.8; transform: translateY(-1px); }

#signature-pad {
    border: 2px dashed var(--gray-300);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    cursor: crosshair;
    touch-action: none;
}
.dark-mode #signature-pad { background: var(--gray-800); border-color: var(--gray-700); }


/* --- DASHBOARD SPONSORING TAB --- */
.db-sponso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.db-sponso-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.db-sponso-card:hover {
    border-color: var(--black);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.db-sponso-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.db-sponso-card-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--black);
}

.db-sponso-card-proj {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

.db-sponso-card-date {
    font-size: 11px;
    color: var(--gray-400);
}

.db-sponso-status {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending { background: var(--gray-100); color: var(--gray-600); }
.status-accepted { background: #f0fdf4; color: #15803d; border-color: #bcf0da; }
.status-rejected { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.status-countered { background: #fffbeb; color: #b45309; border-color: #fde68a; }

.btn-amber {
    background: #fff7ed;
    color: #c2410c;
    border: 1.5px solid #fdba74;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-amber:hover {
    background: #ffedd5;
    border-color: #fb923c;
    transform: translateY(-1px);
}

.db-sponso-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition-md);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.db-sponso-card:hover { border-color: var(--black); box-shadow: var(--shadow-md); }

.db-sponso-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.btn-xs {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-green-xs { background: #10b981; color: white; }
.btn-green-xs:hover { background: #059669; }

.btn-ghost-xs { background: var(--gray-100); color: var(--gray-600); }
.btn-ghost-xs:hover { background: var(--gray-200); color: var(--black); }

.btn-green-xs { 
    background: var(--black) !important; 
    color: var(--white) !important; 
    border: none !important; 
}

.btn-ghost-xs { 
    background: transparent !important; 
    border: 1px solid var(--gray-200) !important; 
    color: var(--black) !important; 
}

.btn-xs:hover { 
    opacity: 0.8;
    transform: translateY(-1px);
}

/* Notification adaptations */
.notif-actions {
    margin: 10px 0;
    display: flex;
    gap: 8px;
}

/* ── NOTIFICATIONS PREMIUM ── */
.notif-item.unread { background: #f8fafc; border-left: 3px solid var(--black); }
.notif-item.unread.sponsoring-request { background: #fff7ed !important; border-left-color: #f97316 !important; }

.notif-icon-pulse {
    width: 36px; height: 36px;
    background: #f97316; color: white;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
    animation: pulse-orange 2s infinite;
    flex-shrink: 0;
    margin-right: 12px;
}
.notif-icon-pulse svg { width: 18px; height: 18px; color: white !important; }
@keyframes pulse-orange {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.db-chat-offer-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    height: 42px;
}
.db-chat-offer-trigger:hover {
    background: var(--black);
    border-color: var(--black);
}
.db-chat-offer-trigger:hover .offer-trigger-text,
.db-chat-offer-trigger:hover .offer-trigger-icon { color: white; }
.db-chat-offer-trigger .offer-trigger-icon { font-size: 16px; color: #f97316; }
.db-chat-offer-trigger .offer-trigger-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .offer-trigger-text { display: none; }
    .db-chat-offer-trigger { padding: 8px; width: 40px; height: 40px; justify-content: center; }
}

.notif-text { font-size: 13px; line-height: 1.5; color: var(--gray-700); margin: 0; }

.btn-notif-accept {
    background: var(--black); color: white;
    border: none; padding: 6px 14px; border-radius: 6px;
    font-size: 11px; font-weight: 700; cursor: pointer;
}
.btn-notif-reject {
    background: white; color: var(--gray-500);
    border: 1px solid var(--gray-200); padding: 6px 14px; border-radius: 6px;
    font-size: 11px; font-weight: 700; cursor: pointer;
}
.btn-notif-reject:hover { color: #ef4444; border-color: #fca5a5; background: #fef2f2; }

.notif-item.notif-offer { border-left-color: #10b981; background: #f0fdf4; }

/* ── COLLABORATIVE CONTRACT DRAFT CARDS ── */
.contract-draft-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 24px;
    width: 340px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    align-self: flex-start;
    margin: 12px 0;
}
.dark-mode .contract-draft-card { background: var(--gray-900); border-color: var(--gray-800); }

.contract-draft-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.contract-draft-icon { font-size: 24px; }
.contract-draft-title { font-weight: 800; font-size: 16px; color: var(--black); }

.contract-draft-terms { 
    background: #f8fafc; 
    border-radius: 12px; 
    padding: 16px; 
    margin-bottom: 20px; 
    font-size: 13px; 
    color: var(--gray-600);
    border: 1px solid rgba(0,0,0,0.02);
}
.dark-mode .contract-draft-terms { background: #1a1a1a; color: var(--gray-400); }

.contract-signature-status {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px dashed var(--gray-200);
}
.dark-mode .contract-signature-status { border-color: var(--gray-800); }

.signer-row { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    font-size: 13px; 
    font-weight: 700; 
    color: var(--gray-700);
}
.status-pill { 
    padding: 4px 10px; 
    border-radius: 100px; 
    font-size: 10px; 
    font-weight: 800;
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}
.status-pill.signed { background: #dcfce7; color: #15803d; }
.status-pill.waiting { background: #f1f5f9; color: #64748b; }
.dark-mode .status-pill.waiting { background: #272727; color: #a3a3a3; }

.contract-draft-actions { display: flex; gap: 10px; }
.contract-draft-actions button { 
    flex: 1; 
    height: 42px; 
    font-size: 13px; 
    font-weight: 800; 
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition);
}

.offer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.offer-icon {
    width: 44px;
    height: 44px;
    background: #fdf2f8; /* Soft pinkish/orangeish base */
    color: #f97316;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.offer-title-group {
    display: flex;
    flex-direction: column;
}

.offer-title {
    font-weight: 900;
    font-size: 16px;
    line-height: 1.2;
    color: var(--black);
}

.offer-role-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-400);
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.offer-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.offer-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-700);
    background: white;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.03);
}

.offer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.offer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
}

.offer-item .label {
    color: var(--gray-400);
    font-weight: 600;
}

.offer-item .value {
    color: var(--black);
    font-weight: 800;
    text-align: right;
}

.offer-amount-row {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px dashed rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.offer-amount-row .label {
    font-size: 12px;
    font-weight: 800;
    color: var(--gray-500);
    text-transform: uppercase;
}

.offer-amount-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--black);
}

.offer-amount-value span {
    font-size: 14px;
    margin-left: 2px;
}

.offer-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.offer-btn-accept {
    flex: 1.5;
    background: var(--black);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.offer-btn-accept:hover {
    background: #10b981;
    transform: translateY(-2px);
}

.offer-btn-reject {
    flex: 1;
    background: white;
    color: #ef4444;
    border: 1px solid #fee2e2;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.offer-btn-reject:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.offer-status-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    margin-top: 20px;
}

.offer-status-accepted {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
}

.offer-status-rejected {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

.rejection-reason {
    font-size: 12px;
    font-style: italic;
    color: #dc2626;
    margin-top: 10px;
    padding: 10px 14px;
    background: white;
    border: 1px dashed rgba(239, 68, 68, 0.2);
    border-radius: 8px;
}

.offer-btn-view {
    width: 100%;
    background: white;
    color: var(--black);
    border: 1px solid var(--gray-200);
    padding: 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    margin-top: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.offer-btn-view:hover {
    background: var(--gray-50);
    border-color: var(--black);
}

/* ── COMPACT OFFER BUBBLE ── */
.chat-msg.offer-compact {
    max-width: 300px;
    background: #fff;
    border: 1.5px solid #f97316;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.offer-compact-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #f97316;
}
.offer-compact-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--black);
    margin: 2px 0;
}
.offer-compact-id {
    font-size: 11px;
    color: var(--gray-400);
    font-family: monospace;
}
.offer-compact-btn {
    width: 100%;
    padding: 8px;
    background: #f97316;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}
.offer-compact-btn:hover {
    background: #ea580c;
}
.offer-compact-status {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    padding: 4px;
    border-radius: 6px;
}

/* ── CONTRACT HISTORY HIGHLIGHTS ── */
.diff-highlight {
    animation: pulseOrange 2s infinite;
}

@keyframes pulseOrange {
    0% { border-color: #f97316; box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.2); }
    70% { border-color: #f97316; box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
    100% { border-color: #f97316; box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

/* ── 22. SUGGESTION CHIPS ── */
.suggestion-container {
    margin-top: 6px;
    margin-bottom: 12px;
}
.suggestion-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}
.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.chip {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-pill);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.chip:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
    transform: translateY(-1px);
}
.chip:active {
    transform: translateY(0);
}

/* ── 23. FEE BREAKDOWN ── */
.fee-breakdown-card {
    margin-top: 12px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}
.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--gray-600);
}
.fee-item:last-child {
    margin-bottom: 0;
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px dashed var(--gray-300);
    font-weight: 700;
    color: var(--black);
}
.fee-label {
    display: flex;
    align-items: center;
    gap: 6px;
}
.fee-value {
    font-variant-numeric: tabular-nums;
}
.fee-note {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 10px;
}

/* ── 24. CONTRACT DRAFTING ENHANCEMENTS ── */
.package-btn {
    font-size: 12px;
    font-weight: 700;
    padding: 10px 16px;
    background: var(--white);
    color: var(--black);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-pill);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.package-btn:hover {
    border-color: var(--black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--gray-50);
}
.package-btn:active {
    transform: translateY(0);
}


.chip.active {
    background: var(--black) !important;
    color: var(--white) !important;
    border-color: var(--black) !important;
}
.chip.active::after {
    content: " \2713";
    margin-left: 4px;
}

/* ── 25. STRUCTURED CONTRACT DESIGN ── */
.contract-section {
    margin-bottom: 24px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--gray-100);
}
.contract-section.highlight {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
}

.contract-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}
.contract-section-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
}
.contract-section-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--black);
}

.commitments-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 640px) {
    .commitments-grid { grid-template-columns: 1fr; }
}

.form-group-compact { margin-bottom: 12px; }
.form-group-compact .form-label { font-size: 12px; margin-bottom: 4px; color: var(--gray-500); }

/* ── WIZARD RESTRUCTURING PREMIUM STYLES ── */
.project-db-info-lite {
    margin-bottom: 25px;
}

.db-project-context-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 15px;
}

.db-project-context-card .context-item {
    font-size: 13px;
    margin-bottom: 6px;
    color: #475569;
}

.db-project-context-card .context-item strong {
    color: #0f172a;
    font-weight: 700;
}

.db-project-context-card .context-summary {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
    margin-top: 10px;
    line-height: 1.5;
}

.health-score-container-premium {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.gauge-wrapper {
    margin-bottom: 20px;
}

.gauge-value {
    font-size: 48px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -1px;
}

.gauge-track {
    width: 100%;
    height: 12px;
    background: #f1f5f9;
    border-radius: 99px;
    overflow: hidden;
    margin-top: 10px;
}

.gauge-fill {
    height: 100%;
    width: 0%;
    background: #0f172a;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reco-list {
    text-align: left;
    font-size: 13px;
    color: #475569;
}

.loading-shimmer {
    background: linear-gradient(
        90deg, 
        rgba(241, 245, 249, 0.6) 25%, 
        rgba(226, 232, 240, 0.8) 50%, 
        rgba(241, 245, 249, 0.6) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ── 19. PDF CERTIFICATE TEMPLATE ── */
.pdf-template {
    width: 800px;
    padding: 0;
    font-family: -apple-system, system-ui, sans-serif;
    color: #1D1D1F;
    background: #FFFFFF;
}

.pdf-border {
    border: 15px solid #F5F5F7;
    padding: 60px;
    position: relative;
    box-shadow: inset 0 0 0 2px #E8E8ED;
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #1D1D1F;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.pdf-logo { font-size: 24px; font-weight: 900; letter-spacing: 4px; }
.pdf-badge { font-size: 11px; font-weight: 800; color: #007AFF; text-transform: uppercase; background: #F5F5F7; padding: 6px 12px; border-radius: 4px; border: 1px solid #D2D2D7; }

.pdf-title { font-size: 32px; font-weight: 800; margin-bottom: 10px; color: #1D1D1F; }
.pdf-subtitle { font-size: 14px; color: #86868B; margin-bottom: 50px; }

.pdf-main-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.pdf-metric-hero {
    background: #F5F5F7;
    padding: 30px;
    border-radius: 12px;
}

.pdf-label { display: block; font-size: 10px; font-weight: 700; color: #86868B; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.pdf-value-big { font-size: 42px; font-weight: 800; color: #1D1D1F; }

.pdf-audit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
    border-top: 1px solid #E8E8ED;
    border-bottom: 1px solid #E8E8ED;
    padding: 30px 0;
}

.pdf-audit-label { display: block; font-size: 9px; font-weight: 700; color: #86868B; margin-bottom: 5px; text-transform: uppercase; }
.pdf-audit-value { font-size: 18px; font-weight: 700; color: #1D1D1F; }

.pdf-methodology-section { margin-bottom: 40px; }
.pdf-methodology-section h3 { font-size: 12px; font-weight: 800; margin-bottom: 15px; border-left: 3px solid #007AFF; padding-left: 10px; }
.pdf-methodology-section p { font-size: 11px; color: #424245; line-height: 1.6; }

.pdf-seals {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.pdf-seal {
    font-size: 8px;
    font-weight: 900;
    border: 2px solid #E8E8ED;
    padding: 8px 12px;
    border-radius: 50px;
    color: #86868B;
    text-transform: uppercase;
}

.pdf-comparison h3 { font-size: 12px; font-weight: 800; margin-bottom: 15px; }
.pdf-comparison p { font-size: 11px; color: #86868B; margin-bottom: 10px; }
.pdf-comp-list { list-style: none; padding: 0; }
.pdf-comp-list li { font-size: 12px; margin-bottom: 5px; color: #1D1D1F; }
.pdf-comp-list li strong { font-family: monospace; color: #007AFF; }

.pdf-footer {
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 30px;
    border-top: 1px solid #E8E8ED;
}

.pdf-timestamp { font-size: 10px; color: #86868B; font-weight: 500; }
.pdf-signature { text-align: right; }
.pdf-signature p { font-size: 10px; font-weight: 700; margin-bottom: 10px; color: #86868B; text-transform: uppercase; }
.pdf-sig-box {
    border: 1px solid #D2D2D7;
    padding: 15px 30px;
    font-size: 13px;
    font-weight: 800;
    font-style: italic;
    color: #1D1D1F;
    background: #F5F5F7;
    border-radius: 4px;
}

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


.btn-ghost-xs {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ghost-xs:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* ── ENGAGEMENT SEARCH & CATALOG ── */
.catalog-search-wrapper {
    margin-bottom: 25px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #64748b;
    pointer-events: none;
}

.search-input-group .form-input {
    padding-left: 40px;
    height: 48px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-group .form-input:focus {
    background: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.deliverables-catalog {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}

.deliverables-catalog::-webkit-scrollbar {
    width: 6px;
}

.deliverables-catalog::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.catalog-category {
    margin-bottom: 30px;
}

.category-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #f1f5f9;
}

.catalog-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

/* ── WIZARD SUB-TABS (SEGMENTED CONTROL) ── */
.wizard-sub-nav {
    display: flex;
    background: #f8fafc;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #f1f5f9;
}

.sub-nav-item {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sub-nav-item.active {
    background: #ffffff;
    color: #090B10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sub-nav-item:hover:not(.active) {
    color: #090B10;
}

.sub-tab-content {
    transition: opacity 0.3s ease;
}

.sub-tab-content.hidden {
    display: none;
    opacity: 0;
}

/* ── WIZARD GROUP CARDS & HINTS ── */
.wizard-group-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px -2px rgba(0,0,0,0.02);
}

.wizard-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.wizard-group-header .icon {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.wizard-group-header h4 {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #090B10;
}

.field-hint {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    font-style: italic;
}

/* ── PRE-REGISTRATION PREMIUM UI ── */
.choice-card-sm {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    position: relative;
}
.choice-card-sm:hover {
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.choice-card-sm.selected {
    border-color: #000000;
    background: #FAFAFA;
}
.choice-card-sm.selected::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 8px;
    color: #000000;
    font-size: 10px;
    font-weight: 900;
}
.choice-card-sm .choice-icon {
    font-size: 20px;
}
.choice-card-sm .choice-title {
    font-size: 11px;
    font-weight: 700;
    color: #090B10;
}

.checkbox-grid-premium {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.check-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}
.check-tag:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}
.check-tag input[type="checkbox"] {
    display: none;
}
.check-tag:has(input:checked) {
    background: #000000;
    color: #FFFFFF;
    border-color: #000000;
}
.check-tag:has(input:checked)::before {
    content: '✓ ';
    font-weight: 900;
    margin-right: 4px;
}
/* ── 20. PDF PREVIEWER MODAL ── */
.modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Darker backdrop for focus */
    backdrop-filter: blur(10px);
    display: none;
    align-items: flex-start; /* Top-aligned for reliable scrolling */
    justify-content: center;
    z-index: 20000;
    padding: 60px 20px;
    overflow-y: auto; /* Enable master scroll at modal level */
}

/* ── 20. PDF PREVIEWER MODAL ── */
.pdf-preview-window {
    width: 90% !important;
    max-width: 1100px !important;
    height: 90vh !important;
    max-height: 900px !important;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
}

.modal-header-pro {
    padding: 24px 32px;
    border-bottom: 1px solid #E8E8ED;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    z-index: 10;
}

.modal-header-pro .header-info .modal-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

.modal-header-pro .header-info .modal-subtitle {
    font-size: 13px;
    color: #86868B;
    margin: 0;
}

.modal-header-pro .header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pdf-viewer-container {
    flex: 1;
    background: #F5F5F7;
    padding: 60px 40px 120px;
    overflow-y: auto !important; /* Standard auto scroll */
    display: block;
    position: relative;
    height: 100%;
}

.live-audit-view {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transform-origin: top center;
    zoom: 0.85; /* Responsive scaling */
    margin: 0 auto;
    display: block;
    width: fit-content;
}

/* ── 21. PRINT MEDIA QUERIES (The "Apple Business" Export Engine) ── */
@media print {
    /* Hide EVERYTHING except the certificate */
    body * {
        visibility: hidden !important;
    }
    
    #pdf-preview-modal, 
    #pdf-preview-modal *,
    #roi-certificate-template,
    #roi-certificate-template * {
        visibility: visible !important;
    }

    #pdf-preview-modal {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        display: block !important;
    }

    .modal-header-pro, .modal-close-icon {
        display: none !important;
    }

    .pdf-viewer-container {
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        background: white !important;
        height: auto !important;
        max-height: none !important;
        display: block !important;
    }

    .live-audit-view {
        zoom: 1 !important;
        transform: none !important;
        box-shadow: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #roi-certificate-template {
        width: 100% !important;
        height: auto !important;
        border: none !important;
    }

    /* Force A4 Page Settings */
    @page {
        size: A4;
        margin: 0;
    }
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}


/* ── 27. COUTURE AI GENIUS ── */
.ai-boost-modal {
    max-width: 600px !important;
    border-radius: 40px !important;
    padding: 0 !important;
    background: var(--white) !important;
    overflow: hidden !important;
}

.ai-boost-header {
    background: var(--black);
    color: var(--white);
    padding: 40px;
    text-align: center;
}

.ai-boost-body {
    padding: 40px;
}

.ai-thinking-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.ai-step {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-400);
    transition: all 0.4s ease;
}

.ai-step.active {
    color: var(--black);
}

.ai-step.done {
    color: var(--black);
}

.ai-step .step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.4s ease;
}

.ai-step.active .step-dot {
    border-color: var(--black);
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

.ai-step.done .step-dot {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

.ai-result-view {
    display: none;
    animation: fadeIn 0.6s ease forwards;
}

.ai-result-comparison {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 20px;
}

.ai-diff-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 24px;
}

.ai-diff-label {
    font-size: 11px;
    font-weight: 850;
    color: var(--gray-500);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ai-diff-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--black);
}

.btn-ai-boost {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-ai-boost:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── 28. AI GENIUS DUAL-PANE PREVIEW ── */
.ai-boost-modal-wide {
    width: 95% !important;
    max-width: 1400px !important;
    height: 85vh !important;
    border-radius: 40px !important;
    padding: 0 !important;
    background: var(--white) !important;
    overflow: hidden !important;
}

.ai-boost-layout {
    display: flex;
    height: 100%;
}

.ai-boost-panel-left {
    width: 450px;
    background: #fff;
    border-right: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.ai-boost-panel-right {
    flex: 1;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.ai-preview-window {
    flex: 1;
    overflow-y: auto;
    padding: 60px;
    background: #f8fafc;
}

/* Simulate the real modal content wrapper inside preview */
.ai-preview-window .premium-project-detail {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.05);
    transform: scale(0.95);
    transform-origin: top center;
    pointer-events: none; /* Keep it as a visual preview */
}

.status-chip-pro {
    font-size: 10px;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 100px;
    letter-spacing: 1px;
    transition: all 0.5s ease;
}

/* Animations for panel slide in */
@keyframes panelSlide {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.ai-boost-panel-left {
    animation: panelSlide 0.5s ease forwards;
}

/* ══════════════════════════════════════════════════
   CORRECTIONS GLOBALES — Accessibilité & Responsive
   ══════════════════════════════════════════════════ */

/* ── Focus visible (accessibilité clavier WCAG 2.1 AA) ── */
.btn-black:focus-visible,
.btn-green:focus-visible,
.btn-outline:focus-visible,
.btn-white:focus-visible,
.btn-ghost:focus-visible,
.btn-green-sm:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 3px;
}

/* ── Contraste hero-stat-label (WCAG AA) ── */
.hero-stat-label {
    color: var(--gray-600);
}

/* ── Z-index documenté (stacking context cohérent) ── */
/* scroll-progress : 10000 | cookie-banner : 9000 | back-to-top : 8000
   modals : 7000    | navbar : 5000 */
.modal, [class*="-modal"] { z-index: 7000; }
.modal-backdrop { z-index: 6999; }

/* ── categories-scroll : scrollbar keyboard-accessible ── */
.categories-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}
.category-pill { scroll-snap-align: start; }

/* ══ RESPONSIVE — Tablette (≤ 900px) ══ */
@media (max-width: 900px) {
    /* Grids 2-col → 1-col */
    .hero-inner {
        grid-template-columns: 1fr;
    }
    .hero-visual { display: none; }

    /* Grids 2-col génériques */
    .stats-grid,
    .features-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

/* ══ RESPONSIVE — Mobile (≤ 640px) ══ */
@media (max-width: 640px) {
    /* Navbar : cacher les liens, garder CTA */
    .nav-links { display: none; }
    .nav-container { padding: 0 16px; }

    /* Hero */
    .hero { min-height: auto; padding-top: calc(var(--nav-height) + 8px); }
    .hero-inner { padding: 40px 16px 32px; gap: 24px; }
    .hero-title { font-size: clamp(32px, 10vw, 48px); letter-spacing: -1.5px; }
    .hero-subtitle { font-size: 15px; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .hero-actions .btn-black,
    .hero-actions .btn-outline { width: 100%; justify-content: center; }
    .hero-stats-bar { flex-wrap: wrap; padding: 16px; gap: 12px; }
    .hero-stat { min-width: calc(50% - 8px); text-align: left; }
    .hero-stat-divider { display: none; }
    .hero-stat-number { font-size: 22px; }

    /* Categories scroll */
    .categories-scroll { padding: 0 16px; }

    /* Grids → colonne unique */
    .stats-grid,
    .features-grid,
    .footer-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Cartes projets */
    .project-card { margin: 0; }

    /* Cookie banner */
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }

    /* Back to top */
    .back-to-top { bottom: 16px; right: 16px; }

    /* Modals plein écran */
    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        margin-top: auto;
    }
    .modal { align-items: flex-end; }

    /* Boutons pleine largeur dans les modals */
    .modal-content .btn-black,
    .modal-content .btn-outline { width: 100%; }

    /* Inputs */
    input, select, textarea { font-size: 16px; /* Évite le zoom auto iOS */ }

    /* Container padding */
    .container { padding: 0 16px; }
}

/* ══ RESPONSIVE — Très petit (≤ 375px) ══ */
@media (max-width: 375px) {
    .hero-stat { min-width: 100%; }
    .hero-title { font-size: 30px; }
}
