/* === Global Cyber Calendar Theme (from calendar.html) === */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

/* THEME TOKENS */
:root {
  --bg-main: #02060a;
  --bg-panel: #050a10;
  --bg-panel-soft: #070f17;
  --accent: #32f68d;
  --accent-soft: rgba(50, 246, 141, 0.16);
  --accent-strong: #00ff84;
  --text-main: #e5ffe9;
  --text-muted: #8ea6a1;
  --danger: #ff4b5c;
  --danger-soft: rgba(255, 75, 92, 0.18);
  --border-subtle: #1a2923;
  --border-strong: #1cff95;
  --shadow-soft: 0 0 30px rgba(0, 0, 0, 0.75);
  --radius-lg: 10px;
}

/* RESET / BASE */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  padding: 0 0 40px 0;
  font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background-image: url('../css/img/background.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-main);
}

/* HEADINGS */
h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* LINKS */
a {
  color: var(--accent-strong);
  text-decoration: none;
}
a:hover {
  text-shadow: 0 0 6px rgba(50, 246, 141, 0.7);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}


.home-page main {
  max-width: 2000px;
}

/* === Layout for header / main / footer (global) === */
header, footer {
  max-width: 1200px;
  margin: 16px auto;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to bottom, rgba(6, 17, 22, 0.96), rgba(2, 6, 10, 0.98));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

