:root {
    --green: #064e36;
    --green-2: #0b6b49;
    --gold: #d4a633;
    --ink: #102033;
    --muted: #64748b;
    --line: #dbe4df;
    --soft: #f6f8f5;
    --card: #ffffff;
    --shadow: 0 12px 34px rgba(10, 37, 28, .12);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    background: #eef3ef;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: var(--green-2); text-decoration: none; }
a:hover { color: #033824; }
img { max-width: 100%; }

.site-header {
    background: var(--green);
    color: white;
    box-shadow: 0 3px 18px rgba(0,0,0,.12);
}
.top-band {
    min-height: 118px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 18px 4vw;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(212,166,51,.18), transparent 26%),
        linear-gradient(135deg, rgba(4,78,54,.98), rgba(9,91,62,.95));
}
.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    color: white;
    min-width: 0;
}
.brand img {
    width: 110px;
    height: 86px;
    object-fit: contain;
    background: rgba(255,255,255,.92);
    border-radius: 8px;
    padding: 6px;
}
.brand strong {
    display: block;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1;
    letter-spacing: .02em;
}
.brand small {
    color: #f6df8f;
    font-family: Arial, sans-serif;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.top-search {
    display: flex;
    width: clamp(280px, 32vw, 520px);
    min-width: 0;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0,0,0,.14);
}
.top-search input {
    flex: 1;
    border: 0;
    background: transparent;
    color: white;
    padding: 14px 18px;
    outline: 0;
}
.top-search input::placeholder { color: rgba(255,255,255,.72); }
.top-search button {
    border: 0;
    padding: 0 20px;
    background: var(--gold);
    color: #173023;
    font-weight: 700;
}
.main-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    background: #f7f7f5;
    border-bottom: 2px solid #21a56f;
}
.main-nav > a,
.nav-drop > a {
    display: block;
    padding: 17px 20px;
    color: #1f2937;
    font-weight: 700;
}
.main-nav a.active,
.main-nav a:hover,
.nav-drop:hover > a {
    color: var(--green-2);
    background: white;
}
.nav-drop {
    position: relative;
}
.drop-menu {
    display: none;
    position: absolute;
    z-index: 20;
    top: 100%;
    min-width: 230px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}
.drop-menu a {
    display: block;
    padding: 14px 18px;
    color: var(--ink);
    border-bottom: 1px solid #eef2ef;
}
.nav-drop:hover .drop-menu { display: block; }

main {
    min-height: 70vh;
}
.hero {
    background:
        linear-gradient(90deg, rgba(6,78,54,.96), rgba(7,83,58,.85)),
        url('../images/logo.jpg') left 7% center / 230px no-repeat;
    color: white;
    padding: 72px 5vw 64px;
}
.hero-library {
    padding: 0;
    background:
        radial-gradient(circle at 12% 15%, rgba(212,166,51,.16), transparent 24%),
        linear-gradient(100deg, #043726, #07593c 58%, #043726);
    overflow: hidden;
}
.hero-layout {
    width: min(1240px, 94vw);
    margin: auto;
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 44px;
    align-items: center;
    min-height: 390px;
    padding: 46px 0 62px;
}
.hero-mark {
    display: grid;
    place-items: center;
}
.hero-mark img {
    width: 260px;
    height: 260px;
    object-fit: contain;
    background: rgba(255,255,255,.96);
    border-radius: 50%;
    padding: 22px;
    box-shadow: 0 26px 70px rgba(0,0,0,.24);
}
.hero-copy {
    max-width: 820px;
}
.eyebrow {
    display: inline-block;
    color: #f7df8a;
    font: 700 13px Arial, sans-serif;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.hero-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.03;
}
.hero-copy p {
    color: #f5df93;
    font-size: 21px;
    max-width: 820px;
}
.hero-inner {
    max-width: 1120px;
    margin: auto;
    padding-left: min(320px, 28vw);
}
.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(36px, 5vw, 66px);
    line-height: 1.05;
}
.hero p {
    margin: 0 0 26px;
    color: #f5df93;
    font-size: 20px;
    max-width: 760px;
}
.hero-search {
    display: flex;
    max-width: 720px;
    background: white;
    border-radius: 999px;
    padding: 6px;
    box-shadow: var(--shadow);
}
.hero-search input {
    flex: 1;
    border: 0;
    padding: 15px 20px;
    font-size: 16px;
    outline: 0;
}
.hero-search button,
.btn,
button.btn {
    border: 0;
    border-radius: 7px;
    padding: 12px 18px;
    background: var(--green-2);
    color: white;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
}
.btn.secondary { background: #eef5ef; color: var(--green); }
.btn.gold { background: var(--gold); color: #223023; }
.container {
    width: min(1220px, 92vw);
    margin: 0 auto;
}
.section {
    padding: 38px 0;
}
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 18px;
}
.section-title h2,
.page-title {
    margin: 0;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.1;
}
.section-title p,
.muted {
    color: var(--muted);
    margin: 6px 0 0;
}
.grid {
    display: grid;
    gap: 18px;
}
.grid.features { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: -42px; position: relative; z-index: 2; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(8,39,28,.06);
}
.feature-card {
    min-height: 152px;
    transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e8f4ed;
    color: var(--green);
    font-size: 26px;
    margin-bottom: 12px;
}
.card h3 {
    margin: 0 0 8px;
}
.article-card,
.book-card,
.hadith-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.article-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 7px;
    background: #e8f0eb;
    margin-bottom: 6px;
}
.kb-card {
    min-height: 360px;
}
.article-meta {
    color: var(--muted);
    font: 13px Arial, sans-serif;
}
.panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
}
.soundcloud-frame {
    width: 100%;
    min-height: 820px;
    border: 0;
    border-radius: 8px;
}
.soundcloud-frame.compact {
    min-height: 340px;
}
.soundcloud-panel {
    padding: 14px;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}
