/* ============================================================
   MIX ARENA — Stylesheet — Harvest Palette
   ============================================================ */

:root {
    --cream:       #EFE5D0;
    --cream-light: #F5EDDC;
    --cream-dark:  #E8D9C0;
    --brown:       #2C1E14;
    --brown-mid:   #7A6050;
    --brown-light: #8C6E55;
    --gold:        #B07D2E;
    --gold-light:  #D4A853;
    --gold-bg:     #F0DDB8;
    --border:      rgba(44,30,20,0.1);
    --border-dark: rgba(44,30,20,0.18);
    --white:       #FAEEDD;
    --success:     #4A7C59;
    --error:       #8B2E2E;
    --radius:      4px;
    --radius-lg:   10px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', sans-serif;
    background: var(--cream);
    color: var(--brown);
    font-size: 15px;
    line-height: 1.6;
}

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 600; line-height: 1.1; letter-spacing: -0.3px; }
h1 { font-size: 54px; }
h2 { font-size: 40px; }
h3 { font-size: 24px; }
h4 { font-size: 16px; margin-bottom: 12px; }
em { font-style: italic; color: var(--gold); }
a { text-decoration: none; color: inherit; }
p { line-height: 1.7; }

/* ---- Logo ---- */
.logo { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--brown); letter-spacing: 0.3px; }
.logo em { font-style: italic; color: var(--gold); }

/* ---- Buttons ---- */
.btn-outline {
    background: transparent; border: 1px solid var(--border-dark); color: var(--brown);
    padding: 9px 22px; border-radius: var(--radius); font-size: 13px;
    font-family: 'Lato', sans-serif; cursor: pointer; letter-spacing: 0.3px;
    display: inline-block; transition: background .2s;
}
.btn-outline:hover { background: var(--cream-dark); }

.btn-solid {
    background: var(--brown); color: var(--cream); border: none;
    padding: 9px 22px; border-radius: var(--radius); font-size: 13px;
    font-family: 'Lato', sans-serif; cursor: pointer; font-weight: 700;
    letter-spacing: 0.5px; display: inline-block; transition: opacity .2s;
}
.btn-solid:hover { opacity: 0.85; }

.btn-gold {
    background: var(--gold); color: var(--cream); border: none;
    padding: 13px 32px; border-radius: var(--radius); font-size: 13px;
    font-family: 'Lato', sans-serif; cursor: pointer; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase; display: inline-block; transition: opacity .2s;
}
.btn-gold:hover { opacity: 0.88; }

.btn-ghost {
    background: transparent; border: 1px solid var(--border-dark); color: var(--brown);
    padding: 13px 24px; border-radius: var(--radius); font-size: 13px;
    font-family: 'Lato', sans-serif; cursor: pointer; display: inline-block; transition: background .2s;
}
.btn-ghost:hover { background: var(--cream-dark); }

/* ---- Max width wrapper ---- */
.nav-inner, .hero, .stats-bar, .sponsor-strip, .features,
.contest-hero, .contest-body, .dashboard, .form-page,
.profile-hero, .profile-body, .leaderboard-body,
.admin-layout, .footer-inner, .footer-bottom {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}
.nav { background: var(--cream); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 20px 48px; }

/* ---- Nav ---- */
.nav-links { display: flex; gap: 32px; font-size: 13px; color: var(--brown-light); font-weight: 400; }
.nav-links a:hover { color: var(--brown); }
.nav-right { display: flex; gap: 10px; align-items: center; }

