:root {
  --bg: #0f172a;
  --panel: #ffffff;
  --panel-soft: #f8fafc;

  --text: #0f172a;
  --text-light: #f8fafc;
  --muted: #64748b;
  --muted-light: #cbd5e1;

  --blue: #2563eb;
  --blue-light: #dbeafe;
  --purple: #7c3aed;
  --gold: #f59e0b;
  --gold-light: #fef3c7;
  --green: #16a34a;

  --border: #e2e8f0;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 34%),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.2), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", "Nunito", Arial, sans-serif;
}

/* Top Bar */

.top-bar {
  min-height: 72px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  color: var(--text-light);
}

.student-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.32);
}

.student-info h1 {
  margin: 0;
  font-size: 23px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.student-info p {
  margin: 4px 0 0;
  color: var(--muted-light);
  font-size: 13px;
  font-weight: 700;
}

.date-box {
  text-align: right;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 9px 13px;
  border-radius: 14px;
}

.date-box span {
  display: block;
  color: #93c5fd;
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 10px;
}

.date-box p {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 800;
}

/* Main Layout */

.dashboard {
  max-width: 920px;
  margin: 16px auto 24px;
  padding: 0 18px;
}

/* Progress Hero Card */

.progress-card {
  min-height: 108px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.96), rgba(124, 58, 237, 0.96)),
    #2563eb;
  border-radius: 22px;
  padding: 20px 24px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.progress-card::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  right: -70px;
  top: -90px;
}

.progress-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  right: 100px;
  bottom: -70px;
}

.progress-card > * {
  position: relative;
  z-index: 1;
}

.section-label {
  margin: 0;
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 11px;
  opacity: 0.85;
}

.progress-card h2 {
  margin: 6px 0 0;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.6px;
}

.progress-card p {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 800;
  opacity: 0.9;
}

.big-star {
  min-width: 118px;
  min-height: 84px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 34px;
}

.big-star span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 900;
}

/* Section Titles */

.section-heading {
  margin-top: 22px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-light);
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.pill,
.total-pill {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}

.total-pill {
  background: var(--gold);
  color: #111827;
  border: none;
}

/* Checkpoint Cards */

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.stamp-card {
  min-height: 82px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.stamp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
  border-color: #93c5fd;
}

.stamp-card:active {
  transform: scale(0.98);
}

.stamp-card.completed {
  background: linear-gradient(180deg, #ffffff, #eff6ff);
  border-color: var(--blue);
}

.stamp-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stamp-icon.orange {
  background: var(--blue-light);
  color: var(--blue);
}

.stamp-icon.yellow {
  background: var(--gold-light);
  color: var(--gold);
}

.stamp-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.stamp-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.check {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.28);
}

/* Compact Term Journey - passport stamp style */

.journey-heading,
.journey-table {
  display: flex;
}

.journey-heading {
  margin-top: 18px;
  margin-bottom: 8px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-light);
}

.journey-heading h2 {
  font-size: 18px;
  margin: 0;
}

.legend {
  display: none;
}

.total-pill {
  padding: 5px 10px;
  font-size: 10px;
  background: var(--gold);
  color: #111827;
  border: none;
}

.journey-table {
  flex-direction: column;
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
  padding-right: 4px;
}

.week-row {
  background: #fff7d6;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 52px repeat(5, 1fr) 58px;
  min-height: 76px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
}

.week-row.not-started {
  display: none;
}

.week-row.current {
  background: #fff3bf;
  border: 1px solid var(--gold);
}

.week-label {
  background: rgba(255, 255, 255, 0.45);
  border-right: 1px solid rgba(245, 158, 11, 0.25);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--blue);
  font-weight: 900;
  padding: 4px;
}

.week-label span {
  font-size: 8px;
  letter-spacing: 1px;
}

.week-label strong {
  display: block;
  font-size: 17px;
  line-height: 1;
}

.week-label small {
  margin-top: 2px;
  background: var(--blue);
  color: white;
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 7px;
  letter-spacing: 0.5px;
}

.day-cell {
  border-right: 1px solid rgba(245, 158, 11, 0.22);
  padding: 6px 4px;
  text-align: center;
  background: transparent;
}

.day-cell h4 {
  margin: 0 0 6px;
  color: #7c2d12;
  font-size: 8px;
  letter-spacing: 1px;
  font-weight: 900;
}

.day-cell p {
  margin: 0;
  color: #7c2d12;
  font-weight: 900;
  font-size: 10px;
}

.mini-stamps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.mini-stamps span {
  width: 24px;
  height: 24px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.13);
  animation: stampPop 0.35s ease both;
}

.week-summary {
  background: rgba(255, 255, 255, 0.45);
  padding: 5px;
  font-weight: 900;
  color: #7c2d12;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.week-summary p {
  font-size: 9px;
  margin: 1px 0;
}

/* Stamp animation */

