:root {
  /* Fresh Masjid Emerald & Radiant Gold — Clean Daylight Palette */
  --bg-cream: #f4f7f2;
  --bg-warm: #fbfaf5;
  --surface: #ffffff;
  --surface-tint: #f0f8f4;
  --surface-gold: #fffbeb;

  --emerald-950: #033529;
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #0b7a57;
  --emerald-600: #0f966a;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;

  --gold-700: #a16207;
  --gold-600: #ca8a04;
  --gold-500: #eab308;
  --gold-400: #facc15;
  --gold-300: #fde047;
  --gold-200: #fef08a;
  --gold-100: #fef9c3;

  --teal-600: #0d9488;
  --teal-100: #ccfbf1;
  --rose-600: #e11d48;
  --rose-100: #ffe4e6;
  --amber-600: #d97706;

  --ink-900: #112620;
  --ink-700: #2d473f;
  --ink-500: #557066;
  --ink-400: #7c948b;

  --border-soft: #dde9e2;
  --border-gold: #f0d27a;
  --shadow-card: 0 8px 26px rgba(6, 78, 59, 0.07);
  --shadow-hero: 0 14px 36px rgba(6, 78, 59, 0.22);

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-cream);
  color: var(--ink-900);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Subtle Islamic star/lattice tile background */
.islamic-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-color: var(--bg-cream);
  background-image:
    radial-gradient(ellipse 90% 35% at 50% 0%, rgba(250, 204, 21, 0.12), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%230b7a57' stroke-opacity='0.055' stroke-width='1'%3E%3Cpath d='M32 4l8 20 20 8-20 8-8 20-8-20-20-8 20-8z'/%3E%3Ccircle cx='32' cy='32' r='6'/%3E%3C/g%3E%3C/svg%3E");
}

/* Top Bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 2px 14px rgba(6, 78, 59, 0.05);
}

.topbar-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.back-home-btn {
  background: var(--emerald-50);
  border: 1.5px solid #b7e4cf;
  color: var(--emerald-900);
  padding: 6px 10px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.back-home-btn:hover {
  background: var(--emerald-100);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(6, 95, 70, 0.22);
}

.brand-text { min-width: 0; }

.brand-text h1 {
  margin: 0;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--emerald-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text p {
  margin: 1px 0 0;
  font-size: 0.72rem;
  color: var(--gold-700);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--emerald-50);
  border: 1px solid #b7e4cf;
  color: var(--emerald-900);
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.sync-pill:hover {
  background: var(--emerald-100);
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
}

.sync-pill.live .sync-dot { background: var(--emerald-500); }
.sync-pill.syncing .sync-dot { background: var(--amber-600); animation: pulse 1s infinite; }
.sync-pill.error .sync-dot { background: var(--rose-600); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Main Container */
.app-main {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 14px 12px calc(90px + env(safe-area-inset-bottom, 0px));
}

.hidden { display: none !important; }

/* Standard Crisp Daylight Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  color: var(--ink-500);
  gap: 14px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3.5px solid var(--emerald-100);
  border-top-color: var(--emerald-700);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

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

/* Illustrated Masjid Dawn Hero Card */
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(155deg, #064e3b 0%, #0b7a57 55%, #115e59 100%);
  color: #ffffff;
  margin-bottom: 14px;
  box-shadow: var(--shadow-hero);
  border: 1.5px solid rgba(250, 204, 21, 0.45);
}

.hero-masjid-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-masjid-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px 18px 18px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.ouc-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--emerald-950);
  background: linear-gradient(135deg, var(--gold-200), var(--gold-400));
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.hero-title {
  margin: 0;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.48rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero-meta {
  margin: 4px 0 0;
  font-size: 0.83rem;
  color: #d1fae5;
  font-weight: 500;
}

.hero-stat-circle {
  flex-shrink: 0;
  min-width: 82px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(254, 240, 138, 0.55);
  text-align: center;
}

.hero-stat-num {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gold-200);
  line-height: 1.05;
}

.hero-stat-lbl {
  display: block;
  font-size: 0.68rem;
  color: #ecfdf5;
  margin-top: 2px;
  font-weight: 600;
}

