:root {
  --gold: #F5C842;
  --gold-light: #FFE88A;
  --gold-dark: #C9A227;
  --blue-deep: #050A1A;
  --blue-mid: #0A1628;
  --blue-accent: #0D3B6E;
  --blue-bright: #1565C0;
  --blue-glow: #2979FF;
  --silver: #C0C0C0;
  --white: #F0F4FF;
  --text-muted: #7A8BA8;
}

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

body {
  background: var(--blue-deep);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ── Stars background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 40%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 70%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 25%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 55%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 80%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 85%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 60%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 45%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 50%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(2px 2px at 50% 30%, rgba(245,200,66,0.3) 0%, transparent 100%),
    radial-gradient(2px 2px at 20% 70%, rgba(41,121,255,0.3) 0%, transparent 100%),
    radial-gradient(2px 2px at 75% 65%, rgba(245,200,66,0.2) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-image:
    linear-gradient(to bottom, rgba(5,10,26,0.35) 0%, rgba(5,10,26,0.55) 60%, rgba(5,10,26,0.92) 100%),
    url('../assets/hero-banner.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(245,200,66,0.15), rgba(245,200,66,0.05));
  border: 1px solid rgba(245,200,66,0.4);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-banner {
  display: none;
}

.hero-banner img {
  display: none;
}

.hero-trophy {
  font-size: 80px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 30px rgba(245,200,66,0.5));
  animation: float 4s ease-in-out infinite;
}

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

h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  text-shadow: none;
  filter: drop-shadow(0 0 40px rgba(245,200,66,0.3));
}

.hero-year {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--blue-glow);
  letter-spacing: 6px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 30px rgba(245,200,66,0.3);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(245,200,66,0.5);
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ── Section ── */
section {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
}

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

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1rem;
}

/* ── Awards Grid ── */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.award-card {
  background: linear-gradient(135deg, rgba(13,59,110,0.4) 0%, rgba(5,10,26,0.8) 100%);
  border: 1px solid rgba(245,200,66,0.15);
  border-radius: 20px;
  padding: 32px 28px;
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.award-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(245,200,66,0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.award-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245,200,66,0.5);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(245,200,66,0.1);
}

.award-card:hover::before { opacity: 1; }

.award-card.featured {
  border-color: rgba(245,200,66,0.4);
  background: linear-gradient(135deg, rgba(13,59,110,0.6) 0%, rgba(50,30,0,0.3) 50%, rgba(5,10,26,0.8) 100%);
}

.card-tier {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.tier-platinum { background: rgba(200,200,220,0.15); color: #E0E0FF; border: 1px solid rgba(200,200,220,0.3); }
.tier-gold { background: rgba(245,200,66,0.15); color: var(--gold); border: 1px solid rgba(245,200,66,0.3); }
.tier-silver { background: rgba(192,192,192,0.1); color: var(--silver); border: 1px solid rgba(192,192,192,0.2); }
.tier-special { background: rgba(41,121,255,0.15); color: #82B1FF; border: 1px solid rgba(41,121,255,0.3); }

.card-icon {
  font-size: 44px;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(245,200,66,0.2));
}

.card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.card-qualifications {
  display: none;
  font-size: 0.83rem;
  color: rgba(240,244,255,0.75);
  line-height: 1.7;
  border-top: 1px solid rgba(245,200,66,0.1);
  padding-top: 16px;
  margin-top: 4px;
}

.card-qualifications ul {
  list-style: none;
  padding: 0;
}

.card-qualifications ul li {
  padding: 3px 0 3px 18px;
  position: relative;
}

.card-qualifications ul li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.75rem;
}

.award-card.open .card-qualifications { display: block; }

.card-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.card-toggle:hover { opacity: 0.7; }

.card-toggle .arrow {
  display: inline-block;
  transition: transform 0.3s;
  font-style: normal;
}

.award-card.open .card-toggle .arrow { transform: rotate(180deg); }

/* ── Stats Bar ── */
.stats-bar {
  background: linear-gradient(90deg, rgba(13,59,110,0.5), rgba(21,101,192,0.3), rgba(13,59,110,0.5));
  border-top: 1px solid rgba(245,200,66,0.1);
  border-bottom: 1px solid rgba(245,200,66,0.1);
  padding: 40px 20px;
}

.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── Timeline / How it works ── */
.timeline {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  width: 2px;
  height: calc(100% - 16px);
  background: linear-gradient(to bottom, rgba(245,200,66,0.3), rgba(245,200,66,0.05));
}

.timeline-num {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-accent), var(--blue-bright));
  border: 2px solid rgba(245,200,66,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}

