@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=VT323&display=swap');

:root {
    --bg-page: #0f1510;
    --bg-surface: rgba(19, 30, 22, 0.96);
    --bg-muted: rgba(24, 39, 28, 0.82);
    --bg-hero: linear-gradient(135deg, rgba(93, 187, 99, 0.18), rgba(121, 85, 72, 0.22));
    --text-primary: #f2f8f3;
    --text-secondary: #9fb7a8;
    --text-inverse: #0f1510;
    --accent: #5dbb63;
    --accent-alt: #3b8a3c;
    --accent-soft: rgba(93, 187, 99, 0.18);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-elevated: 0 28px 60px rgba(9, 14, 10, 0.45);
    --shadow-soft: 0 20px 40px rgba(9, 14, 10, 0.28);
    --shadow-card: 0 16px 32px rgba(9, 14, 10, 0.24);
    --pixel-grid: rgba(255, 255, 255, 0.05);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', 'Roboto', sans-serif;
    color: var(--text-primary);
    background:
        radial-gradient(120% 140% at 10% 10%, rgba(68, 114, 79, 0.35), transparent 55%),
        radial-gradient(80% 120% at 90% 0%, rgba(86, 62, 34, 0.45), transparent 60%),
        linear-gradient(180deg, #0b120c 0%, #0f1510 65%, #0a0f0a 100%);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.35;
    z-index: 0;
    mix-blend-mode: soft-light;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.site-header {
    background: rgba(17, 28, 21, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 18px 32px rgba(10, 16, 12, 0.35);
    position: sticky;
    top: 0;
    z-index: 120;
    overflow: visible;
}

.site-header--compact {
    position: static;
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
    background: rgba(17, 28, 21, 0.88);
}

.header-main {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 28px;
    padding: 24px 56px;
}

.brand-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-title {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: inherit;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.brand-tagline {
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.channel-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.channel-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.channel-link:hover,
.channel-link.active {
    color: var(--accent);
    border-color: var(--accent);
}

.header-search {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.header-search input {
    width: 100%;
    padding: 12px 16px;
    padding-left: 44px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-muted);
    font-size: 0.85rem;
    color: var(--text-primary);
}

.header-search input::placeholder {
    color: var(--text-secondary);
}

.header-search::before {
    content: '\1F50D';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(185deg, rgba(22, 34, 26, 0.96) 0%, rgba(30, 22, 15, 0.96) 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.auth-buttons a:last-child {
    background: var(--accent);
    color: var(--text-inverse);
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(93, 187, 99, 0.35);
}

.auth-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(93, 187, 99, 0.22);
}

.user-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    z-index: 999;
    grid-column: -1;
    justify-self: end;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
    cursor: pointer;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: linear-gradient(185deg, rgba(22, 34, 26, 0.96) 0%, rgba(30, 22, 15, 0.96) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    min-width: 180px;
    padding: 12px 0;
    display: none;
    display: none;
}

.user-dropdown.open .dropdown-content {
    display: block;
}

.dropdown-content a,
.dropdown-content button {
    display: block;
    width: 100%;
    padding: 10px 18px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover,
.dropdown-content button:hover,
.dropdown-content button:focus {
    background: var(--accent-soft);
    color: var(--accent);
}

.inline-actions a {
    font-weight: 600;
    color: var(--accent);
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background 0.2s, border 0.2s;
}

.inline-actions a:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.headline-strip {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 56px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-muted);
}

.live-pill {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--text-inverse);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(93, 187, 99, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.headline-text {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.site-main {
    flex: 1;
    padding: 64px 56px 80px;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 48px;
    background: rgba(19, 30, 22, 0.92);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    padding: 48px 56px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-hero);
    opacity: 0.85;
    pointer-events: none;
}

.hero.has-story::before {
    background: linear-gradient(135deg, rgba(93, 187, 99, 0.12), var(--hero-accent, rgba(67, 43, 21, 0.35)));
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent 0 28px, rgba(255, 255, 255, 0.04) 28px 29px),
        repeating-linear-gradient(90deg, transparent 0 28px, rgba(0, 0, 0, 0.12) 28px 29px);
    opacity: 0.22;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

.hero-visual {
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(93, 187, 99, 0.55) 0%, rgba(68, 112, 73, 0.55) 38%, rgba(78, 51, 27, 0.85) 52%, rgba(54, 36, 20, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.hero-visual::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 48%;
    background: repeating-linear-gradient(45deg, rgba(124, 189, 113, 0.65) 0 18px, rgba(96, 155, 96, 0.65) 18px 36px);
    border-bottom: 6px solid rgba(70, 48, 26, 0.65);
}

.hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, rgba(70, 48, 26, 0.55) 0 22px, rgba(52, 36, 18, 0.55) 22px 44px);
    mix-blend-mode: soft-light;
    opacity: 0.85;
}
.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-label {
    align-self: flex-start;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(93, 187, 99, 0.16);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 0 0 1px rgba(93, 187, 99, 0.4);
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.1;
    font-weight: 700;
}

.hero-content p {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-divider {
    color: var(--text-secondary);
}

.hero-cta {
    align-self: flex-start;
    margin-top: 12px;
    padding: 12px 28px;
    background: var(--accent);
    color: var(--text-inverse);
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 18px 36px rgba(93, 187, 99, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(93, 187, 99, 0.4);
}

.layout-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 40px;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.section-heading h2::before,
.side-card h3::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 10px;
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(93, 187, 99, 0.92) 0%, rgba(67, 43, 21, 0.95) 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(0, 0, 0, 0.2);
    vertical-align: middle;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.article-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.article-card {
    background: linear-gradient(185deg, rgba(22, 35, 26, 0.92) 0%, rgba(32, 23, 14, 0.92) 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 26px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 44px rgba(9, 14, 10, 0.35);
}

.archive-main {
    flex-direction: column;
    gap: 32px;
}

.archive-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 4px;
}

.archive-header h1 {
    margin: 0;
    font-size: 2.1rem;
}

.archive-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.archive-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.archive-list .article-card {
    cursor: pointer;
}

.post-main {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.8fr);
    gap: 32px;
    padding: 48px 56px 72px;
}

.post-article {
    background: linear-gradient(185deg, rgba(22, 34, 26, 0.94) 0%, rgba(25, 18, 12, 0.94) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.post-hero {
    padding: 48px;
    background: linear-gradient(135deg, rgba(93, 187, 99, 0.2), rgba(54, 36, 20, 0.55));
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 28px;
}

.post-hero-meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-category-pill {
    align-self: flex-start;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(93, 187, 99, 0.16);
    border: 1px solid rgba(93, 187, 99, 0.32);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 700;
}

.post-hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 3.2rem);
}

.post-meta-line {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.post-hero-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 32px rgba(9, 14, 10, 0.35);
}

.post-content {
    padding: 42px 48px;
    display: grid;
    gap: 18px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.post-content h2,
.post-content h3 {
    color: var(--text-primary);
    margin-top: 32px;
}

.post-content a {
    color: var(--accent);
}

.post-content img {
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 32px rgba(9, 14, 10, 0.35);
}

.post-aside {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.related-list {
    display: grid;
    gap: 12px;
}

.related-list a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.related-list a:hover {
    color: var(--accent);
}

.card-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-alt);
}

.article-card h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.article-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-meta .card-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--text-primary);
}

.side-column {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.side-card {
    background: linear-gradient(185deg, rgba(22, 34, 26, 0.9) 0%, rgba(25, 18, 12, 0.92) 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-soft);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-card h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trending-empty {
    padding: 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.trending-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.trending-item .rank {
    font-weight: 700;
    color: var(--accent-alt);
    min-width: 32px;
}

.trending-item .title {
    text-align: left;
}

.trending-item .metric {
    margin-left: auto;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.trending-item:hover,
.trending-item.active {
    background: var(--accent-soft);
    border-color: rgba(93, 187, 99, 0.35);
    transform: translateY(-1px);
}

.link-accent {
    font-weight: 600;
    color: var(--accent);
}

.link-accent:hover {
    text-decoration: underline;
}

.site-footer {
    background: linear-gradient(185deg, rgba(22, 34, 26, 0.96) 0%, rgba(30, 22, 15, 0.96) 100%);
    border-top: 1px solid var(--border-color);
    padding: 28px 56px;
    margin-top: auto;
}

.site-footer--compact {
    padding: 24px 56px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-copy {
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.footer-socials a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.footer-socials a:hover,
.footer-socials a:focus {
    color: var(--accent);
}

.empty-state {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(18, 20, 26, 0.55);
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: linear-gradient(185deg, rgba(22, 34, 26, 0.96) 0%, rgba(30, 22, 15, 0.96) 100%);
    border-radius: var(--radius-lg);
    padding: 44px 32px;
    max-width: 480px;
    margin: 6% auto;
    position: relative;
    box-shadow: var(--shadow-elevated);
    border: 1px solid var(--border-color);
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 420px;
    margin: 24px auto 0;
    align-items: stretch;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-muted);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.modal-content textarea {
    resize: vertical;
    min-height: 120px;
}

.modal-content input::placeholder {
    color: var(--text-secondary);
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(93, 187, 99, 0.28);
}

.modal-content form:not(.post-editor-form) > div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.modal-content button {
    padding: 14px 24px;
    background: var(--accent);
    color: var(--text-inverse);
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 18px 36px rgba(93, 187, 99, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(93, 187, 99, 0.35);
}

#post-editor-modal .modal-content {
    max-width: 980px;
    width: min(980px, 95vw);
    margin: 4% auto;
    max-height: 92vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(93, 187, 99, 0.6) rgba(255, 255, 255, 0.08);
}

#post-editor-modal .modal-content::-webkit-scrollbar {
    width: 10px;
}

#post-editor-modal .modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

#post-editor-modal .modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(93, 187, 99, 0.75), rgba(37, 184, 153, 0.75));
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

#post-editor-modal .modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(93, 187, 99, 0.95), rgba(37, 184, 153, 0.95));
}

    scrollbar-width: thin;
    scrollbar-color: rgba(93, 187, 99, 0.6) rgba(255, 255, 255, 0.08);
}

    width: 8px;
}

    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

    background: rgba(93, 187, 99, 0.75);
    border-radius: 999px;
    border: 2px solid rgba(15, 22, 17, 0.9);
}

    background: rgba(93, 187, 99, 0.95);
}

#settings-modal .modal-content {
    width: min(1100px, calc(100vw - 80px));
    max-width: none;
    margin: 6% auto;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-modal-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-modal-subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.settings-modal-body {
    display: flex;
    gap: 28px;
    align-items: stretch;
}

.settings-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

.settings-nav-item {
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 22, 17, 0.35);
    color: var(--text-secondary);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

.settings-nav-item:hover,
.settings-nav-item:focus {
    border-color: var(--accent);
    color: var(--text-primary);
}

.settings-nav-item.active {
    background: rgba(93, 187, 99, 0.18);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 1px rgba(93, 187, 99, 0.3);
}

.settings-panel-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.settings-panel {
    display: none;
    flex-direction: column;
    gap: 20px;
    background: rgba(15, 22, 17, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    min-width: 0;
}

.settings-panel.active {
    display: flex;
}

.settings-panel h3 {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.settings-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settings-field-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.settings-form input {
    padding: 14px 16px;
}

.settings-primary-btn {
    align-self: flex-start;
}

.settings-avatar-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

#settings-avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    object-fit: cover;
}

.settings-avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
}

.settings-helper-text {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 0.92rem;
}

@media (max-width: 720px) {
    #settings-modal .modal-content {
        width: calc(100vw - 32px);
        max-width: none;
        padding: 28px 20px;
        gap: 20px;
    }

    .settings-modal-body {
        flex-direction: column;
        gap: 20px;
    }

    .settings-sidebar {
        flex-direction: row;
        gap: 12px;
        overflow-x: auto;
    }

    .settings-nav-item {
        flex: 1;
        text-align: center;
        white-space: nowrap;
    }

    .settings-avatar-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 900px) {
    #settings-modal .modal-content {
        min-width: 720px;
    }
}
#post-editor-modal .modal-content form.post-editor-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    max-width: none;
    margin: 24px 0 0;
    align-items: stretch;
    padding-bottom: 8px;
}

.post-editor-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(420px, 1fr);
    gap: 28px;
}

.post-editor-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
}

