:root {
    --bg: #4b312b;
    --bg-deep: #3f2823;
    --card: #4a312b;
    --card-2: #5a3c33;
    --ink: #fff4e8;
    --muted: #e3c398;
    --line: rgba(34, 17, 12, 0.35);
    --line-soft: rgba(255,255,255,0.08);
    --gold: #d6a117;
    --gold-dark: #b78713;
    --gold-text: #22150e;
    --moss: #5a7d5a;
    --danger: #b3261e;
    --shadow: 0 12px 30px rgba(0,0,0,0.16);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: Georgia, serif;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1280px, calc(100% - 64px));
    margin: 0 auto;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, #4d312b 0%, #4a2f29 100%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
}

.main-nav a {
    color: #f0dcb8;
    transition: 0.2s ease;
}

.main-nav a:hover {
    color: var(--gold);
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-form input {
    width: 320px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(34,17,12,0.3);
    background: rgba(74,47,41,0.7);
    color: var(--ink);
    padding: 0 18px;
    outline: none;
}

.search-form input::placeholder {
    color: #d5b88c;
}

.guest-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.login-link {
    color: #fff4e8;
    font-size: 15px;
}

.join-btn {
    background: var(--gold);
    color: var(--gold-text);
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.2s ease;
}

.join-btn:hover {
    background: #e6b325;
    transform: translateY(-1px);
}

.profile-menu {
    position: relative;
}

.profile-trigger {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: var(--gold);
    color: #23150e;
    font-weight: 700;
    cursor: pointer;
}

.profile-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    width: 225px;
    background: #55382f;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: none;
}

.profile-dropdown.show {
    display: block;
}

.profile-top {
    padding: 14px 14px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.profile-top strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.profile-top span {
    font-size: 14px;
    color: var(--muted);
}

.profile-dropdown a {
    display: block;
    padding: 13px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 15px;
}

.profile-dropdown a:hover {
    background: rgba(255,255,255,0.04);
}

.profile-dropdown .logout-link {
    color: #e44334;
    border-bottom: none;
}

/* GENERAL BUTTONS */
.primary-btn,
.secondary-btn,
.small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s ease;
}

.primary-btn {
    background: var(--gold);
    color: var(--gold-text);
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
}

.primary-btn:hover {
    background: #e6b325;
    transform: translateY(-1px);
}

.secondary-btn {
    background: rgba(255,255,255,0.05);
    color: var(--ink);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 12px 20px;
    border-radius: 14px;
}

.small-btn {
    height: 40px;
    padding: 0 16px;
    background: rgba(255,255,255,0.05);
    color: var(--ink);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

/* AUTH */
.auth-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card {
    width: min(450px, 100%);
    background: #4f352e;
    border: 1px solid rgba(34,17,12,0.35);
    border-radius: 22px;
    padding: 34px 32px;
    box-shadow: var(--shadow);
}

.auth-card h1 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 52px;
    line-height: 1.08;
}

.auth-card p {
    text-align: center;
    color: var(--muted);
    margin: 0 0 22px;
}

.auth-card form {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.auth-card label {
    color: #fff0da;
    font-size: 15px;
}

.auth-card input,
.auth-card select {
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(34,17,12,0.35);
    background: #5a3c33;
    color: #fff5ea;
    padding: 0 14px;
    outline: none;
}

.full-btn {
    width: 100%;
    margin-top: 10px;
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 14px;
}

.alert.error {
    background: rgba(179,38,30,0.18);
    color: #ffd5d1;
    border: 1px solid rgba(179,38,30,0.4);
}

.alert.success {
    background: rgba(90,125,90,0.18);
    color: #ebf7e8;
    border: 1px solid rgba(90,125,90,0.4);
}

.auth-switch {
    margin-top: 20px;
}

.auth-switch a {
    color: var(--gold);
    font-weight: 700;
}

/* DASHBOARD */
.dashboard-page {
    min-height: calc(100vh - 80px);
    padding: 34px 0 40px;
}

.dashboard-header {
    margin-bottom: 22px;
}

.dashboard-header h1 {
    margin: 0 0 10px;
    font-size: 34px;
}

.dashboard-header p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.dashboard-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-tabs {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 26px;
    border: 1px solid rgba(34,17,12,0.35);
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    overflow: hidden;
}

.dashboard-tabs a,
.dashboard-tabs span {
    padding: 12px 18px;
    color: #f0dcb8;
    border-right: 1px solid rgba(255,255,255,0.05);
    font-size: 15px;
}

.dashboard-tabs .active {
    background: rgba(255,255,255,0.04);
    color: #fff8ee;
    font-weight: 700;
}

.dashboard-section {
    margin-top: 18px;
}

.dashboard-grid {
    display: grid;
    gap: 18px;
}

.dashboard-card {
    background: #4d332c;
    border: 1px solid rgba(34,17,12,0.35);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.story-dashboard-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    min-height: 170px;
}

.story-dashboard-cover {
    background: #2c1b17;
}

.story-dashboard-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-dashboard-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.story-dashboard-main {
    padding: 18px 18px 0;
}

.story-dashboard-main h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.story-dashboard-main p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 15px;
}

.story-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 12px;
}

.story-dashboard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: rgba(255,255,255,0.04);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.story-dashboard-links {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.story-dashboard-links a {
    color: #f0dcb8;
    font-size: 15px;
}

.story-dashboard-links a:hover {
    color: var(--gold);
}

.empty-dashboard-box {
    background: #4d332c;
    border: 1px solid rgba(34,17,12,0.35);
    border-radius: 18px;
    padding: 28px;
    color: var(--muted);
}

/* HOME */
.hero-slider {
    position: relative;
    height: 68vh;
    min-height: 420px;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,.08));
}

.hero-button {
    position: absolute;
    left: 50%;
    bottom: 86px;
    transform: translateX(-50%);
    z-index: 3;
}

.slider-dots {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
}

.dot.active {
    width: 30px;
    background: var(--gold);
}

.genres {
    padding: 42px 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}

.genres h2 {
    margin: 0 0 24px;
    font-size: 36px;
}

.genre-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.genre-list a {
    padding: 12px 24px;
    border-radius: 999px;
    background: rgba(90, 125, 90, .25);
    border: 1px solid rgba(143, 174, 143, .45);
    color: #f3f7f1;
    transition: .25s ease;
}

.genre-list a:hover {
    background: #5A7D5A;
    color: #fff;
    border-color: #C6E0C6;
    box-shadow: 0 0 22px rgba(90,125,90,.65);
    transform: translateY(-2px);
}

.story-row {
    padding: 38px 0;
}

.row-head {
    width: min(1280px, calc(100% - 64px));
    margin: 0 auto 18px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
}

.row-head h2 {
    margin: 0;
    font-size: 34px;
}

.row-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

.row-head a {
    color: var(--gold);
}

.story-scroll {
    width: min(1280px, calc(100% - 64px));
    margin: 0 auto;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 6px 0 14px;
}

.story-card {
    width: 180px;
    flex: 0 0 180px;
}

.cover-wrap {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    background: #2e1d18;
    transition: .25s ease;
}

.story-card:hover .cover-wrap {
    box-shadow: 0 0 24px rgba(224,169,20,.4);
    transform: translateY(-4px);
}

.cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card-badges span {
    background: rgba(255,246,232,.92);
    color: #23140f;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
}

.card-badges .mature {
    background: #b91c1c;
    color: #fff;
}

.story-card h3 {
    margin: 10px 0 4px;
    font-size: 17px;
}

.story-card p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.story-meta {
    margin-top: 7px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gold);
}