.timeline-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 8px;
  margin-top: 12px;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Nomination CTA ── */
.nominate-section {
  text-align: center;
  background: radial-gradient(ellipse 80% 100% at 50% 50%, rgba(13,59,110,0.5) 0%, transparent 70%);
  padding: 100px 20px;
}

.nominate-box {
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(13,59,110,0.5), rgba(5,10,26,0.9));
  border: 1px solid rgba(245,200,66,0.25);
  border-radius: 24px;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.nominate-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(245,200,66,0.03) 60deg, transparent 120deg);
  animation: spin 20s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.nominate-box > * { position: relative; z-index: 1; }

.nominate-icon { font-size: 60px; margin-bottom: 20px; display: block; }

.nominate-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.nominate-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 40px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 30px rgba(245,200,66,0.3);
  border: none;
  cursor: pointer;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 50px rgba(245,200,66,0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid rgba(245,200,66,0.4);
  transition: all 0.2s;
  margin-left: 12px;
}

.btn-outline:hover {
  background: rgba(245,200,66,0.08);
  border-color: var(--gold);
}

/* ── Footer ── */
footer {
  border-top: 1px solid rgba(245,200,66,0.1);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  z-index: 1;
  position: relative;
}

footer a { color: var(--gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ── Divider ── */
.divider {
  max-width: 200px;
  margin: 0 auto 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  padding: 20px;
}

.modal-container {
  max-width: 560px;
  margin: 40px auto;
  background: linear-gradient(135deg, #0A1628, rgba(13,59,110,0.13));
  border: 1px solid rgba(245,200,66,0.3);
  border-radius: 16px;
  padding: 40px 36px;
  position: relative;
  box-shadow: 0 0 60px rgba(41,121,255,0.2);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #7A8BA8;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.modal-header-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.modal-header h2 {
  font-family: 'Cinzel', serif;
  color: #F5C842;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.modal-header p {
  color: #7A8BA8;
  font-size: 13px;
}

.form-label {
  display: block;
  margin-bottom: 16px;
}

.form-label-text {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #7A8BA8;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #050A1A;
  border: 1px solid rgba(245,200,66,0.25);
  color: #F0F4FF;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.form-textarea {
  resize: vertical;
}

.form-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 20px 0;
}

.form-status {
  display: none;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.form-submit {
  width: 100%;
  background: linear-gradient(135deg, #F5C842, #C9A227);
  color: #050A1A;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Cinzel', serif;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .awards-grid { grid-template-columns: 1fr; gap: 16px; }
  section { padding: 60px 16px; }
  .stats-inner { gap: 20px; }
  .stat-number { font-size: 2rem; }
  .timeline-item { gap: 16px; }
  .timeline-num { width: 44px; height: 44px; min-width: 44px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 16px 80px; }
  .hero-trophy { font-size: 56px; }
  .hero-cta { width: 100%; justify-content: center; }
  .nominate-box { padding: 36px 20px; }
  .btn-gold { width: 100%; justify-content: center; }
  .btn-outline { margin-left: 0; margin-top: 12px; width: 100%; justify-content: center; }
  .award-card { padding: 24px 20px; }
  .card-icon { font-size: 36px; }
  .card-title { font-size: 1.05rem; }
  .card-toggle { display: none; }
}

@media (hover: none) {
  .award-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ══════════════════════════════════════
   NAV
   ══════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(5,10,26,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245,200,66,0.08);
  transition: background 0.3s;
}

.page-home .site-nav {
  background: rgba(5,10,26,0.5);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--blue-deep) !important;
  font-weight: 700;
  border-radius: 100px;
  padding: 8px 18px;
}

.nav-cta:hover {
  background: var(--gold);
}

.nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-logout-form {
  display: inline;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 1px;
  transition: transform 0.2s;
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5,10,26,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid rgba(245,200,66,0.1);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-cta { text-align: center; }
  .nav-link { width: 100%; text-align: left; }
}

/* add top padding so content isn't under fixed nav */
body { padding-top: 56px; }
.page-home { padding-top: 0; }
.page-home .hero { padding-top: 80px; }

/* ══════════════════════════════════════
   FLASH MESSAGES
   ══════════════════════════════════════ */
.flash-container {
  position: fixed;
  top: 64px;
  right: 20px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 420px;
  width: 100%;
}

.flash-msg {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: flashIn 0.3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

@keyframes flashIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.flash-success {
  background: rgba(39,174,96,0.15);
  border: 1px solid rgba(39,174,96,0.4);
  color: #2ecc71;
}

.flash-error {
  background: rgba(231,76,60,0.15);
  border: 1px solid rgba(231,76,60,0.4);
  color: #e74c3c;
}

.flash-info {
  background: rgba(41,121,255,0.15);
  border: 1px solid rgba(41,121,255,0.4);
  color: var(--blue-glow);
}

.flash-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1;
}

.flash-close:hover { opacity: 1; }

/* ══════════════════════════════════════
   AUTH PAGES
   ══════════════════════════════════════ */
.auth-page {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.auth-card {
  max-width: 440px;
  width: 100%;
  background: linear-gradient(135deg, rgba(13,59,110,0.4), rgba(5,10,26,0.9));
  border: 1px solid rgba(245,200,66,0.2);
  border-radius: 20px;
  padding: 40px 36px;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.auth-title {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 6px;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

.auth-footer-text {
  text-align: center;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-footer-text a {
  color: var(--gold);
  text-decoration: none;
}

.auth-footer-text a:hover {
  text-decoration: underline;
}

.form-submit-outline {
  background: transparent !important;
  color: var(--gold) !important;
  border: 1px solid rgba(245,200,66,0.4) !important;
}

.form-submit-outline:hover {
  background: rgba(245,200,66,0.08) !important;
}

/* ══════════════════════════════════════
   PAGE CONTAINER (inner pages)
   ══════════════════════════════════════ */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════
   BROWSE / PROJECTS GRID
   ══════════════════════════════════════ */
.browse-controls {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.filter-select {
  min-width: 200px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.project-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(13,59,110,0.3), rgba(5,10,26,0.7));
  border: 1px solid rgba(245,200,66,0.12);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245,200,66,0.35);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.project-card-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(245,200,66,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-emoji {
  font-size: 28px;
}

.project-card-body {
  flex: 1;
  min-width: 0;
}

.project-card-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--white);
  margin: 6px 0 6px;
}

.project-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.project-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
}

.project-card-votes {
  color: var(--gold);
  font-weight: 600;
}

.project-card-builder {
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   PROJECT DETAIL
   ══════════════════════════════════════ */
.project-detail-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.project-detail-icon {
  width: 96px;
  height: 96px;
  min-width: 96px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(245,200,66,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-detail-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-detail-emoji {
  font-size: 48px;
}

.project-detail-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--white);
  margin: 8px 0;
  background: none;
  -webkit-text-fill-color: var(--white);
  filter: none;
}

.project-detail-builder {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.project-detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.project-link {
  text-decoration: none;
}

.project-screenshot {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(245,200,66,0.1);
  margin-bottom: 40px;
}

.project-screenshot img {
  width: 100%;
  display: block;
}

.project-description {
  margin-bottom: 48px;
}

.project-description h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.project-description-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

/* ══════════════════════════════════════
   VOTE BUTTON
   ══════════════════════════════════════ */
.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,200,66,0.08);
  border: 1px solid rgba(245,200,66,0.3);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.vote-btn:hover {
  background: rgba(245,200,66,0.15);
  border-color: var(--gold);
}

.vote-btn.voted {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--blue-deep);
  border-color: var(--gold);
}

/* ══════════════════════════════════════
   COMMENTS
   ══════════════════════════════════════ */
.comments-section h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 20px;
}

.comment-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

.comment-form-wrap {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-submit-btn {
  align-self: flex-end;
  padding: 10px 24px;
  font-size: 0.85rem;
}

.comment-login-prompt {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.comment-login-prompt a {
  color: var(--gold);
  text-decoration: none;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: rgba(13,59,110,0.2);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
}

.comment-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(245,200,66,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-avatar-placeholder {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.82rem;
}

.comment-meta strong {
  color: var(--white);
}

.comment-meta time {
  color: var(--text-muted);
}

.comment-body p {
  color: rgba(240,244,255,0.8);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   CATEGORY PAGE
   ══════════════════════════════════════ */
.category-criteria {
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 24px 28px;
  background: rgba(13,59,110,0.2);
  border: 1px solid rgba(245,200,66,0.1);
  border-radius: 16px;
}

.criteria-heading {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.criteria-list {
  list-style: none;
  padding: 0;
}

.criteria-list li {
  padding: 4px 0 4px 20px;
  position: relative;
  color: rgba(240,244,255,0.75);
  font-size: 0.88rem;
  line-height: 1.7;
}

.criteria-list li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ══════════════════════════════════════
   EDIT PROJECT / UPLOAD
   ══════════════════════════════════════ */
.edit-form-container {
  max-width: 640px;
  margin: 0 auto;
}

.upload-section {
  margin-bottom: 20px;
}

.upload-area {
  position: relative;
  border: 2px dashed rgba(245,200,66,0.2);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-top: 6px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.upload-area:hover {
  border-color: rgba(245,200,66,0.5);
  background: rgba(245,200,66,0.03);
}

.upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.upload-icon {
  font-size: 28px;
}

.upload-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-preview {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  object-fit: contain;
}

.edit-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* ══════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════ */
.dashboard-section {
  margin-bottom: 48px;
}

.dashboard-heading {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(245,200,66,0.1);
}

.dashboard-projects {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-project-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(13,59,110,0.2);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  transition: border-color 0.2s;
}

.dashboard-project-card:hover {
  border-color: rgba(245,200,66,0.2);
}

.dashboard-project-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(245,200,66,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.dashboard-project-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-project-info {
  flex: 1;
  min-width: 0;
}

.dashboard-project-info h4 {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 4px;
}

.dashboard-project-info h4 a {
  color: var(--white);
  text-decoration: none;
}

.dashboard-project-info h4 a:hover {
  color: var(--gold);
}

.dashboard-project-meta {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dashboard-project-actions {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 6px 14px !important;
  font-size: 0.78rem !important;
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.status-pending {
  background: rgba(245,200,66,0.15);
  color: var(--gold);
  border: 1px solid rgba(245,200,66,0.3);
}

.status-approved {
  background: rgba(39,174,96,0.15);
  color: #2ecc71;
  border: 1px solid rgba(39,174,96,0.3);
}

.status-rejected {
  background: rgba(231,76,60,0.15);
  color: #e74c3c;
  border: 1px solid rgba(231,76,60,0.3);
}

/* ══════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-sm {
  padding: 24px 20px;
}

.empty-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 8px;
}

.empty-state p,
.empty-state-sm p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.empty-state a,
.empty-state-sm a {
  color: var(--gold);
  text-decoration: none;
}

/* ══════════════════════════════════════
   RESPONSIVE (new pages)
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  .project-detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .project-detail-actions {
    justify-content: center;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .browse-controls {
    flex-direction: column;
  }
  .filter-select {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-container {
    padding: 40px 16px 60px;
  }
  .auth-card {
    padding: 28px 20px;
  }
  .project-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .dashboard-project-card {
    flex-direction: column;
    text-align: center;
  }
  .dashboard-project-actions {
    justify-content: center;
  }
  .edit-actions {
    flex-direction: column;
  }
  .edit-actions .btn-gold,
  .edit-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }
}