.post-editor-column--content {
    gap: 16px;
}

    display: flex;
    justify-content: flex-end;
}

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    background: rgba(10, 16, 12, 0.82);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    max-height: 360px;
    overflow: hidden;
}

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.04);
}

    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

    color: var(--accent);
}

    padding: 16px 18px;
    overflow-y: auto;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-primary);
}

    margin: 0 0 1rem;
}

    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
}

    background: rgba(255, 255, 255, 0.08);
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

    margin: 0;
    color: var(--text-secondary);
    font-style: italic;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: rgba(16, 24, 18, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

.field-group input,
.field-group select,
.field-group textarea {
    background: rgba(15, 22, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(93, 187, 99, 0.24);
}

.field-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.field-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.45;
}

.field-group--textarea textarea {
    min-height: 160px;
}

.post-editor-publish-toggle {
    margin-top: 6px;
    align-self: flex-start;
}

.post-editor-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

@media (max-width: 960px) {
    #post-editor-modal .modal-content {
        margin: 6% auto;
        max-height: none;
    }

    .post-editor-layout {
        grid-template-columns: 1fr;
    }

    .post-editor-buttons {
        justify-content: stretch;
        flex-direction: column-reverse;
    }

    .post-editor-buttons button {
        width: 100%;
    }
}