.progress-bar-wrap {
  height: 9px;
  background: #e5efe9;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
}

.hero-progress {
  background: rgba(255, 255, 255, 0.2);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-700), var(--emerald-500));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.progress-bar-fill.gold-glow {
  background: linear-gradient(90deg, #f59e0b, #fde047);
  box-shadow: 0 0 12px rgba(253, 224, 71, 0.65);
}

.progress-bar-fill.emerald {
  background: linear-gradient(90deg, var(--emerald-700), #10b981);
}

.hero-footer {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--gold-100);
  font-weight: 700;
}

.hero-community-pill {
  background: rgba(4, 63, 48, 0.55);
  border: 1px solid rgba(254, 240, 138, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  color: #ecfdf5;
}

/* Illuminated Authentic Fajr Hadith Card */
.hadith-card {
  background: linear-gradient(135deg, #fffdf4 0%, #fef9e7 55%, #f0faf4 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 15px 17px;
  margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(202, 138, 4, 0.08);
  position: relative;
}

.hadith-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.hadith-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold-700);
  background: var(--gold-100);
  border: 1px solid var(--border-gold);
  padding: 3px 10px;
  border-radius: 999px;
}

.hadith-next-btn {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  color: var(--emerald-800);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.hadith-next-btn:hover {
  background: var(--gold-100);
}

.hadith-body {
  transition: opacity 0.35s ease;
}

.hadith-body.fading {
  opacity: 0.15;
}

.hadith-arabic {
  margin: 4px 0 6px;
  font-family: 'Amiri', Georgia, serif;
  font-size: 1.38rem;
  line-height: 1.6;
  color: var(--emerald-900);
  text-align: right;
}

.hadith-english {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.48;
}

.hadith-source {
  margin: 6px 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-700);
}

/* Section Headers */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.section-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--emerald-900);
}

.muted-sm {
  margin: 3px 0 0;
  font-size: 0.8rem;
  color: var(--ink-500);
}

/* Lookup Form */
.lookup-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.demo-hint {
  font-size: 0.78rem;
  color: var(--gold-700);
  background: var(--gold-100);
  border: 1px solid var(--border-gold);
  padding: 6px 11px;
  border-radius: 999px;
}

/* Kid Fajr Passport Card */
.passport {
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
  border: 2px solid #b7e4cf;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(6, 95, 70, 0.08);
}

.passport-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.passport-name {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--emerald-900);
}

.passport-sub {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--ink-500);
}

.code-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--gold-100);
  border: 1px solid var(--border-gold);
  color: var(--gold-700);
  font-weight: 800;
  font-size: 0.74rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

@media (max-width: 460px) {
  .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.stat-tile {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.stat-tile .val {
  display: block;
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--ink-900);
}

.stat-tile .lbl {
  display: block;
  font-size: 0.7rem;
  color: var(--ink-500);
  margin-top: 2px;
  font-weight: 700;
}

.stat-tile.emerald { background: var(--emerald-50); border-color: #a7f3d0; }
.stat-tile.emerald .val { color: var(--emerald-800); }
.stat-tile.gold { background: var(--surface-gold); border-color: var(--border-gold); }
.stat-tile.gold .val { color: var(--gold-700); }
.stat-tile.rose { background: #fff1f2; border-color: #fecdd3; }
.stat-tile.rose .val { color: var(--rose-600); }

/* Reward Tier Ribbon Banner */
.tier-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #065f46 0%, #0b7a57 100%);
  border: 1.5px solid var(--gold-400);
  color: #ffffff;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(6, 95, 70, 0.16);
}

.tier-banner-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.tier-banner-icon {
  font-size: 1.85rem;
  line-height: 1;
}

.tier-banner-title {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--gold-200);
}

.tier-banner-msg {
  font-size: 0.78rem;
  color: #ecfdf5;
  margin-top: 3px;
  line-height: 1.35;
}

/* Stamp Calendar Grid */
.stamp-month-title {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-800);
  margin: 14px 0 8px;
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 8px;
}

.stamp {
  border-radius: 12px;
  padding: 8px 5px;
  text-align: center;
  border: 1.5px solid var(--border-soft);
  background: #ffffff;
}