/* Terminal window styling for main */
main {
  max-width: 1800px;
  margin: 20px auto;
  padding: 0;
  background: radial-gradient(circle at top left, #0b151d 0, #050a10 52%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 0 0 1px rgba(8, 28, 24, 0.7), 0 16px 40px rgba(0, 0, 0, 0.9);
  position: relative;
  overflow: hidden;
}

/* Terminal title bar */
.terminal-titlebar {
  height: 40px;
  background: linear-gradient(to bottom, #0d1520, #08101a);
  border-bottom: 1px solid rgba(50, 246, 141, 0.2);
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 15px;
}

/* Terminal title */
.terminal-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-family: 'Space Mono', monospace;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

/* Blinking cursor effect */
.terminal-title::after {
  content: "▮";
  animation: blink 1s infinite;
  margin-left: 4px;
  color: var(--accent-strong);
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Terminal window controls (dots) */
.terminal-controls {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}

.terminal-control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.terminal-control.close {
  background: linear-gradient(135deg, #ff6057 0%, #ff4842 100%);
  box-shadow: 0 0 3px rgba(255, 96, 87, 0.5);
}

.terminal-control.minimize {
  background: linear-gradient(135deg, #ffbd2e 0%, #ffaa00 100%);
  box-shadow: 0 0 3px rgba(255, 189, 46, 0.5);
}

.terminal-control.maximize {
  background: linear-gradient(135deg, #28ca42 0%, #1fb037 100%);
  box-shadow: 0 0 3px rgba(40, 202, 66, 0.5);
}

/* Content padding inside main */
.terminal-content {
  padding: 1.5rem;
}

/* Scanline effect (optional - adds retro terminal feel) */
main::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  opacity: 0.3;
  z-index: 1;
}

/* Make sure content is above scanlines */
.terminal-content {
  position: relative;
  z-index: 2;
}

/* UTILITIES (Tailwind-ish) */
.max-w-6xl { max-width: 1800px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
.gap-6 { gap: 1.5rem; }

@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
}

/* PAGE SHELL */
.page-shell {
  margin-top: 16px;
  border-top: 2px solid var(--accent-soft);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(to bottom, rgba(6, 17, 22, 0.96), rgba(2, 6, 10, 0.98));
}

.section-title {
  font-size: 0.9rem;
  color: var(--accent-strong);
  text-shadow: 0 0 6px rgba(50, 246, 141, 0.7);
  margin-bottom: 0.75rem;
}

/* PANELS / CARDS (use .panel everywhere you used .card before) */
.panel {
  background: radial-gradient(circle at top left, #0b151d 0, #050a10 52%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 0 0 1px rgba(8, 28, 24, 0.7), 0 16px 40px rgba(0, 0, 0, 0.9);
  padding: 1.25rem 1.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(0, 255, 170, 0.14);
  pointer-events: none;
}

.panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.panel-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-strong);
}

.panel-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.panel-body {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* If you still have .card from older pages, map it to panel style */
.card {
  background: radial-gradient(circle at top left, #0b151d 0, #050a10 52%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 0 0 1px rgba(8, 28, 24, 0.7), 0 16px 40px rgba(0, 0, 0, 0.9);
  padding: 1.25rem 1.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

/* SIDEBAR CHALLENGES (safe globally) */
#challenge-list {
  background: var(--bg-panel-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 0 0 1px rgba(8, 28, 24, 0.7);
  padding: 0.5rem 0.5rem 0.75rem;
  max-height: 420px;
  overflow-y: auto;
}

.external-event {
  margin: 6px 0;
  padding: 7px 9px;
  background: linear-gradient(to right, rgba(11, 45, 36, 0.9), rgba(5, 10, 12, 0.95));
  border-radius: 6px;
  cursor: grab;
  color: var(--text-main);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(50, 246, 141, 0.18);
}
.external-event span.tag {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(50, 246, 141, 0.5);
  color: var(--accent-strong);
}
.external-event:active { cursor: grabbing; }

/* CALENDAR PANEL */
#calendar {
  background: #020509;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 0 0 1px rgba(8, 28, 24, 0.7);
  padding: 0.25rem;
  font-size: 0.8rem;
}

/* FullCalendar neon look */
.fc-theme-standard .fc-scrollgrid {
  border-color: #12201d;
}
.fc-theme-standard td,
.fc-theme-standard th {
  border-color: #12201d;
}
.fc .fc-toolbar.fc-header-toolbar {
  margin-bottom: 0.75rem;
}
.fc-toolbar-title {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.fc-button-primary {
  background: rgba(5, 20, 16, 0.95);
  border: 1px solid rgba(50, 246, 141, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  box-shadow: 0 0 8px rgba(0, 255, 132, 0.3);
}
.fc-button-primary:not(:disabled):hover {
  background: rgba(7, 32, 25, 0.95);
  border-color: var(--accent-strong);
}
.fc-daygrid-day-number {
  color: var(--text-muted);
  font-size: 0.7rem;
}
.fc-day-today {
  background: radial-gradient(circle at top, rgba(50, 246, 141, 0.14), rgba(2, 5, 8, 0.9)) !important;
}
.fc-event {
  font-size: 0.72rem;
  border-radius: 6px;
  border-width: 1px;
  padding: 1px 4px;
  box-shadow: 0 0 12px rgba(0, 255, 132, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Delete dropzone */
#delete-zone {
  border-radius: var(--radius-lg);
  border-style: dashed;
  border-width: 1px;
  border-color: rgba(255, 75, 92, 0.45);
  background: linear-gradient(to right, rgba(29, 7, 12, 0.85), rgba(17, 4, 8, 0.96));
  color: #ffb3bd;
  font-size: 0.75rem;
  margin-top: 0.75rem;
  box-shadow: 0 0 0 1px rgba(68, 12, 20, 0.8);
}
#delete-zone::after {
  content: "Drag a challenge here to remove it from the schedule";
  margin-left: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* BUTTONS (global) */
.btn,
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease-out;
  white-space: nowrap;
  background: transparent;
  color: var(--text-main);
}

.btn-primary {
  background: linear-gradient(to right, #0f3c26, #1a6a3c);
  border-color: rgba(50, 246, 141, 0.7);
  color: var(--text-main);
  box-shadow: 0 0 15px rgba(50, 246, 141, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(to right, #145034, #1f7f49);
  border-color: var(--accent-strong);
  transform: translateY(-1px);
}

.btn-secondary {
  background: linear-gradient(to right, #19313a, #112029);
  border-color: rgba(120, 200, 255, 0.45);
  color: #d2f2ff;
  box-shadow: 0 0 15px rgba(64, 160, 255, 0.3);
}
.btn-secondary:hover {
  border-color: #7fd3ff;
  transform: translateY(-1px);
}

.btn-outline-danger {
  background: transparent;
  border-color: rgba(255, 75, 92, 0.8);
  color: #ffb3bd;
  box-shadow: 0 0 15px rgba(255, 75, 92, 0.3);
}
.btn-outline-danger:hover {
  background: rgba(255, 75, 92, 0.16);
  transform: translateY(-1px);
}

/* Button improvements */
.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 0.85rem;
}

/* Calendar action buttons container */
.calendar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

/* INPUTS */
.input,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
  width: 100%;
  background: #050b10;
  border-radius: 6px;
  border: 1px solid #1a2923;
  padding: 0.5rem 0.65rem;
  font-size: 0.78rem;
  color: var(--text-main);
  font-family: inherit;
  outline: none;
  transition: all 0.12s ease-out;
}

.input:focus,
textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(50, 246, 141, 0.5);
}

label {
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* STATUS TEXT */
.status-text {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* TABLES (global) */
table {
  border-collapse: collapse;
  width: 100%;
}
thead {
  background: #04090d;
}
th, td {
  border-bottom: 1px solid #101c1a;
  padding: 0.35rem 0.6rem;
  font-size: 0.76rem;
}
th {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  color: var(--text-muted);
}
tbody tr:nth-child(even) {
  background: #050b10;
}

/* Soft danger buttons (used in phishing table) */
.btn-danger-soft {
  background: var(--danger-soft);
  color: #ffd0d5;
  border-radius: 999px;
  border: 1px solid rgba(255, 75, 92, 0.7);
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.12s ease-out;
}
.btn-danger-soft:hover {
  background: rgba(255, 75, 92, 0.32);
}

/* Auth pages (login / register) */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  max-width: 420px;
  width: 100%;
}

/* Simple spacing utilities used on the form */
.mb-3 { margin-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.w-100 { width: 100%; }

.password-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.password-group .input {
  flex: 1;
}

.btn-icon {
  padding-inline: 0.9rem;
  font-size: 1rem;
}

/* ===== HOME PAGE STYLES ===== */

/* Home page layout */
.home-page {
  padding: 2.5rem 1.25rem 3rem;
}

/* Hero improvements */
.home-hero {
  padding: 0rem 0 0rem;
  min-height: 65vh;
  display: flex;
  align-items: center;
}

.home-hero-inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.btn-login {
  position: absolute;
  top: -20px;
  right: 0;
}

.home-hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(50, 246, 141, 0.5);
}

.home-hero-title {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #e5ffe9 0%, #32f68d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .home-hero-title {
    font-size: 3.5rem;
  }
}

.home-hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.home-hero-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.home-hero-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Feature cards */
.feature-card {
  text-align: left;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-title {
  margin-bottom: 0.4rem;
}

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

/* Sections */
.home-section {
  margin-top: 3rem;
}

.home-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.home-section-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #32f68d, #00ff84);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.home-section-subtitle {
  font-size: 1rem;
  opacity: 0.8;
  color: var(--text-muted);
}

/* Feature rows */
.home-feature-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.home-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  position: relative;
  border: 1px solid rgba(50, 246, 141, 0.2);
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.18s ease-out;
}

/* Feature badge improvements */
.home-feature-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(50, 246, 141, 0.2), rgba(0, 255, 132, 0.1));
  border: 1px solid rgba(50, 246, 141, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(50, 246, 141, 0.3);
  transition: all 0.18s ease-out;
}

.home-feature-heading {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--text-main);
}

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

/* glowing layer that follows the mouse */
.home-feature-row::before {
  content: "";
  position: absolute;
  inset: -40px;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 0%),
    rgba(50, 246, 141, 0.22),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

/* float + stronger glow on hover */
.home-feature-row:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.95),
    0 0 25px rgba(50, 246, 141, 0.4);
  border-color: var(--accent-strong);
}

.home-feature-row:hover::before {
  opacity: 1;
}

.home-feature-row:hover .home-feature-badge {
  box-shadow: 0 0 30px rgba(50, 246, 141, 0.6);
  transform: scale(1.1);
}

/* Two column layout improvements */
.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1800px;
  margin: 0 auto 3rem;
}

/* Stack on mobile */
@media (max-width: 1024px) {
  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* CTA Section */
.home-cta {
  margin-top: 5rem;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(50, 246, 141, 0.1) 0%, rgba(0, 255, 132, 0.05) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(50, 246, 141, 0.3);
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #e5ffe9, #32f68d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* === DASHBOARD LAYOUT === */

.dashboard-page {
  padding: 2.5rem 1.25rem 3rem;
}

/* Hero */
.dashboard-hero {
  padding: 1.5rem 0 2.25rem;
  text-align: center;
}

.dashboard-title {
  font-size: 2.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dashboard-subtitle {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Top strip */
.dashboard-strip {
  margin-top: 1.75rem;
}

.dashboard-strip-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: stretch;
}

.dashboard-player-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 260px;
}

.dashboard-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 2px solid var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  background: linear-gradient(to bottom, rgba(50, 246, 141, 0.2), rgba(5, 12, 10, 1));
  box-shadow: 0 0 12px rgba(50, 246, 141, 0.5);
}

.dashboard-player-name {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-player-meta {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.75rem;
}

.dashboard-top-stats {
  display: flex;
  gap: 1rem;
  flex: 0 0 auto;
}

.dashboard-top-tile {
  min-width: 90px;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(50, 246, 141, 0.35);
  background: rgba(5, 15, 11, 0.95);
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 255, 132, 0.25);
}

.tile-value {
  font-size: 1.1rem;
  font-weight: 700;
}

.tile-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Progress bar */
.dashboard-progress {
  margin-top: 1.1rem;
}

.dashboard-progress-track {
  width: 100%;
  height: 11px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #02060a;
  overflow: hidden;
}

.dashboard-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(to right, #29ff9a, #a8ffcf);
  box-shadow: 0 0 12px rgba(50, 246, 141, 0.7);
}

.dashboard-progress-label {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
}

/* Sections */
.dashboard-section {
  margin-top: 2.5rem;
}

.dashboard-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-section-header h2 {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Pills */
.pill {
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--border-subtle);
  background: rgba(5, 11, 9, 0.95);
}

.pill-soft {
  border-color: #32f68d99;
  color: var(--accent-strong);
}

.pill-warning {
  border-color: rgba(255, 193, 7, 0.8);
  color: #ffd86b;
  background: rgba(58, 39, 0, 0.9);
}

/* Weekly tasks */
.dashboard-task-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dashboard-task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-left: 4px solid var(--accent-strong);
}

.dashboard-task-main h3 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.dashboard-task-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.task-points {
  color: var(--accent-strong);
}

.dashboard-task-chevron {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Difficulty badges */
.difficulty-badge {
  border-radius: 999px;
  padding: 0.1rem 0.7rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.difficulty-badge--easy {
  background: rgba(72, 187, 120, 0.2);
  color: #8bffbf;
}

.difficulty-badge--medium {
  background: rgba(255, 193, 7, 0.18);
  color: #ffd86b;
}

.difficulty-badge--hard {
  background: rgba(255, 75, 92, 0.25);
  color: #ff9cab;
}

.dashboard-task-row--easy {
  border-left-color: #29ff9a;
}

.dashboard-task-row--medium {
  border-left-color: #ffd86b;
}

.dashboard-task-row--hard {
  border-left-color: #ff4b5c;
}

.dashboard-section-footer {
  margin-top: 1.2rem;
  text-align: center;
}

.dashboard-view-all {
  min-width: 220px;
}

/* Leaderboard */
.dashboard-section-title {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.dashboard-leaderboard {
  padding: 0.4rem 0.2rem;
}

.leader-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid #071318;
}

.leader-row:last-child {
  border-bottom: none;
}

.leader-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.leader-rank {
  font-size: 0.8rem;
  width: 32px;
}

.leader-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.leader-info {
  font-size: 0.8rem;
}

.leader-name {
  font-weight: 600;
}

.leader-points {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.leader-right {
  font-size: 1rem;
}

.leader-row--first {
  background: rgba(41, 255, 154, 0.06);
}

.leader-row--you {
  background: rgba(50, 246, 141, 0.08);
  border-radius: 10px;
}

/* Prizes */
.prize-card {
  margin-top: 1.1rem;
  padding: 0;
  overflow: hidden;
}

.prize-image {
  
  padding: 2.25rem 1.25rem;
  max-height: 300px;
}

.prize-image-2 {
 
  padding: 2.25rem 1.25rem;
  max-height: 300px;
}

.prize-image-3 {
  
  padding: 2.25rem 1.25rem;
  max-height: 300px;
}

.prize-footer {
  padding: 0.7rem 1rem;
  border-top: 1px solid #111a1e;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prize-text {
  font-size: 0.78rem;
}

.prize-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.prize-name {
  margin-top: 0.1rem;
}

.prize-rank {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.9rem;
  font-size: 0.72rem;
}


.home-video-section {
    padding: 1rem 2rem 3rem;
    margin: 0 auto;
    max-width: 900px; /* Constrains the entire section */
}

.video-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: left;
    margin-bottom: 0;
    color: var(--neon-cyan, rgb(255, 255, 255));
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--neon-cyan, #32f68d99);
    border-radius: 8px;
}




/* Rewards Hero */
.rewards-hero {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
}

.rewards-title {
  font-size: 2.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #32f68d, #00ff84);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rewards-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Points Banner */
.rewards-points-banner {
  margin: 2rem auto;
  max-width: 800px;
}

.points-banner-content {
  background: linear-gradient(135deg, rgba(50, 246, 141, 0.15), rgba(0, 255, 132, 0.08));
  border: 2px solid var(--accent-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 30px rgba(50, 246, 141, 0.3);
}

.points-banner-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.points-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 8px rgba(50, 246, 141, 0.5));
}

.points-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.points-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-strong);
  text-shadow: 0 0 10px rgba(50, 246, 141, 0.5);
}

.points-banner-right {
  text-align: right;
}

.points-level {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: rgba(5, 15, 11, 0.95);
  border: 1px solid rgba(50, 246, 141, 0.4);
}

/* Rewards Section */
.rewards-section {
  margin-top: 3rem;
}

.rewards-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.rewards-section-header h2 {
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
}

/* Filters */
.rewards-filters {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(5, 11, 9, 0.95);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease-out;
}

.filter-btn:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.filter-btn.active {
  background: rgba(50, 246, 141, 0.2);
  border-color: var(--accent-strong);
  color: var(--accent-strong);
  box-shadow: 0 0 12px rgba(50, 246, 141, 0.3);
}

/* Rewards Grid */
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.reward-card {
  background: radial-gradient(circle at top left, #0b151d 0, #050a10 52%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease-out;
}

.reward-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(50, 246, 141, 0.14);
  pointer-events: none;
}

.reward-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(50, 246, 141, 0.3);
  border-color: var(--accent-strong);
}

.reward-card--claimed {
  opacity: 0.7;
  border-color: var(--text-muted);
}

.reward-card--locked {
  opacity: 0.85;
}

.reward-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.reward-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 8px rgba(50, 246, 141, 0.4));
}

