:root {
    --base-black: #050505;
    --surface-1: #0d0d0d;
    --surface-2: #141414;
    --surface-3: #1c1c1c;
    --blood-red: #8b0000;
    --blood-red-bright: #c41212;
    --blood-red-dark: #4d0000;
    --gold: #d4af37;
    --gold-bright: #f3dc87;
    --gold-muted: #9e7f24;
    --text-main: #eaeaea;
    --text-muted: #a6a6a6;
    --text-dim: #707070;
    --border-subtle: #262626;
    --border-strong: #3a3a3a;
    --shadow-deep: 0 20px 50px rgba(0, 0, 0, 0.75);
    --font-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', Georgia, 'Times New Roman', serif;
    --font-sans: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', Consolas, monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--base-black);
    background-image:
        radial-gradient(ellipse 80% 45% at 50% 0%, rgba(139, 0, 0, 0.16), transparent 70%),
        linear-gradient(180deg, #070707 0%, #050505 100%);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ================= Reading Progress Bar ================= */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--blood-red-bright), var(--gold));
    z-index: 2000;
    transition: width 0.08s linear;
}

/* ================= Top Navigation Bar ================= */
.top-nav-bar {
    background: linear-gradient(180deg, #9c0606 0%, #5e0000 100%);
    padding: 0 36px;
    min-height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 1.15em;
    letter-spacing: 2px;
    color: var(--gold-bright);
    white-space: nowrap;
}

.nav-emblem {
    width: 34px;
    height: 34px;
    border: 2px solid var(--gold);
    background: #140000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05em;
    color: var(--gold-bright);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

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

.nav-item {
    padding: 10px 18px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.96em;
    cursor: pointer;
    transition: all 0.22s ease;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 3px 0 #3a0000;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-item:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(0, 0, 0, 0.15) 100%);
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 5px 0 #3a0000, 0 4px 14px rgba(0, 0, 0, 0.45);
}

.nav-item.active {
    background: #080808;
    border-color: var(--gold);
    color: var(--gold-bright);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.22);
    transform: translateY(1px);
}

/* Dropdown for Docs */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 245px;
    background: #0d0d0d;
    border: 1px solid var(--gold-muted);
    border-top: 3px solid var(--blood-red-bright);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
    padding: 8px 0;
    z-index: 1200;
    border-radius: 6px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-link {
    display: block;
    padding: 11px 18px;
    color: #ddd;
    font-size: 0.93em;
    font-weight: 600;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.active {
    background: rgba(139, 0, 0, 0.25);
    color: var(--gold-bright);
    border-left-color: var(--gold);
}

.lang-group {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.g-lang-btn {
    background: #171717;
    color: #aaa;
    border: 1px solid #353535;
    padding: 7px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-mono);
    font-size: 0.9em;
    font-weight: 700;
    border-radius: 5px;
    box-shadow: 0 2px 0 #000;
}

.g-lang-btn:hover {
    color: #fff;
    border-color: #666;
    background: #252525;
}

.g-lang-btn.active {
    background: #fff;
    color: var(--blood-red);
    border-color: #fff;
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* ================= Hero ================= */
.hero {
    padding: 96px 24px 80px;
    text-align: center;
    background:
        radial-gradient(ellipse 65% 60% at 50% 10%, rgba(160, 0, 0, 0.22), transparent 70%),
        radial-gradient(ellipse 40% 35% at 50% 95%, rgba(212, 175, 55, 0.08), transparent 70%);
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-bright);
    font-size: 0.88em;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 24px;
    border-radius: 999px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    letter-spacing: 6px;
    margin: 0;
    color: #fff;
    text-shadow: 0 6px 35px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.14);
    font-weight: 900;
    line-height: 1.25;
}

.hero-sub {
    color: var(--gold);
    letter-spacing: 4px;
    font-size: clamp(1.1rem, 2.2vw, 1.55rem);
    font-weight: 700;
    margin: 22px auto 0;
    text-shadow: 0 0 18px rgba(212, 175, 55, 0.3);
}

.hero-cta-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 38px;
    flex-wrap: wrap;
}

/* ================= Buttons ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    font-weight: 700;
    font-size: 1em;
    letter-spacing: 1.2px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.22s ease;
    font-family: var(--font-sans);
}

.btn-red {
    background: linear-gradient(180deg, #c70f0f 0%, #800000 100%);
    color: #fff;
    border-color: #ff4d4d;
    box-shadow: 0 5px 0 #450000, 0 10px 25px rgba(139, 0, 0, 0.35);
}

.btn-red:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #de1b1b 0%, #990000 100%);
    box-shadow: 0 7px 0 #450000, 0 14px 30px rgba(196, 18, 18, 0.45);
}

.btn-red:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #450000;
}

.btn-gold {
    background: linear-gradient(180deg, #2b2410 0%, #141005 100%);
    color: var(--gold-bright);
    border-color: var(--gold);
    box-shadow: 0 5px 0 #46350c, 0 10px 25px rgba(0, 0, 0, 0.5);
}

.btn-gold:hover {
    background: var(--gold);
    color: #090909;
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #5c4510, 0 14px 30px rgba(212, 175, 55, 0.35);
}

.btn-dark {
    background: linear-gradient(180deg, #2a2a2a 0%, #141414 100%);
    color: #eee;
    border-color: #444;
    box-shadow: 0 4px 0 #000;
}

.btn-dark:hover {
    border-color: var(--gold);
    color: var(--gold-bright);
    transform: translateY(-2px);
}

.btn-amazon {
    background: linear-gradient(180deg, #ff9900 0%, #cc7a00 100%);
    color: #111;
    border-color: #ffc266;
    box-shadow: 0 5px 0 #663d00;
}

.btn-amazon:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #ffad33 0%, #e08600 100%);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
}

/* ================= Containers & Sections ================= */
.section-wrap {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 72px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    color: var(--gold-bright);
    letter-spacing: 3px;
    margin: 0 0 12px 0;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05em;
    max-width: 760px;
    margin: 0 auto;
}

/* ================= 4 Core Documents Grid ================= */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.nav-card {
    background: linear-gradient(155deg, #161616 0%, #0b0b0b 100%);
    border: 1px solid #272727;
    border-top: 3px solid var(--blood-red);
    padding: 40px 34px;
    border-radius: 10px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.nav-card:hover {
    transform: translateY(-7px);
    border-color: var(--blood-red-bright);
    box-shadow: 0 24px 48px rgba(139, 0, 0, 0.2), inset 0 0 24px rgba(139, 0, 0, 0.06);
}

.nav-card-tag {
    font-family: var(--font-mono);
    font-size: 0.78em;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.nav-card h2 {
    font-family: var(--font-serif);
    color: #fff;
    font-size: 1.55em;
    margin: 0 0 18px 0;
    border-left: 4px solid var(--blood-red-bright);
    padding-left: 16px;
    line-height: 1.35;
}

.nav-card p {
    color: #a8a8a8;
    font-size: 1.02em;
    margin: 0 0 28px 0;
    flex-grow: 1;
    line-height: 1.8;
}

.nav-card .enter-btn {
    align-self: flex-start;
    padding: 10px 24px;
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.25s ease;
}

.nav-card:hover .enter-btn {
    background: linear-gradient(180deg, var(--blood-red-bright) 0%, var(--blood-red) 100%);
    border-color: #ff6666;
    box-shadow: 0 5px 15px rgba(196, 18, 18, 0.4);
}

/* ================= Books Buy & Download Table ================= */
.book-buy-box {
    margin-top: 44px;
    background: linear-gradient(145deg, #141414, #0a0a0a);
    border: 1px solid #282828;
    padding: 42px 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-deep);
    text-align: center;
}

.buy-btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 24px 0 34px;
}

.download-table-wrapper {
    max-width: 820px;
    margin: 0 auto;
    border-top: 1px solid #262626;
    padding-top: 28px;
    overflow-x: auto;
}

.download-table-title {
    font-size: 1em;
    color: var(--gold);
    letter-spacing: 1px;
    margin-bottom: 14px;
    font-weight: 700;
    text-align: left;
}

.download-grid-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92em;
    background: rgba(0, 0, 0, 0.35);
    min-width: 520px;
}

.download-grid-table th {
    background: #171717;
    color: #999;
    font-weight: 700;
    padding: 11px 12px;
    text-align: center;
    border: 1px solid #262626;
}

.download-grid-table td {
    padding: 11px 12px;
    border: 1px solid #262626;
    color: #bbb;
    text-align: center;
}

.table-section-row td {
    background: #1a1414 !important;
    color: var(--gold-bright) !important;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-bottom: 2px solid var(--blood-red);
    text-align: left !important;
    padding-left: 16px !important;
}

.table-dl-link {
    color: #eee;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.table-dl-link:hover {
    color: #ff6666;
    border-color: rgba(255, 80, 80, 0.35);
    background: rgba(139, 0, 0, 0.16);
}

/* ================= Dynamic News / Speeches Cards ================= */
.news-band {
    background: linear-gradient(180deg, #0b0b0b 0%, #050505 100%);
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--surface-2);
    border: 1px solid #292929;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-muted);
}

.news-card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #252525;
}

.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-media iframe,
.news-card-media video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.news-card-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.82em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-speech { background: rgba(196, 18, 18, 0.22); color: #ff7a7a; border: 1px solid rgba(196, 18, 18, 0.5); }
.badge-video { background: rgba(212, 175, 55, 0.16); color: var(--gold-bright); border: 1px solid rgba(212, 175, 55, 0.45); }
.badge-announcement { background: rgba(59, 130, 246, 0.18); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.45); }
.badge-article { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.45); }
.badge-pinned { background: var(--blood-red); color: #fff; }

.news-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25em;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.45;
}