.stamp-dow {
  display: block;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-400);
}

.stamp-day {
  display: block;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--ink-900);
  margin: 1px 0;
}

.stamp-mark {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
}

.stamp.present {
  background: linear-gradient(155deg, #ecfdf5 0%, #fef9c3 100%);
  border-color: var(--gold-500);
  box-shadow: 0 3px 10px rgba(234, 179, 8, 0.22);
}

.stamp.present .stamp-dow { color: var(--emerald-800); }
.stamp.present .stamp-day { color: var(--emerald-900); }
.stamp.present .stamp-mark { color: var(--gold-700); }

.stamp.excused {
  background: var(--teal-100);
  border-color: var(--teal-600);
}
.stamp.excused .stamp-mark { color: var(--teal-600); }

.stamp.missed {
  background: #fff5f5;
  border: 1.5px dashed #fda4af;
}
.stamp.missed .stamp-mark { color: var(--rose-600); }

.stamp.today_pending {
  background: var(--surface-gold);
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.22);
}
.stamp.today_pending .stamp-mark { color: var(--gold-700); }

.stamp.before_join {
  opacity: 0.45;
  border-style: dotted;
  background: #f8faf8;
}

.stamp.upcoming {
  background: #fafcf9;
  color: var(--ink-400);
}
.stamp.upcoming .stamp-mark { color: var(--ink-400); font-weight: 600; }

.stamp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--ink-500);
}

/* Search Box */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box .search-icon {
  position: absolute;
  left: 12px;
  font-size: 0.9rem;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 11px 12px 11px 36px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-soft);
  background: #ffffff;
  color: var(--ink-900);
  font-size: 0.94rem;
  font-family: inherit;
  outline: none;
}

.search-box input:focus {
  border-color: var(--emerald-700);
  box-shadow: 0 0 0 3px rgba(11, 122, 87, 0.12);
}

/* Chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.chip {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--border-soft);
  background: #ffffff;
  color: var(--ink-700);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.chip.active {
  background: var(--emerald-800);
  color: #ffffff;
  border-color: var(--emerald-800);
}

/* Leaderboard & Tier Groups */
.tier-group { margin-bottom: 14px; }

.tier-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--emerald-50), var(--surface-gold));
  border-left: 4px solid var(--gold-500);
  margin-bottom: 7px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--emerald-900);
}

.tier-count {
  font-size: 0.74rem;
  color: var(--gold-700);
  font-weight: 800;
}

.board-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  margin-bottom: 7px;
  cursor: pointer;
}

.board-row:hover {
  border-color: var(--emerald-600);
  background: var(--emerald-50);
}

.board-name {
  font-weight: 800;
  font-size: 0.94rem;
  color: var(--ink-900);
}

.board-meta {
  font-size: 0.75rem;
  color: var(--ink-500);
  margin-top: 2px;
}

.board-right {
  text-align: right;
  flex-shrink: 0;
}

.board-fajrs {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--emerald-800);
}

.board-streak {
  font-size: 0.73rem;
  color: var(--gold-700);
  font-weight: 700;
}

/* Volunteer Lock Card */
.lock-card {
  text-align: center;
  padding: 34px 20px;
}

.lock-icon {
  font-size: 2.3rem;
  margin-bottom: 8px;
}

.lock-card h3 {
  margin: 0 0 6px;
  font-size: 1.18rem;
  color: var(--emerald-900);
}

.lock-form {
  max-width: 280px;
  margin: 16px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pin-input {
  text-align: center;
  font-size: 1.45rem;
  letter-spacing: 0.35em;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 2px solid var(--emerald-700);
  background: var(--emerald-50);
  color: var(--emerald-900);
  font-weight: 800;
  outline: none;
}

/* Session Switcher */
.session-card {
  background: linear-gradient(180deg, #ffffff 0%, #f3faf6 100%);
  border-color: #b7e4cf;
}

.session-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.session-select-wrap { flex: 1; min-width: 0; }

.micro-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--emerald-700);
  margin-bottom: 3px;
}

