:root {
  /* Rich Imperial Emerald & Gold Palette */
  --forest: #0A2E1A;         /* Rich Imperial Emerald Teal */
  --forest-mid: #1A4A2E;     /* Deep Sage Forest */
  --sage: #4E7C59;           /* Vibrant Sage Green */
  --sage-light: #7DAF8A;     /* Soft Seafoam */
  --gold: #C9973A;           /* Shimmering Royal Gold */
  --gold-light: #E8B85A;     /* Soft Warm Gold */
  --gold-dark: #A8761E;      /* Deep Metallic Bronze */
  --ivory: #F8F5EE;          /* Pearl Ivory Paper */
  --ivory-dark: #EDE8DC;     /* Warm Sand Pearl */
  --white: #FFFFFF;
  --charcoal: #1C1C1E;
  --muted: rgba(28,28,30,0.6);
  --border: rgba(28,28,30,0.12);
  --danger: #D93838;
  --success: #16A34A;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 44px;
  --shadow-sm: 0 4px 16px rgba(10,46,26,0.08);
  --shadow-md: 0 10px 40px rgba(10,46,26,0.14);
  --shadow-lg: 0 24px 80px rgba(10,46,26,0.22);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--ivory); color: var(--charcoal); min-height: 100vh; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,h6 { font-family: 'Manrope', sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── LANGUAGE SWITCHER BTN ── */
.lang-toggle-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(201,151,58,0.15); border: 1.5px solid var(--gold);
  color: var(--forest); font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: 13px; padding: 7px 16px; border-radius: 100px; cursor: pointer;
  transition: var(--transition);
}
.lang-toggle-btn:hover { background: var(--gold); color: var(--forest); }

/* ── APP SHELL ── */
.app-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 270px;
  background: linear-gradient(180deg, var(--forest) 0%, #051A0E 100%);
  display: flex; flex-direction: column;
  z-index: 100;
}
.sidebar-brand {
  padding: 28px 24px 20px;
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo { width: 44px; height: 44px; background: var(--gold); border-radius: 12px; display: grid; place-items: center; font-family: 'Cinzel',serif; font-weight: 900; font-size: 20px; color: var(--forest); flex-shrink: 0; box-shadow: 0 4px 14px rgba(201,151,58,0.3); }
.sidebar-brand-text { font-family: 'Manrope',sans-serif; font-weight: 800; font-size: 17px; color: #fff; }
.sidebar-brand-sub { font-size: 11px; color: var(--gold-light); font-weight: 600; letter-spacing: 0.5px; }
.sidebar-nav { flex: 1; padding: 20px 14px; overflow-y: auto; }
.sidebar-section-title { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; color: rgba(255,255,255,0.35); text-transform: uppercase; padding: 0 12px; margin-bottom: 8px; margin-top: 20px; }
.sidebar-section-title:first-child { margin-top: 0; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.7);
  transition: var(--transition); cursor: pointer; margin-bottom: 4px;
}
.nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(201,151,58,0.25), rgba(201,151,58,0.08)); color: var(--gold-light); font-weight: 700; border-left: 3px solid var(--gold); }
.sidebar-footer { padding: 16px 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.user-pill { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.05); }
.user-av { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-family: 'Manrope',sans-serif; font-weight: 800; color: var(--forest); font-size: 15px; flex-shrink: 0; }
.user-name-sm { font-size: 13px; font-weight: 700; color: #fff; }
.user-role-sm { font-size: 11px; color: rgba(255,255,255,0.5); }

/* ── MAIN CONTENT ── */
.app-main { margin-left: 270px; min-height: 100vh; display: flex; flex-direction: column; }
.app-topbar { background: var(--white); border-bottom: 1px solid var(--border); padding: 18px 36px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm); }
.topbar-title { font-family: 'Manrope',sans-serif; font-size: 22px; font-weight: 800; color: var(--forest); }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.app-content { flex: 1; padding: 36px; }

/* ── CARDS ── */
.card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
.card-header { padding: 22px 28px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-header h3 { font-family: 'Manrope',sans-serif; font-size: 17px; font-weight: 800; color: var(--forest); margin: 0; }
.card-body { padding: 28px; }

/* ── STAT CARDS ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 30px; }
.stat-box { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--border); padding: 26px 22px; transition: var(--transition); position: relative; overflow: hidden; }
.stat-box::before { content:''; position:absolute; top:0; left:0; width:4px; height:100%; background:var(--gold); }
.stat-box:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.stat-box-num { font-family: 'Manrope',sans-serif; font-size: 34px; font-weight: 900; color: var(--forest); line-height: 1; margin-bottom: 6px; }
.stat-box-label { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer; transition: var(--transition); border: none; font-family: 'Inter',sans-serif; text-decoration: none; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-mid); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--forest); box-shadow: 0 4px 14px rgba(201,151,58,0.3); }
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--forest); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,151,58,0.4); }
.btn-outline { background: transparent; color: var(--forest); border: 1.5px solid var(--border); }
.btn-outline:hover { background: var(--ivory); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 14px; font-family: 'Manrope',sans-serif; font-weight: 800; }
.btn-full { width: 100%; justify-content: center; }

/* ── FORMS ── */
.form-group { margin-bottom: 22px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--charcoal); margin-bottom: 8px; }
.form-control, .form-select {
  display: block; width: 100%;
  padding: 14px 18px; font-size: 15px;
  background: var(--white); color: var(--charcoal);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  transition: var(--transition); font-family: 'Inter',sans-serif;
  outline: none;
}
.form-control:focus, .form-select:focus { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(78,124,89,0.15); }
.form-control::placeholder { color: rgba(28,28,30,0.35); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th { background: var(--ivory); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); padding: 14px 18px; text-align: left; border-bottom: 1.5px solid var(--border); }
tbody td { padding: 16px 18px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--ivory); }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.badge-green { background: rgba(22,163,74,0.12); color: var(--success); }
.badge-gold { background: rgba(201,151,58,0.18); color: var(--gold-dark); border: 1px solid rgba(201,151,58,0.3); }
.badge-red { background: rgba(217,56,56,0.12); color: var(--danger); }
.badge-blue { background: rgba(78,124,89,0.12); color: var(--sage); }
.badge-gray { background: var(--ivory-dark); color: var(--muted); }