.join-cta {
    margin: 38px auto;
    padding: 64px 24px;
    text-align: center;
    background: #7b4b28;
    color: #fff7e8;
}

.join-cta h2 {
    font-size: 42px;
    margin: 12px 0;
}

.join-cta p {
    max-width: 760px;
    margin: 10px auto 22px;
    color: #ffe4b7;
    line-height: 1.7;
}

/* FOOTER */
.site-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
    text-align: center;
    color: var(--muted);
    background: var(--bg-deep);
    margin-top: 36px;
}

@media (max-width: 900px) {
    .header-inner {
        padding: 12px 0;
        flex-wrap: wrap;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .search-form input {
        width: 220px;
    }

    .story-dashboard-card {
        grid-template-columns: 1fr;
    }

    .story-dashboard-cover {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .container,
    .row-head,
    .story-scroll {
        width: min(100%, calc(100% - 28px));
    }

    .main-nav {
        gap: 16px;
        font-size: 14px;
        flex-wrap: wrap;
    }

    .search-form input {
        width: 170px;
    }

    .dashboard-header h1,
    .row-head h2,
    .genres h2 {
        font-size: 28px;
    }
}
/* ===============================
   PHASE 1 — WRITER DASHBOARD
================================ */

.writer-page {
    min-height: calc(100vh - 80px);
    padding: 36px 0 60px;
    background:
        radial-gradient(circle at top left, rgba(214,161,23,0.08), transparent 32%),
        radial-gradient(circle at top right, rgba(90,125,90,0.08), transparent 28%),
        var(--bg);
}

.writer-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.writer-hero .eyebrow {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.writer-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    margin: 0 0 10px;
}

.writer-hero p {
    color: var(--muted);
    font-size: 18px;
    margin: 0;
}

.writer-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.writer-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.writer-stat-card {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.writer-stat-card span {
    color: var(--muted);
    font-size: 14px;
}

.writer-stat-card strong {
    display: block;
    font-size: 32px;
    margin-top: 8px;
    color: var(--ink);
}

.writer-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    margin-bottom: 26px;
}

.writer-tabs a {
    white-space: nowrap;
    padding: 10px 14px;
    color: var(--muted);
    border-radius: 12px;
    font-size: 14px;
    transition: 0.2s ease;
}

.writer-tabs a:hover,
.writer-tabs a.active {
    background: rgba(214,161,23,0.13);
    color: var(--gold);
}

.writer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.writer-panel {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.12);
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.panel-head h2,
.writer-panel h2 {
    margin: 0 0 6px;
    font-size: 26px;
}

.panel-head p {
    margin: 0;
    color: var(--muted);
}

.small-gold-btn {
    background: var(--gold);
    color: var(--gold-text);
    padding: 10px 15px;
    border-radius: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.writer-story-list {
    display: grid;
    gap: 16px;
}

.writer-story-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    background: rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    overflow: hidden;
}

.writer-story-cover {
    background: #261813;
    min-height: 176px;
}

.writer-story-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.writer-story-info {
    padding: 18px;
}

.story-title-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.story-title-row h3 {
    margin: 0 0 8px;
    font-size: 21px;
}

.story-title-row p {
    margin: 0;
    color: var(--muted);
}

.status-pill {
    text-transform: capitalize;
    white-space: nowrap;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: var(--ink);
}

.status-pill.clean {
    background: rgba(90,125,90,0.28);
    color: #dff0df;
}

.status-pill.needs_revision,
.status-pill.pending_review,
.status-pill.writer_response_needed {
    background: rgba(214,161,23,0.18);
    color: #ffe2a6;
}

.status-pill.banned,
.status-pill.rejected,
.status-pill.hidden_pending_review {
    background: rgba(179,38,30,0.22);
    color: #ffd2cd;
}

.story-mini-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.health-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    margin-bottom: 16px;
}

.health-bar div {
    height: 100%;
    background: linear-gradient(90deg, var(--moss), var(--gold));
    border-radius: inherit;
}

.writer-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.writer-card-actions a {
    color: var(--gold);
    font-size: 14px;
}

.writer-card-actions a:hover {
    text-decoration: underline;
}

.writer-sidebar {
    display: grid;
    gap: 18px;
}

.small-panel {
    padding: 18px;
}

.checklist,
.resource-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
}

.resource-list a,
.text-link {
    color: var(--gold);
}

.muted-text {
    color: var(--muted);
    line-height: 1.6;
}

.mini-message {
    padding: 12px;
    border-radius: 14px;
    background: rgba(0,0,0,0.12);
    margin: 12px 0;
}

.mini-message strong {
    display: block;
    margin-bottom: 6px;
}

.mini-message p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.empty-writer-box {
    padding: 34px;
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 18px;
    text-align: center;
    color: var(--muted);
}

.empty-writer-box h3 {
    color: var(--ink);
    font-size: 24px;
    margin: 0 0 10px;
}

.empty-writer-box p {
    margin-bottom: 20px;
}

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

    .writer-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .writer-stat-grid {
        grid-template-columns: 1fr;
    }

    .writer-story-card {
        grid-template-columns: 1fr;
    }

    .writer-story-cover {
        height: 260px;
    }

    .story-title-row {
        flex-direction: column;
    }
}
/* ===============================
   PHASE 1B — STORY FORM
================================ */

.writer-hero.compact h1 {
    font-size: clamp(34px, 4vw, 48px);
}

.writer-form {
    display: grid;
    gap: 18px;
}

.form-row {
    display: grid;
    gap: 8px;
}

.form-row label {
    color: var(--ink);
    font-weight: 700;
    font-size: 15px;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.13);
    color: var(--ink);
    border-radius: 14px;
    padding: 13px 14px;
    font-family: inherit;
    outline: none;
}

.form-row textarea {
    resize: vertical;
    line-height: 1.6;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: rgba(214,161,23,0.55);
    box-shadow: 0 0 0 3px rgba(214,161,23,0.12);
}

.form-row small {
    color: var(--muted);
    font-size: 13px;
}

.form-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.guideline-box {
    background: rgba(214,161,23,0.06);
    border: 1px solid rgba(214,161,23,0.18);
    border-radius: 18px;
    padding: 18px;
}

.guideline-box h3 {
    margin: 0 0 12px;
    color: var(--gold);
}

.guideline-box ul {
    margin: 0 0 16px;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.7;
}

.checkbox-line {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink);
    font-size: 14px;
}

.checkbox-line input {
    width: auto;
    margin-top: 4px;
}

@media (max-width: 740px) {
    .form-two {
        grid-template-columns: 1fr;
    }
}
.writer-cover-preview {
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.08);
}

.writer-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-action-list {
    display: grid;
    gap: 10px;
}

.quick-action-list a {
    color: var(--gold);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.quick-action-list a:hover {
    text-decoration: underline;
}
/* ===============================
   PHASE 1D — CHAPTER MANAGER
================================ */

.editor-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: rgba(0,0,0,0.13);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 10px;
}

.editor-toolbar button {
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.05);
    color: var(--ink);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
}

.editor-toolbar button:hover {
    background: rgba(214,161,23,0.16);
    color: var(--gold);
}

.chapter-list {
    display: grid;
    gap: 14px;
}

.chapter-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    background: rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 18px;
}

.chapter-label {
    margin: 0 0 6px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
}

.chapter-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.chapter-warning {
    margin: 10px 0 0;
    color: #ffd2cd;
    font-size: 14px;
}

.chapter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    white-space: nowrap;
}

.chapter-actions a {
    color: var(--gold);
}