/* ---- Hero (Homepage) ---- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
.hero-left { padding: 64px 48px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--border); }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: blink 1.4s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hero-sub { font-size: 15px; color: var(--brown-mid); line-height: 1.75; max-width: 400px; margin-bottom: 36px; font-weight: 300; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.trust-avatars { display: flex; }
.trust-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--brown); border: 2px solid var(--cream); margin-left: -7px; display: flex; align-items: center; justify-content: center; font-size: 8px; color: var(--cream); font-weight: 700; }
.trust-avatar:first-child { margin-left: 0; }
.trust-text { font-size: 11px; color: var(--brown-light); }
.trust-text strong { color: var(--brown); }

/* ---- Contest Card in Hero ---- */
.hero-right { background: var(--brown); padding: 48px; display: flex; align-items: center; justify-content: center; }
.contest-card { width: 100%; max-width: 340px; }
.cc-edition { font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.cc-title { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 600; color: var(--cream); margin-bottom: 4px; }
.cc-genre { font-size: 12px; color: #5C4535; margin-bottom: 28px; letter-spacing: 0.5px; }
.cc-countdown { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 28px; }
.cd-block { background: rgba(239,229,208,0.05); border: 1px solid rgba(239,229,208,0.1); border-radius: 6px; padding: 14px 6px; text-align: center; }
.cd-num { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 600; color: var(--cream); line-height: 1; }
.cd-lbl { font-size: 9px; color: #5C4535; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 5px; }
.cc-sep { height: 1px; background: rgba(239,229,208,0.08); margin-bottom: 24px; }
.cc-prize-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #5C4535; margin-bottom: 8px; }
.cc-prize-name { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; color: var(--gold-light); margin-bottom: 2px; }
.cc-prize-value { font-size: 11px; color: #5C4535; margin-bottom: 20px; }
.cc-fee-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(239,229,208,0.08); padding-top: 20px; }
.cc-fee-label { font-size: 11px; color: #5C4535; letter-spacing: 0.5px; }
.cc-fee-amount { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 600; color: var(--cream); }

/* ---- Stats Bar ---- */
.stats-bar { display: grid; grid-template-columns: repeat(3,1fr); background: var(--cream-dark); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-item { padding: 28px 48px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 40px; font-weight: 600; color: var(--brown); letter-spacing: -0.5px; }
.stat-label { font-size: 11px; color: var(--brown-light); margin-top: 4px; letter-spacing: 0.5px; text-transform: uppercase; }

/* ---- Sponsor Strip ---- */
.sponsor-strip { padding: 16px 48px; background: var(--white); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 24px; }
.sponsor-label { font-size: 9px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: #C4AA88; white-space: nowrap; }
.sponsor-slots { display: flex; gap: 12px; flex: 1; }
.sponsor-slot { flex: 1; height: 36px; border: 1px dashed #D4C4A8; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 10px; color: #C4AA88; font-style: italic; }

/* ---- Features ---- */
.features { padding: 64px 48px; background: var(--cream); }
.feat-header { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--border); }
.feat-sub { font-size: 14px; color: var(--brown-mid); line-height: 1.75; font-weight: 300; }
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: var(--border); }
.feat-card { background: var(--cream); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.feat-icon { width: 40px; height: 40px; background: var(--brown); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.feat-icon i { font-size: 18px; color: var(--gold-light); }
.feat-name { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; }
.feat-desc { font-size: 13px; color: var(--brown-mid); line-height: 1.65; font-weight: 300; }

/* ---- Contest Page ---- */
.contest-hero { background: var(--brown); padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; }
.breadcrumb { font-size: 12px; color: #5C4535; margin-bottom: 20px; }
.breadcrumb a { color: #7A6050; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; background: rgba(176,125,46,0.15); color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 16px; }
.contest-hero h1 { font-family: 'Playfair Display', serif; font-size: 48px; font-weight: 600; color: var(--cream); letter-spacing: -1px; margin-bottom: 16px; }
.hero-tags { display: flex; gap: 8px; margin-bottom: 36px; }
.htag { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #8C6E55; font-size: 11px; padding: 4px 14px; border-radius: 20px; }
.htag.gold { background: rgba(176,125,46,0.12); border-color: rgba(176,125,46,0.2); color: var(--gold); }
.countdown-row { display: flex; gap: 16px; align-items: center; }
.cdi { text-align: center; }
.cdi-num { font-family: 'Playfair Display', serif; font-size: 48px; font-weight: 600; color: var(--cream); line-height: 1; letter-spacing: -1px; }
.cdi-sep { font-family: 'Playfair Display', serif; font-size: 36px; color: #3D2B1F; margin-bottom: 12px; }
.cdi-lbl { font-size: 9px; color: #5C4535; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px; }

.prize-panel { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); padding: 28px; min-width: 240px; }
.pp-sponsor { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #5C4535; margin-bottom: 12px; }
.pp-name { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 600; color: var(--gold-light); margin-bottom: 4px; }
.pp-val { font-size: 13px; color: #5C4535; margin-bottom: 24px; }
.pp-div { height: 1px; background: rgba(255,255,255,0.07); margin-bottom: 20px; }
.pp-fee-lbl { font-size: 11px; color: #5C4535; margin-bottom: 4px; }
.pp-fee { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 600; color: var(--cream); }

.contest-body { display: grid; grid-template-columns: 1fr 300px; gap: 24px; padding: 36px 48px; }
.main-col { display: flex; flex-direction: column; gap: 20px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.card-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #C4AA88; margin-bottom: 20px; }
.brief-text { font-size: 14px; color: #5A4030; line-height: 1.8; font-weight: 300; }

.ref-box { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px; display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.play-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--brown); display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; flex-shrink: 0; transition: opacity .2s; }
.play-btn:hover { opacity: 0.8; }
.play-btn i { font-size: 16px; color: var(--cream); margin-left: 2px; }
.ref-info { flex: 1; }
.ref-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.ref-meta { font-size: 11px; color: var(--brown-light); }
.ref-dur { font-size: 12px; font-weight: 600; color: var(--brown-mid); }

.rules-list { display: flex; flex-direction: column; gap: 12px; }
.rule-row { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: #5A4030; line-height: 1.5; font-weight: 300; }
.rule-icon { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.rule-icon.ok { background: #F0F7F2; border: 1px solid #A8D4B4; }
.rule-icon.ok i { font-size: 11px; color: var(--success); }
.rule-icon.no { background: #FFF0EE; border: 1px solid #F4B8B8; }
.rule-icon.no i { font-size: 11px; color: var(--error); }

.jury-list { display: flex; flex-direction: column; gap: 16px; }
.juror { display: flex; align-items: center; gap: 14px; }
.juror-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brown); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--cream); font-weight: 700; flex-shrink: 0; }
.juror-name { font-size: 14px; font-weight: 600; }
.juror-role { font-size: 12px; color: var(--brown-light); margin-top: 2px; }
.juror-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-left: auto; flex-shrink: 0; }

/* ---- Sidebar ---- */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.submit-card { background: var(--brown); border-radius: var(--radius-lg); padding: 24px; }
.submit-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; color: var(--cream); margin-bottom: 8px; }
.submit-sub { font-size: 12px; color: #5C4535; line-height: 1.6; margin-bottom: 20px; font-weight: 300; }
.submit-btn { width: 100%; background: var(--gold); color: var(--cream); border: none; padding: 14px; border-radius: var(--radius); font-size: 13px; font-family: 'Lato', sans-serif; cursor: pointer; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 10px; transition: opacity .2s; }
.submit-btn:hover { opacity: 0.88; }
.submit-note { font-size: 11px; color: #5C4535; text-align: center; }

.parts-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.parts-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.parts-title { font-size: 13px; font-weight: 700; }
.parts-count { font-size: 12px; color: var(--brown-light); }
.parts-list { display: flex; flex-direction: column; gap: 12px; }
.part-item { display: flex; align-items: center; gap: 10px; }
.part-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--cream-dark); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; flex-shrink: 0; color: var(--brown); }
.part-name { font-size: 12px; font-weight: 600; flex: 1; }
.part-time { font-size: 11px; color: var(--brown-light); }

.next-card { background: var(--gold-bg); border: 1px solid rgba(176,125,46,0.2); border-radius: var(--radius-lg); padding: 24px; }
.next-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.next-title { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.next-date { font-size: 12px; color: var(--brown-mid); margin-bottom: 16px; }
.notify-btn { width: 100%; background: transparent; border: 1.5px solid var(--gold); color: var(--gold); padding: 10px; border-radius: var(--radius); font-size: 12px; font-family: 'Lato', sans-serif; cursor: pointer; font-weight: 600; transition: background .2s; }
.notify-btn:hover { background: rgba(176,125,46,0.1); }

/* ---- Dashboard ---- */
.dashboard { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 63px); }
.sidebar-nav { background: var(--white); border-right: 1px solid var(--border); padding: 28px 0; display: flex; flex-direction: column; }
.sidebar-profile { padding: 0 20px 24px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.sidebar-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brown); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--cream); font-weight: 700; margin-bottom: 10px; }
.sidebar-name { font-size: 14px; font-weight: 700; }
.sidebar-tag { font-size: 11px; color: var(--brown-light); }
.sidebar-links { display: flex; flex-direction: column; padding: 0 12px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: var(--radius); font-size: 13px; color: var(--brown-light); text-decoration: none; }
.sidebar-link:hover { background: var(--cream-dark); color: var(--brown); }
.sidebar-link.active { background: var(--gold-bg); color: var(--gold); font-weight: 600; }
.sidebar-link i { font-size: 16px; }

.dash-main { padding: 32px; background: var(--cream); overflow: auto; }
.dash-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.dash-welcome { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 600; margin-bottom: 4px; }
.dash-sub { font-size: 13px; color: var(--brown-light); font-weight: 300; }

.metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 24px; }
.metric { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.metric-label { font-size: 10px; color: var(--brown-light); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.8px; }
.metric-val { font-family: 'Playfair Display', serif; font-size: 30px; color: var(--brown); margin-bottom: 4px; }
.metric-trend { font-size: 11px; color: var(--success); }
.metric-trend.neutral { color: var(--brown-light); }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.dash-card-title { font-size: 13px; font-weight: 700; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.dash-card-action { font-size: 11px; color: var(--gold); font-weight: 400; }

.mix-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(44,30,20,0.06); }
.mix-item:last-child { border-bottom: none; }
.mix-cover { width: 40px; height: 40px; border-radius: var(--radius); background: var(--brown); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mix-cover i { font-size: 16px; color: var(--gold); }
.mix-info { flex: 1; min-width: 0; }
.mix-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mix-meta { font-size: 11px; color: var(--brown-light); }
.mix-stat { text-align: right; }
.mix-plays { font-size: 13px; font-weight: 600; }
.mix-votes { font-size: 11px; color: var(--brown-light); }

.rank-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(44,30,20,0.06); }
.rank-item:last-child { border-bottom: none; }
.rank-pos { font-size: 13px; font-weight: 700; width: 22px; color: var(--brown-light); }
.rank-pos.top { color: var(--gold); }
.rank-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--cream-dark); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.rank-name { flex: 1; font-size: 13px; }
.rank-you { font-size: 10px; color: var(--gold); margin-left: 4px; }
.rank-score { font-size: 12px; font-weight: 700; }

.upload-zone { border: 1.5px dashed rgba(44,30,20,0.2); border-radius: var(--radius-lg); padding: 28px; text-align: center; background: var(--cream); transition: border-color .2s; }
.upload-zone:hover { border-color: var(--gold); }
.upload-icon { font-size: 32px; color: rgba(44,30,20,0.2); margin-bottom: 10px; }
.upload-text { font-size: 13px; color: var(--brown-mid); margin-bottom: 4px; }
.upload-formats { font-size: 11px; color: #C4AA88; margin-bottom: 16px; }

/* ---- Forms ---- */
.form-page { min-height: calc(100vh - 63px); display: flex; align-items: center; justify-content: center; padding: 48px; }
.form-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px; width: 100%; max-width: 460px; }
.form-title { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 600; margin-bottom: 6px; }
.form-sub { font-size: 14px; color: var(--brown-light); margin-bottom: 32px; font-weight: 300; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--brown-mid); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; background: var(--cream); border: 1px solid var(--border-dark);
    border-radius: var(--radius); font-size: 14px; font-family: 'Lato', sans-serif; color: var(--brown);
    transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--gold);
}
.form-group textarea { height: 100px; resize: vertical; }
.form-btn { width: 100%; margin-top: 8px; }
.form-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--brown-light); }
.form-footer a { color: var(--gold); text-decoration: underline; }
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 13px; margin-bottom: 20px; }
.alert-error { background: #FFF0EE; border: 1px solid #F4B8B8; color: var(--error); }
.alert-success { background: #F0F7F2; border: 1px solid #A8D4B4; color: var(--success); }

/* ---- Admin ---- */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 63px); }
.admin-sidebar { background: var(--brown); padding: 28px 0; }
.admin-sidebar .logo { padding: 0 20px 24px; display: block; color: var(--cream); border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 16px; }
.admin-link { display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: 13px; color: #8C6E55; text-decoration: none; }
.admin-link:hover { color: var(--cream); background: rgba(255,255,255,0.04); }
.admin-link.active { color: var(--gold); background: rgba(176,125,46,0.08); }
.admin-link i { font-size: 16px; }
.admin-main { padding: 36px; background: var(--cream); }
.admin-title { font-family: 'Playfair Display', serif; font-size: 32px; margin-bottom: 28px; }

.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.table th { padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--brown-light); background: var(--cream-dark); border-bottom: 1px solid var(--border); }
.table td { padding: 14px 16px; font-size: 13px; border-bottom: 1px solid rgba(44,30,20,0.05); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--cream); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.badge-active { background: #F0F7F2; color: var(--success); border: 1px solid #A8D4B4; }
.badge-upcoming { background: var(--gold-bg); color: var(--gold); border: 1px solid rgba(176,125,46,0.3); }
.badge-closed { background: var(--cream-dark); color: var(--brown-light); border: 1px solid var(--border); }

/* ---- Footer ---- */
.footer { background: var(--brown); padding: 48px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 36px; }
.footer-brand .logo { color: var(--cream); margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 13px; color: #5C4535; font-weight: 300; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.footer-links h4 { font-family: 'Lato', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #5C4535; margin-bottom: 14px; }
.footer-links a { display: block; font-size: 13px; color: #7A6050; margin-bottom: 8px; transition: color .2s; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 24px; font-size: 12px; color: #5C4535; }

/* ---- Profile ---- */
.profile-hero { background: var(--white); border-bottom: 1px solid var(--border); padding: 48px; display: flex; align-items: center; gap: 32px; }
.profile-avatar-lg { width: 80px; height: 80px; border-radius: 50%; background: var(--brown); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--cream); font-weight: 700; flex-shrink: 0; }
.profile-name { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 600; margin-bottom: 4px; }
.profile-bio { font-size: 14px; color: var(--brown-mid); font-weight: 300; margin-bottom: 16px; }
.profile-stats { display: flex; gap: 28px; }
.ps-item { text-align: center; }
.ps-num { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; }
.ps-lbl { font-size: 11px; color: var(--brown-light); }

.profile-body { padding: 36px 48px; display: grid; grid-template-columns: 1fr 280px; gap: 24px; }
.profile-mix-list { display: flex; flex-direction: column; gap: 14px; }
.profile-mix-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: flex; align-items: center; gap: 16px; }
.profile-mix-cover { width: 50px; height: 50px; border-radius: var(--radius); background: var(--brown); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profile-mix-cover i { font-size: 20px; color: var(--gold); }

/* ---- Leaderboard ---- */
.leaderboard-body { padding: 48px; }
.lb-table { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.lb-row { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; padding: 16px 24px; border-bottom: 1px solid rgba(44,30,20,0.05); }
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: var(--cream); }
.lb-pos { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; color: var(--brown-light); }
.lb-pos.gold { color: var(--gold); }
.lb-user { display: flex; align-items: center; gap: 12px; }
.lb-score { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; }

/* ---- Responsive helpers ---- */
@media (max-width: 900px) {
    .hero, .contest-hero, .contest-body, .dash-grid, .feat-header, .feat-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    h1 { font-size: 36px; }
    .metrics { grid-template-columns: repeat(2,1fr); }
    .dashboard { grid-template-columns: 1fr; }
    .contest-body { padding: 24px; }
    .features { padding: 40px 24px; }
}