input, select, textarea {
    width: 100%;
    border: 1px solid #cfd9d2;
    border-radius: 7px;
    padding: 12px 13px;
    font: inherit;
    background: white;
}
textarea { min-height: 120px; }
.list {
    display: grid;
    gap: 16px;
}
.book-cover {
    aspect-ratio: 4 / 5;
    border-radius: 8px;
    background: linear-gradient(135deg, #064e36, #d4a633);
    color: white;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 18px;
    font-size: 24px;
    font-weight: 700;
}
.status {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font: 12px Arial, sans-serif;
    background: #eef5ef;
    color: var(--green);
}
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 8px 0 10px;
}
.category-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 28px;
}
.category-cloud a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--green);
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(8,39,28,.05);
}
.category-cloud a span {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: #e8f4ed;
    font: 12px Arial, sans-serif;
}
.category-cloud.mini {
    margin-top: -6px;
}
.category-cloud.mini a {
    padding: 7px 10px;
    font-size: 14px;
}
.tight-form {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(8,39,28,.05);
}
.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
    padding: 28px 5vw;
    background: var(--green);
    color: white;
}
.site-footer a { color: #f6df8f; margin-left: 16px; }

.admin-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}
.admin-side {
    background: var(--green);
    color: white;
    padding: 22px;
}
.admin-side a {
    display: block;
    color: white;
    padding: 10px 8px;
    border-radius: 7px;
}
.admin-side a:hover { background: rgba(255,255,255,.12); }
.admin-main { padding: 28px; }
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}
.table th, .table td {
    border-bottom: 1px solid #e5ece7;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}
.table th { background: #f4f7f4; }
.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.notice {
    padding: 14px 16px;
    border-radius: 8px;
    background: #fff7d6;
    border: 1px solid #ead28a;
    margin-bottom: 18px;
}
.translation-list[dir="rtl"] {
    text-align: right;
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', Georgia, serif;
}
.translation-list p {
    font-size: 19px;
    line-height: 1.9;
}
.quran-display-options .option-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.quran-display-options .option-row label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-weight: 700;
    color: var(--green);
}
.quran-display-options input {
    width: auto;
    margin: 0;
}
.quran-arabic-text {
    direction: rtl;
    text-align: right;
    font-family: "Traditional Arabic", "Amiri", "Scheherazade New", "Noto Naskh Arabic", "Arial", sans-serif;
    font-size: 30px;
    line-height: 2.05;
    color: var(--green);
    margin-bottom: 10px;
}
.quran-transliteration-text {
    color: #52667a;
    font-style: italic;
    border-left: 3px solid #d4a633;
    padding-left: 12px;
}
.quran-translation-text {
    color: var(--ink);
}
.wp-content {
    overflow-wrap: anywhere;
}
.wp-content img {
    max-width: 100%;
    height: auto;
    border-radius: 7px;
}
.wp-content iframe,
.wp-content video {
    max-width: 100%;
}
.compact-search {
    margin-bottom: 2px;
}

@media (max-width: 980px) {
    .grid.features, .grid.three, .grid.two { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr 1fr; }
    .span-2, .span-3 { grid-column: span 2; }
    .hero-inner { padding-left: 0; }
    .hero { background: linear-gradient(90deg, rgba(6,78,54,.96), rgba(7,83,58,.85)); }
    .hero-layout { grid-template-columns: 1fr; text-align: center; }
    .hero-search { margin: auto; }
    .admin-shell { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    body { font-size: 16px; }
    .top-band, .site-footer { flex-direction: column; align-items: stretch; gap: 16px; }
    .top-band {
        min-height: auto;
        padding: 14px 16px 16px;
    }
    .brand {
        gap: 12px;
    }
    .brand img {
        width: 72px;
        height: 58px;
        padding: 4px;
    }
    .brand strong {
        font-size: 28px;
    }
    .brand small {
        display: block;
        font-size: 10px;
        letter-spacing: .08em;
        line-height: 1.4;
    }
    .top-search {
        min-width: 0;
        width: 100%;
        border-radius: 8px;
    }
    .top-search input {
        min-width: 0;
        padding: 11px 12px;
    }
    .top-search button {
        padding: 0 12px;
    }
    .container {
        width: min(100% - 24px, 1220px);
    }
    .section {
        padding: 22px 0;
    }
    .page-title,
    .section-title h2 {
        font-size: 32px;
    }
    .actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .grid.features, .grid.three, .grid.two, .form-row { grid-template-columns: 1fr; }
    .span-2, .span-3 { grid-column: span 1; }
    .main-nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
    .main-nav > a, .nav-drop > a {
        white-space: nowrap;
        padding: 13px 14px;
        font-size: 15px;
    }
    .drop-menu { position: static; }
    .panel,
    .card,
    .tight-form {
        padding: 16px;
    }
    .article-card,
    .book-card,
    .hadith-card {
        min-width: 0;
    }
    .article-thumb {
        aspect-ratio: 16 / 10;
    }
    .soundcloud-frame {
        min-height: 560px;
    }
    .soundcloud-frame.compact {
        min-height: 300px;
    }
    .form-row .btn,
    .form-row button {
        width: 100%;
    }
    audio {
        width: 100%;
    }
    .site-footer {
        text-align: center;
    }
    .site-footer a {
        margin: 0 8px;
    }
}
.table-wrap{overflow-x:auto;width:100%}
.data-table{width:100%;border-collapse:collapse;background:#fff}
.data-table th,.data-table td{border-bottom:1px solid var(--line);padding:10px;text-align:left;vertical-align:top}

/* V29 Quran memorization */
.memorization-page .quran-tabs {
    gap: 12px;
    flex-wrap: wrap;
}
.memorization-form {
    margin-top: 22px;
}
.memorization-player {
    display: grid;
    gap: 16px;
}
.memorization-player-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}
.memorization-player-head h2 {
    margin: 0;
}
.memorization-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.loop-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-weight: 700;
}
.loop-toggle input {
    width: auto;
}
.memorization-audio {
    width: 100%;
}
.memorization-status {
    padding: 10px 12px;
    border-radius: 7px;
    background: #eef6f1;
    color: var(--green);
    font-weight: 700;
}
.ayah-list {
    display: grid;
    gap: 14px;
}
.ayah-card {
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.ayah-card.is-current {
    border-color: var(--green-2);
    box-shadow: 0 0 0 3px rgba(4, 106, 69, .12), var(--shadow);
}
.ayah-card.is-memorized {
    background: #f3fbf6;
}
.ayah-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.small-btn {
    padding: 8px 11px;
    font-size: 14px;
}
.arabic-text {
    font-family: "Traditional Arabic", "Amiri", "Scheherazade New", "Noto Naskh Arabic", "Arial", sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.9;
    text-align: right;
    direction: rtl;
    margin: 10px 0;
}
.translation-text {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

@media (max-width: 760px) {
    .memorization-player-head {
        display: grid;
    }
    .memorization-actions,
    .memorization-actions .btn {
        width: 100%;
    }
    .memorization-actions .btn {
        text-align: center;
    }
    .ayah-card-head {
        display: grid;
    }
    .small-btn {
        width: 100%;
    }
}

/* V30 restored admin CMS/editor styles */
.admin-nav-group {
    margin: 14px 0 18px;
}
.admin-nav-group strong {
    display: block;
    margin: 0 0 6px;
    color: rgba(255,255,255,.72);
    font: 700 12px Arial, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.admin-side .admin-nav-group a {
    padding: 7px 10px;
    margin: 1px 0;
    border-radius: 7px;
}
.admin-side a.active {
    background: rgba(255,255,255,.14);
    color: #fff;
}
.admin-editor-layout {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.admin-page-list {
    display: grid;
    gap: 8px;
}
.admin-page-list a {
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
}
.admin-page-list a.active {
    border-color: var(--green);
    background: #edf7f0;
}
.admin-page-list small {
    display: block;
    color: var(--muted);
}
.editor-toolbar,
.editor-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 10px;
}
.editor-toolbar button,
.editor-tabs button {
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    padding: 8px 11px;
    font-weight: 700;
    cursor: pointer;
}
.editor-tabs button.active {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.wysiwyg-editor,
.code-editor,
.preview-editor {
    width: 100%;
    min-height: 360px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
    font: inherit;
    line-height: 1.65;
}
.code-editor {
    display: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
}
.preview-editor {
    display: none;
    overflow: auto;
}
.cms-content {
    font-size: 18px;
}
.cms-content h2,
.cms-content h3 {
    color: var(--green);
}
.compact-kb-card {
    min-height: 0;
}
.kb-card .tag-row {
    gap: 6px;
}
.kb-card .status {
    font-size: 12px;
}
@media (max-width: 900px) {
    .admin-editor-layout {
        grid-template-columns: 1fr;
    }
}
.data-table th{background:#f4f7f3;color:var(--green)}

/* V6 public menu cleanup and mobile navigation */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 auto;
    min-width: 0;
    margin-left: auto;
}
.menu-toggle {
    display: none;
    width: 46px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 8px;
    background: rgba(0,0,0,.18);
    padding: 9px 10px;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
    border-radius: 999px;
}

@media (max-width: 680px) {
    .header-actions {
        width: 100%;
        margin-left: 0;
        align-items: stretch;
    }
    .header-actions .top-search {
        flex: 1;
        width: auto;
    }
    .main-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        overflow: visible;
        border-bottom: 0;
        background: #fff;
        box-shadow: 0 14px 26px rgba(8,39,28,.14);
    }
    .main-nav.is-open {
        display: flex;
    }
    .main-nav > a,
    .nav-drop > a {
        white-space: normal;
        padding: 14px 18px;
        font-size: 16px;
        border-bottom: 1px solid #eef2ef;
    }
    .nav-drop {
        width: 100%;
    }
    .drop-menu {
        display: block;
        position: static;
        min-width: 0;
        width: 100%;
        border: 0;
        box-shadow: none;
        border-radius: 0;
        background: #f6f8f5;
    }
    .drop-menu a {
        padding: 12px 18px 12px 34px;
        border-bottom: 1px solid #e5ece7;
    }
}

/* V7 mobile menu hard fix: CSS checkbox fallback, works even when JS is cached/blocked */
.mobile-menu-check {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

.menu-toggle {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

@media (max-width: 760px) {
    .site-header {
        position: relative;
        z-index: 1000;
    }
    .top-band {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .header-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        width: 100%;
        align-items: center;
    }
    .top-search {
        width: 100%;
        min-width: 0;
    }
    .main-nav {
        display: none !important;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow: visible;
        background: #ffffff;
        border-bottom: 0;
        box-shadow: 0 14px 26px rgba(8,39,28,.14);
    }
    .main-nav > a,
    .nav-drop > a {
        width: 100%;
        white-space: normal;
        padding: 14px 18px;
        font-size: 16px;
        border-bottom: 1px solid #eef2ef;
    }
    .nav-drop {
        width: 100%;
    }
    .drop-menu {
        display: block !important;
        position: static;
        min-width: 0;
        width: 100%;
        border: 0;
        box-shadow: none;
        border-radius: 0;
        background: #f6f8f5;
    }
    .drop-menu a {
        display: block;
        padding: 12px 18px 12px 34px;
        border-bottom: 1px solid #e5ece7;
    }
}

/* V11 homepage, CMS and utility pages */
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section-title.centered { display: block; text-align: center; max-width: 780px; margin: 0 auto 26px; }
.home-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(2,38,30,.88), rgba(6,78,54,.74)),
        radial-gradient(circle at 80% 35%, rgba(212,166,51,.24), transparent 30%),
        linear-gradient(135deg, #052e23, #07593c);
}
.home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 130px;
    background: linear-gradient(0deg, rgba(0,0,0,.18), transparent);
}
.home-hero-content {
    width: min(1180px, 92vw);
    margin: auto;
    color: #fff;
    position: relative;
    z-index: 2;
    padding: 70px 0;
}
.home-hero-content h1 {
    max-width: 780px;
    margin: 0 0 12px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.02;
}
.home-hero-content p {
    max-width: 680px;
    color: #f7df8a;
    font-size: clamp(18px, 2vw, 24px);
    margin-bottom: 26px;
}
.home-feature-grid { margin-top: 0 !important; }
.home-feature-card { color: var(--ink); text-align: center; min-height: 250px; }
.home-feature-card .icon { margin: 0 auto 14px; border-radius: 16px; width: 68px; height: 68px; font-size: 34px; }
.home-feature-card p { color: #334155; }
.card-link { color: var(--green); font-weight: 800; margin-top: auto; }
.popular-card { color: var(--ink); overflow: hidden; padding: 0; }
.popular-card h3, .popular-card p, .popular-card .card-link { margin-left: 18px; margin-right: 18px; }
.popular-card .card-link { display: inline-block; margin-bottom: 18px; }
.popular-image {
    height: 150px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #064e36, #0b6b49 55%, #d4a633);
    color: white;
    font-size: 52px;
}
.daily-verse-panel {
    display: grid;
    grid-template-columns: 110px 180px 1fr;
    gap: 24px;
    align-items: center;
    background:
        linear-gradient(100deg, rgba(6,78,54,.98), rgba(6,78,54,.92)),
        radial-gradient(circle at 90% 30%, rgba(212,166,51,.16), transparent 26%);
    border-radius: 12px;
    padding: 24px 32px;
    color: white;
    box-shadow: var(--shadow);
}
.daily-verse-panel.small-panel { margin-bottom: 22px; }
.daily-icon { font-size: 48px; display: grid; place-items: center; border-right: 1px solid rgba(255,255,255,.28); min-height: 80px; }
.daily-label { font: 800 22px Arial, sans-serif; }
.daily-content { text-align: center; }
.daily-arabic { font-size: 28px; line-height: 1.8; direction: rtl; }
.daily-translation { color: #fff7d6; font-size: 18px; }
.daily-reference { color: #f2d875; margin-top: 6px; }
.quick-title { text-align: center; margin: 28px 0 18px; }
.quick-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.quick-links a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 18px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(8,39,28,.05);
}
.quick-links a span { font-size: 20px; }
.rich-footer { display: block; padding: 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    width: min(1220px, 92vw);
    margin: auto;
    padding: 42px 0;
}
.footer-logo-line { display: flex; gap: 12px; align-items: center; }
.footer-logo-line img { width: 58px; height: 46px; object-fit: contain; background: white; border-radius: 7px; padding: 4px; }
.footer-logo-line strong { display: block; font-size: 26px; }
.footer-logo-line small { display: block; color: #f6df8f; }
.footer-grid h4 { margin: 0 0 12px; color: #f6df8f; }
.footer-links.stacked { display: grid; gap: 8px; }
.footer-links.stacked a { margin: 0; color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); text-align: center; padding: 15px; color: #e5f4ec; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-form-grid .span-2 { grid-column: span 2; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.arabic-text {
    direction: rtl;
    font-family: "Traditional Arabic", "Amiri", "Scheherazade New", "Noto Naskh Arabic", "Arial", sans-serif;
    font-size: 26px;
    line-height: 1.8;
    color: var(--green);
}
.names-grid .name-card { text-align: center; }
.quiz-options { display: grid; gap: 12px; }
.quiz-options label { background: #f8faf8; border: 1px solid var(--line); padding: 12px; border-radius: 8px; }
.big-time { font-size: 34px; font-weight: 800; margin: 0; color: var(--green); }
.qibla-box { text-align: center; }
.qibla-compass {
    width: 180px;
    height: 180px;
    border: 8px solid #e8f4ed;
    border-radius: 50%;
    margin: 20px auto;
    display: grid;
    place-items: center;
    background: white;
    box-shadow: var(--shadow);
}
.qibla-compass span { display: block; font-size: 90px; color: var(--green); transform-origin: center center; }
.highlight-row td { background: #fff7d6; }
.contact-info-card { background: linear-gradient(135deg, #ffffff, #f4faf6); }

@media (max-width: 1100px) {
    .grid.features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .home-hero { min-height: 360px; }
    .home-hero-content { padding: 48px 0; text-align: center; }
    .grid.features, .grid.four { grid-template-columns: 1fr; }
    .daily-verse-panel { grid-template-columns: 1fr; text-align: center; gap: 10px; padding: 22px 18px; }
    .daily-icon { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.28); padding-bottom: 12px; }
    .daily-arabic { font-size: 24px; }
    .quick-links { display: grid; grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-logo-line { justify-content: center; }
    .admin-form-grid { grid-template-columns: 1fr; }
    .admin-form-grid .span-2 { grid-column: span 1; }
    .popular-image { height: 125px; }
}

/* V12 homepage image cards, quick-link modals and Qibla improvements */
.home-hero {
    background-image:
        linear-gradient(90deg, rgba(2,38,30,.92) 0%, rgba(2,38,30,.82) 38%, rgba(2,38,30,.18) 76%),
        var(--hero-bg),
        linear-gradient(135deg, #052e23, #07593c) !important;
    background-size: cover, cover, cover !important;
    background-position: center, right center, center !important;
}
.image-feature-card {
    overflow: hidden;
    padding: 0;
    text-align: left;
    border-radius: 12px;
    min-height: 310px;
}
.feature-image {
    height: 118px;
    overflow: hidden;
    background: linear-gradient(135deg, #064e36, #d4a633);
}
.feature-image img,
.popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .28s ease;
}
.image-feature-card:hover .feature-image img,
.image-popular-card:hover .popular-image img {
    transform: scale(1.045);
}
.feature-card-body {
    padding: 18px;
    display: grid;
    gap: 8px;
}
.feature-card-body h3,
.feature-card-body p {
    margin: 0;
}
.feature-card-body p {
    color: #334155;
}
.image-feature-card .icon {
    margin: 18px auto 8px;
}
.image-popular-card {
    border-radius: 12px;
}
.popular-image {
    height: 165px;
    overflow: hidden;
    background: linear-gradient(135deg, #064e36, #0b6b49 55%, #d4a633);
}
.quick-links a,
.quick-link-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 18px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(8,39,28,.05);
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}
.quick-links a:hover,
.quick-link-button:hover {
    color: var(--green-2);
    transform: translateY(-1px);
}
.quick-links a span,
.quick-link-button span { font-size: 20px; }
.iq-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 22px;
}
.iq-modal.is-open { display: flex; }
.iq-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 18, 12, .64);
    backdrop-filter: blur(3px);
}
.iq-modal-card {
    position: relative;
    width: min(680px, 96vw);
    max-height: min(760px, 90vh);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 30px 80px rgba(0,0,0,.25);
    border: 1px solid rgba(212,166,51,.25);
    text-align: center;
}
.iq-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #eef5ef;
    color: var(--green);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.modal-kicker {
    display: inline-block;
    color: var(--gold);
    font: 800 12px Arial, sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.modal-arabic {
    direction: rtl;
    color: var(--green);
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.9;
    margin: 12px 0;
}
.modal-translation {
    font-size: 20px;
    color: #334155;
}
.modal-reference {
    color: var(--gold);
    font-weight: 800;
}
.modal-quiz-options {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    text-align: left;
}
.modal-quiz-options div {
    background: #f6f8f5;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 12px 14px;
}
body.modal-open { overflow: hidden; }
.qibla-layout {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 22px;
    align-items: start;
}
.qibla-box { text-align: center; }
.qibla-compass {
    position: relative;
    width: 220px;
    height: 220px;
    border: 10px solid #e8f4ed;
    border-radius: 50%;
    margin: 18px auto;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, #fff 0%, #fff 58%, #f6f8f5 59%, #f6f8f5 100%);
    box-shadow: var(--shadow);
}
.compass-label {
    position: absolute;
    font: 800 13px Arial, sans-serif;
    color: var(--muted);
}
.compass-label.n { top: 9px; left: 50%; transform: translateX(-50%); }
.compass-label.e { right: 12px; top: 50%; transform: translateY(-50%); }
.compass-label.s { bottom: 9px; left: 50%; transform: translateX(-50%); }
.compass-label.w { left: 12px; top: 50%; transform: translateY(-50%); }
.qibla-arrow {
    width: 54px;
    height: 94px;
    transform-origin: 50% 50%;
    transition: transform .35s ease;
    filter: drop-shadow(0 8px 10px rgba(0,0,0,.18));
}
.qibla-arrow::before {
    content: "";
    display: block;
    margin: 0 auto;
    width: 0;
    height: 0;
    border-left: 27px solid transparent;
    border-right: 27px solid transparent;
    border-bottom: 64px solid var(--green);
}
.qibla-arrow::after {
    content: "";
    display: block;
    margin: -4px auto 0;
    width: 16px;
    height: 40px;
    background: var(--gold);
    border-radius: 0 0 999px 999px;
}
.qibla-location-box {
    background: #f8faf8;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
    margin-top: 16px;
    text-align: left;
}
.qibla-location-box strong { color: var(--green); }
.qibla-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 14px 0;
}
.qibla-form {
    margin-top: 0;
}
.qibla-help {
    color: var(--muted);
    font-size: 14px;
}
@media (max-width: 900px) {
    .qibla-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .feature-image { height: 160px; }
    .popular-image { height: 180px; }
    .iq-modal-card { padding: 26px 18px; }
    .qibla-compass { width: 190px; height: 190px; }
    .quick-link-button { justify-content: center; }
}

/* V14 fixes: stronger visible hero image, quiz answer reveal, and admin-safe refresh */
.home-hero {
    background-repeat: no-repeat !important;
    background-color: #052e23;
}
.home-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 45%, rgba(212,166,51,.13), transparent 32%),
        linear-gradient(90deg, rgba(2,38,30,.06), rgba(2,38,30,.02));
    pointer-events: none;
    z-index: 1;
}
.quiz-choice-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    text-align: left;
}
.quiz-choice {
    display: block;
    width: 100%;
    background: #f6f8f5;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 13px 15px;
    color: var(--ink);
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.quiz-choice:hover,
.quiz-choice:focus {
    border-color: var(--green-2);
    background: #eef7f0;
    transform: translateY(-1px);
    outline: 0;
}
.quiz-choice.is-correct {
    border-color: #15945d;
    background: #e9f8ef;
}
.quiz-choice.is-wrong {
    border-color: #b84b4b;
    background: #fff0f0;
}
.quiz-answer.is-hidden {
    display: none;
}
.quiz-feedback {
    margin: 8px 0 0;
    font-weight: 800;
    color: var(--green);
}
@media (max-width: 760px) {
    .home-hero {
        background-position: center, center center, center !important;
    }
}

/* V15 daily content library polish */
.muted-line {
    color: var(--muted);
    font-size: 14px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(8,39,28,.05);
}
.stat-card strong {
    display: block;
    font-size: 28px;
    color: var(--green);
    line-height: 1;
}
.stat-card span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 700;
}
@media (max-width: 700px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* V33 admin maintenance dashboard */
.admin-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.admin-page-head h1 {
    margin-bottom: 4px;
}
.header-actions.compact {
    flex: 0 0 auto;
}
.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}
.metric-card {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 16px;
    color: var(--ink);
    box-shadow: 0 8px 22px rgba(10,37,28,.06);
}
.metric-card:hover {
    border-color: rgba(6,78,54,.35);
    color: var(--ink);
    transform: translateY(-1px);
}
.metric-card span,
.metric-card small {
    display: block;
}
.metric-card span {
    color: var(--green);
    font-weight: 800;
}
.metric-card strong {
    display: block;
    margin: 6px 0 2px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1;
}
.metric-card small {
    color: var(--muted);
    line-height: 1.35;
}
.health-list {
    display: grid;
    gap: 10px;
}
.health-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-left-width: 5px;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
}
.health-item.ok {
    border-left-color: #0b7a4b;
}
.health-item.warn {
    border-left-color: #d4a633;
    background: #fffaf0;
}
.health-item strong,
.health-item span {
    display: block;
}
.health-item span {
    color: var(--muted);
    line-height: 1.45;
}
.health-item a {
    font-weight: 800;
}
.task-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.task-card {
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    padding: 16px;
}
.task-card h3 {
    margin-top: 0;
}
.task-card p {
    color: var(--muted);
    min-height: 54px;
}
.activity-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.activity-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 12px 14px;
}
.activity-grid strong,
.activity-grid span {
    display: block;
}
.activity-grid strong {
    color: var(--green);
}
.activity-grid span {
    color: var(--muted);
    word-break: break-word;
}
@media (max-width: 1100px) {
    .dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .admin-page-head {
        display: grid;
    }
    .header-actions.compact {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }
    .dashboard-metrics,
    .task-grid,
    .activity-grid {
        grid-template-columns: 1fr;
    }
    .health-item {
        grid-template-columns: 1fr;
    }
}

/* V34 admin authentication helpers */
.auth-panel {
    max-width: 560px;
    margin: auto;
}
.auth-links {
    margin: 14px 0 0;
}
.auth-links a {
    font-weight: 800;
}

/* V35 operations/security admin tools */
.inline-form {
    display: inline;
    margin-left: 8px;
}
.inline-form button {
    border: 0;
    background: transparent;
    color: var(--green-2);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}
.status-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 9px;
    font: 800 12px Arial, sans-serif;
    letter-spacing: .03em;
}
.status-pill.ok {
    background: #e9f8ef;
    color: #087245;
}
.status-pill.warn {
    background: #fff4d6;
    color: #8a6100;
}

/* V40 mobile fixed bottom navigation */
.mobile-bottom-nav,
.mobile-more-check,
.mobile-more-backdrop,
.mobile-more-sheet {
    display: none;
}

@media (max-width: 760px) {
    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }
    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: center;
        min-height: 70px;
        padding: 8px 8px max(8px, env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .96);
        border: 1px solid rgba(219, 228, 223, .95);
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 22px 22px 0 0;
        box-shadow: 0 18px 42px rgba(8, 39, 28, .23);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
    .mobile-bottom-link {
        display: grid;
        place-items: center;
        gap: 4px;
        min-width: 0;
        min-height: 54px;
        border-radius: 16px;
        color: var(--green);
        font: 800 12px Arial, sans-serif;
        line-height: 1.1;
        text-align: center;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-bottom-link:hover,
    .mobile-bottom-link:focus {
        color: var(--green);
        background: #eef7f0;
    }
    .mobile-bottom-link.is-active {
        color: #9b6b00;
        background: #fff6dd;
    }
    .mobile-bottom-link svg {
        width: 25px;
        height: 25px;
        display: block;
        color: currentColor;
    }
    .mobile-bottom-link svg path,
    .mobile-bottom-link svg circle {
        fill: currentColor;
    }
    .mobile-bottom-link span {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .mobile-more-check {
        position: fixed;
        width: 1px;
        height: 1px;
        opacity: 0;
        pointer-events: none;
    }
    .mobile-more-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1190;
        background: rgba(5, 25, 18, .36);
    }
    .mobile-more-sheet {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(78px + env(safe-area-inset-bottom));
        z-index: 1210;
        padding: 16px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 22px;
        box-shadow: 0 20px 48px rgba(8, 39, 28, .25);
        transform: translateY(18px);
        opacity: 0;
        pointer-events: none;
        transition: transform .18s ease, opacity .18s ease;
    }
    .mobile-more-check:checked ~ .mobile-more-backdrop {
        display: block;
    }
    .mobile-more-check:checked ~ .mobile-more-sheet {
        display: block;
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .mobile-more-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 12px;
    }
    .mobile-more-head strong {
        font-size: 20px;
        color: var(--ink);
    }
    .mobile-more-head label {
        color: var(--green);
        font: 800 14px Arial, sans-serif;
        cursor: pointer;
    }
    .mobile-more-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .mobile-more-grid a {
        display: block;
        padding: 12px 13px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #f8faf8;
        color: var(--ink);
        font: 800 14px Arial, sans-serif;
    }
    .mobile-more-grid a.is-active {
        border-color: rgba(212, 166, 51, .7);
        background: #fff6dd;
        color: #8a6100;
    }
}

@media (max-width: 380px) {
    .mobile-bottom-nav {
        padding-left: 5px;
        padding-right: 5px;
    }
    .mobile-bottom-link {
        font-size: 11px;
    }
    .mobile-bottom-link svg {
        width: 23px;
        height: 23px;
    }
}

.media-resume-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 0;
    margin-top: 10px;
    color: var(--muted);
    font: 700 14px Arial, sans-serif;
}

.media-resume-note:empty {
    display: none;
}

.media-resume-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #eef7f0;
    color: var(--ink);
}

.media-resume-note button {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--green);
    color: #fff;
    font: 800 13px Arial, sans-serif;
    cursor: pointer;
}