.chapter-actions a:hover {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .chapter-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ===============================
   CHAPTER READER / PREVIEW PAGE
================================ */

.chapter-page {
    min-height: calc(100vh - 80px);
    background: var(--bg);
}

.chapter-topbar {
    position: sticky;
    top: 58px;
    z-index: 20;
    background: rgba(63, 40, 35, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

.chapter-topbar-inner {
    min-height: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}

.chapter-topbar a {
    color: var(--gold);
}

.chapter-container {
    width: min(780px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 80px;
}

.content-warning-box {
    background: rgba(179,38,30,0.13);
    border: 1px solid rgba(179,38,30,0.32);
    color: #ffd5d1;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 40px;
}

.content-warning-box p {
    margin: 8px 0 0;
    color: #ffd5d1;
}

.chapter-header {
    text-align: center;
    margin-bottom: 54px;
}

.chapter-header p {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 13px;
    margin: 0 0 16px;
}

.chapter-header h1 {
    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.05;
    margin: 0 0 14px;
}

.chapter-header span {
    color: var(--muted);
}

.chapter-content {
    font-size: 21px;
    line-height: 1.9;
    color: var(--ink);
}

.chapter-content p {
    margin: 0 0 1.4em;
}

.chapter-content blockquote {
    border-left: 4px solid var(--gold);
    margin: 28px 0;
    padding: 14px 22px;
    background: rgba(255,255,255,0.04);
    color: #ffe7bd;
    border-radius: 0 14px 14px 0;
}

.chapter-content strong {
    font-weight: 700;
}

.chapter-content em {
    font-style: italic;
}

.author-note-box {
    margin-top: 52px;
    padding: 22px;
    border: 1px dashed rgba(255,255,255,0.16);
    border-radius: 18px;
    background: rgba(255,255,255,0.035);
}

.author-note-box strong {
    color: var(--gold);
}

.author-note-box p {
    color: var(--muted);
    line-height: 1.7;
}

.chapter-nav {
    margin-top: 70px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
/* ===============================
   PHASE 1E — CHARACTER PROFILES
================================ */

.character-list-panel {
    margin-top: 24px;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.character-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    background: rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    overflow: hidden;
    padding: 14px;
}

.character-image {
    width: 130px;
    height: 130px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.08);
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(214,161,23,0.28), rgba(90,125,90,0.28));
    color: var(--ink);
    font-size: 42px;
    font-weight: 700;
}

.character-info h3 {
    margin: 0 0 6px;
    font-size: 24px;
}

.character-role {
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(214,161,23,0.13);
    color: var(--gold);
    font-size: 13px;
}

.character-info p {
    color: var(--muted);
    line-height: 1.6;
}

.character-info blockquote {
    margin: 12px 0;
    padding: 10px 14px;
    border-left: 3px solid var(--gold);
    background: rgba(255,255,255,0.04);
    color: #ffe7bd;
    border-radius: 0 12px 12px 0;
}

.character-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 12px;
}

.character-actions a {
    color: var(--gold);
}

.character-actions button {
    background: transparent;
    border: none;
    color: #ffb4ac;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.character-actions a:hover,
.character-actions button:hover {
    text-decoration: underline;
}

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

@media (max-width: 560px) {
    .character-card {
        grid-template-columns: 1fr;
    }

    .character-image {
        width: 100%;
        height: 240px;
    }
}
/* ===============================
   PHASE 1F — STORY BIBLE
================================ */

.bible-list-panel {
    margin-top: 24px;
}

.bible-note-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.bible-note-card {
    background: rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 18px;
}

.bible-note-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.bible-note-top span {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(214,161,23,0.13);
    color: var(--gold);
    font-size: 13px;
}

.bible-note-top small {
    color: var(--muted);
}

.bible-note-card h3 {
    margin: 0 0 10px;
    font-size: 23px;
}

.bible-note-card p {
    color: var(--muted);
    line-height: 1.7;
}

@media (max-width: 850px) {
    .bible-note-grid {
        grid-template-columns: 1fr;
    }
}
/* ===============================
   PHASE 1G — WRITER GUIDELINES
================================ */

.guidelines-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.guidelines-nav {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 8px;
}

.guidelines-nav h2 {
    margin-bottom: 10px;
}

.guidelines-nav a {
    display: block;
    padding: 10px 12px;
    color: var(--muted);
    border-radius: 12px;
    transition: 0.2s ease;
}

.guidelines-nav a:hover {
    background: rgba(214,161,23,0.12);
    color: var(--gold);
}

.guidelines-content {
    display: grid;
    gap: 20px;
}

.guideline-section h2 {
    margin: 0 0 12px;
    font-size: 30px;
}

.guideline-section h3 {
    margin: 0 0 10px;
}

.guideline-section p {
    color: var(--muted);
    line-height: 1.75;
}

.guideline-section ul,
.guideline-section ol {
    color: var(--muted);
    line-height: 1.8;
    padding-left: 22px;
}

.guideline-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.rule-card,
.tip-box {
    background: rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 18px;
}

.rule-card h3,
.tip-box h3 {
    color: var(--gold);
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 18px 0;
}

.spec-grid div {
    background: rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 14px;
}

.spec-grid strong {
    display: block;
    color: var(--gold);
    margin-bottom: 6px;
}

.spec-grid span {
    color: var(--muted);
    font-size: 14px;
}

.example-text {
    background: rgba(214,161,23,0.08);
    border: 1px solid rgba(214,161,23,0.18);
    padding: 16px;
    border-radius: 16px;
    color: #ffe7bd !important;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.tag-cloud span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(90,125,90,0.22);
    border: 1px solid rgba(143,174,143,0.35);
    color: #f3f7f1;
    font-size: 14px;
}

.warning-tags span {
    background: rgba(179,38,30,0.14);
    border-color: rgba(179,38,30,0.32);
    color: #ffd5d1;
}

@media (max-width: 980px) {
    .guidelines-layout {
        grid-template-columns: 1fr;
    }

    .guidelines-nav {
        position: static;
    }

    .spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .guideline-two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .spec-grid {
        grid-template-columns: 1fr;
    }
}
/* ===============================
   PHASE 1H — WRITER STATS + MESSAGES
================================ */

.stats-story-list {
    display: grid;
    gap: 16px;
}

.stats-story-card {
    background: rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 18px;
}

.stats-story-card h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.stats-story-card p {
    margin: 0;
    color: var(--muted);
}

.stats-mini-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(90px, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.stats-mini-grid div {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 12px;
}

.stats-mini-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.stats-mini-grid strong {
    color: var(--ink);
    font-size: 20px;
}

.admin-message-list {
    display: grid;
    gap: 18px;
}

.admin-message-card {
    background: rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 18px;
}

.admin-message-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}

.admin-message-top small {
    color: var(--muted);
}

.message-type {
    display: inline-block;
    text-transform: capitalize;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: var(--ink);
    font-size: 13px;
}

.message-type.required_change {
    background: rgba(179,38,30,0.18);
    color: #ffd5d1;
}

.message-type.clarification_request {
    background: rgba(214,161,23,0.16);
    color: #ffe7bd;
}

.message-type.warning {
    background: rgba(179,38,30,0.22);
    color: #ffd5d1;
}

.message-type.general {
    background: rgba(90,125,90,0.22);
    color: #e0f2df;
}

.admin-message-card h3 {
    font-size: 24px;
    margin: 0 0 10px;
}

.message-body {
    color: var(--muted);
    line-height: 1.75;
}

.message-status-line {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.message-status-line span {
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--muted);
    font-size: 13px;
}

.reply-thread {
    margin-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 14px;
}

.reply-thread h4 {
    margin: 0 0 10px;
    color: var(--gold);
}

.reply-bubble {
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
}

.reply-bubble p {
    margin: 0 0 8px;
    color: var(--ink);
    line-height: 1.6;
}

.reply-bubble small {
    color: var(--muted);
}

.reply-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.reply-form textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.13);
    color: var(--ink);
    border-radius: 14px;
    padding: 13px 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
}

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

@media (max-width: 520px) {
    .stats-mini-grid {
        grid-template-columns: 1fr;
    }
}
/* ===============================
   PHASE 1I — STORY PREVIEW PAGE
================================ */

.story-preview-page {
    min-height: calc(100vh - 80px);
    background:
        radial-gradient(circle at top left, rgba(214,161,23,0.08), transparent 32%),
        radial-gradient(circle at top right, rgba(90,125,90,0.08), transparent 28%),
        var(--bg);
}

.story-hero-section {
    padding: 48px 0 34px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.story-hero-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.story-cover-large {
    aspect-ratio: 2 / 3;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

.story-cover-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-pill-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.story-pill-row span,
.draft-label {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(214,161,23,0.13);
    border: 1px solid rgba(214,161,23,0.22);
    color: var(--gold);
    font-size: 13px;
}

.story-pill-row .danger-pill,
.draft-label {
    background: rgba(179,38,30,0.17);
    border-color: rgba(179,38,30,0.32);
    color: #ffd5d1;
}

.story-hero-info h1 {
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1;
    margin: 0 0 12px;
}

.story-subtitle {
    color: #ffe7bd;
    font-size: 22px;
    margin: 0 0 14px;
}

.story-author {
    color: var(--muted);
    font-size: 18px;
}

.story-author strong {
    color: var(--ink);
}

.story-stats-line {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 18px 0;
    color: var(--muted);
    font-size: 14px;
}

.update-schedule {
    color: var(--muted);
}

.story-warning-box {
    margin: 18px 0;
    padding: 16px;
    border-radius: 16px;
    background: rgba(179,38,30,0.13);
    border: 1px solid rgba(179,38,30,0.32);
    color: #ffd5d1;
}

.story-warning-box p {
    margin: 8px 0 0;
}

.story-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.story-body-section {
    padding: 34px 0 70px;
}

.story-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: start;
}

.story-main-column,
.story-side-column {
    display: grid;
    gap: 22px;
}

.story-section-card h2 {
    margin-top: 0;
    font-size: 30px;
}

.story-hook {
    color: #ffe7bd;
    font-size: 19px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.story-description {
    color: var(--muted);
    line-height: 1.85;
}

.story-tags {
    margin-top: 22px;
}

.public-chapter-list {
    display: grid;
    gap: 12px;
}

.public-chapter-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    background: rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 16px;
}

.public-chapter-card p {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    margin: 0 0 6px;
}

.public-chapter-card h3 {
    margin: 0 0 6px;
    font-size: 21px;
}

.public-chapter-card small {
    display: block;
    color: #ffd5d1;
    margin-top: 8px;
}

.public-chapter-actions {
    display: flex;
    gap: 12px;
    white-space: nowrap;
}

.public-chapter-actions a {
    color: var(--gold);
}

.story-character-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.story-character-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    background: rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 14px;
}

.story-character-img {
    width: 92px;
    height: 92px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0,0,0,0.18);
}