.news-card p {
    color: #aaa;
    font-size: 0.94em;
    margin: 0 0 18px 0;
    flex-grow: 1;
    line-height: 1.7;
}

.video-embed-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.video-embed-box iframe,
.video-embed-box video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ================= Alliance Band ================= */
.alliance-wrapper {
    background: linear-gradient(135deg, #171212 0%, #070707 100%);
    border-top: 1px solid #2d2222;
    border-bottom: 1px solid #2d2222;
    padding: 88px 24px;
    text-align: center;
}

.alliance-content {
    max-width: 1020px;
    margin: 0 auto;
}

.alliance-desc {
    color: #ccc;
    font-size: 1.12em;
    line-height: 1.95;
    margin: 0 auto 38px;
    text-align: justify;
}

/* ================= Live Petition Band ================= */
.petition-band {
    background: radial-gradient(circle at center, #140808 0%, #040404 75%);
    padding: 96px 24px;
    text-align: center;
    border-bottom: 1px solid #222;
}

.counter-box {
    display: inline-block;
    border: 3px solid #352b14;
    background: #070707;
    padding: 28px 64px;
    border-radius: 14px;
    box-shadow: inset 0 6px 28px rgba(0, 0, 0, 0.95), 0 0 45px rgba(139, 0, 0, 0.22);
    margin-bottom: 24px;
}

.counter-number {
    font-size: clamp(3.2rem, 8vw, 6.8rem);
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--gold-bright);
    letter-spacing: 6px;
    text-shadow: 0 0 28px rgba(212, 175, 55, 0.45);
    line-height: 1.05;
}

.counter-substats {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.95em;
    margin-bottom: 42px;
}

.counter-substats strong {
    color: var(--gold);
    font-family: var(--font-mono);
}

.sign-actions {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    max-width: 960px;
    margin: 0 auto;
}

.sign-card-btn {
    flex: 1 1 380px;
    padding: 28px 30px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.22s ease;
    border: 1px solid transparent;
}

.sign-card-btn .sign-main {
    font-size: 1.32em;
    font-weight: 800;
    letter-spacing: 2px;
}

.sign-card-btn .sign-sub {
    font-size: 0.92em;
    margin-top: 10px;
    opacity: 0.88;
}

.sign-anon {
    background: linear-gradient(180deg, #cc0c0c 0%, #800000 100%);
    color: #fff;
    border-color: #ff4d4d;
    box-shadow: 0 8px 0 #480000, 0 18px 36px rgba(139, 0, 0, 0.35);
}

.sign-anon:hover {
    transform: translateY(-3px);
    box-shadow: 0 11px 0 #480000, 0 22px 42px rgba(196, 18, 18, 0.48);
}

.sign-real {
    background: linear-gradient(180deg, #323232 0%, #141414 100%);
    color: var(--gold-bright);
    border-color: #5a4a1e;
    box-shadow: 0 8px 0 #070707, 0 18px 36px rgba(0, 0, 0, 0.55);
}

.sign-real:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

/* ================= Public Comments Section ================= */
.comments-box {
    background: var(--surface-1);
    border: 1px solid #272727;
    border-top: 3px solid var(--gold);
    border-radius: 12px;
    padding: 36px;
    box-shadow: var(--shadow-deep);
}

.comment-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.92em;
    margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 13px 15px;
    background: #060606;
    border: 1px solid #353535;
    border-radius: 6px;
    color: #f0f0f0;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}

.comment-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    background: #131313;
    border: 1px solid #242424;
    border-left: 3px solid var(--blood-red-bright);
    border-radius: 8px;
    padding: 18px 22px;
}

.comment-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.comment-author {
    color: var(--gold-bright);
    font-weight: 700;
}

.comment-loc {
    color: #888;
    font-size: 0.92em;
    margin-left: 6px;
}

.comment-time {
    color: #666;
    font-family: var(--font-mono);
    font-size: 0.85em;
}

.comment-body {
    color: #d8d8d8;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.75;
}

/* ================= Document Reader Pages ================= */
.doc-switcher-bar {
    background: #0f0f0f;
    border-bottom: 1px solid #242424;
    padding: 12px 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.doc-switch-pill {
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid #333;
    background: #171717;
    color: #bbb;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.2s;
}

.doc-switch-pill:hover {
    border-color: var(--gold);
    color: #fff;
}

.doc-switch-pill.active {
    background: var(--blood-red);
    border-color: var(--gold);
    color: #fff;
}

.reading-container {
    max-width: 980px;
    width: calc(100% - 32px);
    margin: 44px auto 80px;
    padding: 56px 64px;
    background: var(--surface-1);
    border: 1px solid #252525;
    border-top: 5px solid var(--blood-red-bright);
    border-radius: 10px;
    box-shadow: var(--shadow-deep);
}

.doc-content {
    font-family: var(--font-serif);
}

.doc-content h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    color: var(--gold-bright);
    text-align: center;
    margin: 0 0 12px 0;
    letter-spacing: 4px;
    border-bottom: 1px solid #2d2d2d;
    padding-bottom: 18px;
}

.doc-content h2 {
    font-size: 1.35em;
    color: #9e9e9e;
    text-align: center;
    margin: 0 0 36px 0;
    font-weight: 400;
    letter-spacing: 2px;
}

.doc-content h3 {
    font-size: 1.55em;
    color: #fff;
    margin: 48px 0 18px;
    border-left: 4px solid var(--blood-red-bright);
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.22) 0%, transparent 100%);
    padding: 10px 16px;
}