@keyframes stampPop {
  0% {
    transform: scale(0.4) rotate(-12deg);
    opacity: 0;
  }

  60% {
    transform: scale(1.12) rotate(4deg);
    opacity: 1;
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.mini-stamps span:nth-child(1) {
  animation-delay: 0.05s;
}

.mini-stamps span:nth-child(2) {
  animation-delay: 0.12s;
}

.mini-stamps span:nth-child(3) {
  animation-delay: 0.19s;
}

.mini-stamps span:nth-child(4) {
  animation-delay: 0.26s;
}

/* Responsive Layout */

@media (max-width: 780px) {
  .top-bar {
    padding: 14px 18px;
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  .date-box {
    text-align: left;
  }

  .dashboard {
    margin-top: 14px;
    padding: 0 14px;
  }

  .progress-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  .progress-card h2 {
    font-size: 28px;
  }

  .big-star {
    width: 100%;
  }

  .section-heading {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }

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

  .student-info h1 {
    font-size: 22px;
  }
}

/* Extra compact kiosk adjustments */

body {
  overflow-x: hidden;
}

.dashboard {
  max-width: 760px;
  margin: 10px auto 16px;
  padding: 0 12px;
}

.top-bar {
  min-height: 58px;
  padding: 8px 18px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 17px;
}

.student-info {
  gap: 10px;
}

.student-info h1 {
  font-size: 18px;
}

.student-info p {
  font-size: 11px;
  margin-top: 2px;
}

.date-box {
  padding: 7px 10px;
  border-radius: 10px;
}

.date-box span {
  font-size: 8px;
  letter-spacing: 1.5px;
}

.date-box p {
  font-size: 11px;
}

.progress-card {
  min-height: 82px;
  padding: 14px 18px;
  border-radius: 18px;
}

.section-label {
  font-size: 9px;
  letter-spacing: 1.7px;
}

.progress-card h2 {
  font-size: 25px;
  margin-top: 4px;
}

.progress-card p {
  font-size: 12px;
  margin-top: 5px;
}

.big-star {
  min-width: 92px;
  min-height: 60px;
  border-radius: 14px;
  font-size: 25px;
}

.big-star span {
  font-size: 10px;
  margin-top: 2px;
}

.section-heading {
  margin-top: 16px;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: 18px;
}

.pill {
  padding: 5px 10px;
  font-size: 10px;
}

.stamp-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.stamp-card {
  min-height: 58px;
  padding: 9px 11px;
  border-radius: 13px;
  gap: 9px;
}

.stamp-icon {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  font-size: 15px;
}

.stamp-card h3 {
  font-size: 13px;
}

.stamp-card p {
  font-size: 10px;
  margin-top: 2px;
}

.check {
  width: 21px;
  height: 21px;
  top: 7px;
  right: 7px;
  font-size: 13px;
}
/* =========================
   TEACHER DASHBOARD UI
========================= */

.teacher-dashboard {
  max-width: 900px;
  display: grid;
  gap: 16px;
}

.teacher-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.teacher-panel h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.teacher-panel select,
.teacher-panel input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  background: white;
}

.stamp-form {
  display: grid;
  grid-template-columns: 90px 1fr 100px 130px;
  gap: 12px;
  align-items: end;
}

.stamp-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.send-button {
  height: 42px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.send-button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.teacher-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.teacher-section-title h2 {
  margin: 0;
}

.teacher-section-title span {
  background: var(--gold);
  color: #111827;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.teacher-stamp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.teacher-stamp-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 12px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
}

.teacher-stamp-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gold-light);
  font-size: 18px;
}

.teacher-stamp-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}

.teacher-stamp-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.teacher-stamp-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.teacher-stamp-points {
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
}