.story-character-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-character-img div {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(214,161,23,0.28), rgba(90,125,90,0.28));
    font-size: 34px;
    font-weight: 700;
}

.story-character-card h3 {
    margin: 0 0 6px;
}

.story-character-card p {
    color: var(--gold);
    margin: 0 0 8px;
}

.story-character-card small {
    color: var(--muted);
    line-height: 1.5;
}

.story-character-card blockquote {
    margin: 10px 0 0;
    color: #ffe7bd;
    font-size: 14px;
    line-height: 1.5;
}

.author-mini {
    display: flex;
    gap: 12px;
    align-items: center;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--gold);
    color: var(--gold-text);
    font-weight: 800;
}

.author-mini h3 {
    margin: 0 0 4px;
}

.author-mini p {
    margin: 0;
    color: var(--muted);
}

.story-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
}

.story-info-list strong {
    color: var(--ink);
}

@media (max-width: 980px) {
    .story-hero-grid,
    .story-body-grid {
        grid-template-columns: 1fr;
    }

    .story-cover-large {
        width: 240px;
        max-width: 100%;
    }
}

@media (max-width: 680px) {
    .story-character-grid {
        grid-template-columns: 1fr;
    }

    .public-chapter-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ===============================
   PHASE 2A — READER DASHBOARD
================================ */

.reader-page {
    min-height: calc(100vh - 80px);
    padding: 36px 0 60px;
    background:
        radial-gradient(circle at top left, rgba(214,161,23,0.08), transparent 32%),
        radial-gradient(circle at top right, rgba(90,125,90,0.08), transparent 28%),
        var(--bg);
}

.reader-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.reader-hero .eyebrow {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.reader-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    margin: 0 0 10px;
}

.reader-hero p {
    color: var(--muted);
    font-size: 18px;
    margin: 0;
}

.reader-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.reader-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.reader-stat-card {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.reader-stat-card span {
    color: var(--muted);
    font-size: 14px;
}

.reader-stat-card strong {
    display: block;
    font-size: 32px;
    margin-top: 8px;
    color: var(--ink);
}

.reader-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    margin-bottom: 26px;
}

.reader-tabs a {
    white-space: nowrap;
    padding: 10px 14px;
    color: var(--muted);
    border-radius: 12px;
    font-size: 14px;
    transition: 0.2s ease;
}

.reader-tabs a:hover,
.reader-tabs a.active {
    background: rgba(214,161,23,0.13);
    color: var(--gold);
}

.reader-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.reader-main,
.reader-sidebar {
    display: grid;
    gap: 22px;
}

.reader-panel {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.12);
}

.reader-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.reader-story-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    background: rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 14px;
    transition: 0.2s ease;
}

.reader-story-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(214,161,23,0.18);
}

.reader-card-cover {
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0,0,0,0.18);
}

.reader-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reader-card-body h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.reader-card-body p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
}

.reader-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.reader-card-meta span {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(214,161,23,0.12);
    color: var(--gold);
    font-size: 12px;
}

.reader-progress-text {
    color: #ffe7bd !important;
}

.empty-reader-box {
    padding: 30px;
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
}

.empty-reader-box h3 {
    color: var(--ink);
    margin: 0 0 10px;
    font-size: 24px;
}

.empty-reader-box p {
    margin-bottom: 18px;
}

.reader-shelf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.reader-shelf-card {
    background: rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 18px;
    transition: 0.2s ease;
}

.reader-shelf-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(90,125,90,0.25);
}

.reader-shelf-card h3 {
    margin: 0 0 8px;
    color: var(--ink);
}

.reader-shelf-card p {
    margin: 0;
    color: var(--muted);
}

.reader-author-grid {
    display: grid;
    gap: 14px;
}

.reader-author-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 14px;
    background: rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 16px;
}

.reader-author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--gold);
    color: var(--gold-text);
    font-size: 22px;
    font-weight: 800;
}

.reader-author-card h3 {
    margin: 0 0 6px;
}

.reader-author-card p {
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.5;
}

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

    .reader-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .reader-card-grid,
    .reader-shelf-grid {
        grid-template-columns: 1fr;
    }

    .reader-story-card {
        grid-template-columns: 86px 1fr;
    }
}

@media (max-width: 540px) {
    .reader-stat-grid {
        grid-template-columns: 1fr;
    }
}
/* ===============================
   PHASE 2B — STORY READER ACTIONS
================================ */

.inline-action-form {
    display: inline-flex;
    margin: 0;
}