.session-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #9bd8bd;
  background: #ffffff;
  color: var(--ink-900);
  font-weight: 800;
  font-size: 0.94rem;
  font-family: inherit;
}

.session-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 8px;
}

.session-counts {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--emerald-800);
}

.checkin-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.flex-1 { flex: 1; }

/* Check-In List Rows */
.checkin-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1.5px solid var(--border-soft);
  box-shadow: 0 3px 10px rgba(6, 78, 59, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.checkin-row.is-present {
  background: var(--emerald-50);
  border-color: var(--emerald-500);
}

.checkin-row.is-excused {
  background: var(--teal-100);
  border-color: var(--teal-600);
}

.checkin-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.checkin-name {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.checkin-sub {
  font-size: 0.76rem;
  color: var(--ink-500);
  margin-top: 3px;
  font-weight: 600;
}

.checkin-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.tap-check-btn {
  min-width: 98px;
  padding: 11px 12px;
  border-radius: 11px;
  border: 1.5px solid #b7e4cf;
  background: #f4fbf7;
  color: var(--emerald-900);
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.08s ease, background 0.15s ease;
}

.tap-check-btn:active { transform: scale(0.95); }

.tap-check-btn.present {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
  border-color: var(--emerald-700);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(6, 95, 70, 0.28);
}

.tap-check-btn.excused {
  background: var(--teal-600);
  border-color: var(--teal-600);
  color: #ffffff;
}

.more-btn {
  width: 38px;
  height: 41px;
  border-radius: 10px;
  border: 1.5px solid var(--border-soft);
  background: #ffffff;
  color: var(--ink-500);
  font-size: 1.1rem;
  cursor: pointer;
}

/* Rewards Summary Grid */
.tier-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}

.tier-sum-card {
  padding: 12px 10px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
  border: 1.5px solid var(--border-gold);
  text-align: center;
}

.tier-sum-icon { font-size: 1.4rem; }
.tier-sum-num { font-size: 1.48rem; font-weight: 800; color: var(--emerald-800); margin: 2px 0; }
.tier-sum-name { font-size: 0.78rem; font-weight: 800; color: var(--ink-900); }
.tier-sum-sub { font-size: 0.69rem; color: var(--ink-500); font-weight: 600; }

.export-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 15px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-emerald {
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900));
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(6, 95, 70, 0.25);
}

.btn-emerald:hover { filter: brightness(1.06); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--emerald-950);
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.28);
}

.btn-gold:hover { filter: brightness(1.04); }

.btn-outline {
  background: #ffffff;
  border-color: var(--emerald-700);
  color: var(--emerald-800);
}

.btn-ghost {
  background: #edf3ef;
  color: var(--ink-700);
}

.btn-danger-ghost {
  background: var(--rose-100);
  border-color: #fda4af;
  color: var(--rose-600);
}

.btn-link {
  background: none;
  border: none;
  color: var(--emerald-800);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 6px;
  text-decoration: underline;
}

.btn-mini {
  background: var(--gold-100);
  border: 1px solid var(--border-gold);
  color: var(--gold-700);
  padding: 6px 11px;
  border-radius: 9px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.btn-icon {
  width: 42px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #b7e4cf;
  background: #ffffff;
  color: var(--emerald-800);
  font-size: 1.45rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-icon-sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: #f4f7f2;
  color: var(--ink-700);
  cursor: pointer;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.spacer { flex: 1; }

/* Forms */
.form-group { margin-bottom: 12px; }

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-700);
  margin-bottom: 5px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-soft);
  background: #fbfdfb;
  color: var(--ink-900);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--emerald-700);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(11, 122, 87, 0.12);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

.help-text {
  margin: 4px 0 0;
  font-size: 0.74rem;
  color: var(--ink-500);
}

.dow-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dow-item {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 9px;
  background: #f4f7f2;
  border: 1px solid var(--border-soft);
  cursor: pointer;
  margin-bottom: 0 !important;
}

.dow-item input { width: auto !important; margin: 0; accent-color: var(--emerald-700); }

.divider {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 16px 0;
}

.toggle-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-700);
  background: #f5f9f6;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  cursor: pointer;
}

.toggle-row input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--emerald-700);
  flex-shrink: 0;
}