.remove-stamp-button {
  border: none;
  border-radius: 9px;
  padding: 7px 9px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.remove-stamp-button:hover {
  background: #fecaca;
}

.empty-stamps {
  grid-column: 1 / -1;
  background: var(--panel-soft);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 780px) {
  .stamp-form {
    grid-template-columns: 1fr;
  }

  .teacher-stamp-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   STUDENTS IN CLASS
========================= */

.students-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.student-row {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 12px;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  align-items: center;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
}

.student-name-block h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}

.student-name-block p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.student-stamp-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.award-stamp-button {
  border: 1px solid var(--border);
  background: var(--panel-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.award-stamp-button.earned {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.award-stamp-button:hover {
  transform: translateY(-1px);
}

.no-stamps-message {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 780px) {
  .student-row {
    grid-template-columns: 1fr;
  }
}



/* =========================
   CLASS PROGRESS PAGE
========================= */

.class-progress-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.progress-row {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 12px;
  display: grid;
  grid-template-columns: 170px 120px 120px 1fr;
  gap: 12px;
  align-items: center;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
}

.progress-student h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}

.progress-student p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.progress-stat {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  text-align: center;
}

.progress-stat strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.progress-stat span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.progress-bar-area {
  display: grid;
  gap: 6px;
}

.progress-bar {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 999px;
}

.progress-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 780px) {
  .progress-row {
    grid-template-columns: 1fr;
  }
}

.award-form {
  margin: 0;
  padding: 0;
  display: inline-block;
}

.award-stamp-button {
  border: 1px solid var(--border);
  background: var(--panel-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.award-stamp-button.earned {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.award-stamp-button:hover {
  transform: translateY(-1px);
}

/* =========================
   STUDENT DASHBOARD DATABASE VIEW
========================= */

.overall-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.stamp-status {
  display: grid;
  place-items: center;
  gap: 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}

.stamp-status span {
  font-size: 18px;
}

.stamp-card.completed {
  border-color: rgba(34, 197, 94, 0.6);
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.stamp-card.completed .stamp-icon {
  background: #dcfce7;
}

@media (max-width: 780px) {
  .overall-summary {
    grid-template-columns: 1fr;
  }
}

/* =========================
   FIX STUDENT DASHBOARD PHP VIEW
========================= */

.hero-card,
.hero-card h2,
.hero-card .eyebrow,
.hero-card .hero-text,
.hero-card .progress-label,
.hero-card strong,
.hero-card span {
  color: white;
}

.hero-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(124, 58, 237, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.hero-card .eyebrow {
  opacity: 0.8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-card h2 {
  margin: 8px 0;
  font-size: 30px;
  font-weight: 900;
}

.hero-card .hero-text {
  opacity: 0.8;
  font-size: 14px;
  font-weight: 700;
}

.hero-badge {
  color: white;
}

.hero-star {
  font-size: 30px;
}

.stamps-section .section-title h2 {
  color: white;
}

.stamps-section .section-title span {
  background: var(--gold);
  color: #111827;
}

.stamp-card {
  min-height: 78px;
}

.overall-card,
.teacher-panel {
  color: var(--text);
}

/* =========================
   COMPACT OVERALL PROGRESS
========================= */

.compact-overall-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.compact-overall-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compact-overall-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.compact-overall-header span {
  background: var(--gold);
  color: #111827;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 900;
}

.compact-overall-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.compact-overall-stats div {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  text-align: center;
}

.compact-overall-stats strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.compact-overall-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

/* =========================
   COMPACT WEEKLY PASSPORT GRID
========================= */

.weekly-passport-card {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.weekly-passport-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.weekly-passport-header h2 {
  margin: 0;
  color: #7c2d12;
  font-size: 16px;
  font-weight: 900;
}

.weekly-passport-header span {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 900;
}

.week-grid {
  display: grid;
  grid-template-columns: 58px repeat(5, 1fr);
  border: 1px solid #fed7aa;
  border-radius: 14px;
  overflow: hidden;
  background: white;
}

.week-label,
.day-cell {
  height: 78px;
  border-right: 1px solid #fed7aa;
}

.day-cell:last-child {
  border-right: none;
}

.week-label {
  background: #fffaf0;
  display: grid;
  place-items: center;
}

.week-label span {
  display: block;
  color: #7c2d12;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.week-label strong {
  display: block;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.day-cell {
  display: grid;
  grid-template-rows: 22px 1fr;
  align-items: start;
  justify-items: center;
  padding: 6px 4px;
}

.day-cell > span {
  color: #9a3412;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.7px;
}

.mini-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  align-content: start;
  margin-top: 2px;
}

.mini-stamps em {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: white;
  border-radius: 8px;
  font-style: normal;
  font-size: 13px;
  box-shadow: 0 3px 7px rgba(15, 23, 42, 0.18);
  transform: rotate(-5deg);
}

.mini-stamps em:nth-child(even) {
  transform: rotate(5deg);
}

@media (max-width: 780px) {
  .week-grid {
    grid-template-columns: 46px repeat(5, 1fr);
  }

  .week-label,
  .day-cell {
    height: 70px;
  }

  .mini-stamps em {
    width: 19px;
    height: 19px;
    font-size: 11px;
  }

  .weekly-passport-header h2 {
    font-size: 15px;
  }
}

.empty-mini-stamp {
  color: #cbd5e1;
  box-shadow: none !important;
  background: #f8fafc !important;
}

.week-switcher {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.week-switcher a {
  text-decoration: none;
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 900;
}

.week-switcher a:hover {
  background: #fed7aa;
}

html {
  scroll-behavior: smooth;
}

#weekly-passport {
  scroll-margin-top: 90px;
}

/* =========================
   FIX TODAY'S STAMPS HEADER BADGE
========================= */

.stamps-section .section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.stamps-section .section-title span {
  background: var(--gold);
  color: #111827;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.stamps-section .section-title h2 {
  margin: 0;
}

.week-switcher a.active-week {
  background: #fb923c;
  color: white;
  border-color: #fb923c;
}

html {
  scroll-behavior: smooth;
}

#students-section {
  scroll-margin-top: 90px;
}

#students-section {
  scroll-margin-top: 90px;
}

.upload-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.upload-form input[type="file"] {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font-family: inherit;
  font-weight: 800;
}

.csv-example {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}

/* =========================
   ADMIN MENU
========================= */

.admin-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.admin-menu-card {
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  transition: 0.2s ease;
}

.admin-menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.admin-menu-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gold-light);
  font-size: 24px;
}

.admin-menu-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.admin-menu-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 780px) {
  .admin-menu-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   STUDENT KIOSK MODE
========================= */

.kiosk-mode {
  max-width: 560px;
  margin-left: auto;
  min-height: 100vh;
  overflow-x: hidden;
}

.kiosk-mode .top-bar {
  padding: 10px 12px;
}

.kiosk-mode .student-info h1 {
  font-size: 18px;
}

.kiosk-mode .student-info p {
  font-size: 11px;
}

.kiosk-mode .date-box {
  padding: 8px 10px;
}

.kiosk-mode .date-box p {
  font-size: 11px;
}

.kiosk-mode .dashboard {
  gap: 10px;
  padding: 10px;
}

.kiosk-mode .hero-card {
  padding: 16px;
  border-radius: 18px;
}

.kiosk-mode .hero-card h2 {
  font-size: 24px;
}

.kiosk-mode .hero-text,
.kiosk-mode .progress-label {
  font-size: 12px;
}

.kiosk-mode .hero-star {
  font-size: 28px;
}

.kiosk-mode .stamps-section .section-title h2 {
  font-size: 24px;
}

.kiosk-mode .stamp-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.kiosk-mode .stamp-card {
  min-height: 64px;
  padding: 10px;
}

.kiosk-mode .stamp-card h3 {
  font-size: 14px;
}

.kiosk-mode .stamp-card p,
.kiosk-mode .stamp-status p {
  font-size: 11px;
}

.kiosk-mode .weekly-passport-card,
.kiosk-mode .compact-overall-card {
  padding: 10px;
  border-radius: 16px;
}

.kiosk-mode .week-switcher {
  gap: 5px;
}

.kiosk-mode .week-switcher a {
  padding: 4px 8px;
  font-size: 10px;
}

.kiosk-mode .week-grid {
  grid-template-columns: 50px repeat(5, 1fr);
}

.kiosk-mode .week-label,
.kiosk-mode .day-cell {
  height: 62px;
}

.kiosk-mode .mini-stamps em {
  width: 18px;
  height: 18px;
  font-size: 11px;
}

.kiosk-mode .compact-overall-stats {
  gap: 6px;
}

.kiosk-mode .compact-overall-stats div {
  padding: 8px;
}

.kiosk-mode .compact-overall-stats strong {
  font-size: 18px;
}

/* =========================
   STAMP CELEBRATION TOAST
========================= */

.stamp-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  background: #ffffff;
  border: 2px solid #bbf7d0;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
  transform: translateY(130%);
  opacity: 0;
  transition: 0.35s ease;
}

.stamp-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.stamp-toast-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #dcfce7;
  font-size: 24px;
}

.stamp-toast strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.stamp-toast p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

/* =========================
   TEACHER LOGIN
========================= */

.login-panel {
  width: 100%;
  max-width: 520px;
  margin: 60px auto 0;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.login-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-form input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  background: white;
}

.login-form input:focus {
  outline: 3px solid rgba(37, 99, 235, 0.15);
  border-color: var(--blue);
}

.login-form .send-button {
  width: 100%;
  margin-top: 4px;
}

.login-message {
  margin-top: 16px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
}

/* =========================
   ADMIN HEADER ACTIONS
========================= */

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logout-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 12px;
  background: #fee2e2;
  color: #991b1b;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid #fecaca;
}

.logout-button:hover {
  background: #fecaca;
}

@media (max-width: 780px) {
  .admin-header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .logout-button {
    width: 100%;
  }

  .login-panel {
    margin-top: 20px;
  }
}

/* =========================
   TEACHER HEADER NAVIGATION
========================= */

.teacher-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.teacher-user-box {
  min-width: 150px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 8px 11px;
}

.teacher-user-box span {
  display: block;
  color: #93c5fd;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.3px;
}

.teacher-user-box strong {
  display: block;
  margin-top: 3px;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.teacher-user-box small {
  display: block;
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 700;
}

.dashboard-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--blue),
    var(--purple)
  );
  color: white;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.dashboard-button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

@media (max-width: 900px) {
  .teacher-header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .teacher-user-box {
    flex: 1 1 100%;
  }

  .date-box {
    flex: 1 1 100%;
    text-align: left;
  }

  .dashboard-button,
  .logout-button {
    flex: 1;
  }
}

/* =========================
   HEADER NAVIGATION
========================= */

.teacher-navigation{

    display:flex;
    align-items:center;
    gap:10px;

}

.nav-button{

    text-decoration:none;

    background:#ffffff10;

    color:white;

    padding:10px 18px;

    border-radius:10px;

    border:1px solid rgba(255,255,255,.15);

    font-size:13px;

    font-weight:800;

    transition:.2s;

}

.nav-button:hover{

    background:#ffffff20;

}

.nav-button.active{

    background:linear-gradient(
        135deg,
        var(--blue),
        var(--purple)
    );

}

.logout-button{

    text-decoration:none;

    background:#dc2626;

    color:white;

    padding:10px 18px;

    border-radius:10px;

    font-size:13px;

    font-weight:800;

}

.logout-button:hover{

    background:#b91c1c;

}
/* =========================
   TEACHER HOME DASHBOARD
========================= */

.admin-welcome-card {
  background:
    linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.96),
      rgba(124, 58, 237, 0.96)
    );

  border-radius: 20px;
  padding: 24px;
  color: white;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.22);
}