.inline-action-form button {
    font-family: inherit;
}

.story-reader-form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.story-reader-form label {
    color: var(--muted);
    font-size: 14px;
}

.story-reader-form select,
.story-reader-form input {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.13);
    color: var(--ink);
    border-radius: 12px;
    padding: 12px 13px;
    font-family: inherit;
    outline: none;
}

.shelf-create-form {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
/* ===============================
   PHASE 2C — READER SHELVES
================================ */

.shelf-nav-list {
    display: grid;
    gap: 8px;
}

.shelf-nav-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--muted);
    background: rgba(0,0,0,0.10);
    border: 1px solid rgba(255,255,255,0.06);
    transition: 0.2s ease;
}

.shelf-nav-list a:hover,
.shelf-nav-list a.active {
    background: rgba(214,161,23,0.13);
    color: var(--gold);
}

.shelf-nav-list small {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.06);
    color: var(--ink);
}

.danger-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: rgba(179,38,30,0.18);
    border: 1px solid rgba(179,38,30,0.34);
    color: #ffd5d1;
    padding: 12px 18px;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
}

.danger-btn:hover {
    background: rgba(179,38,30,0.26);
}

.small-danger-btn {
    border: 1px solid rgba(179,38,30,0.34);
    background: rgba(179,38,30,0.15);
    color: #ffd5d1;
    border-radius: 12px;
    padding: 9px 12px;
    cursor: pointer;
    font-family: inherit;
}

.small-danger-btn:hover {
    background: rgba(179,38,30,0.24);
}

.reader-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10px;
}

.reader-card-actions form {
    margin: 0;
}
/* ===============================
   BROWSE STORIES PAGE
================================ */

.browse-page {
    min-height: calc(100vh - 80px);
    padding: 36px 0 70px;
    background:
        radial-gradient(circle at top left, rgba(214,161,23,0.08), transparent 32%),
        radial-gradient(circle at top right, rgba(90,125,90,0.08), transparent 28%),
        var(--bg);
}

.browse-hero {
    margin-bottom: 24px;
}

.browse-hero .eyebrow {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.browse-hero h1 {
    font-size: clamp(38px, 6vw, 68px);
    margin: 0 0 10px;
    line-height: 1;
}

.browse-hero p {
    color: var(--muted);
    font-size: 18px;
    margin: 0;
}

.browse-filters {
    margin-bottom: 28px;
}

.browse-filter-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto auto;
    gap: 14px;
    align-items: end;
}

.browse-filter-form .form-row {
    gap: 6px;
}

.browse-filter-form label {
    color: var(--muted);
    font-size: 13px;
}

.browse-filter-form input,
.browse-filter-form select {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.13);
    color: var(--ink);
    border-radius: 12px;
    padding: 12px 13px;
    font-family: inherit;
    outline: none;
}

.browse-results {
    margin-top: 26px;
}

.browse-story-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.browse-story-card {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.25s ease;
}

.browse-story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 28px rgba(214,161,23,0.24);
}

.browse-cover {
    position: relative;
    aspect-ratio: 2 / 3;
    background: rgba(0,0,0,0.18);
}

.browse-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.browse-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    gap: 6px;
    justify-items: end;
}

.browse-badges span {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255,246,232,0.92);
    color: #23140f;
    font-size: 12px;
}

.browse-badges .mature {
    background: #b91c1c;
    color: #fff;
}

.browse-story-info {
    padding: 15px;
}

.browse-story-info h3 {
    margin: 0 0 6px;
    font-size: 21px;
    line-height: 1.2;
}

.browse-story-info p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
}

.browse-desc {
    line-height: 1.55;
}

.browse-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--gold);
    font-size: 13px;
    margin-top: 10px;
}

.browse-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.browse-tags span {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(90,125,90,0.22);
    color: #f3f7f1;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .browse-story-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .browse-filter-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .browse-story-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .browse-filter-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .browse-story-grid {
        grid-template-columns: 1fr;
    }
}
/* ===============================
   PHASE 2D-1 — STORY RATING
================================ */

.rating-form {
    margin-top: 14px;
}

.star-rating-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 6px 0 12px;
}

.star-option {
    cursor: pointer;
}

.star-option input {
    display: none;
}

.star-option span {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--gold);
    font-size: 24px;
    transition: 0.2s ease;
}

.star-option:hover span,
.star-option input:checked + span {
    background: rgba(214,161,23,0.18);
    box-shadow: 0 0 18px rgba(214,161,23,0.28);
    transform: translateY(-1px);
}
/* ===============================
   PHASE 2D-2 — CHAPTER VOTES + COMMENTS
================================ */

.compact-alert {
    padding-top: 20px;
    padding-bottom: 0;
}

.chapter-interactions {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.chapter-action-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.chapter-comment-count {
    color: var(--muted);
}

.chapter-comments-box {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 22px;
}

.chapter-comments-box h2 {
    margin: 0 0 18px;
    font-size: 30px;
}

.chapter-comment-form {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.chapter-comment-form textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.13);
    color: var(--ink);
    border-radius: 14px;
    padding: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    line-height: 1.6;
}