.tiers-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.tier-edit-row {
  display: grid;
  grid-template-columns: 52px 1fr 90px;
  gap: 8px;
  align-items: center;
}

.tier-edit-row input {
  padding: 8px 9px;
  border-radius: 8px;
  border: 1.5px solid var(--border-soft);
  background: #ffffff;
  color: var(--ink-900);
  font-family: inherit;
  font-size: 0.86rem;
}

.status-banner {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  background: #f4f7f2;
  color: var(--ink-700);
}

.status-banner.ok {
  background: var(--emerald-50);
  border: 1px solid #6ee7b7;
  color: var(--emerald-900);
}

.status-banner.err {
  background: var(--rose-100);
  border: 1px solid #fda4af;
  color: var(--rose-600);
}

.backup-card {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf5 100%);
  border-color: var(--border-gold);
}

/* Bottom Mobile Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-soft);
  box-shadow: 0 -4px 18px rgba(6, 78, 59, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 9px 4px 10px;
  border: none;
  background: none;
  color: var(--ink-400);
  font-family: inherit;
  cursor: pointer;
}

.nav-btn .nav-icon { font-size: 1.2rem; }
.nav-btn .nav-lbl { font-size: 0.7rem; font-weight: 800; }

.nav-btn.active {
  color: var(--emerald-800);
  position: relative;
}

.nav-btn.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--emerald-700), var(--gold-500));
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6, 40, 31, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1.5px solid #b7e4cf;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 22px 50px rgba(6, 40, 31, 0.25);
}

.modal-sheet { max-width: 360px; }

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.modal-head h3 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--emerald-900);
}

.sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet-actions .btn {
  width: 100%;
  justify-content: flex-start;
  padding: 12px 14px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 90;
  background: var(--emerald-900);
  border: 1.5px solid var(--gold-400);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(6, 40, 31, 0.3);
  max-width: 92vw;
  text-align: center;
}

.empty-state {
  text-align: center;
  padding: 26px 14px;
  color: var(--ink-500);
  font-size: 0.88rem;
}

/* =========================================================
   OUC LEGENDS HOME HUB & PROGRAM CARDS
   ========================================================= */
.home-hero-content {
  padding: 24px 20px 22px;
}

.home-title {
  font-size: 1.75rem;
  letter-spacing: 0.05em;
}

.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

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

.program-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  border: 2px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  font-family: inherit;
  color: var(--ink-900);
  transition: transform 0.14s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.program-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(6, 78, 59, 0.13);
}

.program-card:active {
  transform: scale(0.99);
}

.program-fajr {
  border-color: var(--border-gold);
  background: linear-gradient(165deg, #ffffff 0%, #fffdf4 65%, #f0faf4 100%);
}

.program-fajr:hover { border-color: var(--gold-500); }

.program-halaqah {
  border-color: #99f6e4;
  background: linear-gradient(165deg, #ffffff 0%, #f0fdfa 65%, #ecfdf5 100%);
}

.program-halaqah:hover { border-color: var(--teal-600); }

.program-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.program-icon {
  font-size: 2rem;
  line-height: 1;
}

.program-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold-700);
  background: var(--gold-100);
  border: 1px solid var(--border-gold);
  padding: 4px 10px;
  border-radius: 999px;
}

.program-badge.badge-teal {
  color: var(--teal-600);
  background: var(--teal-100);
  border-color: #99f6e4;
}

.program-card h3 {
  margin: 0;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--emerald-900);
}

.program-sub {
  margin: 4px 0 12px;
  font-size: 0.82rem;
  color: var(--ink-500);
  font-weight: 600;
  line-height: 1.4;
}

.program-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.79rem;
  color: var(--ink-700);
  font-weight: 600;
}

.program-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900));
  color: #ffffff;
  font-weight: 800;
  font-size: 0.84rem;
}

.program-halaqah .program-cta {
  background: linear-gradient(135deg, #0d9488, #0f766e);
}

.program-arrow {
  font-size: 1.1rem;
  color: var(--gold-200);
}

/* Auto-Assigned Code Banner in Add Boy Modal */
.auto-code-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-gold);
  border: 1px solid var(--border-gold);
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-700);
}