.admin-welcome-label {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.8;
}

.admin-welcome-card h2 {
  margin: 7px 0 5px;
  font-size: 28px;
  font-weight: 900;
}

.admin-welcome-card p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.88;
}

.admin-date-summary {
  min-width: 100px;
  background: rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 13px;
  text-align: center;
}

.admin-date-summary span {
  display: block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
  opacity: 0.8;
}

.admin-date-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  font-weight: 900;
}

.admin-date-summary small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.8;
}

/* Dashboard statistics */

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.admin-stat-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;

  display: flex;
  align-items: center;
  gap: 11px;

  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.12);
}

.admin-stat-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;

  display: grid;
  place-items: center;

  border-radius: 12px;
  background: var(--gold-light);
  font-size: 20px;
}

.admin-stat-card strong {
  display: block;
  color: var(--text);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.admin-stat-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.3;
}

/* Responsive dashboard */

@media (max-width: 900px) {
  .admin-stat-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .admin-stat-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .admin-welcome-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-date-summary {
    width: 100%;
  }

  .admin-stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-stat-card:last-child {
    grid-column: auto;
  }
}

/* =========================
   MANAGE TEACHERS
========================= */

.management-message {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
  border-radius: 14px;
  padding: 13px 15px;
  font-size: 13px;
  font-weight: 800;
}