.chapter-comment-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.chapter-comment-card {
    background: rgba(0,0,0,0.13);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 16px;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.comment-meta strong {
    color: var(--gold);
}

.comment-meta span {
    color: var(--muted);
    font-size: 13px;
}

.chapter-comment-card p {
    margin: 0;
    color: var(--ink);
    line-height: 1.7;
}

.login-comment-box {
    background: rgba(214,161,23,0.07);
    border: 1px solid rgba(214,161,23,0.18);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
}

.login-comment-box p {
    color: var(--muted);
    margin-top: 0;
}
/* ===============================
   PHASE 2F — AUTHOR PROFILE PAGE
================================ */

.author-page {
    min-height: calc(100vh - 80px);
    padding: 36px 0 70px;
    background:
        radial-gradient(circle at top left, rgba(214,161,23,0.08), transparent 32%),
        radial-gradient(circle at top right, rgba(90,125,90,0.08), transparent 28%),
        var(--bg);
}

.author-hero {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 26px;
}

.author-avatar-large {
    width: 140px;
    height: 140px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(214,161,23,0.95), rgba(90,125,90,0.85));
    color: var(--gold-text);
    font-size: 58px;
    font-weight: 900;
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.author-hero-info .eyebrow {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.author-hero-info h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1;
    margin: 0 0 14px;
}

.author-bio {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
    max-width: 820px;
}

.author-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.author-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.author-stat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.author-stat-card span {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.author-stat-card strong {
    display: block;
    font-size: 31px;
    margin-top: 8px;
    color: var(--ink);
}

.author-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.author-main,
.author-sidebar {
    display: grid;
    gap: 22px;
}

.author-story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.author-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.author-badge-list span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(214,161,23,0.13);
    border: 1px solid rgba(214,161,23,0.22);
    color: var(--gold);
    font-size: 13px;
}

@media (max-width: 1050px) {
    .author-layout {
        grid-template-columns: 1fr;
    }

    .author-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .author-story-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .author-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .author-avatar-large {
        margin: 0 auto;
    }

    .author-actions {
        justify-content: center;
    }

    .author-stat-grid,
    .author-story-grid {
        grid-template-columns: 1fr;
    }
}
/* ===============================
   PHASE 2G — READER REPORTS
================================ */

.comment-report-link {
    display: inline-block;
    margin-top: 10px;
    color: #ffb4ac;
    font-size: 13px;
}

.comment-report-link:hover {
    text-decoration: underline;
}

.danger-btn.full-btn,
.secondary-btn.full-btn,
.primary-btn.full-btn {
    width: 100%;
}
/* ===============================
   PHASE 3 — ADMIN COMMAND CENTER
================================ */

.admin-page {
    min-height: calc(100vh - 80px);
    padding: 36px 0 70px;
    background:
        radial-gradient(circle at top left, rgba(214,161,23,0.08), transparent 32%),
        radial-gradient(circle at top right, rgba(179,38,30,0.08), transparent 28%),
        var(--bg);
}

.admin-hero {
    margin-bottom: 26px;
}

.admin-hero .eyebrow {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.admin-hero h1 {
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1;
    margin: 0 0 12px;
}

.admin-hero p {
    color: var(--muted);
    font-size: 18px;
    margin: 0;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 18px;
    transition: 0.2s ease;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(214,161,23,0.18);
}

.admin-stat-card span {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.admin-stat-card strong {
    display: block;
    font-size: 34px;
    margin-top: 8px;
}

.admin-stat-card small {
    display: block;
    color: var(--muted);
    margin-top: 6px;
}

.admin-stat-card.warning strong {
    color: #ffe7bd;
}

.admin-stat-card.danger strong {
    color: #ffb4ac;
}

.admin-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    margin-bottom: 26px;
}

.admin-nav a {
    white-space: nowrap;
    padding: 10px 14px;
    color: var(--muted);
    border-radius: 12px;
    font-size: 14px;
    transition: 0.2s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(214,161,23,0.13);
    color: var(--gold);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
    margin-bottom: 24px;
}

.admin-panel {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.12);
    margin-bottom: 24px;
}

.admin-list,
.admin-report-list,
.admin-story-list {
    display: grid;
    gap: 14px;
}

.admin-list-item,
.admin-report-card,
.admin-control-card {
    background: rgba(0,0,0,0.13);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 16px;
}

.admin-list-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.admin-list-item.stacked {
    display: block;
}

.admin-list-item h3,
.admin-report-card h3,
.admin-control-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.admin-list-item p,
.admin-report-card p,
.admin-control-card p {
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.6;
}

.admin-status {
    display: inline-flex;
    text-transform: capitalize;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    background: rgba(255,255,255,0.08);
    color: var(--ink);
}

.admin-status.logged,
.admin-status.under_review,
.admin-status.pending_review,
.admin-status.needs_revision,
.admin-status.writer_response_needed,
.admin-status.medium,
.admin-status.high {
    background: rgba(214,161,23,0.17);
    color: #ffe7bd;
}

.admin-status.resolved,
.admin-status.clean,
.admin-status.approved_with_warning,
.admin-status.low {
    background: rgba(90,125,90,0.22);
    color: #e0f2df;
}

.admin-status.dismissed,
.admin-status.rejected,
.admin-status.banned,
.admin-status.hidden_pending_review,
.admin-status.critical {
    background: rgba(179,38,30,0.22);
    color: #ffd5d1;
}

.admin-empty {
    padding: 24px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed rgba(255,255,255,0.14);
    border-radius: 16px;
}

.admin-report-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.admin-report-top small {
    color: var(--muted);
}

.admin-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 14px;
}

.admin-inline-form {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
}

.admin-inline-form select,
.admin-control-form select,
.admin-control-form input,
.admin-search-form input,
.admin-search-form select {
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.13);
    color: var(--ink);
    border-radius: 12px;
    padding: 10px 12px;
    font-family: inherit;
}

.admin-search-form {
    display: grid;
    grid-template-columns: 1fr 220px auto auto;
    gap: 12px;
    align-items: center;
}

.admin-filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.admin-filter-row a {
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
}

.admin-filter-row a.active,
.admin-filter-row a:hover {
    color: var(--gold);
    background: rgba(214,161,23,0.13);
}

.admin-control-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
    align-items: start;
}

.admin-control-form {
    display: grid;
    gap: 10px;
}

.admin-control-form label {
    color: var(--muted);
    font-size: 14px;
}

.admin-check {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

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

    .admin-grid,
    .admin-control-card {
        grid-template-columns: 1fr;
    }

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

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

    .admin-list-item {
        display: block;
    }
}
.admin-control-form textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.13);
    color: var(--ink);
    border-radius: 12px;
    padding: 10px 12px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    line-height: 1.5;
}
/* ===============================
   PHASE 4 — POLICY / RULE PAGES
================================ */

.policy-page {
    min-height: calc(100vh - 80px);
    padding: 42px 0 76px;
    background:
        radial-gradient(circle at top left, rgba(214,161,23,0.08), transparent 32%),
        radial-gradient(circle at top right, rgba(90,125,90,0.08), transparent 28%),
        var(--bg);
}

.policy-container {
    max-width: 980px;
}

.policy-hero {
    margin-bottom: 28px;
}

.policy-hero .eyebrow {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.policy-hero h1 {
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1;
    margin: 0 0 16px;
}

.policy-hero p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
    max-width: 820px;
}

.policy-card {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.12);
}

.policy-card h2 {
    margin: 0 0 14px;
    font-size: 30px;
}

.policy-card p {
    color: var(--muted);
    line-height: 1.8;
}

.policy-card ul,
.policy-card ol {
    color: var(--muted);
    line-height: 1.85;
    padding-left: 22px;
}

.policy-card strong {
    color: var(--ink);
}

.warning-policy {
    border-color: rgba(214,161,23,0.22);
    background: rgba(214,161,23,0.06);
}

.danger-policy {
    border-color: rgba(179,38,30,0.28);
    background: rgba(179,38,30,0.08);
}

.policy-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.policy-tag-cloud span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(90,125,90,0.22);
    border: 1px solid rgba(143,174,143,0.35);
    color: #f3f7f1;
    font-size: 14px;
}

.policy-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.policy-actions.left {
    justify-content: flex-start;
}

@media (max-width: 680px) {
    .policy-card {
        padding: 18px;
    }

    .policy-card h2 {
        font-size: 25px;
    }
}
/* ===============================
   TERMS & POLICIES DROPDOWN FIX
================================ */

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav > a,
.nav-dropdown-btn {
    color: var(--ink);
    text-decoration: none;
    font-family: inherit;
    font-size: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 0;
}

.main-nav > a:hover,
.nav-dropdown-btn:hover {
    color: var(--gold);
}

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #3b241f;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.35);
    z-index: 99999;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: grid !important;
    gap: 4px;
}

.nav-dropdown-menu a {
    display: block;
    color: var(--ink);
    padding: 10px 12px;
    border-radius: 10px;
    white-space: nowrap;
    text-decoration: none;
    font-size: 14px;
}

.nav-dropdown-menu a:hover {
    background: rgba(214,161,23,0.15);
    color: var(--gold);
}
/* ===============================
   PHASE 4B — MATURE WARNING GATE
================================ */

.mature-warning-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.mature-warning-actions button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}
/* ===============================
   DELETE STORY SAFETY
================================ */

.danger-delete-box {
    border-color: rgba(179,38,30,0.35) !important;
    background: rgba(179,38,30,0.10) !important;
}

.danger-delete-box h3 {
    color: #ffd5d1;
}

.danger-delete-box ul {
    color: #ffd5d1;
}
/* ===============================
   BULK BANNED WORDS MANAGER
================================ */

.admin-mini-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(214,161,23,0.08);
    border: 1px solid rgba(214,161,23,0.18);
    color: var(--muted);
}

.admin-mini-note strong {
    color: var(--gold);
}

.banned-word-filter-form {
    grid-template-columns: 1fr 150px 140px 160px auto auto;
    margin-bottom: 18px;
}

.banned-word-list {
    display: grid;
    gap: 10px;
    max-height: 560px;
    overflow-y: auto;
    padding-right: 4px;
}