/* Built-in Admin Google Sheets Guide */
.admin-guide {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: 12px;
  padding: 10px 13px;
}

.admin-guide summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--emerald-900);
  list-style: none;
}

.admin-guide summary::-webkit-details-marker { display: none; }

.admin-guide[open] summary {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}

.guide-steps {
  margin: 0 0 8px;
  padding-left: 20px;
  font-size: 0.82rem;
  color: var(--ink-700);
  line-height: 1.55;
}

.guide-steps li { margin-bottom: 5px; }
.guide-steps ul { margin-top: 4px; padding-left: 18px; }
.guide-steps code {
  background: var(--emerald-50);
  color: var(--emerald-900);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.78rem;
}

/* Boys Halaqah Dedicated Fast Attendance Page */
.halaqah-header-card {
  background: linear-gradient(160deg, #ffffff 0%, #f0fdfa 100%);
  border-color: #99f6e4;
}

.halaqah-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.ouc-tag-teal {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #0f766e;
  background: var(--teal-100);
  border: 1px solid #99f6e4;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 5px;
}

.halaqah-title {
  margin: 0;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--emerald-900);
}

.halaqah-top-btns {
  display: flex;
  gap: 6px;
}

.btn-sm {
  padding: 7px 11px;
  font-size: 0.78rem;
  border-radius: 10px;
}

.halaqah-dates-panel {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #99f6e4;
}

.halaqah-subbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* Recurring Terms / Seasons UI */
.term-switcher-hero {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ecfdf5;
}

.term-switcher-hero select {
  background: rgba(4, 63, 48, 0.72);
  color: #ffffff;
  border: 1px solid rgba(254, 240, 138, 0.5);
  border-radius: 9px;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.term-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border-gold);
  margin-bottom: 10px;
}

.term-select-sm {
  padding: 6px 10px;
  border-radius: 9px;
  border: 1.5px solid var(--border-soft);
  background: #f6fbf8;
  color: var(--emerald-900);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  max-width: 240px;
}

.terms-card {
  background: linear-gradient(180deg, #ffffff 0%, #f5fbf7 100%);
  border-color: #b7e4cf;
}

.terms-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.term-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid var(--border-soft);
}

.term-item.is-active {
  background: var(--emerald-50);
  border-color: var(--emerald-600);
}

.term-item-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--emerald-900);
}

.term-item-dates {
  font-size: 0.75rem;
  color: var(--ink-500);
  margin-top: 2px;
  font-weight: 600;
}

.term-active-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--emerald-800);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
}

/* =========================================================
   OUC OFFICIAL LOGOS & SEMI-TRANSPARENT MASJID PHOTO LAYERS
   ========================================================= */
.brand-logo {
  object-fit: cover;
  border: 1.5px solid rgba(0, 132, 209, 0.22);
}

.ouc-hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.ouc-hero-brand .ouc-tag,
.ouc-hero-brand .ouc-tag-teal {
  margin-bottom: 0;
}

.ouc-mini-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.has-masjid-photo {
  position: relative;
  overflow: hidden;
}

.hero-photo-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 1;
}

/* Half-visible Masjid an-Nabawi at Fajr dawn behind Rijal al-Fajr hero */
.photo-nabawi {
  background: #04392b;
}

.photo-nabawi .hero-photo-layer {
  background-image: url('./img/Masjid_e_Nabawi_1.png');
  background-position: center 42%;
  opacity: 0.44;
  filter: saturate(1.15) contrast(1.04);
}

.photo-nabawi::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    145deg,
    rgba(4, 63, 48, 0.78) 0%,
    rgba(6, 95, 70, 0.52) 52%,
    rgba(161, 98, 7, 0.36) 100%
  );
}

/* Half-visible Id Kah Mosque (Kashgar) behind OUC Legends Home hero */
.photo-idkah {
  background: #04392b;
}

.photo-idkah .hero-photo-layer {
  background-image: url('./img/id-kah-mosque.jpg');
  background-position: center 38%;
  opacity: 0.46;
  filter: saturate(1.12) contrast(1.03);
}

