:root {
  --paper: #f4ebd9;
  --paper-deep: #e9ddc6;
  --surface: #fffaf0;
  --ink: #1e2b25;
  --muted: #6b756e;
  --forest: #315c4d;
  --forest-deep: #23463a;
  --gold: #a0782b;
  --rust: #b75d4b;
  --line: #d8ccb8;
  --white: #fffdf8;
  --shadow: 0 18px 45px rgba(77, 61, 36, 0.08);
  --font-body: "PT Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --font-ar: "Amiri", Georgia, serif;
}

[data-theme="dark"] {
  --paper: #1b2923;
  --paper-deep: #263b31;
  --surface: #22332b;
  --ink: #f4ecdd;
  --muted: #aeb9af;
  --forest: #8fc3a8;
  --forest-deep: #b3d7bf;
  --gold: #e1bd62;
  --rust: #df8d7b;
  --line: #3c5146;
  --white: #17231e;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid color-mix(in srgb, var(--gold) 72%, transparent); outline-offset: 3px; }

.page-frame { max-width: 1260px; margin: 0 auto; padding: 28px clamp(20px, 4vw, 58px) 24px; }
.site-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { display: inline-flex; gap: 3px; align-items: end; width: 29px; height: 25px; padding: 3px; border: 1px solid var(--forest); transform: rotate(-4deg); }
.brand-mark span { display: block; width: 5px; background: var(--forest); border-radius: 1px; }
.brand-mark span:nth-child(1) { height: 12px; opacity: .65; } .brand-mark span:nth-child(2) { height: 18px; } .brand-mark span:nth-child(3) { height: 9px; opacity: .75; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; } .brand-copy strong { font: 700 23px/1 var(--font-display); letter-spacing: -.02em; } .brand-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.header-tools { display: flex; align-items: center; gap: 18px; } .save-status { color: var(--muted); font-size: 12px; } .save-status i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; background: var(--forest); border-radius: 50%; } .save-status.saving i { animation: pulse 1s ease infinite; } .save-status.error { color: var(--rust); } .save-status.error i { background: var(--rust); }
.icon-button { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 17px; line-height: 1; }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .85fr) auto; justify-content: space-between; gap: 30px; align-items: end; padding: clamp(42px, 7vw, 83px) 0 48px; }
.kicker, .eyebrow { margin: 0 0 9px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.intro h1 { margin: 0; font: 700 clamp(46px, 7vw, 86px)/.91 var(--font-display); letter-spacing: -.065em; } .intro h1 em { color: var(--forest); font-weight: 400; }
.intro-text { max-width: 450px; margin: 24px 0 0; color: var(--muted); font-size: 18px; line-height: 1.45; }
.hero-scene { overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); box-shadow: var(--shadow); } .hero-scene img { display: block; width: 100%; height: 100%; object-fit: cover; }
.arabic-lockup { min-width: 190px; padding: 16px 0 4px 24px; border-left: 1px solid var(--line); color: var(--forest); font: 400 34px/1.1 var(--font-ar); text-align: right; } .arabic-lockup small { display: block; margin-top: 10px; color: var(--muted); font: 12px var(--font-body); letter-spacing: .02em; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 18px; align-items: stretch; }
.panel-paper, .panel-ink { border: 1px solid var(--line); box-shadow: var(--shadow); } .panel-paper { background: var(--surface); } .panel-ink { background: var(--forest); color: #f8f2e7; }
.progress-panel { min-height: 365px; padding: clamp(26px, 4vw, 43px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; } .progress-panel::after { content: ""; position: absolute; right: -10px; bottom: -28px; width: 190px; height: 190px; border: 1px solid var(--line); border-radius: 50%; opacity: .55; } .progress-panel::before { content: ""; position: absolute; right: 30px; bottom: 13px; width: 124px; height: 124px; border: 1px solid var(--line); border-radius: 50%; opacity: .45; }
.section-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; letter-spacing: .11em; text-transform: uppercase; } .page-count { color: var(--forest); font-weight: 700; }
.progress-number { display: flex; align-items: end; gap: 13px; margin: 25px 0 19px; position: relative; z-index: 1; } .progress-number strong { font: 700 clamp(92px, 14vw, 154px)/.8 var(--font-display); letter-spacing: -.08em; } .progress-number > span { padding-bottom: 5px; color: var(--muted); font-size: 21px; line-height: 1.1; } .progress-number small { font-size: 13px; }
.progress-track { height: 8px; background: var(--paper-deep); overflow: hidden; border-radius: 1px; } .progress-track span { display: block; height: 100%; width: 0; background: var(--forest); transition: width .35s ease; }
.progress-caption { display: flex; justify-content: space-between; gap: 20px; margin-top: 10px; color: var(--muted); font-size: 13px; } .next-reading { margin: 23px 0 0; color: var(--forest); font-size: 15px; font-weight: 700; position: relative; z-index: 1; }

.log-panel { padding: clamp(23px, 3.2vw, 35px); display: flex; flex-direction: column; min-height: 365px; } .panel-heading { display: flex; justify-content: space-between; gap: 14px; align-items: start; } .panel-heading h2 { margin: 0; font: 700 27px/1.04 var(--font-display); letter-spacing: -.03em; } .eyebrow { margin-bottom: 6px; color: var(--gold); } .date-stamp { padding-top: 4px; color: rgba(255,255,255,.68); font-size: 12px; white-space: nowrap; } .today-summary { margin: 22px 0 16px; color: rgba(255,255,255,.72); font-size: 14px; }
.mode-switch { display: inline-flex; width: fit-content; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.25); } .mode-button { padding: 0 12px 9px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: rgba(255,255,255,.55); font-size: 13px; } .mode-button:first-child { padding-left: 0; } .mode-button.active { border-color: var(--gold); color: #fff; }
.entry-mode.hidden { display: none; } .field-label { display: block; margin-bottom: 7px; color: rgba(255,255,255,.76); font-size: 12px; letter-spacing: .04em; } .stepper { display: grid; grid-template-columns: 48px 1fr 48px; gap: 8px; } .stepper input, .range-fields input { width: 100%; height: 48px; border: 1px solid rgba(255,255,255,.24); border-radius: 1px; background: rgba(255,255,255,.08); color: #fff; text-align: center; font-size: 23px; font-weight: 700; } .stepper-button { height: 48px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; font-size: 24px; line-height: 1; } .stepper-button:hover { background: rgba(255,255,255,.14); }
.field-hint { margin: 8px 0 0; color: rgba(255,255,255,.55); font-size: 12px; } .range-fields { display: grid; grid-template-columns: 1fr 20px 1fr; align-items: end; gap: 8px; } .range-fields label .field-label { white-space: nowrap; } .range-dash { padding-bottom: 12px; color: rgba(255,255,255,.55); text-align: center; }
.quick-picks { display: flex; align-items: center; gap: 7px; margin: 17px 0 20px; } .quick-picks span { margin-right: 3px; color: rgba(255,255,255,.53); font-size: 12px; } .quick-picks button, .goal-presets button { min-width: 36px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: rgba(255,255,255,.86); font-size: 12px; } .quick-picks button:hover { border-color: var(--gold); color: var(--gold); }
.date-row { display: flex; align-items: end; gap: 10px; margin-top: auto; } .date-row label { flex: 1; } .date-row input, .large-date { width: 100%; height: 42px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; padding: 0 10px; } .text-button { padding: 0; border: 0; background: transparent; color: var(--gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; font-size: 12px; } .date-row .text-button { padding-bottom: 11px; color: rgba(255,255,255,.72); white-space: nowrap; }
.submit-button { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 48px; margin-top: 20px; padding: 0 15px; border: 0; background: var(--gold); color: #1e2b25; font-weight: 700; } .submit-button:hover:not(:disabled) { background: #c29138; } .submit-button:disabled { cursor: not-allowed; opacity: .42; } .submit-button span { font-size: 20px; } .form-message { min-height: 20px; margin: 10px 0 -5px; color: #f2cf84; font-size: 13px; } .form-message.error { color: #ffae9a; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 28px 0 67px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } .stat-item { min-height: 112px; padding: 20px 18px 17px 0; border-right: 1px solid var(--line); } .stat-item + .stat-item { padding-left: 20px; } .stat-item:last-child { border-right: 0; } .stat-item > span { display: block; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; } .stat-item strong { display: block; margin: 11px 0 3px; font: 700 26px/1 var(--font-display); } .stat-item small { color: var(--muted); font-size: 12px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .7fr); gap: 48px; align-items: start; } .section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; } .section-heading h2 { margin: 0; font: 700 32px/1 var(--font-display); letter-spacing: -.035em; } .section-heading.compact h2 { font-size: 28px; } .section-meta { color: var(--muted); font-size: 12px; white-space: nowrap; } .section-description { max-width: 630px; margin: 15px 0 22px; color: var(--muted); font-size: 14px; } .legend { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-bottom: 18px; color: var(--muted); font-size: 12px; } .legend span { display: inline-flex; align-items: center; gap: 7px; } .legend-swatch { display: inline-block; width: 10px; height: 10px; border: 1px solid var(--line); } .legend-swatch.completed { border-color: var(--forest); background: var(--forest); } .legend-swatch.current { outline: 2px solid var(--gold); outline-offset: 1px; background: var(--surface); } .legend-swatch.unread { background: var(--paper-deep); }
.quran-map { display: grid; grid-template-columns: repeat(6, minmax(70px, 1fr)); gap: 22px 12px; } .juz-block { min-width: 0; } .juz-label { display: flex; justify-content: space-between; align-items: start; gap: 5px; margin-bottom: 5px; color: var(--muted); font-size: 11px; } .juz-name { display: flex; min-width: 0; flex-direction: column; } .juz-name small { overflow: hidden; color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; } .juz-block.done .juz-label { color: var(--forest); font-weight: 700; } .juz-surahs { margin-bottom: 6px; color: var(--muted); font-size: 9px; line-height: 1.25; } .juz-surahs summary { cursor: pointer; color: var(--gold); list-style: none; } .juz-surahs summary::-webkit-details-marker { display: none; } .juz-surahs summary::before { content: '+ '; } .juz-surahs[open] summary::before { content: '− '; } .juz-surahs div { margin-top: 4px; color: var(--ink); } .page-cells { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; } .page-cell { display: block; aspect-ratio: 1; border: 0; border-radius: 1px; background: var(--paper-deep); } .page-cell.completed { background: var(--forest); } .page-cell.current { outline: 2px solid var(--gold); outline-offset: 1px; }
.goal-section { padding: 27px; } .goal-icon { color: var(--gold); font-size: 22px; } .goal-section .section-description { margin-top: 16px; } .goal-section .field-label { color: var(--muted); } .large-date { display: block; margin-bottom: 13px; border-color: var(--line); background: transparent; color: var(--ink); } .goal-presets { display: flex; flex-wrap: wrap; gap: 6px; } .goal-presets button { border-color: var(--line); color: var(--forest); } .goal-presets button:hover { border-color: var(--forest); background: var(--paper); } .goal-note { min-height: 80px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; } .goal-note strong { color: var(--ink); } .goal-note.error { color: var(--rust); } .clear-goal { color: var(--rust); }

.history-section { margin-top: 75px; padding-top: 31px; border-top: 1px solid var(--line); } .history-section .section-description { margin-bottom: 20px; } .history-table { margin-top: 25px; border-top: 1px solid var(--line); } .history-row { display: grid; grid-template-columns: minmax(150px, 1fr) 120px 1fr auto; gap: 18px; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); } .history-row.head { min-height: 34px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; } .history-date { font-weight: 700; } .history-pages { color: var(--forest); font-weight: 700; } .history-total { color: var(--muted); font-size: 13px; } .delete-button { justify-self: end; padding: 4px 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; } .delete-button:hover, .delete-button.armed { color: var(--rust); } .empty-history { margin: 26px 0 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); }
.outline-button { margin-top: 15px; padding: 9px 13px; border: 1px solid var(--line); background: transparent; color: var(--forest); font-size: 13px; } .outline-button:hover { border-color: var(--forest); }
.site-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; } .site-footer > span:first-child { color: var(--forest); font: 18px var(--font-ar); } .creator-credit { color: var(--forest); } .danger-button { color: var(--muted); } .idea-phone { color: var(--forest); text-decoration: none; } .idea-phone:hover { text-decoration: underline; text-underline-offset: 3px; } .site-rating { display: inline-flex; align-items: center; gap: 1px; } .site-rating > span { margin-right: 5px; font-size: 11px; } .site-rating button { padding: 0 1px; border: 0; background: transparent; color: var(--line); cursor: pointer; font-size: 17px; line-height: 1; } .site-rating button:hover, .site-rating button.selected { color: var(--gold); }
.section-link { color: var(--forest); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; } .section-link span { display: inline-block; margin-left: 4px; text-decoration: none; } .section-actions, .reader-nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.surah-intro { max-width: 680px; padding: 76px 0 54px; } .surah-intro h1 { margin: 0; font: 700 clamp(48px, 8vw, 82px)/.95 var(--font-display); letter-spacing: -.06em; } .surah-intro p:last-child { max-width: 520px; margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.surah-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin-top: 25px; border-top: 1px solid var(--line); } .surah-card { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; min-height: 68px; border-bottom: 1px solid var(--line); } .surah-number { color: var(--gold); font-size: 12px; font-variant-numeric: tabular-nums; } .surah-name { display: flex; flex-direction: column; } .surah-name strong { color: var(--ink); font: 700 17px/1.1 var(--font-display); } .surah-name small { margin-top: 3px; color: var(--muted); font-size: 11px; } .surah-arabic { color: var(--forest); font: 22px/1 var(--font-ar); }
.reader-intro { max-width: 720px; padding: 76px 0 40px; } .reader-intro h1 { margin: 0; font: 700 clamp(46px, 7vw, 80px)/.95 var(--font-display); letter-spacing: -.06em; } .reader-intro p:last-child { max-width: 580px; margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.reader-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 42px; padding: 17px; border: 1px solid var(--line); background: var(--surface); } .reader-select-label { width: 100%; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; } .reader-select { flex: 1 1 300px; min-width: 0; height: 43px; border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 0 10px; } .reader-control-button { height: 43px; padding: 0 13px; border: 1px solid var(--line); background: transparent; color: var(--forest); } .reader-control-button:hover:not(:disabled) { border-color: var(--forest); } .reader-control-button:disabled { cursor: not-allowed; opacity: .4; }
.reader-content { max-width: 900px; margin: 0 auto; } .loading-reader { color: var(--muted); } .surah-reader-heading { display: flex; justify-content: space-between; align-items: end; gap: 22px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } .surah-reader-heading h2 { margin: 0; font: 700 clamp(30px, 5vw, 48px)/1 var(--font-display); } .surah-reader-heading p:last-child { margin: 8px 0 0; color: var(--muted); } .surah-reader-arabic { color: var(--forest); font: 38px/1.2 var(--font-ar); } .ayah-list { margin-top: 20px; } .ayah { padding: 26px 0; border-bottom: 1px solid var(--line); } .ayah-top { display: grid; grid-template-columns: 38px 1fr; gap: 16px; align-items: start; } .ayah-number { display: inline-grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-size: 12px; } .ayah-arabic { margin: 0; color: var(--ink); font: 32px/1.85 var(--font-ar); text-align: right; } .ayah-translation { max-width: 780px; margin: 16px 0 0 54px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.data-attribution { max-width: 900px; margin: 36px auto 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.feedback-panel { display: grid; grid-template-columns: 1fr minmax(240px, 1fr) auto; gap: 14px 24px; align-items: end; margin-top: 72px; padding: 24px; border: 1px solid var(--line); background: rgba(255, 251, 242, .72); } .feedback-panel h2 { margin: 0; font: 700 28px/1 var(--font-display); } .feedback-panel p:last-child { max-width: 330px; margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; } .feedback-panel textarea { min-height: 74px; padding: 12px; border: 1px solid var(--line); resize: vertical; background: rgba(255,255,255,.35); color: var(--ink); font: inherit; } .feedback-panel .gold-button { height: 42px; padding: 0 15px; border: 0; background: var(--gold); color: var(--ink); cursor: pointer; } .feedback-panel .gold-button:hover { background: var(--gold-light); } .feedback-status { grid-column: 2 / 4; color: var(--forest); font-size: 11px; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } .admin-toolbar h2 { margin: 0; font: 700 28px/1 var(--font-display); } .admin-toolbar > span { color: var(--muted); font-size: 12px; } .admin-feedback-list { max-width: 900px; } .admin-feedback-item { padding: 22px 0; border-bottom: 1px solid var(--line); } .admin-feedback-item p { max-width: 760px; margin: 12px 0 0; color: var(--ink); font-size: 17px; line-height: 1.5; white-space: pre-wrap; } .admin-feedback-meta { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 11px; } .admin-feedback-meta span { color: var(--gold); letter-spacing: .08em; }

@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 1100px) { .intro { grid-template-columns: minmax(0, 1fr) minmax(220px, .85fr); } .arabic-lockup { grid-column: 2; justify-self: end; } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .content-grid { grid-template-columns: 1fr; gap: 45px; } .goal-section { max-width: none; } .quran-map { grid-template-columns: repeat(5, minmax(70px, 1fr)); } }
@media (max-width: 650px) { .page-frame { padding-inline: 16px; } .header-tools { gap: 10px; } .save-status { max-width: 190px; text-align: right; } .intro { display: block; padding: 50px 0 35px; } .hero-scene { margin: 30px 0 0; } .arabic-lockup { width: fit-content; min-width: 0; margin-top: 31px; margin-left: auto; } .stat-strip { grid-template-columns: repeat(2, 1fr); margin-bottom: 50px; } .stat-item:nth-child(2) { border-right: 0; } .stat-item:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line); } .stat-item:nth-child(4) { border-top: 1px solid var(--line); } .quran-map { grid-template-columns: repeat(4, minmax(62px, 1fr)); gap: 18px 9px; } .history-row { grid-template-columns: 1fr auto auto; gap: 8px 12px; padding: 12px 0; } .history-row.head { display: none; } .history-total { grid-column: 1 / 3; grid-row: 2; } .delete-button { grid-column: 3; grid-row: 1 / 3; } .site-footer { flex-wrap: wrap; } .feedback-panel { display: flex; flex-direction: column; align-items: stretch; margin-top: 52px; padding: 18px; } .feedback-panel textarea { min-height: 96px; } .feedback-panel .gold-button { width: 100%; } .feedback-status { order: 4; } .surah-intro { padding: 52px 0 38px; } .surah-list { grid-template-columns: 1fr; } .surah-card { min-height: 62px; } .reader-intro { padding: 52px 0 38px; } .reader-controls { margin-bottom: 28px; } .reader-control-button { flex: 1; } .surah-reader-heading { align-items: start; flex-direction: column; } .ayah { padding: 20px 0; } .ayah-top { grid-template-columns: 27px 1fr; gap: 9px; } .ayah-number { width: 25px; height: 25px; font-size: 10px; } .ayah-arabic { font-size: 25px; line-height: 1.85; } .ayah-translation { margin-left: 36px; font-size: 16px; } .surah-reader-arabic { font-size: 31px; } }
@media (max-width: 420px) { .progress-caption { font-size: 12px; } .quran-map { grid-template-columns: repeat(3, minmax(70px, 1fr)); } .panel-heading h2 { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Owner dashboard — quiet editorial control room */
.admin-page { --admin-shadow: 0 18px 45px rgba(39, 53, 43, .08); }
.admin-header { border-bottom-color: rgba(47, 81, 66, .18); }
.admin-header-center { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #a78b3e; box-shadow: 0 0 0 4px rgba(167, 139, 62, .12); }
.admin-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: clamp(30px, 8vw, 120px); align-items: end; padding: clamp(62px, 10vw, 112px) 0 62px; border-bottom: 1px solid var(--line); }
.admin-hero-copy { position: relative; }
.admin-hero-copy::before { content: '01'; position: absolute; top: -33px; left: -1px; color: var(--gold); font: 700 11px var(--font-body); letter-spacing: .12em; }
.admin-hero h1 { margin: 0; color: var(--ink); font: 700 clamp(48px, 8vw, 96px)/.88 var(--font-display); letter-spacing: -.07em; }
.admin-hero h1 em { color: var(--forest); font-style: italic; font-weight: 400; }
.admin-hero-copy > p:last-child { max-width: 450px; margin: 28px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.admin-hero-note { position: relative; display: flex; min-height: 205px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 25px; background: var(--forest); color: var(--paper); box-shadow: var(--admin-shadow); }
.admin-hero-note::after { content: ''; position: absolute; width: 170px; height: 170px; right: -57px; top: -57px; border: 1px solid rgba(245, 239, 224, .22); border-radius: 50%; box-shadow: 0 0 0 22px rgba(245, 239, 224, .04), 0 0 0 44px rgba(245, 239, 224, .035); }
.admin-note-mark { color: var(--gold-light); font-size: 22px; }
.admin-hero-note div { display: grid; gap: 9px; max-width: 210px; }
.admin-hero-note div span { color: rgba(245, 239, 224, .62); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.admin-hero-note strong { font: 700 24px/1.05 var(--font-display); }
.admin-note-arabic { align-self: end; color: var(--gold-light); font: 34px var(--font-ar); }
.admin-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 42px; background: var(--line); border: 1px solid var(--line); }
.admin-summary article { display: grid; min-height: 145px; align-content: space-between; gap: 10px; padding: 20px; background: rgba(255, 251, 242, .78); }
.admin-summary .summary-accent { background: var(--gold-light); }
.summary-label { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.admin-summary strong { color: var(--ink); font: 700 clamp(26px, 4vw, 42px)/1 var(--font-display); letter-spacing: -.04em; }
.admin-summary small { color: var(--muted); font-size: 11px; }
.admin-toolbar { margin-top: 70px; padding: 0 0 22px; border-top: 0; border-bottom: 1px solid var(--line); }
.admin-toolbar h2 { margin-top: 6px; font: 700 clamp(28px, 4vw, 44px)/1 var(--font-display); letter-spacing: -.04em; }
.outline-button { border: 1px solid var(--forest); background: transparent; color: var(--forest); cursor: pointer; padding: 10px 14px; font: 700 11px var(--font-body); letter-spacing: .08em; text-transform: uppercase; transition: background .2s, color .2s; }
.outline-button:hover { background: var(--forest); color: var(--paper); }
.admin-feedback-list { max-width: none; }
.admin-feedback-item { position: relative; padding: 28px 18px 31px 0; border-bottom: 0; }
.admin-feedback-item::after { content: ''; position: absolute; right: 0; top: 28px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.admin-feedback-item p { max-width: 720px; margin: 13px 0 0; color: var(--ink); font: 400 clamp(19px, 2.3vw, 27px)/1.3 var(--font-display); letter-spacing: -.02em; }
.admin-feedback-meta { max-width: 720px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }
.feedback-stars { color: var(--gold); letter-spacing: .1em; }
.feedback-stars i { color: var(--line); font-style: normal; }
.feedback-no-rating { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.feedback-rule { display: block; width: 100%; height: 1px; margin-top: 28px; background: linear-gradient(90deg, var(--line), transparent); }
.admin-empty { display: grid; justify-items: start; padding: 72px 0 88px; border-bottom: 1px solid var(--line); }
.empty-icon { display: grid; width: 50px; height: 50px; place-items: center; margin-bottom: 22px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: 21px; }
.admin-empty h3 { margin: 0; color: var(--ink); font: 700 clamp(30px, 4vw, 48px)/1 var(--font-display); letter-spacing: -.04em; }
.admin-empty p { max-width: 390px; margin: 12px 0 24px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.admin-empty .section-link { color: var(--forest); text-decoration: none; }

@media (max-width: 650px) {
  .admin-header-center { display: none; }
  .admin-hero { display: block; padding: 60px 0 38px; }
  .admin-hero h1 { font-size: clamp(50px, 15vw, 72px); }
  .admin-hero-copy > p:last-child { font-size: 15px; }
  .admin-hero-note { min-height: 170px; margin-top: 34px; }
  .admin-summary { grid-template-columns: 1fr 1fr; }
  .admin-summary article { min-height: 122px; padding: 15px; }
  .admin-summary article:last-child { grid-column: 1 / -1; min-height: 100px; }
  .admin-toolbar { align-items: start; flex-direction: column; gap: 18px; margin-top: 52px; }
  .admin-toolbar .outline-button { width: 100%; }
  .admin-feedback-item { padding-right: 14px; }
  .admin-feedback-item p { font-size: 22px; }
  .admin-empty { padding: 58px 0 70px; }
}

/* Public tracker — Owner's Desk visual language */
.page-frame:not(.admin-page) { --desk-shadow: 0 18px 45px rgba(39, 53, 43, .08); }
.page-frame:not(.admin-page) .site-header { border-bottom-color: rgba(47, 81, 66, .18); }
.page-frame:not(.admin-page) .intro { position: relative; isolation: isolate; padding-top: clamp(70px, 10vw, 112px); padding-bottom: 62px; border-bottom: 1px solid var(--line); }
.page-frame:not(.admin-page) .intro::before { content: '01'; position: absolute; z-index: -1; top: 39px; left: 0; color: var(--gold); font: 700 11px var(--font-body); letter-spacing: .12em; }
.page-frame:not(.admin-page) .intro::after { content: '✦'; position: absolute; right: 10%; top: 26%; color: var(--gold-light); font-size: 76px; opacity: .7; }
.page-frame:not(.admin-page) .intro h1 { font-size: clamp(58px, 9vw, 104px); letter-spacing: -.08em; }
.page-frame:not(.admin-page) .intro h1 em { color: var(--forest); }
.page-frame:not(.admin-page) .intro-text { max-width: 480px; font-size: 16px; }
.page-frame:not(.admin-page) .arabic-lockup { border-left-color: var(--gold); }
.page-frame:not(.admin-page) .hero-grid { gap: 1px; margin-top: 42px; background: var(--line); border: 1px solid var(--line); box-shadow: var(--desk-shadow); }
.page-frame:not(.admin-page) .hero-grid > * { border: 0; }
.page-frame:not(.admin-page) .progress-panel { background: rgba(255, 251, 242, .82); }
.page-frame:not(.admin-page) .log-panel { position: relative; }
.page-frame:not(.admin-page) .log-panel::before { content: '02'; position: absolute; right: 24px; top: 22px; color: rgba(245, 239, 224, .32); font-size: 11px; letter-spacing: .1em; }
.page-frame:not(.admin-page) .stat-strip { gap: 1px; margin-top: 42px; background: var(--line); border: 1px solid var(--line); }
.page-frame:not(.admin-page) .stat-item { min-height: 132px; padding: 20px; background: rgba(255, 251, 242, .78); border: 0; }
.page-frame:not(.admin-page) .stat-item strong { font-size: clamp(25px, 3vw, 38px); }
.page-frame:not(.admin-page) .content-grid { gap: 52px; margin-top: 72px; }
.page-frame:not(.admin-page) .section-heading { border-bottom-color: var(--line); }
.page-frame:not(.admin-page) .map-section, .page-frame:not(.admin-page) .history-section { position: relative; }
.page-frame:not(.admin-page) .map-section::before, .page-frame:not(.admin-page) .history-section::before { content: '03'; position: absolute; top: 5px; right: 0; color: var(--gold); font-size: 10px; letter-spacing: .12em; }
.page-frame:not(.admin-page) .goal-section { box-shadow: var(--desk-shadow); }
.page-frame:not(.admin-page) .feedback-panel { box-shadow: var(--desk-shadow); }
.page-frame:not(.admin-page) .site-footer { margin-top: 58px; }
@media (max-width: 650px) {
  .page-frame:not(.admin-page) .intro { padding-top: 60px; padding-bottom: 40px; }
  .page-frame:not(.admin-page) .intro::after { right: 4%; top: 18%; font-size: 48px; }
  .page-frame:not(.admin-page) .intro h1 { font-size: clamp(52px, 15vw, 75px); }
  .page-frame:not(.admin-page) .hero-grid { margin-top: 30px; }
  .page-frame:not(.admin-page) .stat-strip { margin-top: 34px; }
  .page-frame:not(.admin-page) .content-grid { margin-top: 52px; }
}

.owner-link { color: var(--forest); font-size: 11px; letter-spacing: .04em; text-decoration: none; } .owner-link:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* Quran reader — focused reading space */
.quran-page .reader-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .62fr); gap: clamp(30px, 8vw, 110px); align-items: end; max-width: none; padding: clamp(62px, 9vw, 105px) 0 52px; border-bottom: 1px solid var(--line); }
.quran-page .reader-intro-copy { max-width: 700px; }
.quran-page .reader-intro h1 { font-size: clamp(56px, 9vw, 100px); }
.quran-page .reader-intro h1::after { content: '✦'; display: inline-block; margin-left: 14px; color: var(--gold); font-size: .28em; vertical-align: top; }
.quran-page .reader-intro-copy > p:last-child { max-width: 500px; margin-top: 25px; font-size: 16px; }
.reader-resume-card { display: grid; gap: 10px; min-height: 190px; padding: 23px; background: var(--forest); color: var(--paper); box-shadow: 0 18px 45px rgba(39, 53, 43, .1); }
.resume-label { color: rgba(245, 239, 224, .62); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.reader-resume-card strong { font: 700 27px/1 var(--font-display); }
.reader-resume-card #resumeMeta { color: rgba(245, 239, 224, .72); font-size: 12px; }
.resume-progress { height: 4px; margin-top: 6px; background: rgba(245, 239, 224, .2); }
.resume-progress span { display: block; height: 100%; width: 0; background: var(--gold-light); transition: width .35s ease; }
.reader-resume-card button { justify-self: start; border: 0; background: var(--gold-light); color: var(--ink); padding: 10px 12px; cursor: pointer; font: 700 11px var(--font-body); }
.reader-resume-card button:disabled { cursor: default; opacity: .45; }
.reader-resume-card button span { margin-left: 12px; }
.quran-page .reader-controls { margin: 34px 0 58px; padding: 14px; border: 1px solid var(--line); background: rgba(255, 251, 242, .78); }
.quran-page .reader-select { border-color: var(--line); }
.reader-autosave { display: inline-flex; align-items: center; gap: 7px; width: 100%; color: var(--muted); font-size: 11px; }
.reader-autosave i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.quran-page .reader-content { max-width: 920px; }
.quran-page .surah-reader-heading { position: relative; padding: 29px 0 33px; border-top: 0; }
.quran-page .surah-reader-heading::before { content: '03'; position: absolute; top: 0; right: 0; color: var(--gold); font-size: 10px; letter-spacing: .12em; }
.quran-page .ayah-list { margin-top: 8px; }
.quran-page .ayah { padding: 35px 0; transition: background .2s; }
.quran-page .ayah:focus-visible { outline: 2px solid var(--gold); outline-offset: 8px; }
.quran-page .ayah-number { border-color: var(--gold); }
.quran-page .ayah-arabic { font-size: clamp(29px, 4vw, 39px); line-height: 1.9; }
.quran-page .ayah-translation { max-width: 735px; margin-top: 19px; font-size: 17px; line-height: 1.7; }
.quran-page .data-attribution { max-width: 920px; margin-top: 38px; padding-top: 17px; border-top: 1px solid var(--line); }
@media (max-width: 700px) {
  .quran-page .reader-intro { display: block; padding: 58px 0 34px; }
  .quran-page .reader-intro h1 { font-size: clamp(52px, 15vw, 76px); }
  .reader-resume-card { min-height: 0; margin-top: 34px; }
  .quran-page .reader-controls { margin-bottom: 38px; }
  .quran-page .ayah { padding: 28px 0; }
  .quran-page .ayah-arabic { font-size: 27px; }
  .quran-page .ayah-translation { margin-left: 36px; font-size: 16px; }
}

.reader-select-group { flex: 1 1 300px; min-width: 0; }
.reader-select-group .reader-select { width: 100%; }
.language-select-group { flex: 0 1 190px; }
@media (max-width: 700px) { .language-select-group { flex-basis: 100%; } }

.site-language-picker { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.site-language-picker select { border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 6px 22px 6px 7px; font: 11px var(--font-body); text-transform: none; }
.reader-nav .site-language-picker { margin-right: 4px; }
@media (max-width: 650px) { .site-language-picker span { display: none; } .site-language-picker select { padding: 5px 18px 5px 6px; } .reader-nav { gap: 10px; } }

.account-link { color: var(--forest); font-size: 11px; letter-spacing: .04em; text-decoration: none; border-bottom: 1px solid transparent; }
.account-link:hover { color: var(--gold); border-bottom-color: var(--gold); }
.reader-progress-list { display: grid; gap: 1px; margin-top: 18px; background: var(--line); border: 1px solid var(--line); }
.reader-progress-card { padding: 20px 22px 18px; background: rgba(255, 251, 242, .9); }
.reader-progress-head, .reader-progress-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.reader-progress-head strong { display: block; color: var(--ink); font: 700 21px/1.1 var(--font-display); }
.reader-progress-head span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.reader-progress-head b { color: var(--forest); font: 700 26px/1 var(--font-display); }
.reader-progress-track { height: 7px; margin: 17px 0 12px; background: var(--paper); border: 1px solid var(--line); }
.reader-progress-track span { display: block; height: 100%; background: var(--forest); }
.reader-progress-meta { color: var(--muted); font-size: 11px; }
.compact-empty { border-bottom: 0; padding: 38px 20px; background: rgba(255, 251, 242, .7); }
@media (max-width: 650px) { .header-tools { gap: 8px; } .save-status { display: none; } .account-link { font-size: 10px; } .reader-progress-card { padding: 17px 14px; } .reader-progress-meta { align-items: flex-start; flex-direction: column; gap: 5px; } }

.admin-privacy-note { max-width: 620px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.visit-list { display: grid; gap: 1px; margin-top: 18px; background: var(--line); border: 1px solid var(--line); }
.visit-item { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(130px, .7fr) auto; align-items: center; gap: 18px; padding: 15px 18px; background: rgba(255, 251, 242, .9); }
.visit-item strong, .visit-item span { display: block; }
.visit-item strong { color: var(--ink); font: 700 16px/1.1 var(--font-display); }
.visit-item div span, .visit-item time { margin-top: 4px; color: var(--muted); font-size: 11px; }
.visit-page { color: var(--forest); font-size: 12px; }
@media (max-width: 650px) { .visit-item { grid-template-columns: 1fr auto; gap: 10px; } .visit-page { grid-column: 1; } .visit-item time { grid-column: 2; grid-row: 1 / span 2; align-self: center; } }

.entry-gate { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: var(--forest-deep); }
.entry-gate.is-hidden { display: none; }
.entry-pending .page-frame { visibility: hidden; }
.entry-pending .entry-gate.is-hidden { display: grid; }
.entry-gate-card { width: min(100%, 560px); padding: clamp(30px, 6vw, 58px); border: 1px solid rgba(255,255,255,.22); background: var(--surface); box-shadow: 0 28px 80px rgba(0,0,0,.24); text-align: center; }
.entry-gate-mark { margin-bottom: 23px; color: var(--forest); font: 400 38px/1 var(--font-ar); }
.entry-gate-card .kicker { margin-bottom: 13px; }
.entry-gate-card h1 { margin: 0; color: var(--ink); font: 700 clamp(34px, 6vw, 56px)/.96 var(--font-display); letter-spacing: -.05em; }
.entry-gate-text { max-width: 440px; margin: 20px auto 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.entry-gate-actions { display: grid; gap: 10px; max-width: 360px; margin: 29px auto 0; }
.entry-gate-actions .submit-button { margin-top: 0; }
.entry-gate-actions .outline-button { margin-top: 0; padding: 13px 16px; border-color: var(--line); color: var(--forest); background: transparent; }
.entry-gate-actions .outline-button:hover { border-color: var(--forest); background: var(--paper); }
.entry-gate-note { margin: 21px 0 0; color: var(--muted); font-size: 11px; }
body.entry-locked > .page-frame { visibility: hidden; pointer-events: none; user-select: none; }

.admin-toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.danger-action { padding: 5px 0; border: 0; background: transparent; color: var(--rust); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.danger-action:hover { color: var(--ink); }
@media (max-width: 650px) { .admin-toolbar-actions { justify-content: flex-start; } }

.entry-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; padding: 16px 18px; border: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.entry-choice:hover { border-color: var(--forest); background: var(--paper); }
.entry-choice-primary { border-color: var(--gold); background: var(--gold); color: #1e2b25; }
.entry-choice-primary:hover { background: #c29138; border-color: #c29138; }
.entry-choice strong { font: 700 17px/1.15 var(--font-display); }
.entry-choice small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.entry-choice-primary small { color: rgba(30,43,37,.76); }
.entry-choice small span { float: right; margin-left: 8px; font-size: 17px; line-height: .8; }