.banned-word-row {
    display: grid;
    grid-template-columns: 1fr 130px 110px 90px auto;
    gap: 8px;
    align-items: center;
    background: rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 10px;
}

.banned-word-row input[type="text"],
.banned-word-row select {
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.13);
    color: var(--ink);
    border-radius: 10px;
    padding: 9px 10px;
    font-family: inherit;
}

.compact-check {
    font-size: 13px !important;
}

.banned-word-toggle-form {
    margin-top: -6px;
    margin-bottom: 4px;
    padding-left: 10px;
}

@media (max-width: 1050px) {
    .banned-word-filter-form,
    .banned-word-row {
        grid-template-columns: 1fr;
    }

    .banned-word-toggle-form {
        margin-top: 0;
        padding-left: 0;
    }
}
/* =========================================
   PHASE 5A — BOOKWORMS SOCIETY DESIGN SYSTEM
========================================= */

:root {
    --bg-deep: #2a1815;
    --bg-warm: #442822;
    --bg-soft: #5a362d;
    --panel: rgba(86, 54, 45, 0.82);
    --panel-strong: rgba(71, 42, 35, 0.95);
    --panel-border: rgba(255, 244, 223, 0.09);

    --ink: #fff4df;
    --muted: #e8cfb2;
    --muted-soft: rgba(255, 244, 223, 0.72);

    --gold: #e2aa18;
    --gold-soft: #f0c75d;
    --moss: #71875b;
    --moss-deep: #566846;
    --rose: #b97b71;
    --danger: #b64c42;

    --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.22);
    --shadow-strong: 0 22px 60px rgba(0, 0, 0, 0.34);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top center, rgba(255, 206, 124, 0.05), transparent 30%),
        linear-gradient(180deg, #3a211c 0%, #4a2b24 42%, #3c221d 100%);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.55;
}

.container {
    width: min(1220px, calc(100% - 40px));
    margin-inline: auto;
}

/* =========================
   GLOBAL TYPE
========================= */

h1, h2, h3, h4 {
    color: var(--ink);
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}

h1 {
    font-size: clamp(2.2rem, 3vw, 3.2rem);
    line-height: 1.06;
}

h2 {
    font-size: clamp(1.7rem, 2.1vw, 2.35rem);
    line-height: 1.1;
}

h3 {
    font-size: 1.25rem;
}

p,
li,
small,
span {
    color: var(--muted);
}

a {
    color: inherit;
    text-decoration: none;
}

.eyebrow {
    color: var(--gold-soft);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.muted-text {
    color: var(--muted-soft);
}

/* =========================
   MAIN PAGE SPACING
========================= */

main,
.writer-page,
.reader-page,
.admin-page,
.policy-page {
    padding: 34px 0 70px;
}

/* =========================
   BUTTONS
========================= */

.primary-btn,
.secondary-btn,
.join-btn,
.small-gold-btn,
.danger-btn,
.small-danger-btn,
button[type="submit"] {
    border: none;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.22s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-soft);
}

.primary-btn,
.join-btn,
.small-gold-btn,
button[type="submit"] {
    background: linear-gradient(180deg, #efbf3f 0%, #d9a315 100%);
    color: #2a180f;
}

.primary-btn:hover,
.join-btn:hover,
.small-gold-btn:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(226, 170, 24, 0.18);
}

.secondary-btn {
    background: #f7f0dd;
    color: #2c1d17;
}

.secondary-btn:hover {
    transform: translateY(-2px);
    background: #fff8e8;
}

.danger-btn,
.small-danger-btn {
    background: linear-gradient(180deg, #c96357 0%, #b2473b 100%);
    color: white;
}

.danger-btn:hover,
.small-danger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(182, 76, 66, 0.22);
}

.full-btn {
    width: 100%;
}

/* =========================
   PANELS / CARDS
========================= */

.writer-panel,
.admin-panel,
.policy-card,
.reader-card,
.story-card,
.library-card,
.dashboard-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
        var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(6px);
}

.writer-panel,
.admin-panel,
.policy-card {
    padding: 24px;
}

.small-panel {
    padding: 20px;
}

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

/* =========================
   HERO BLOCKS
========================= */

.writer-hero,
.reader-hero,
.admin-hero,
.policy-hero {
    background:
        radial-gradient(circle at top right, rgba(226,170,24,0.08), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
        var(--panel-strong);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-strong);
    margin-bottom: 22px;
}

.writer-hero.compact {
    padding: 24px;
}

.writer-hero-actions,
.reader-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

/* =========================
   TABS
========================= */

.writer-tabs,
.reader-tabs,
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 22px;
}

.writer-tabs a,
.reader-tabs a,
.admin-nav a {
    padding: 11px 16px;
    border-radius: 999px;
    color: var(--muted);
    transition: all 0.2s ease;
    font-size: 0.96rem;
}

.writer-tabs a:hover,
.reader-tabs a:hover,
.admin-nav a:hover,
.writer-tabs a.active,
.reader-tabs a.active,
.admin-nav a.active {
    background: linear-gradient(180deg, rgba(120,145,96,0.22), rgba(86,104,70,0.18));
    color: #f5f8ec;
    box-shadow: 0 0 0 1px rgba(113, 135, 91, 0.35), 0 0 18px rgba(113, 135, 91, 0.18);
}

/* =========================
   DASHBOARD GRID
========================= */

.writer-grid,
.reader-grid,
.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
    gap: 22px;
    align-items: start;
    margin-top: 20px;
}

/* =========================
   STATS GRID
========================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin: 22px 0 18px;
}

.stat-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--shadow-soft);
}

.stat-card .stat-label {
    display: block;
    color: var(--muted-soft);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.stat-card .stat-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ink);
}

/* =========================
   STORY / BOOK CARDS
========================= */

.story-card,
.library-card {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 18px;
    padding: 18px;
    margin-bottom: 16px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.story-card:hover,
.library-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(0,0,0,0.26);
    border-color: rgba(226,170,24,0.18);
}

.story-cover,
.library-cover,
.book-cover-thumb {
    width: 108px;
    height: 152px;
    border-radius: 16px;
    object-fit: cover;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-soft);
}

.story-card-content,
.library-card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.story-meta,
.meta-pills,
.story-badges,
.dashboard-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge,
.status-pill,
.story-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.8rem;
    line-height: 1;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.16);
    color: var(--ink);
}

.badge.genre,
.story-badge.genre {
    background: rgba(113,135,91,0.16);
    color: #ecf4e0;
}

.badge.status,
.story-badge.status {
    background: rgba(226,170,24,0.14);
    color: #ffe5a2;
}

.badge.mature,
.story-badge.mature {
    background: rgba(182,76,66,0.2);
    color: #ffd2cb;
}

.story-card-actions,
.quick-action-list,
.card-actions,
.library-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.story-card-actions a,
.quick-action-list a,
.card-actions a,
.library-actions a {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--ink);
    border-radius: 999px;
    padding: 10px 14px;
    transition: all 0.2s ease;
    font-size: 0.92rem;
}

.story-card-actions a:hover,
.quick-action-list a:hover,
.card-actions a:hover,
.library-actions a:hover {
    background: rgba(113,135,91,0.18);
    border-color: rgba(113,135,91,0.32);
    color: #f5f8ec;
    box-shadow: 0 0 18px rgba(113,135,91,0.14);
}

/* =========================
   FORMS
========================= */

.writer-form,
.admin-search-form {
    display: grid;
    gap: 18px;
}

.form-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-row {
    display: grid;
    gap: 8px;
}