.reward-type-badge {
  font-size: 0.65rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.reward-type-badge--digital {
  background: rgba(14, 165, 233, 0.2);
  color: #7dd3fc;
  border: 1px solid rgba(14, 165, 233, 0.5);
}

.reward-type-badge--physical {
  background: rgba(249, 115, 22, 0.2);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.5);
}

.reward-type-badge--badge {
  background: rgba(168, 85, 247, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(168, 85, 247, 0.5);
}

.reward-card-body {
  margin-bottom: 1.25rem;
}

.reward-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.reward-description {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.reward-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.reward-points {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.reward-points-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.reward-points-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.7rem;
}

.reward-claimed-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(50, 246, 141, 0.2);
  color: var(--accent-strong);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--accent-strong);
}

/* No rewards message */
.no-rewards-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.error-message {
  color: var(--danger);
  text-align: center;
  padding: 2rem 1rem;
}

/* Claimed Rewards List */
.claimed-rewards-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.claimed-reward-item {
  background: rgba(5, 15, 11, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.15s ease-out;
}

.claimed-reward-item:hover {
  border-color: var(--accent-strong);
  box-shadow: 0 0 15px rgba(50, 246, 141, 0.2);
}

.claimed-reward-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.claimed-reward-info {
  flex: 1;
}

.claimed-reward-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.claimed-reward-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.claimed-reward-type {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.claimed-reward-points {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-strong);
  flex-shrink: 0;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
  padding: 1rem;
}

.modal--active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: radial-gradient(circle at top left, #0b151d 0, #050a10 52%);
  border: 2px solid var(--accent-strong);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(50, 246, 141, 0.4);
  transform: scale(0.9);
  transition: transform 0.2s ease-out;
}

.modal--active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s ease-out;
}