.remember-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.remember-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-box {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(93, 187, 99, 0.45);
    background: rgba(22, 34, 26, 0.95);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.2s ease;
}

.remember-toggle input:checked + .checkbox-box {
    background: var(--accent);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 12px rgba(93, 187, 99, 0.45);
}

.remember-toggle input:checked + .checkbox-box::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid var(--text-inverse);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.close-btn {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 1.4rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 24px;
}

#notification-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification {
    min-width: 280px;
    background: linear-gradient(185deg, rgba(22, 34, 26, 0.96) 0%, rgba(30, 22, 15, 0.96) 100%);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    border-left: 5px solid var(--accent);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    animation: slideIn 0.4s ease forwards;
}

.notification.success {
    border-left-color: #25b899;
}

.notification.error {
    border-left-color: #ff4757;
}

@keyframes slideIn {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* Admin panel */
.page-admin .site-main,
.page-profile .site-main {
    padding: 0;
}

.page-admin .header-main,
.page-profile .header-main {
    grid-template-columns: auto 1fr auto;
    gap: 20px;
}

.page-admin .inline-actions,
.page-profile .inline-actions {
    justify-self: end;
}

.page-admin .admin-main {
    flex: 1;
    padding: 48px 56px 72px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.admin-textbox-card {
    background: linear-gradient(185deg, rgba(22, 34, 26, 0.94) 0%, rgba(33, 24, 16, 0.94) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-textbox-header h1 {
    margin: 0;
    font-size: 1.6rem;
}

.minecraft-textbox {
    width: 100%;
    min-height: 160px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-muted);
    padding: 18px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    resize: vertical;
}

.minecraft-textbox::placeholder {
    color: var(--text-secondary);
}

.textbox-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.textbox-status::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(255, 107, 44, 0.5);
}

.textbox-status[data-state='saving']::before {
    background: var(--accent-alt);
    box-shadow: 0 0 8px rgba(40, 100, 255, 0.5);
}

.textbox-status[data-state='saved']::before {
    background: #25b899;
    box-shadow: 0 0 8px rgba(37, 184, 153, 0.5);
}

.admin-panel {
    background: linear-gradient(185deg, rgba(23, 36, 27, 0.94) 0%, rgba(30, 22, 15, 0.94) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.panel-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.panel-header p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.live-announcement-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    background: rgba(12, 19, 14, 0.72);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.live-card-header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.live-card-header p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.live-announcement-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.live-announcement-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.live-announcement-form label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.live-announcement-form input,
.live-announcement-form textarea {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    background: rgba(16, 24, 18, 0.75);
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
}

.live-announcement-form input:focus,
.live-announcement-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(93, 187, 99, 0.25);
}

.live-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.form-status {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.form-status[data-tone='success'] {
    color: #6ddf83;
}

.form-status[data-tone='error'] {
    color: #ff8b8b;
}

.panel-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-muted);
}

.search-field input {
    border: none;
    background: transparent;
    font-size: 0.85rem;
    width: 220px;
}

.search-field input::placeholder {
    color: var(--text-secondary);
}

.search-field input:focus {
    outline: none;
}

.icon-search {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--text-secondary);
    position: relative;
}

.icon-search::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 8px;
    background: var(--text-secondary);
    bottom: -5px;
    right: -3px;
    transform: rotate(45deg);
    border-radius: 999px;
}