.photo-idkah::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    145deg,
    rgba(4, 63, 48, 0.8) 0%,
    rgba(11, 122, 87, 0.52) 55%,
    rgba(180, 120, 15, 0.36) 100%
  );
}

/* Soft translucent Id Kah Mosque watermark behind Boys Halaqah header card */
.photo-idkah-soft .hero-photo-layer {
  background-image: url('./img/id-kah-mosque.jpg');
  background-position: center 35%;
  opacity: 0.22;
}

.photo-idkah-soft::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.76) 0%,
    rgba(240, 253, 250, 0.9) 100%
  );
}

.halaqah-header-inner {
  position: relative;
  z-index: 2;
}

/* Subtle half-visible masjid photo header strips inside the 2 Home Program Cards */
.program-card {
  position: relative;
  overflow: hidden;
}

.program-photo-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 112px;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0) 100%);
}

.strip-nabawi {
  background-image: url('./img/Masjid_e_Nabawi_1.png');
  background-position: center 40%;
}

.strip-idkah {
  background-image: url('./img/id-kah-mosque.jpg');
  background-position: center 35%;
}

.program-card > *:not(.program-photo-strip) {
  position: relative;
  z-index: 2;
}

.program-ouc-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(0, 132, 209, 0.24);
}

/* Official OUC Footer Branding */
.ouc-footer-brand {
  text-align: center;
  padding: 14px 10px 6px;
}

.ouc-full-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  opacity: 0.92;
}

.ouc-footer-brand p {
  margin: 6px 0 0;
  font-size: 0.76rem;
  color: var(--ink-500);
  font-weight: 600;
}

.ouc-footer-brand a {
  color: var(--emerald-800);
  font-weight: 800;
  text-decoration: none;
}

/* =========================================================
   FINISH DAY CARD, STAFF ROLES, PRESET REASON CHIPS & AUDIT LOG
   ========================================================= */
.finish-day-card {
  margin-top: 14px;
  background: linear-gradient(135deg, #ecfdf5 0%, #fffbeb 100%);
  border: 2px solid var(--emerald-600);
}

.finish-day-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.finish-day-head h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--emerald-900);
}

.finish-done-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--emerald-100);
  border: 1px solid #6ee7b7;
  color: var(--emerald-900);
  font-size: 0.74rem;
  font-weight: 800;
}

.lock-select {
  padding: 11px 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid #9bd8bd;
  background: #ffffff;
  color: var(--ink-900);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
}

.inline-pin-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-pin-form input {
  flex: 1;
  min-width: 170px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-soft);
  font-family: inherit;
  font-size: 0.88rem;
}

.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.preset-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: var(--surface-gold);
  color: var(--gold-700);
  font-family: inherit;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
}

.preset-chip:hover {
  background: var(--gold-100);
}

.audit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.audit-item {
  padding: 10px 12px;
  border-radius: 11px;
  background: #f8fbf9;
  border: 1px solid var(--border-soft);
  border-left: 3.5px solid var(--gold-500);
}

.audit-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--emerald-900);
}

.audit-time {
  font-size: 0.7rem;
  color: var(--ink-400);
  font-weight: 600;
  white-space: nowrap;
}

.audit-detail {
  font-size: 0.8rem;
  color: var(--ink-700);
  margin-top: 3px;
}

.audit-reason {
  font-size: 0.76rem;
  color: var(--gold-700);
  font-weight: 700;
  margin-top: 3px;
}

.role-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.role-pill.admin {
  background: var(--gold-100);
  color: var(--gold-700);
  border: 1px solid var(--border-gold);
}

.role-pill.volunteer {
  background: var(--emerald-50);
  color: var(--emerald-800);
  border: 1px solid #a7f3d0;
}

/* Print-friendly 27th Night Winners Report */
@media print {
  body { background: #ffffff !important; }
  .topbar, .bottom-nav, .islamic-bg, .export-row, .chip-row, .toast, .modal-backdrop {
    display: none !important;
  }
  .app-main { padding: 0 !important; max-width: 100% !important; }
  .card { box-shadow: none !important; border: 1px solid #ccc !important; page-break-inside: avoid; }
}