/* ── ALERTS ── */
.alert { padding: 16px 20px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 22px; display: flex; align-items: flex-start; gap: 12px; }
.alert-success { background: rgba(22,163,74,0.08); border: 1px solid rgba(22,163,74,0.25); color: #146136; }
.alert-danger { background: rgba(217,56,56,0.08); border: 1px solid rgba(217,56,56,0.25); color: #a12323; }
.alert-info { background: rgba(78,124,89,0.08); border: 1px solid rgba(78,124,89,0.25); color: #1b4b52; }
.alert-warning { background: rgba(201,151,58,0.12); border: 1px solid rgba(201,151,58,0.3); color: #7a5d12; }

/* ── DAY TIMELINE ── */
.day-timeline { display: flex; flex-direction: column; gap: 0; }
.day-row { display: flex; gap: 20px; align-items: stretch; }
.day-row-left { display: flex; flex-direction: column; align-items: center; gap: 0; width: 44px; flex-shrink: 0; }
.day-circle { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: 'Manrope',sans-serif; font-weight: 900; font-size: 14px; flex-shrink: 0; border: 2px solid transparent; }
.day-circle.done { background: var(--forest); color: #fff; border-color: var(--forest); }
.day-circle.today { background: var(--gold); color: var(--forest); border-color: var(--gold); }
.day-circle.pending { background: var(--white); color: var(--muted); border-color: var(--border); }
.day-line { flex: 1; width: 2px; background: var(--border); margin: 6px 0; }
.day-row:last-child .day-line { display: none; }
.day-content { flex: 1; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 14px; transition: var(--transition); }
.day-content.done { border-color: rgba(10,46,26,0.15); }
.day-content.today { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,151,58,0.12); }
.day-theme { font-size: 11px; font-weight: 700; color: var(--gold-dark); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.day-title { font-family: 'Manrope',sans-serif; font-weight: 800; font-size: 16px; color: var(--forest); margin-bottom: 8px; }
.day-meta { font-size: 13px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }

/* ── PROGRESS ── */
.progress-bar-wrap { height: 10px; background: var(--ivory-dark); border-radius: 100px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--sage), var(--gold)); transition: width 1s ease; }

/* ── AUTH PAGES ── */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-left { background: linear-gradient(135deg, var(--forest), var(--forest-mid)); display: flex; flex-direction: column; justify-content: center; padding: 60px; position: relative; overflow: hidden; }
.auth-right { background: var(--ivory); display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-form-box { width: 100%; max-width: 450px; }
.auth-title { font-family: 'Manrope',sans-serif; font-size: 30px; font-weight: 800; color: var(--forest); margin-bottom: 8px; }
.auth-sub { font-size: 14px; color: var(--muted); margin-bottom: 32px; line-height: 1.6; }
.auth-brand-title { font-family: 'Manrope',sans-serif; font-size: 48px; font-weight: 900; color: #fff; letter-spacing: -2px; line-height: 1; margin-bottom: 20px; }
.auth-brand-sub { font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.7; }

/* ── MOBILE RESPONSIVE OPTIMIZATIONS ── */
@media (max-width: 900px) {
  .app-sidebar { transform: translateX(-270px); }
  .app-sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .app-topbar { padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
  .app-content { padding: 16px; }
  .auth-page { grid-template-columns: 1fr !important; }
  .auth-left { display: none !important; }
  .auth-right { padding: 24px 16px !important; }
  .stat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .form-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 576px) {
  body { font-size: 14px; }
  .stat-grid { grid-template-columns: 1fr !important; }
  .auth-form-box { max-width: 100%; }
  .day-row { gap: 12px; }
  .day-row-left { width: 36px; }
  .day-circle { width: 36px; height: 36px; font-size: 12px; }
  .day-content { padding: 14px 16px; }
  .day-title { font-size: 15px; }
  .btn-sm { font-size: 11px !important; padding: 6px 12px !important; }
  .table-responsive, [style*="overflow-x:auto"] { -webkit-overflow-scrolling: touch; border-radius: 12px; }
}

/* ── SPONSOR MARQUEE SLIDER ── */
.sponsor-section {
  background: linear-gradient(135deg, #0B2B32 0%, #14424D 100%);
  padding: 60px 0;
  overflow: hidden;
  position: relative;
  border-top: 3px solid #D4AF37;
  border-bottom: 3px solid #D4AF37;
}
.sponsor-title {
  text-align: center;
  color: #D4AF37;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sponsor-sub {
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  margin-bottom: 32px;
}
.marquee-track-wrap {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 20px;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: 20px;
  align-items: center;
  animation: marqueeScroll 35s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.sponsor-card {
  width: 240px;
  height: 110px;
  background: #FFFFFF;
  border-radius: 14px;
  border: 2px solid #EAE5DA;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}
.sponsor-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(212,175,55,0.3);
  border-color: #D4AF37;
}
.sponsor-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #0B2B32;
  line-height: 1.2;
}
.sponsor-category {
  font-size: 11px;
  font-weight: 700;
  color: #C9973A;
  text-transform: uppercase;
  margin-top: 4px;
  letter-spacing: 0.5px;
}
.sponsor-subtext {
  font-size: 10px;
  color: #666;
  margin-top: 2px;
}