.table-wrapper {
    overflow: auto;
}

#users-table, #posts-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

#users-table thead th, #posts-table thead th {
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

#users-table tbody td, #posts-table tbody td {
    padding: 16px;
    border-bottom: 1px solid rgba(18, 20, 26, 0.06);
    font-size: 0.85rem;
}

#users-table tbody tr:hover, #posts-table tbody tr:hover {
    background: rgba(93, 187, 99, 0.14);
}

.admin-button,
#users-table button,
#posts-table button {
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    background: var(--accent-alt);
    color: var(--text-inverse);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-button:hover,
#users-table button:hover, #posts-table button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(93, 187, 99, 0.28);
}

#users-table button:last-child, #posts-table button:last-child {
    margin-right: 0;
}

.admin-button--ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(93, 187, 99, 0.4);
    box-shadow: none;
}

.admin-button--ghost:hover,
.admin-button--ghost:focus {
    background: rgba(93, 187, 99, 0.15);
    color: var(--accent);
}

.admin-button--ghost.admin-button--active {
    background: rgba(93, 187, 99, 0.2);
    border-color: rgba(93, 187, 99, 0.65);
    color: var(--accent);
}

.table-empty-cell {
    text-align: center;
    padding: 24px 16px;
    color: var(--text-secondary);
    font-style: italic;
}

