:root {
  --green: #1f5f5b;
  --green-dark: #164644;
  --night: #0f3533;
  --gold: #b88a3e;
  --gold-light: #e3c27a;
  --cream: #faf6ef;
  --paper: #ffffff;
  --ink: #2b2b2b;
  --muted: #6f6a62;
  --line: #e7dfd2;
  --ok: #2e7d4f;
  --warn: #b7791f;
  --bad: #b23b3b;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(15, 53, 51, .12);
  --serif: 'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Nunito Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream) url('img/pattern-light.svg');
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--green-dark); line-height: 1.15; font-weight: 700; }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.2rem; margin-bottom: .4rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 28px; padding-bottom: 56px; min-height: 70vh; position: relative; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.bismillah { font-family: 'Amiri', serif; font-size: 2rem; color: var(--gold-light); margin: 0; line-height: 1.6; }

/* ---------- Header / footer ---------- */
.site-header { background: var(--night); color: #fff; border-bottom: 1px solid rgba(227, 194, 122, .25); position: relative; z-index: 5; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.45rem; display: flex; gap: 10px; align-items: center; }
.brand-mark { color: var(--gold-light); display: inline-flex; }
.nav nav { display: flex; gap: 20px; align-items: center; }
.nav nav a { color: #e9efe9; text-decoration: none; font-weight: 600; }
.nav nav a:hover { color: var(--gold-light); }
.site-footer { background: var(--night) url('img/pattern-dark.svg'); color: #cfe0dc; padding: 34px 0; font-size: .9rem; text-align: center; border-top: 3px solid var(--gold); }
.site-footer p { margin: 4px 0; }
.footer-brand { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-light); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  background: var(--green); color: #fff !important; font: inherit; font-weight: 700;
  padding: 11px 24px; border-radius: 999px; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, #d4a955, #b88a3e); color: #1c1609 !important; box-shadow: 0 6px 18px rgba(184, 138, 62, .35); }
.btn-gold:hover { background: linear-gradient(135deg, #dfb764, #c4954a); }
.btn-light { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn-light:hover { background: rgba(255, 255, 255, .16); }
.btn-ghost { background: transparent; color: var(--green) !important; box-shadow: inset 0 0 0 2px var(--green); }
.btn-ghost:hover { background: rgba(31, 95, 91, .08); }
.btn-danger { background: transparent; color: var(--bad) !important; box-shadow: inset 0 0 0 1.5px var(--bad); }
.btn-danger:hover { background: rgba(178, 59, 59, .08); }
.btn-small { padding: 6px 14px; font-size: .875rem; }
.btn-large { padding: 15px 34px; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }
.btn.disabled { background: #c9c3b8; box-shadow: none; cursor: not-allowed; transform: none; color: #fff !important; }

/* ---------- Skyline (mosque silhouette) ---------- */
.skyline { position: absolute; left: 0; right: 0; bottom: -1px; color: var(--cream); line-height: 0; pointer-events: none; overflow: hidden; }
.skyline svg { display: block; width: max(100%, 860px); height: auto; margin-left: 50%; transform: translateX(-50%); }

/* Dark scenic background used by hero, banners and the auth panel */
.scene, .hero, .page-banner, .auth-art {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(180deg, rgba(10, 40, 39, .50) 0%, rgba(12, 48, 46, .72) 55%, rgba(12, 48, 46, .92) 100%),
    var(--bg-img, none) center / cover no-repeat,
    url('img/pattern-dark.svg'),
    radial-gradient(ellipse at 50% 0%, #2c7d75 0%, #164644 55%, #0d2f2d 100%);
}
/* Crescent moon */
.hero::before, .page-banner::before, .auth-art::before {
  content: ''; position: absolute; top: 46px; right: 9%; width: 54px; height: 54px; border-radius: 50%;
  box-shadow: 13px -7px 0 0 var(--gold-light); opacity: .9; transform: rotate(-12deg);
}
/* Twinkling stars */
.hero::after, .page-banner::after, .auth-art::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 27% 32%, #fff 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 44% 12%, #f6e4b5 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 63% 26%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 40%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 88% 14%, #f6e4b5 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 6% 44%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 55% 46%, #fff 50%, transparent 51%);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .hero::after, .page-banner::after, .auth-art::after { animation: none; } }

/* ---------- Home hero ---------- */
.page-home main.wrap { padding-top: 0; }
.hero { text-align: center; padding: 56px 20px clamp(150px, 17vw, 250px); }
.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.2rem); margin: 6px 0 8px; letter-spacing: .01em; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.hero .bismillah { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.lead { font-size: 1.18rem; color: #dbe9e5; max-width: 600px; margin: 0 auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.sisters-note { display: inline-block; margin: 18px 0 0; color: var(--gold-light); font-weight: 700; letter-spacing: .08em; font-size: .85rem; text-transform: uppercase; }

/* ---------- When a real photo is supplied ---------- */
.hero.has-photo {
  min-height: min(86vh, 800px); padding-bottom: 220px;
  background:
    linear-gradient(180deg, rgba(10, 40, 39, .66) 0%, rgba(10, 40, 39, .28) 38%, rgba(10, 40, 39, .10) 62%, rgba(250, 246, 239, 0) 80%, var(--cream) 100%),
    var(--bg-img) center 62% / cover no-repeat, var(--night);
}
.hero.has-photo h1, .hero.has-photo .lead { text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.hero.has-photo::after { opacity: .35; }
.lift { position: relative; z-index: 3; margin-top: -190px; }
.lift .countdown-card { max-width: 680px; margin: 0 auto 10px; box-shadow: 0 24px 60px rgba(15, 53, 51, .35); }

.page-banner[style*="--bg-img"], .auth-art[style*="--bg-img"], .auth-layout[style*="--bg-img"] .auth-art { padding-bottom: 46px; }
.page-banner[style*="--bg-img"] {
  min-height: 230px;
  background:
    linear-gradient(90deg, rgba(10, 40, 39, .92) 0%, rgba(10, 40, 39, .62) 45%, rgba(10, 40, 39, .12) 100%),
    var(--bg-img) center 72% / cover no-repeat, var(--night);
}
.auth-layout[style*="--bg-img"] .auth-art {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(10, 40, 39, .88) 0%, rgba(10, 40, 39, .55) 40%, rgba(10, 40, 39, .05) 75%),
    var(--bg-img) center 38% / cover no-repeat, var(--night);
}
[style*="--bg-img"] .skyline, [style*="--bg-img"] .skyline-auth { display: none; }
[style*="--bg-img"]::before, .hero.has-photo::before, .auth-layout[style*="--bg-img"] .auth-art::before { display: none; } /* the photo has its own sky */

/* ---------- Countdown ---------- */
.countdown-card {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 28px 24px; text-align: center; margin: 26px 0;
  box-shadow: var(--shadow); border: 1px solid rgba(227, 194, 122, .35); position: relative;
}
.hero .countdown-card {
  background: rgba(255, 255, 255, .07); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  margin: 34px auto 0; max-width: 620px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.countdown-card h2 { color: #fff; margin: 4px 0 18px; font-size: 2rem; }
.countdown-card .muted { color: #cfe0dc; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--gold-light); margin: 0; font-weight: 700; }
.countdown { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.countdown div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(227, 194, 122, .35); border-radius: 14px; min-width: 88px; padding: 12px 8px; }
.countdown span { display: block; font-family: var(--serif); font-size: 2.8rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; color: #fff; }
.countdown small { text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; color: var(--gold-light); }
.live-badge { color: #ffd7d7; font-weight: 700; margin: 14px 0 0; }
.when { margin: 16px 0 2px; font-weight: 600; }

/* ---------- Page banners (dashboards) ---------- */
.page-banner { border-radius: 22px; padding: 36px 34px clamp(110px, 12vw, 170px); margin-bottom: 24px; box-shadow: var(--shadow); }
.page-banner-slim { padding-bottom: clamp(90px, 10vw, 140px); }
.page-banner-inner { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; margin: 4px 0 6px; font-size: clamp(2rem, 4vw, 2.8rem); }
.page-banner p { margin: 0; color: #dbe9e5; }
.page-banner .eyebrow { color: var(--gold-light); }
.page-banner .skyline svg { width: max(100%, 760px); }

/* ---------- Cards / sections ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 22px; box-shadow: 0 4px 16px rgba(15, 53, 51, .05); }
.card h3 { margin-top: 0; }
.card-ornate { border-top: 3px solid var(--gold); position: relative; }
.card-ornate::before {
  content: '✦'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--paper); color: var(--gold); padding: 0 10px; font-size: 1rem;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1.25fr; gap: 22px; margin-top: 30px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 36px 0 8px; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: 0 4px 16px rgba(15, 53, 51, .05); }
.feature h3 { margin: 12px 0 6px; font-size: 1.45rem; }
.feature p { margin: 0; color: var(--muted); }
.feature-icon { display: inline-flex; width: 58px; height: 58px; border-radius: 50%; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--green), var(--green-dark)); box-shadow: 0 0 0 5px #f1e6d3; }
.feature-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.timetable { list-style: none; padding: 0; margin: 0; }
.timetable li { display: grid; grid-template-columns: 100px 1fr auto; column-gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.timetable li > .muted { grid-column: 2; font-size: .92rem; }
.timetable.editable li > form { grid-column: 3; grid-row: 1 / span 2; }
.timetable li:last-child { border-bottom: 0; }
.timetable .day { font-weight: 700; min-width: 100px; color: var(--green-dark); }
.timetable.editable form { margin-left: auto; }
.steps { padding-left: 20px; }
.about { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: start; }
.arch-frame {
  width: 150px; height: 200px; border-radius: 75px 75px 10px 10px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-img, none) center / cover no-repeat, url('img/pattern-dark.svg'), linear-gradient(160deg, var(--green), var(--night));
  box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--gold), var(--shadow);
  font-family: 'Amiri', serif; font-size: 2.6rem; color: var(--gold-light); margin: 6px;
}
.verse { text-align: center; padding: 50px 20px; margin-top: 40px; margin-bottom: -56px; color: #fff; background: var(--night) url('img/pattern-dark.svg'); }
.verse-ar { font-family: 'Amiri', serif; font-size: clamp(2rem, 5vw, 3rem); color: var(--gold-light); margin: 0; }
.verse-en { font-family: var(--serif); font-size: 1.5rem; margin: 6px 0 2px; }
.verse-ref { color: #a9c4bf; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.announcement { background: #fff7e6; border: 1px solid #f0d9a8; border-left: 5px solid var(--gold); border-radius: 12px; padding: 14px 18px; margin: 22px 0; }
.page-title { margin-top: 0; }
.tip { background: #eef4f6; border: 1px solid #c8dbe2; color: #23505c; border-radius: 12px; padding: 10px 14px; font-size: .92rem; }

/* ---------- Auth pages (login / register) ---------- */
.page-auth main.wrap { max-width: 1120px; }
.auth-layout { display: grid; grid-template-columns: 1fr 1.15fr; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: var(--paper); margin-top: 10px; }
.auth-art { padding: 46px 38px 220px; }
.auth-art > *:not(.skyline) { position: relative; z-index: 2; }
.auth-art .bismillah { text-align: left; padding-right: 70px; }
.auth-art h2 { color: #fff; font-size: 2.4rem; margin: 10px 0; }
.auth-art p { color: #dbe9e5; }
.auth-points { list-style: none; padding: 0; margin: 20px 0 0; }
.auth-points li { padding: 6px 0 6px 26px; position: relative; color: #eef5f3; }
.auth-points li::before { content: '✦'; position: absolute; left: 0; color: var(--gold-light); }
.skyline-auth { color: var(--paper); }
.skyline-auth svg { width: 220%; margin-left: 30%; }
.auth-layout .form-card { border: 0; border-radius: 0; box-shadow: none; max-width: none; margin: 0; padding: 40px 42px; }

/* ---------- Forms ---------- */
.form-card { max-width: 460px; margin: 10px auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-card h1 { margin-top: 0; font-size: 2.3rem; }
label { display: block; font-weight: 600; margin-bottom: 14px; font-size: .95rem; }
label small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number],
input[type=time], input[type=search], select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font: inherit;
  border: 1px solid #d6ccbc; border-radius: 11px; background: #fffdf9;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(184, 138, 62, .25); border-color: var(--gold); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: 5px; accent-color: var(--green); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.row-form label { margin-bottom: 0; }
.row-form .grow { flex: 1 1 200px; }
.row-form .btn { margin-bottom: 1px; }
.settings-form h2 { font-size: 1.5rem; margin: 26px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.settings-form h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.inline-form { max-width: 420px; margin-top: 14px; }
summary { cursor: pointer; font-weight: 700; color: var(--green-dark); }

/* ---------- Voice recorder ---------- */
.voice-check { border: 1px solid #ecdcbc; background: linear-gradient(180deg, #fffaf0, #fff); border-radius: 14px; padding: 6px 18px 12px; margin: 6px 0 18px; }
.voice-check legend { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--green-dark); padding: 0 6px; }
.voice-check p { margin: 6px 0; }
.voice-check blockquote { margin: 8px 0 12px; padding: 10px 14px; background: #f5efe2; border-left: 3px solid var(--gold); border-radius: 8px; font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: #4a4134; }
.recorder { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rec-btn { display: inline-flex; align-items: center; gap: 9px; border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 10px 20px; border-radius: 999px; background: var(--green); color: #fff; }
.rec-btn:hover { background: var(--green-dark); }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, .25); }
.is-recording .rec-btn { background: var(--bad); }
.is-recording .rec-dot { background: #fff; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.6); opacity: .6; } }
.meter { flex: 1 1 120px; height: 10px; border-radius: 99px; background: #ece4d4; overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); transform-origin: left; transform: scaleX(0); transition: transform .08s; }
.rec-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; min-width: 84px; text-align: right; }
.voice-check audio { width: 100%; margin-top: 10px; }
.voice-status { font-weight: 600; font-size: .92rem; min-height: 1.2em; }
.voice-status.is-ok { color: var(--ok); }
.voice-status.is-error { color: var(--bad); }

/* ---------- Flash ---------- */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; border: 1px solid; }
.flash-success { background: #eaf6ee; border-color: #b9dfc6; color: #1f5a37; }
.flash-error { background: #fbecec; border-color: #ecc0c0; color: #8a2a2a; }
.flash-info { background: #eef4f6; border-color: #c8dbe2; color: #23505c; }
.page-home .flash-stack { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: min(620px, 92%); z-index: 6; }
.page-home .flash { box-shadow: var(--shadow); }

/* ---------- Admin ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--radius); padding: 16px 18px; color: var(--muted); text-decoration: none; font-weight: 600; box-shadow: 0 4px 16px rgba(15, 53, 51, .05); }
.stat span { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--green-dark); line-height: 1.1; }
.stat-ok { border-top-color: var(--ok); }
.stat-ok span { color: var(--ok); }
.stat-warn { border-top-color: var(--gold); }
.stat-warn span { color: var(--warn); }
.admin-next { padding: 14px 20px; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.tabs { display: flex; gap: 4px; background: #efe8db; padding: 4px; border-radius: 999px; }
.tabs a { padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; }
.tabs a.active { background: #fff; color: var(--green-dark); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.search { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.search input { margin: 0; width: 220px; padding: 7px 12px; }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
table.students { width: 100%; border-collapse: collapse; font-size: .93rem; }
.students th, .students td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.students th { background: #f6f1e7; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.students tr:last-child td { border-bottom: 0; }
.voice-cell { min-width: 230px; }
.voice-cell audio { width: 220px; height: 34px; display: block; }
.hint { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.hint-ok { background: #e3f3e8; color: var(--ok); }
.hint-warn { background: #fbf0dc; color: var(--warn); }
.hint-bad { background: #f8e3e3; color: var(--bad); }
.hint-none { background: #eee; color: var(--muted); }
.actions form { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; text-transform: capitalize; }
.pill-approved { background: #e3f3e8; color: var(--ok); }
.pill-pending { background: #fbf0dc; color: var(--warn); }
.pill-rejected { background: #f8e3e3; color: var(--bad); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-art { padding: 30px 26px 130px; }
  .auth-points { display: none; }
  .skyline-auth svg { width: max(100%, 760px); margin-left: 50%; }
  .auth-layout .form-card { padding: 28px 22px; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .search { margin-left: 0; width: 100%; }
  .search input { width: 100%; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .countdown { gap: 8px; }
  .countdown div { min-width: 66px; padding: 10px 6px; }
  .countdown span { font-size: 2.1rem; }
  .page-banner { padding: 28px 22px 110px; border-radius: 18px; }
  .hero::before, .page-banner::before, .auth-art::before { width: 38px; height: 38px; top: 26px; right: 7%; }
  .students thead { display: none; }
  .students tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .students td { display: flex; gap: 10px; border: 0; padding: 4px 14px; flex-wrap: wrap; }
  .students td::before { content: attr(data-label); font-weight: 700; color: var(--muted); min-width: 90px; font-size: .8rem; }
}