.doc-content h4 {
    font-size: 1.25em;
    color: var(--gold-bright);
    margin: 34px 0 14px;
}

.doc-content p {
    font-size: 1.12em;
    color: #d2d2d2;
    line-height: 1.95;
    margin: 0 0 18px 0;
    text-align: justify;
}

.doc-content strong {
    color: #fff;
}

.doc-meta {
    background: #080808;
    border: 1px solid #252525;
    border-left: 4px solid var(--gold);
    padding: 22px 28px;
    margin-bottom: 34px;
    border-radius: 6px;
}

.doc-meta p {
    margin: 6px 0;
    font-size: 0.98em;
    color: #aaa;
    font-family: var(--font-sans);
    text-align: left;
}

.doc-meta span {
    color: var(--gold-bright);
    font-weight: 700;
}

.toc-box {
    background: #141414;
    border: 1px solid #2c2c2c;
    padding: 22px 28px;
    margin: 32px 0;
    border-radius: 8px;
}

.toc-box p {
    font-size: 0.98em;
    color: #bbb;
    margin-bottom: 10px;
}

.dl-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 42px 0;
    padding: 28px 24px;
    background: #080808;
    border: 1px solid #262626;
    border-radius: 8px;
}

.dl-title {
    color: var(--gold);
    font-size: 1.05em;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 1.5px;
    text-align: center;
    font-family: var(--font-sans);
}