.post-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.post-title-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.post-meta-line {
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.5rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.16);
    color: var(--text-inverse);
}

.status-pill--banned {
    background: rgba(192, 57, 43, 0.2);
    color: #c0392b;
}

.status-pill--draft {
    background: rgba(255, 171, 64, 0.2);
    color: #ffad42;
}

.status-pill--published {
    background: rgba(37, 184, 153, 0.18);
    color: #25b899;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.editor-toolbar .toolbar-btn {
    min-width: 42px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.editor-toolbar .toolbar-btn:hover,
.editor-toolbar .toolbar-btn:focus {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    border-color: var(--accent-alt);
}

.editor-toolbar .toolbar-btn.toolbar-btn--active {
    background: rgba(93, 187, 99, 0.22);
    border-color: rgba(93, 187, 99, 0.6);
    color: var(--accent);
}

.editor-toolbar .toolbar-btn strong,
.editor-toolbar .toolbar-btn em {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}

.toolbar-underline {
    text-decoration: underline;
}

.wysiwyg-editor {
    min-height: 280px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 24, 18, 0.72);
    box-shadow: var(--shadow-card);
    margin-bottom: 14px;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.6;
}

.wysiwyg-editor:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(93, 187, 99, 0.25);
}

.wysiwyg-editor ul,
#post-content ul,
.comment-body ul,
.profile-comment-body ul {
    list-style: disc;
    margin: 0 0 1rem 1.4rem;
    padding: 0;
}

.wysiwyg-editor ol,
#post-content ol,
.comment-body ol,
.profile-comment-body ol {
    list-style: decimal;
    margin: 0 0 1rem 1.4rem;
    padding: 0;
}

.wysiwyg-editor li,
#post-content li,
.comment-body li,
.profile-comment-body li {
    margin-bottom: 0.4rem;
}

.editor-toolbar[hidden],
.wysiwyg-editor[hidden] {
    display: none !important;
}

