*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }

:root {
    --navy:      #0d1b2a;
    --navy-2:    #1a2e45;
    --navy-3:    #243b55;
    --gold:      #BD1C8E;
    --gold-d:    #9e1678;
    --gold-l:    #d44aa8;
    --gold-bg:   #fdf0f9;
    --white:     #ffffff;
    --off-white: #f8f9fc;
    --text:      #1e293b;
    --muted:     #64748b;
    --border:    #e2e8f0;
    --green:     #10b981;
    --red:       #ef4444;
    --radius:    12px;
    --radius-lg: 16px;
    --shadow:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.15);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 24px; border-radius: 8px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .2s; border: none; white-space: nowrap;
}
.btn-gold    { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-d); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(189,28,142,.4); }
.btn-navy    { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-d); }
.btn-outline-white { background: transparent; border: 1.5px solid rgba(255,255,255,.4); color: var(--white); }
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-ghost   { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ── BADGES ── */
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-gold  { background: var(--gold-bg); color: var(--gold-d); border: 1px solid #e879c0; }
.badge-navy  { background: rgba(13,27,42,.08); color: var(--navy); }
.badge-green { background: #ecfdf5; color: #065f46; }

/* ── RANK PILLS ── */
.rank-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.rank-new          { background: #f1f5f9; color: #64748b; }
.rank-verified     { background: #eff6ff; color: #2563eb; }
.rank-rising       { background: #ecfdf5; color: #059669; }
.rank-professional { background: #fffbeb; color: #d97706; }
.rank-expert       { background: #f5f3ff; color: #7c3aed; }
.rank-elite        { background: #fff1f2; color: #e11d48; }

/* ── NAVIGATION ── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    background: rgba(255,255,255,.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    height: 68px; padding: 0 5%;
    display: flex; align-items: center; gap: 0;
}
.nav-logo {
    font-size: 22px; font-weight: 900; color: var(--navy); letter-spacing: -.5px;
    margin-right: 8px; flex-shrink: 0;
}
.nav-logo span { color: var(--gold-d); }

.nav-center { display: flex; align-items: center; gap: 2px; margin-left: 24px; }
.nav-link {
    padding: 8px 13px; border-radius: 8px; font-size: 14px; font-weight: 500;
    color: rgba(15,23,42,.6); transition: all .2s; cursor: pointer;
    display: flex; align-items: center; gap: 5px; position: relative;
}
.nav-link:hover { color: var(--navy); background: rgba(0,0,0,.04); }
.nav-link.active { color: var(--gold-d); }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: calc(100% + 8px); left: 0;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 8px; min-width: 220px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: all .2s; z-index: 300;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
    display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px;
    color: var(--text); transition: background .15s;
}
.dropdown-item:hover { background: var(--off-white); }
.dropdown-item strong { display: block; font-weight: 600; margin-bottom: 2px; }
.dropdown-item span { font-size: 12px; color: var(--muted); }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }
.chevron { font-size: 10px; transition: transform .2s; color: rgba(15,23,42,.4); }
.nav-dropdown:hover .chevron { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-login-btn {
    font-size: 14px; font-weight: 600; color: rgba(15,23,42,.65);
    padding: 8px 14px; border-radius: 8px; transition: all .2s;
}
.nav-login-btn:hover { color: var(--navy); background: rgba(0,0,0,.04); }

/* ── AUTH PROFILE DROPDOWN ── */
.nav-user-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px 6px 6px; border-radius: 10px;
    cursor: pointer; border: 1.5px solid var(--border);
    background: var(--off-white); transition: all .2s;
}
.nav-user-btn:hover { border-color: var(--gold); background: var(--gold-bg); }
.nav-user-avatar {
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.nav-user-name { font-size: 13px; font-weight: 600; color: var(--text); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-profile-dropdown { position: relative; }
.nav-profile-dropdown .dropdown-menu { right: 0; left: auto; min-width: 240px; }
.nav-profile-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dashboard-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
    background: var(--navy); color: var(--white); transition: all .2s;
}
.nav-dashboard-btn:hover { background: var(--navy-2); }
.dropdown-signout {
    width: 100%; text-align: left; border: none; background: none;
    cursor: pointer; font-family: inherit; font-size: 14px; color: #ef4444;
    display: block; padding: 10px 14px; border-radius: 8px; transition: background .15s;
}
.dropdown-signout:hover { background: #fef2f2; }

/* Mobile toggle */
.nav-mobile-toggle {
    display: none; margin-left: auto; background: none; border: none; cursor: pointer;
    color: var(--navy); font-size: 22px; padding: 4px;
}

/* Mobile nav */
.mobile-nav {
    display: none; position: fixed; inset: 68px 0 0 0;
    background: var(--navy); z-index: 199; overflow-y: auto;
    padding: 24px 5%;
}
.mobile-nav.open { display: block; }
.mobile-nav-section { margin-bottom: 24px; }
.mobile-nav-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 10px; }
.mobile-nav-link { display: block; padding: 12px 0; font-size: 16px; color: rgba(255,255,255,.85); border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

@media (max-width: 900px) {
    .nav-center, .nav-actions { display: none; }
    .nav-mobile-toggle { display: block; }
}

/* ── LAYOUT UTILS ── */
.container  { max-width: 1180px; margin: 0 auto; padding: 0 5%; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-xs { padding: 40px 0; }
.text-center { text-align: center; }

.section-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-d); margin-bottom: 12px; }
.section-title { font-size: 38px; font-weight: 800; line-height: 1.2; letter-spacing: -.5px; }
.section-sub { font-size: 18px; color: var(--muted); margin-top: 14px; line-height: 1.7; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px;
    box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
    background: var(--navy); color: rgba(255,255,255,.55);
    padding: 72px 5% 36px;
}
.footer-top {
    display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr 1fr;
    gap: 40px; padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand-logo { font-size: 24px; font-weight: 900; color: var(--white); margin-bottom: 14px; }
.footer-brand-logo span { color: var(--gold); }
.footer-brand-text { font-size: 14px; line-height: 1.8; max-width: 260px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(255,255,255,.07); display: flex; align-items: center;
    justify-content: center; font-size: 16px; transition: background .2s;
}
.footer-social a:hover { background: rgba(245,158,11,.2); }
.footer-col h4 { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 28px; font-size: 13px; flex-wrap: wrap; gap: 12px;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.4); transition: color .2s; }
.footer-bottom-links a:hover { color: var(--gold); }

/* ── FLASH / ALERTS ── */
.alert { padding: 14px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

@media (max-width: 768px) {
    .section-title { font-size: 26px; }
    .section-sub   { font-size: 16px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .footer-top { grid-template-columns: 1fr; }
}