.media-resume-note button.media-resume-clear {
    background: #edf3ef;
    color: var(--green);
}

.account-links {
    display: flex;
    align-items: center;
    white-space: nowrap;
    min-width: 0;
}

.account-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    max-width: 220px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    color: #fff;
    font: 800 14px Arial, sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-progress-note {
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-left: 4px solid #d4a633;
    border-radius: 8px;
    background: #fffdf5;
    color: var(--ink);
    line-height: 1.55;
}

.account-progress-note a {
    color: var(--green);
    font-weight: 800;
}

.auth-panel {
    max-width: 620px;
    margin: 0 auto;
}

.auth-panel form p {
    margin: 18px 0 0;
}

.auth-panel form .btn {
    min-width: 120px;
    text-align: center;
}

.inline-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 700;
    color: var(--ink);
}

.inline-check input {
    width: auto;
    margin-top: 6px;
}

.saved-progress-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.saved-progress-card h3 {
    margin: 10px 0;
}

.compact-title {
    align-items: center;
    gap: 16px;
}

.admin-progress-list {
    margin-top: 16px;
}

.admin-users-panel,
.admin-user-detail-panel {
    margin-bottom: 24px;
}

.admin-user-search {
    margin-bottom: 20px;
}

.admin-user-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.admin-users-table-wrap {
    max-width: 100%;
}