.dl-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.dl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 820px;
}

.dl-btn {
    padding: 11px 18px;
    font-size: 0.92em;
    font-family: var(--font-sans);
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.2s;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pdf-btn { background: rgba(196, 18, 18, 0.14); color: #ff6666; border: 1px solid #b80f0f; }
.pdf-btn:hover { background: #b80f0f; color: #fff; transform: translateY(-2px); }
.epub-btn { background: rgba(212, 175, 55, 0.12); color: var(--gold-bright); border: 1px solid var(--gold); }
.epub-btn:hover { background: var(--gold); color: #000; transform: translateY(-2px); }
.txt-btn { background: rgba(255, 255, 255, 0.05); color: #ccc; border: 1px solid #555; }
.txt-btn:hover { background: #555; color: #fff; transform: translateY(-2px); }

/* ================= Interactive Sliders & Panels ================= */
.panel-card {
    background: var(--surface-1);
    border: 1px solid #2b2b2b;
    border-top: 4px solid var(--blood-red-bright);
    border-radius: 10px;
    padding: 42px;
    box-shadow: var(--shadow-deep);
}

.slider-box {
    width: 100%;
    height: 54px;
    background: #060606;
    border: 1px solid #444;
    border-radius: 6px;
    position: relative;
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
    touch-action: none;
}

.slider-text {
    color: #888;
    font-size: 0.95em;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.slider-block {
    width: 66px;
    height: 100%;
    background: linear-gradient(180deg, #b80f0f 0%, #7a0000 100%);
    position: absolute;
    left: 0;
    top: 0;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    font-weight: 800;
    color: #fff;
    z-index: 2;
    border-right: 2px solid var(--gold);
}

.slider-bg {
    height: 100%;
    background: rgba(184, 15, 15, 0.25);
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    width: 0;
}

.slider-box.verified .slider-block {
    background: var(--gold);
    color: #000;
    cursor: default;
}

.slider-box.verified .slider-bg {
    background: rgba(212, 175, 55, 0.18);
}

.slider-box.verified .slider-text {
    color: var(--gold-bright);
    font-weight: 700;
}

.status-banner {
    padding: 14px 18px;
    border-radius: 6px;
    margin: 16px 0;
    font-weight: 600;
    font-size: 0.96em;
    display: none;
}

.status-banner.show { display: block; }
.status-banner.ok { background: rgba(16, 185, 129, 0.14); border: 1px solid #10b981; color: #6ee7b7; }
.status-banner.err { background: rgba(239, 68, 68, 0.14); border: 1px solid #ef4444; color: #fca5a5; }
.status-banner.info { background: rgba(212, 175, 55, 0.14); border: 1px solid var(--gold); color: var(--gold-bright); }

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* ================= Unified Bright Footer ================= */
.site-footer {
    margin-top: auto;
    background: linear-gradient(180deg, #f7f7f7 0%, #cfcfcf 100%);
    border-top: 6px solid var(--blood-red);
    padding: 64px 32px 36px;
    color: #111;
    box-shadow: inset 0 18px 36px rgba(0, 0, 0, 0.08);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px;
}

.footer-col h4 {
    color: var(--blood-red);
    letter-spacing: 2.5px;
    border-bottom: 2px solid #b5b5b5;
    padding-bottom: 10px;
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 1.22em;
    margin: 0 0 16px 0;
}

.footer-col p {
    font-weight: 600;
    color: #222;
    font-size: 0.98em;
    line-height: 1.75;
    margin: 8px 0;
    word-break: break-word;
}

.footer-col a {
    color: #111;
    text-decoration: underline;
    font-weight: 700;
}

.footer-col a:hover {
    color: var(--blood-red);
}

.footer-bottom {
    max-width: 1280px;
    margin: 44px auto 0;
    border-top: 1px solid #b5b5b5;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-weight: 700;
    color: #444;
    font-size: 0.95em;
}

.admin-entry-link {
    color: #666 !important;
    text-decoration: none !important;
    font-size: 0.88em;
    padding: 4px 10px;
    border: 1px solid #aaa;
    border-radius: 4px;
}

.admin-entry-link:hover {
    color: var(--blood-red) !important;
    border-color: var(--blood-red);
}

/* ================= Back To Top ================= */
.back-top-btn {
    position: fixed;
    right: 22px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blood-red);
    color: var(--gold-bright);
    border: 1px solid var(--gold);
    font-size: 1.2em;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
    z-index: 900;
}

.back-top-btn.show {
    display: flex;
}

/* ================= Responsive ================= */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 860px) {
    .top-nav-bar {
        padding: 14px 18px;
        flex-direction: column;
        align-items: stretch;
    }
    .nav-brand { justify-content: center; }
    .nav-links { justify-content: center; }
    .lang-group { justify-content: center; }
    .nav-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .comment-form-grid { grid-template-columns: 1fr; }
    .reading-container { padding: 32px 22px; margin: 24px auto 60px; }
    .dl-grid { grid-template-columns: 1fr; }
    .panel-card { padding: 26px 20px; }
    .counter-box { padding: 22px 28px; width: 100%; }
}