label {
    color: var(--ink);
    font-weight: 700;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.14);
    color: var(--ink);
    padding: 13px 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(226,170,24,0.42);
    box-shadow: 0 0 0 4px rgba(226,170,24,0.10);
}

textarea {
    resize: vertical;
}

.checkbox-line,
.admin-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

/* =========================
   ALERTS / INFO BOXES
========================= */

.alert {
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.alert.success {
    background: rgba(113,135,91,0.16);
    border-color: rgba(113,135,91,0.28);
    color: #eef7e5;
}

.alert.error {
    background: rgba(182,76,66,0.14);
    border-color: rgba(182,76,66,0.24);
    color: #ffe3de;
}

.guideline-box {
    border-radius: 20px;
    padding: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
}

.checklist {
    display: grid;
    gap: 10px;
    padding-left: 18px;
}

/* =========================
   HOMEPAGE
========================= */

.home-section {
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-head p {
    margin: 6px 0 0;
}

.section-view-all {
    color: var(--gold-soft);
    font-weight: 700;
}

.genre-showcase {
    padding: 34px 0 28px;
    text-align: center;
}

.genre-showcase h2 {
    margin-bottom: 18px;
}

.genre-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.genre-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(113,135,91,0.12);
    border: 1px solid rgba(113,135,91,0.34);
    color: #eef5e5;
    transition: all 0.22s ease;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.genre-chip:hover {
    transform: translateY(-2px);
    background: rgba(113,135,91,0.20);
    border-color: rgba(113,135,91,0.54);
    box-shadow: 0 0 24px rgba(113,135,91,0.16);
    color: #fffef8;
}

/* =========================
   FOOTER
========================= */

.site-footer,
footer {
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.07);
    background: rgba(42,24,21,0.48);
    padding: 28px 0;
    text-align: center;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
    .writer-grid,
    .reader-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .story-card,
    .library-card {
        grid-template-columns: 88px 1fr;
    }

    .story-cover,
    .library-cover,
    .book-cover-thumb {
        width: 88px;
        height: 128px;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 100%);
    }

    .writer-hero,
    .reader-hero,
    .admin-hero,
    .policy-hero,
    .writer-panel,
    .admin-panel,
    .policy-card {
        padding: 20px;
        border-radius: 22px;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-card,
    .library-card {
        grid-template-columns: 1fr;
    }

    .story-cover,
    .library-cover,
    .book-cover-thumb {
        width: 100%;
        max-width: 180px;
        height: auto;
    }

    .genre-chip {
        min-width: unset;
        width: calc(50% - 8px);
    }
}
/* Stronger fix for Join BookWormsSociety heading */
.auth-card h1,
.auth-card .auth-title,
.auth-card h2 {
    max-width: 100%;
    text-align: center;
    font-size: 2.65rem !important;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-left: auto;
    margin-right: auto;
}

.auth-card {
    width: min(470px, calc(100% - 32px));
    overflow: hidden;
}
/* =====================================================
   HOME PAGE HERO BANNER — SHOW FULL IMAGE, NO TOP CROP
===================================================== */

.home-hero,
.hero-slider,
.hero-slide,
.home-slider,
.slider-hero {
    height: auto !important;
    min-height: unset !important;
    overflow: hidden !important;
}

/* If your homepage banner uses real <img> tags */
.home-hero img,
.hero-slider img,
.hero-slide img,
.home-slider img,
.slider-hero img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
}

/* If the slide itself has a background image */
.hero-slide,
.home-hero,
.hero-slider .slide,
.home-slider .slide {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
/* =====================================================
   EXACT HOME SLIDER FIX — NO CROPPING
   For: .home-hero-slider > .home-slide
===================================================== */

.home-hero-slider {
    position: relative !important;
    width: 100% !important;
    height: 430px !important;
    min-height: 430px !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at center, rgba(126,150,104,0.18), transparent 45%),
        linear-gradient(135deg, #2f1b16, #4d2d23, #261613) !important;
}

.home-hero-slider .home-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;

    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;

    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.8s ease, visibility 0.8s ease !important;
}

.home-hero-slider .home-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Keeps button and dots above image */
.home-hero-slider .home-hero-content,
.home-hero-slider .home-slider-dots {
    position: absolute !important;
    z-index: 5 !important;
}

/* Button placement */
.home-hero-slider .home-hero-content {
    left: 50% !important;
    bottom: 72px !important;
    transform: translateX(-50%) !important;
}

/* Dot placement */
.home-hero-slider .home-slider-dots {
    left: 50% !important;
    bottom: 34px !important;
    transform: translateX(-50%) !important;
}
/* =====================================================
   FINAL HOMEPAGE BANNER FIX
   Forces full banner image to fit inside slider area
===================================================== */

.fixed-home-banner {
    position: relative !important;
    width: 100% !important;
    height: 470px !important;
    min-height: 470px !important;
    max-height: 470px !important;
    overflow: hidden !important;
    background: #321d18 !important;
}

.fixed-home-banner .home-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.8s ease, visibility 0.8s ease !important;
}

.fixed-home-banner .home-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.fixed-home-banner .home-hero-content {
    position: absolute !important;
    left: 50% !important;
    bottom: 72px !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
}

.fixed-home-banner .home-slider-dots {
    position: absolute !important;
    left: 50% !important;
    bottom: 34px !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
}
/* =====================================================
   HOME ANNOUNCEMENT BAR
===================================================== */

.home-announcement-wrap {
    width: 100%;
    background: #3b2019;
    padding: 18px 0 0;
}

.home-announcement-bar {
    width: min(1320px, calc(100% - 36px));
    margin: 0 auto;
    min-height: 48px;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(255,244,223,0.10), transparent 30%),
        linear-gradient(180deg, #751f1f 0%, #541616 52%, #351010 100%);
    border: 1px solid rgba(255,244,223,0.16);
    box-shadow:
        0 18px 38px rgba(0,0,0,0.26),
        0 0 24px rgba(117,31,31,0.32),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

.home-announcement-bar::before,
.home-announcement-bar::after {
    content: "";
    position: absolute;
    top: 0;
    width: 90px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.home-announcement-bar::before {
    left: 0;
    background: linear-gradient(90deg, #541616, transparent);
}

.home-announcement-bar::after {
    right: 0;
    background: linear-gradient(270deg, #541616, transparent);
}

.home-announcement-track {
    display: flex;
    align-items: center;
    gap: 22px;
    width: max-content;
    min-height: 48px;
    padding: 0 22px;
    white-space: nowrap;
    animation: bookwormsAnnouncementScroll 34s linear infinite;
}

.home-announcement-bar:hover .home-announcement-track {
    animation-play-state: paused;
}

.home-announcement-track span {
    color: #fff7eb;
    font-weight: 900;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}

.home-announcement-track a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #2a130f !important;
    background: linear-gradient(180deg, #ffd36a, #e2aa18);
    border: 1px solid rgba(255,244,223,0.38);
    text-decoration: none;
    font-weight: 950;
    box-shadow:
        0 0 18px rgba(226,170,24,0.28),
        inset 0 1px 0 rgba(255,255,255,0.45);
}

.home-announcement-track a:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

@keyframes bookwormsAnnouncementScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 760px) {
    .home-announcement-wrap {
        padding-top: 12px;
    }

    .home-announcement-bar {
        width: min(100% - 22px, 1320px);
        border-radius: 22px;
    }

    .home-announcement-track {
        gap: 16px;
        min-height: 44px;
        animation-duration: 24s;
    }

    .home-announcement-track span {
        font-size: 0.88rem;
    }

    .home-announcement-track a {
        min-height: 30px;
        padding: 6px 12px;
        font-size: 0.84rem;
    }
}