.modal-close:hover {
  background: rgba(255, 75, 92, 0.2);
  color: var(--danger);
}

.modal-body {
  padding: 1.5rem;
}

.modal-reward-preview {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-reward-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.modal-reward-preview h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.modal-reward-preview p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-points-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(2, 6, 10, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.modal-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.modal-info-row span:first-child {
  color: var(--text-muted);
}

.modal-info-row span:last-child {
  font-weight: 600;
  color: var(--text-main);
}

.modal-info-remaining {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 1rem;
}

.modal-info-remaining span:last-child {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.modal-points-cost {
  color: var(--accent-strong) !important;
}

.modal-error {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--danger-soft);
  border: 1px solid rgba(255, 75, 92, 0.5);
  border-radius: 6px;
  color: #ffd0d5;
  font-size: 0.85rem;
  text-align: center;
  min-height: 20px;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Admin Rewards Form */
.reward-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.reward-form-col {
  display: flex;
  flex-direction: column;
}

.reward-form-col label {
  margin-bottom: 0.4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .rewards-title {
    font-size: 1.8rem;
  }

  .points-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .points-banner-left {
    flex-direction: column;
  }

  .points-banner-right {
    text-align: center;
  }

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

  .rewards-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .rewards-filters {
    width: 100%;
    justify-content: center;
  }

  .reward-form-grid {
    grid-template-columns: 1fr;
  }
}