.management-message-error {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}

.manage-teacher-form {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.2fr 130px 130px;
  gap: 10px;
  margin-top: 15px;
}

.manage-teacher-form input,
.manage-teacher-form select,
.teacher-edit-form input,
.teacher-edit-form select,
.teacher-password-form input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 0 11px;
  background: white;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

.teacher-management-list {
  display: grid;
  gap: 11px;
  margin-top: 15px;
}

.teacher-management-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.1);
}

.teacher-management-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}

.teacher-management-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--gold-light);
  font-size: 21px;
}

.teacher-management-summary h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.teacher-management-summary h3 small {
  margin-left: 6px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 9px;
}

.teacher-management-summary p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.teacher-management-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.teacher-management-tags span {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 900;
}

.teacher-management-tags .status-active {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.teacher-management-tags .status-disabled {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}

.teacher-management-details {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.teacher-management-details summary {
  color: var(--blue);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.teacher-management-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.teacher-edit-form {
  display: grid;
  grid-template-columns: 1fr 1.4fr 130px 130px;
  gap: 8px;
}

.teacher-password-form {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 8px;
}

.teacher-danger-actions {
  display: flex;
  gap: 8px;
}

.management-button,
.management-delete-button {
  min-height: 40px;
  border: none;
  border-radius: 10px;
  padding: 0 13px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.management-button {
  background: #e2e8f0;
  color: #334155;
}

.management-delete-button {
  background: #fee2e2;
  color: #991b1b;
}

.management-button:disabled,
.management-delete-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .manage-teacher-form,
  .teacher-edit-form {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 600px) {
  .manage-teacher-form,
  .teacher-edit-form {
    grid-template-columns: 1fr;
  }

  .teacher-danger-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .teacher-danger-actions form,
  .teacher-danger-actions button {
    width: 100%;
  }
}


/* =========================
   STAMP TYPE SELECTOR
========================= */

.new-stamp-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.stamp-type-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stamp-type-option {
  cursor: pointer;
}

.stamp-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.stamp-type-card {
  min-height: 80px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 5px;

  background: var(--panel-soft);
  border: 2px solid var(--border);
  border-radius: 15px;
  padding: 14px;

  transition: 0.18s ease;
}

.stamp-type-card strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.stamp-type-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.stamp-type-option input:checked +
.stamp-type-card {
  background: var(--blue-light);
  border-color: var(--blue);
  box-shadow:
    0 7px 16px rgba(37, 99, 235, 0.16);
}

.stamp-main-fields {
  display: grid;
  grid-template-columns: 90px 1fr 100px 130px;
  gap: 12px;
  align-items: end;
}

.stamp-main-fields label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stamp-main-fields input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  background: white;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}

/* =========================
   BEHAVIOUR MATRIX
========================= */

.behaviour-options {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.behaviour-options[hidden] {
  display: none !important;
}

.behaviour-options-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.behaviour-options-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

.behaviour-options-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.clear-behaviour-button {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 11px;
  background: white;
  color: var(--muted);
  font-family: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.behaviour-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
  margin-top: 14px;
}

.behaviour-category {
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
  border-radius: 15px;
}

.behaviour-category-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.behaviour-category-header h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
}

.behaviour-category-header p {
  margin: 3px 0 0;
  font-size: 10px;
  font-weight: 700;
}

.behaviour-on-time
.behaviour-category-header {
  background: #fef3c7;
  color: #92400e;
}

.behaviour-engaged
.behaviour-category-header {
  background: #ffedd5;
  color: #9a3412;
}

.behaviour-respectful
.behaviour-category-header {
  background: #dbeafe;
  color: #1d4ed8;
}

.behaviour-supportive
.behaviour-category-header {
  background: #dcfce7;
  color: #166534;
}

.behaviour-checklist {
  display: grid;
  gap: 4px;
  padding: 9px;
}

.behaviour-checkbox {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;

  border-radius: 9px;
  padding: 7px;
  cursor: pointer;
}

.behaviour-checkbox:hover {
  background: var(--panel-soft);
}

.behaviour-checkbox input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.behaviour-checkbox span {
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 780px) {
  .stamp-type-selector,
  .behaviour-category-grid {
    grid-template-columns: 1fr;
  }

  .stamp-main-fields {
    grid-template-columns: 1fr;
  }

  .behaviour-options-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================
   BEHAVIOUR STAMP DROPDOWNS
========================= */

.behaviour-stamp-fields {
  display: grid;
  grid-template-columns: 190px 1fr 100px 190px;
  gap: 12px;
  align-items: end;

  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.behaviour-stamp-fields[hidden],
.stamp-main-fields[hidden] {
  display: none !important;
}

.behaviour-stamp-fields label {
  display: block;
  margin-bottom: 6px;

  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.behaviour-stamp-fields select,
.behaviour-stamp-fields input {
  width: 100%;
  height: 42px;

  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;

  background: white;
  color: var(--text);

  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

.behaviour-stamp-fields select:focus,
.behaviour-stamp-fields input:focus {
  outline: 3px solid rgba(37, 99, 235, 0.14);
  border-color: var(--blue);
}

@media (max-width: 900px) {
  .behaviour-stamp-fields {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .behaviour-stamp-fields {
    grid-template-columns: 1fr;
  }
}

/* =========================
   ACTIVITY EMOJI PICKER
========================= */

.emoji-picker-wrapper {
  position: relative;
}

.emoji-picker-button {
  width: 100%;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;

  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 10px;

  background: white;
  color: var(--text);

  font-family: inherit;
  cursor: pointer;
}

.emoji-picker-button:hover {
  border-color: var(--blue);
}

.emoji-picker-button span {
  font-size: 20px;
}

.emoji-picker-button small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.emoji-picker-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;

  width: 330px;
  max-height: 390px;
  overflow-y: auto;

  z-index: 1000;

  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;

  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.24);
}

.emoji-picker-panel[hidden] {
  display: none !important;
}

.emoji-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.emoji-picker-header strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.emoji-picker-close {
  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  border: none;
  border-radius: 8px;

  background: var(--panel-soft);
  color: var(--muted);

  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.emoji-picker-section {
  margin-top: 12px;
}

.emoji-picker-label {
  display: block;
  margin-bottom: 7px;

  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.emoji-choice {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  border: 1px solid transparent;
  border-radius: 9px;

  background: var(--panel-soft);
  font-size: 19px;

  cursor: pointer;
  transition: 0.15s ease;
}

.emoji-choice:hover {
  transform: translateY(-2px);
  background: var(--blue-light);
  border-color: var(--blue);
}

@media (max-width: 600px) {
  .emoji-picker-panel {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 100px;

    width: auto;
    max-height: 70vh;
  }

  .emoji-picker-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* =========================
   SIMPLE CLASS PROGRESS
========================= */

.simple-progress-row {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;

  display: grid;
  grid-template-columns:
    1.4fr repeat(3, 1fr);

  gap: 12px;
  align-items: center;

  box-shadow:
    0 7px 16px rgba(15, 23, 42, 0.1);
}

.simple-progress-student h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.simple-progress-student p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.simple-progress-stat {
  min-height: 72px;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 12px;

  display: flex;
  align-items: center;
  gap: 10px;
}

.activity-stat {
  background: #eff6ff;
}

.behaviour-stat {
  background: #fef3c7;
}

.total-stat {
  background: #f3e8ff;
}

.simple-progress-icon {
  font-size: 24px;
}

.simple-progress-stat strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.simple-progress-stat small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 780px) {
  .simple-progress-row {
    grid-template-columns: 1fr;
  }
}

/* =========================
   PUBLIC WELCOME PORTAL
========================= */

.portal-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;

  background:
    radial-gradient(
      circle at top left,
      rgba(37, 99, 235, 0.25),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(124, 58, 237, 0.25),
      transparent 34%
    ),
    #0f172a;
}

.portal-shell {
  width: 100%;
  max-width: 920px;
}

.portal-hero {
  text-align: center;
  color: white;
}

.portal-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;

  display: grid;
  place-items: center;

  border-radius: 22px;
  background: linear-gradient(
    135deg,
    var(--blue),
    var(--purple)
  );

  font-size: 34px;

  box-shadow:
    0 16px 34px rgba(37, 99, 235, 0.32);
}

.portal-eyebrow {
  margin: 0;
  color: #93c5fd;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.portal-hero h1 {
  margin: 8px 0 10px;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1px;
}

.portal-subtitle {
  margin: 0;
  color: var(--muted-light);
  font-size: 15px;
  font-weight: 700;
}

.portal-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.portal-choice-card {
  min-height: 190px;
  padding: 24px;

  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;

  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;

  color: var(--text);
  text-decoration: none;

  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.22);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.portal-choice-card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 22px 44px rgba(15, 23, 42, 0.3);
}

.portal-choice-icon {
  width: 64px;
  height: 64px;

  display: grid;
  place-items: center;

  border-radius: 18px;
  font-size: 30px;
}

.teacher-choice .portal-choice-icon {
  background: var(--blue-light);
}

.student-choice .portal-choice-icon {
  background: var(--gold-light);
}

.portal-choice-card h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.portal-choice-card p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.portal-choice-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.student-choice span {
  color: var(--purple);
}

.portal-footer {
  margin-top: 24px;
  text-align: center;
}

.portal-footer p {
  margin: 0;
  color: var(--muted-light);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 700px) {
  .portal-page {
    padding: 16px;
  }

  .portal-hero h1 {
    font-size: 34px;
  }

  .portal-choice-grid {
    grid-template-columns: 1fr;
  }

  .portal-choice-card {
    min-height: 160px;
  }
}

@media (max-width: 460px) {
  .portal-choice-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .portal-choice-icon {
    margin: 0 auto;
  }
}

/* =========================
   STUDENT OVERALL STAMP COUNTS
========================= */

.student-overall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.student-overall-stat {
  min-height: 76px;
  padding: 11px;

  display: flex;
  align-items: center;
  gap: 9px;

  border: 1px solid var(--border);
  border-radius: 13px;
}

.activity-overall {
  background: #eff6ff;
}

.behaviour-overall {
  background: #fef3c7;
}

.total-overall {
  background: #f3e8ff;
}

.xp-overall {
  background: #ecfdf5;
}

.student-overall-icon {
  font-size: 22px;
}

.student-overall-stat strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.student-overall-stat small {
  display: block;
  margin-top: 5px;

  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.25;
}

@media (max-width: 700px) {
  .student-overall-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .student-overall-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   MANAGE REWARDS
========================= */

.reward-create-form {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr 100px 130px;
  gap: 10px;
  align-items: end;
  margin-top: 15px;
}

.reward-create-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.reward-create-form input,
.reward-edit-form input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 0 11px;
  background: white;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

.reward-management-list {
  display: grid;
  gap: 11px;
  margin-top: 15px;
}

.reward-management-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow:
    0 7px 16px rgba(15, 23, 42, 0.1);
}

.reward-summary {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 13px;
  align-items: center;
}

.reward-cost {
  min-height: 66px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 14px;
  background: var(--gold-light);
  color: #92400e;
  text-align: center;
}

.reward-cost strong {
  display: block;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}

.reward-cost span {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.reward-summary h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.reward-summary p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.reward-management-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.reward-edit-form {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr 100px 130px;
  gap: 8px;
}

@media (max-width: 900px) {
  .reward-create-form,
  .reward-edit-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .reward-create-form,
  .reward-edit-form {
    grid-template-columns: 1fr;
  }

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

  .reward-cost {
    width: 90px;
  }
}

/* =========================
   REWARD ICON PICKER
========================= */

.reward-icon-picker-wrapper {
  position: relative;
}

.reward-icon-button {
  width: 100%;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;

  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 0 10px;

  background: white;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
}

.reward-icon-button span {
  font-size: 21px;
}

.reward-icon-button small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.reward-icon-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;

  width: 260px;
  z-index: 1000;

  background: white;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 11px;

  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.24);
}

.reward-icon-panel[hidden] {
  display: none !important;
}

.reward-icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.reward-icon-choice {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border: 1px solid transparent;
  border-radius: 9px;

  background: var(--panel-soft);
  font-size: 18px;
  cursor: pointer;
}

.reward-icon-choice:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  transform: translateY(-1px);
}

.reward-display-icon {
  width: 54px;
  height: 54px;

  display: grid;
  place-items: center;

  border-radius: 14px;
  background: var(--blue-light);
  font-size: 26px;
}

.reward-summary {
  grid-template-columns: 54px 76px 1fr;
}

.reward-create-form select,
.reward-edit-form select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 0 11px;
  background: white;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .reward-create-form,
  .reward-edit-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .reward-create-form,
  .reward-edit-form {
    grid-template-columns: 1fr;
  }

  .reward-summary {
    grid-template-columns: 54px 1fr;
  }

  .reward-cost {
    grid-column: 1 / -1;
  }
}

.reward-balance-note {
  display: block;
  margin-top: 5px;
  color: #92400e;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

/* =========================
   STUDENT REWARD CENTRE
========================= */

.student-reward-centre {
  margin-top: 16px;
  padding: 16px;

  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border);
  border-radius: 18px;

  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.14);
}

.student-reward-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.student-reward-eyebrow {
  margin: 0;
  color: var(--purple);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.student-reward-header h2 {
  margin: 4px 0;
  color: var(--text);
  font-size: 19px;
  font-weight: 900;
}

.student-reward-header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.student-reward-balance {
  min-width: 115px;
  padding: 12px;

  background: var(--gold-light);
  border-radius: 14px;
  text-align: center;
}

.student-reward-balance span {
  display: block;
  color: #92400e;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
}

.student-reward-balance strong {
  display: block;
  margin-top: 3px;
  color: #92400e;
  font-size: 25px;
  font-weight: 900;
}

.student-reward-balance small {
  display: block;
  color: #92400e;
  font-size: 8px;
  font-weight: 800;
}

.student-reward-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.student-reward-card {
  padding: 13px;

  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 11px;

  background: white;
  border: 1px solid var(--border);
  border-radius: 15px;
}

.student-reward-card.reward-locked {
  opacity: 0.62;
}

.student-reward-icon {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border-radius: 13px;
  background: var(--blue-light);
  font-size: 24px;
}

.student-reward-content h3 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.student-reward-content p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.student-reward-footer {
  grid-column: 1 / -1;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  padding-top: 9px;
  border-top: 1px solid var(--border);
}

.student-reward-footer strong {
  color: var(--purple);
  font-size: 11px;
  font-weight: 900;
}

.reward-ready-label,
.reward-needed-label,
.reward-pending-label {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 900;
}

.reward-ready-label {
  background: #dcfce7;
  color: #166534;
}

.reward-needed-label {
  background: #f1f5f9;
  color: var(--muted);
}

.reward-request-preview {
  border: none;
  border-radius: 9px;
  padding: 7px 10px;

  background: linear-gradient(
    135deg,
    var(--blue),
    var(--purple)
  );

  color: white;
  font-family: inherit;
  font-size: 9px;
  font-weight: 900;
  opacity: 0.7;
}

.student-reward-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 650px) {
  .student-reward-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-reward-balance {
    width: 100%;
  }

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

/* =========================
   STUDENT DASHBOARD SECTION ORDER
========================= */

.compact-overall-card {
  width: 100%;
  margin-top: 16px;
}

.student-reward-centre {
  width: 100%;
  margin-top: 16px;
}

.compact-overall-header {
  margin-bottom: 12px;
}

.student-overall-grid {
  width: 100%;
}

.student-reward-grid {
  width: 100%;
}

.student-overall-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.kiosk-mode .student-overall-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 420px) {
  .student-overall-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   STUDENT REWARD REQUESTS
========================= */

#reward-centre {
  scroll-margin-top: 20px;
}

.reward-request-message {
  margin-bottom: 12px;
  padding: 11px 13px;

  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 12px;

  color: #166534;
  font-size: 11px;
  font-weight: 900;
}

.reward-request-message.reward-request-error {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}

.reward-request-form {
  margin: 0;
}

.reward-request-button {
  border: none;
  border-radius: 9px;
  padding: 7px 10px;

  background: linear-gradient(
    135deg,
    var(--blue),
    var(--purple)
  );

  color: white;
  font-family: inherit;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.reward-request-button:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.reward-pending-label {
  border-radius: 999px;
  padding: 6px 9px;

  background: #fef3c7;
  color: #92400e;

  font-size: 9px;
  font-weight: 900;
}

.reward-request-list{

display:grid;

gap:14px;

margin-top:18px;

}

.reward-request-card{

display:grid;

grid-template-columns:

70px
1fr
240px
170px;

gap:20px;

align-items:center;

padding:18px;

background:white;

border-radius:18px;

border:1px solid var(--border);

}

.reward-request-icon{

width:56px;

height:56px;

display:flex;

align-items:center;

justify-content:center;

font-size:30px;

border-radius:14px;

background:#EEF5FF;

}

.reward-request-main h3{

margin:0;

font-size:18px;

}

.reward-request-main p{

margin:5px 0 0;

color:var(--muted);

font-size:13px;

}

.reward-request-reward{

display:flex;

flex-direction:column;

}

.reward-request-reward strong{

font-size:15px;

}

.reward-request-reward span{

color:var(--purple);

font-weight:800;

}

.reward-request-time{

font-size:12px;

color:var(--muted);

text-align:right;

}

/* =========================
   REWARD WORKFLOW
========================= */

.reward-workflow-section {
  overflow: hidden;
}

.reward-workflow-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reward-workflow-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}

.reward-workflow-heading > span {
  min-width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.reward-workflow-pending {
  border-top: 4px solid #f59e0b;
}

.reward-workflow-pending
.reward-workflow-heading > span {
  background: #fef3c7;
  color: #92400e;
}

.reward-workflow-approved {
  border-top: 4px solid #16a34a;
}

.reward-workflow-approved
.reward-workflow-heading > span {
  background: #dcfce7;
  color: #166534;
}

.reward-workflow-completed {
  border-top: 4px solid #2563eb;
}

.reward-workflow-completed
.reward-workflow-heading > span {
  background: #dbeafe;
  color: #1d4ed8;
}

.reward-workflow-declined {
  border-top: 4px solid #dc2626;
}

.reward-workflow-declined
.reward-workflow-heading > span {
  background: #fee2e2;
  color: #991b1b;
}

/* Request cards */

.reward-request-card {
  display: grid;
  grid-template-columns:
    56px
    minmax(130px, 1fr)
    minmax(180px, 1.4fr)
    minmax(130px, auto);

  gap: 14px;
  align-items: center;

  padding: 14px;

  background: white;
  border: 1px solid var(--border);
  border-radius: 15px;

  box-shadow:
    0 6px 14px rgba(15, 23, 42, 0.08);
}

.reward-request-icon {
  width: 50px;
  height: 50px;

  display: grid;
  place-items: center;

  border-radius: 14px;
  background: var(--blue-light);
  font-size: 26px;
}

.reward-request-main h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.reward-request-main p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.reward-request-reward {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reward-request-reward strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.reward-request-reward span {
  color: var(--purple);
  font-size: 10px;
  font-weight: 900;
}

.reward-request-time {
  text-align: right;
}

.reward-request-time span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.reward-request-time strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
}

.reward-request-actions {
  grid-column: 2 / -1;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;

  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.reward-request-actions form {
  margin: 0;
}

.reward-approve-button,
.reward-decline-button,
.reward-complete-button {
  min-height: 38px;
  border: none;
  border-radius: 10px;
  padding: 0 13px;

  color: white;
  font-family: inherit;
  font-size: 10px;
  font-weight: 900;

  cursor: pointer;
}

.reward-approve-button {
  background: #16a34a;
}

.reward-decline-button {
  background: #dc2626;
}

.reward-complete-button {
  background: linear-gradient(
    135deg,
    var(--blue),
    var(--purple)
  );
}

.reward-approve-button:hover,
.reward-decline-button:hover,
.reward-complete-button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.reward-status-label {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 10px;
  font-weight: 900;
}

.reward-status-completed {
  background: #dbeafe;
  color: #1d4ed8;
}

.reward-status-declined {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 850px) {
  .reward-request-card {
    grid-template-columns: 50px 1fr;
  }

  .reward-request-reward,
  .reward-request-time {
    grid-column: 2;
    text-align: left;
  }

  .reward-request-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .reward-request-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .reward-request-actions form,
  .reward-request-actions button {
    width: 100%;
  }
}