.admin-users-table th,
.admin-users-table td {
    white-space: nowrap;
}

.admin-users-table td:nth-child(1),
.admin-users-table td:nth-child(2) {
    white-space: normal;
    min-width: 180px;
}

.admin-users-table tr.is-selected td {
    background: #fff9e7;
}

.admin-user-detail-card {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(320px, 2fr);
    gap: 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
    margin-bottom: 24px;
}

.admin-user-detail-card h3 {
    margin: 10px 0 6px;
}

.admin-user-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-user-meta strong,
.admin-user-meta span {
    display: block;
}

.admin-user-meta strong {
    color: var(--green);
}

.admin-user-meta span {
    color: var(--muted);
    word-break: break-word;
}

.admin-user-actions {
    grid-column: 1 / -1;
    margin-top: 0;
}

@media (max-width: 760px) {
    .account-links {
        display: flex;
    }

    .account-links a {
        min-height: 48px;
        max-width: 116px;
        padding: 0 12px;
        font-size: 13px;
    }

    .admin-user-search-row,
    .admin-user-detail-card,
    .admin-user-meta {
        grid-template-columns: 1fr;
    }

    .admin-user-search-row .btn {
        width: 100%;
        text-align: center;
    }
}

@media print {
    .mobile-bottom-nav,
    .mobile-more-backdrop,
    .mobile-more-sheet {
        display: none !important;
    }
}