.pagination {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Profile */
.page-profile .profile-main {
    flex: 1;
    padding: 48px 56px 72px;
}

.profile-card {
    background: linear-gradient(185deg, rgba(22, 34, 26, 0.94) 0%, rgba(25, 18, 12, 0.94) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--accent-alt);
    object-fit: cover;
}

.profile-headline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-username {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.profile-role-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(93, 187, 99, 0.18);
    color: var(--text-primary);
    border: 1px solid rgba(93, 187, 99, 0.32);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.profile-details {
    display: grid;
    gap: 24px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.profile-comment-highlights,
.profile-comment-history {
    background: rgba(15, 22, 17, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-comment-highlights h2,
.profile-comment-history h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.profile-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.profile-section-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.comment-highlight-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.comment-highlight-card {
    background: rgba(10, 15, 12, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
}

.comment-highlight-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comment-highlight-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.comment-highlight-meta {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.comment-highlight-header .profile-comment-status {
    align-self: flex-start;
}

.comment-highlight-body {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.55;
    font-size: 0.95rem;
}

.comment-highlight-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.comment-highlight-stats {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.comment-highlight-action,
.comment-highlight-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.comment-highlight-action:hover,
.comment-highlight-link:hover {
    text-decoration: underline;
}

.profile-comments-empty {
    margin: 0;
    color: var(--text-secondary);
}

.profile-comments-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile-comment-item {
    background: rgba(10, 15, 12, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-comment-top {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: baseline;
}

.profile-comment-post {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.profile-comment-post:hover {
    color: var(--accent);
}

.profile-comment-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.profile-comment-status {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.18);
    color: #ffda75;
}

.profile-comment-status--hidden {
    background: rgba(117, 125, 141, 0.2);
    color: #c4c7d0;
}

.profile-comment-status--deleted {
    background: rgba(220, 53, 69, 0.18);
    color: #ff9b9b;
}

.profile-comment-body {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.profile-comment-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-comment-stat {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.profile-comment-stat--likes {
    color: #6ddf83;
}

.profile-comment-stat--replies {
    color: #28c4e5;
}

@media (max-width: 720px) {
    .profile-comment-highlights,
    .profile-comment-history {
        padding: 22px;
    }

    .comment-highlight-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-comment-item {
        padding: 18px;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .header-main {
        grid-template-columns: auto 1fr auto;
        gap: 20px;
    }

    .header-search {
        display: none;
    }

    .layout-columns {
        grid-template-columns: 1fr;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .hero-visual {
        display: none;
    }

    .post-main {
        grid-template-columns: 1fr;
    }

    .post-aside {
        order: -1;
    }
}

/* Post interactions & discussion */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.post-interactions {
    margin: 24px 0 0;
    padding: 20px 28px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.post-interactions-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.post-like-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(93, 187, 99, 0.12), rgba(25, 18, 12, 0.7));
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-like-button .icon {
    font-size: 1rem;
}

.post-like-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(93, 187, 99, 0.22);
    border-color: var(--accent);
}

.post-like-button.liked {
    background: linear-gradient(135deg, rgba(93, 187, 99, 0.3), rgba(25, 18, 12, 0.9));
    border-color: rgba(93, 187, 99, 0.65);
    color: var(--accent);
}

.post-like-button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.post-views {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.post-views .icon {
    font-size: 1.1rem;
}

.post-comments {
    margin-top: 32px;
    padding: 32px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.comments-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.comment-count {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(20, 30, 22, 0.6);
}

.comment-form textarea {
    width: 100%;
    resize: vertical;
    min-height: 120px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 20, 15, 0.85);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(93, 187, 99, 0.2);
}

.comment-form-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.comment-form-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.comment-form-hint {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.comment-form-hint.clickable {
    cursor: pointer;
    color: var(--accent);
}

.comment-form button {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 600;
    cursor: pointer;
    background: var(--accent);
    color: var(--text-inverse);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(93, 187, 99, 0.25);
}

.comment-cancel-reply {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 0.85rem;
    padding: 0;
    cursor: pointer;
}

.comment-cancel-reply:hover,
.comment-cancel-reply:focus {
    text-decoration: underline;
}

.comments-empty {
    margin: 0;
    color: var(--text-secondary);
    font-style: italic;
}

.comments-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.comment-item {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    background: rgba(16, 24, 18, 0.72);
    box-shadow: var(--shadow-card);
}

.comment-item.reply-target {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(93, 187, 99, 0.3);
}

.comment-item--staff {
    border-color: rgba(93, 187, 99, 0.4);
    box-shadow: 0 0 0 1px rgba(93, 187, 99, 0.25);
}

.comment-item--staff .comment-author {
    color: var(--accent);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-header-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.comment-author-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent);
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.comment-actions {
    display: flex;
    gap: 8px;
}

.comment-action {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.comment-action:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.comment-body {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-line;
}

.comment-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.comment-like-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.comment-like-button:hover,
.comment-like-button:focus {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.comment-like-button.comment-like-button--active {
    background: rgba(93, 187, 99, 0.2);
    color: var(--accent);
    border-color: rgba(93, 187, 99, 0.6);
}

.comment-like-button[disabled] {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.comment-like-button .icon {
    font-size: 0.9rem;
}

.comment-like-button .label {
    font-size: 0.85rem;
    font-weight: 600;
}

.comment-like-button .count {
    font-weight: 600;
    font-size: 0.85rem;
}

.comment-replies {
    list-style: none;
    margin: 16px 0 0 0;
    padding: 0 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-left: 2px solid rgba(255, 255, 255, 0.06);
}

.load-more-comments {
    align-self: flex-start;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.load-more-comments:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Search page */
.page-search .search-main {
    padding: 64px 48px 80px;
}

.search-hero {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

.search-hero h1 {
    margin-bottom: 12px;
}

.search-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr);
    gap: 32px;
}

.search-post-results {
    display: grid;
    gap: 20px;
}

.search-post-results .article-card {
    width: 100%;
}

.search-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.search-block {
    background: rgba(16, 24, 18, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow-card);
}

.search-block h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.search-user-results,
.search-category-results {
    min-height: 80px;
}

.search-user-list,
.search-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-user-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.search-user-link:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.search-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent);
    overflow: hidden;
}

.search-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.85rem;
}

.search-user-meta strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.search-category-item a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: var(--accent);
    font-weight: 600;
}

/* Banned page */
.page-banned .banned-main {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 24px;
}

.banned-card {
    max-width: 520px;
    width: 100%;
    background: rgba(16, 24, 18, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: 36px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.banned-card h1 {
    margin-bottom: 16px;
}

.banned-note {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.banned-account {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-bottom: 28px;
}

.banned-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.banned-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.banned-button {
    min-width: 160px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.banned-button--primary {
    background: var(--accent);
    color: var(--text-inverse);
    box-shadow: 0 14px 30px rgba(93, 187, 99, 0.25);
}

.banned-button--secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-secondary);
}

.banned-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(93, 187, 99, 0.25);
}

.banned-button--secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: none;
}

@media (max-width: 820px) {
    .site-main,
    .page-admin .admin-main,
    .page-profile .profile-main,
    .site-footer,
    .headline-strip,
    .header-main {
        padding-left: 24px;
        padding-right: 24px;
    }

    .channel-nav {
        display: none;
    }

    .hero {
        padding: 32px;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .archive-list {
        grid-template-columns: 1fr;
    }

    .post-content {
        padding: 32px;
    }

    .panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .panel-actions {
        justify-content: flex-start;
    }

    .search-field input {
        width: 100%;
    }

    .admin-textbox-card,
    .admin-panel,
    .profile-card {
        padding: 28px;
    }

    .page-search .search-main {
        padding: 48px 24px 60px;
    }

    .search-grid {
        grid-template-columns: 1fr;
    }

    .search-sidebar {
        flex-direction: column;
    }

    .banned-card {
        padding: 32px 28px;
    }

    #notification-container {
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 560px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .auth-buttons {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .modal-content {
        margin: 10% 16px;
        padding: 32px 24px;
    }

    .post-hero {
        padding: 32px 24px;
    }

    .post-content {
        padding: 28px 22px;
    }

    .search-hero {
        margin-bottom: 28px;
    }

    .banned-actions {
        gap: 12px;
    }

    .banned-button {
        width: 100%;
    }
}






