/* =========================================================
   L2MYTHRAS FORUM - PREMIUM THEME
   Clean, Elegant & Authentic Lineage 2 Style
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #08080d;
    --bg-secondary: #0f0f16;
    --bg-tertiary: #15151d;
    --bg-panel: linear-gradient(180deg, rgba(25, 25, 35, 0.95) 0%, rgba(12, 12, 18, 0.95) 100%);
    --bg-row: rgba(18, 18, 26, 0.8);
    --bg-row-hover: linear-gradient(90deg, rgba(212, 175, 55, 0.08) 0%, rgba(18, 18, 26, 0.9) 100%);
    --border-gold: rgba(212, 175, 55, 0.4);
    --border-gold-hover: rgba(255, 215, 0, 0.7);
    --border-light: rgba(255, 255, 255, 0.06);
    --gold-primary: #d4af37;
    --gold-light: #f5d98b;
    --gold-bright: #ffd700;
    --text-primary: #e6e6e6;
    --text-secondary: #b8b8b8;
    --text-muted: #7a7a7a;
    --red-accent: #d62828;
    --green-accent: #22c55e;
    --blue-accent: #60a5fa;
    --orange-accent: #f59e0b;
    --shadow-gold: 0 0 25px rgba(212, 175, 55, 0.25);
    --shadow-dark: 0 8px 40px rgba(0, 0, 0, 0.9);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemBody, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: radial-gradient(ellipse at top, rgba(139, 0, 0, 0.12) 0%, transparent 55%), 
                radial-gradient(ellipse at bottom, rgba(212, 175, 55, 0.06) 0%, transparent 55%),
                var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 14px;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bg-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 25px 35px, var(--gold-primary), transparent),
        radial-gradient(1px 1px at 65px 85px, var(--gold-light), transparent),
        radial-gradient(1px 1px at 115px 55px, var(--gold-primary), transparent);
    background-repeat: repeat;
    background-size: 160px 120px;
    opacity: 0.08;
    animation: drift 40s linear infinite;
}

@keyframes drift {
    from { transform: translateY(0px); }
    to { transform: translateY(-80px); }
}

.bg-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(8, 8, 13, 0.8) 100%);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

::selection {
    background: rgba(212, 175, 55, 0.85);
    color: #08080d;
}

::-webkit-scrollbar {
    width: 11px;
}

::-webkit-scrollbar-track {
    background: #06060a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7a5c18, var(--gold-primary));
    border: 2px solid #06060a;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--gold-primary), #ffe680);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 3px;
}

/* Brand lockup */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-emblem {
    display: block;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.45));
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.45s ease;
}

.brand:hover .brand-emblem {
    transform: rotate(-8deg) scale(1.07);
    filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.75));
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 2.5px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 18px rgba(212, 175, 55, 0.2);
}

.brand-accent {
    background: linear-gradient(180deg, #fff6d0 0%, #e6c65a 38%, #a9822a 62%, #f7e9b6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
}

.brand-sub {
    margin-top: 0.34rem;
    font-size: 0.56rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.brand--footer .brand-name {
    font-size: 1.22rem;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(12, 12, 18, 0.97) 0%, rgba(8, 8, 13, 0.97) 100%);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-gold);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-gold);
    padding: 0.5rem;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gold-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.25rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    padding: 0.4rem 0;
}

.nav-link i {
    color: var(--gold-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--gold-primary), transparent);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-bright);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-forum.active {
    color: var(--green-accent);
}

.nav-forum.active i {
    color: var(--green-accent);
}

.nav-register {
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.9) 0%, rgba(214, 40, 40, 0.9) 100%);
    padding: 0.6rem 1.6rem !important;
    border: 1px solid rgba(214, 40, 40, 0.8);
    border-radius: 2px;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(214, 40, 40, 0.25);
    transition: all 0.3s ease;
}

.nav-register::after {
    display: none;
}

.nav-register:hover {
    box-shadow: 0 6px 30px rgba(214, 40, 40, 0.4);
    transform: translateY(-2px);
}

/* Forum Header */
.forum-header {
    padding: 3.5rem 0;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid var(--border-gold);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, rgba(8, 8, 13, 0.86) 0%, rgba(8, 8, 13, 0.97) 100%),
        url('../assets/hero-bg.jpg') center 26%/cover no-repeat;
}

.forum-header-content {
    text-align: center;
}

.forum-emblem {
    width: 92px;
    height: 92px;
    margin: 0 auto 1.2rem;
    display: block;
    filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.4)) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.9));
}

.forum-title {
    font-family: 'Cinzel', serif;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
    background: linear-gradient(180deg, #ffffff 0%, #e8e8ee 50%, #c3c3cf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 22px rgba(212, 175, 55, 0.25));
}

.forum-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.8rem;
    letter-spacing: 0.5px;
}

.forum-header-actions {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.forum-hdr-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.6rem;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--border-gold);
    transition: all 0.25s ease;
}

.forum-hdr-btn.ghost {
    color: var(--gold-light);
    background: rgba(20, 20, 30, 0.6);
}

.forum-hdr-btn.ghost:hover {
    border-color: var(--border-gold-hover);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.forum-hdr-btn.solid {
    color: #1a1405;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.95) 0%, rgba(245, 217, 139, 0.95) 100%);
    border-color: var(--gold-light);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

.forum-hdr-btn.solid:hover {
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.45);
    transform: translateY(-2px);
}

/* Breadcrumb */
.forum-breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 2rem 0 1.8rem;
    color: var(--text-muted);
    font-size: 13px;
}

.forum-breadcrumb-nav a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: color 0.25s ease;
}

.forum-breadcrumb-nav a:hover {
    color: var(--gold-bright);
}

.forum-breadcrumb-nav i {
    font-size: 10px;
    color: var(--text-muted);
}

/* Forum Main */
.forum-main {
    padding-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.forum-section {
    margin-bottom: 2.2rem;
}

/* Category Wrapper */
.category-wrapper {
    background: var(--bg-panel);
    border: 1px solid var(--border-gold);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
}

.category-title-bar {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
    padding: 0.9rem 1.8rem;
    border-bottom: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.category-title-bar h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.category-title-bar h2 i {
    color: var(--gold-primary);
}

.category-desc {
    color: var(--text-muted);
    font-size: 12.5px;
}

.category-body {
    padding: 1.6rem 1.8rem;
}

/* Vote Grid */
.vote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.vote-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-row);
    border: 1px solid var(--border-light);
    padding: 1rem 1.2rem;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.vote-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold-primary), transparent);
}

.vote-card:hover {
    background: var(--bg-row-hover);
    border-color: var(--border-gold);
    transform: translateX(6px);
    box-shadow: var(--shadow-gold);
}

.vote-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    color: var(--gold-primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.vote-info {
    flex: 1;
    min-width: 0;
}

.vote-info h3 {
    color: var(--text-primary);
    font-size: 0.98rem;
    margin-bottom: 0.2rem;
}

.vote-info p {
    color: var(--text-muted);
    font-size: 12.5px;
}

.vote-btn {
    color: var(--gold-light);
    font-weight: 600;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.8px;
}

/* Download Forum Grid */
.download-forum-grid {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.download-forum-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: var(--bg-row);
    border: 1px solid var(--border-light);
    padding: 1.1rem 1.6rem;
    transition: all 0.25s ease;
}

.download-forum-card.main-download {
    border-color: var(--border-gold);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.12) 0%, var(--bg-row) 40%);
}

.download-forum-card:hover {
    border-color: var(--border-gold-hover);
    background: var(--bg-row-hover);
}

.download-forum-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%);
    border: 1px solid var(--border-gold);
    border-radius: 2px;
    color: var(--gold-primary);
    font-size: 1.6rem;
    flex-shrink: 0;
}

.download-forum-icon.small {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
}

.download-forum-info {
    flex: 1;
    min-width: 0;
}

.download-forum-info h3 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.download-forum-info p {
    color: var(--text-muted);
    font-size: 13px;
}

.download-meta {
    display: flex;
    gap: 1.4rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 12.5px;
}

.download-meta i {
    color: var(--gold-primary);
    margin-right: 0.3rem;
}

.download-forum-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.9) 0%, rgba(245, 217, 139, 0.9) 100%);
    color: #1a1405;
    text-decoration: none;
    padding: 0.7rem 1.8rem;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

.download-forum-btn.secondary {
    background: linear-gradient(90deg, rgba(40, 40, 55, 0.9) 0%, rgba(25, 25, 35, 0.9) 100%);
    color: var(--gold-light);
    border: 1px solid var(--border-gold);
    box-shadow: none;
}

.download-forum-btn:hover {
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.download-forum-btn.secondary:hover {
    box-shadow: var(--shadow-gold);
}

/* Forum Table */
.forum-table-wrapper {
    overflow-x: auto;
}

.forum-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.forum-table thead tr {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.16) 0%, transparent 80%);
}

.forum-table th {
    text-align: left;
    padding: 0.8rem 1.8rem;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--gold-light);
    font-weight: 600;
    border-bottom: 1px solid var(--border-gold);
}

.forum-table th.col-activity {
    width: 260px;
}

.forum-row {
    border-bottom: 1px solid var(--border-light);
    transition: all 0.25s ease;
}

.forum-row:last-child {
    border-bottom: none;
}

.forum-row:hover {
    background: var(--bg-row-hover);
}

.forum-row td {
    padding: 1.1rem 1.8rem;
    vertical-align: middle;
}

.forum-row-inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.forum-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
    border: 1px solid var(--border-gold);
    border-radius: 2px;
    color: var(--gold-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.forum-icon.pinned {
    color: var(--gold-bright);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.25);
}

.forum-details h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.forum-details h3 {
    color: var(--text-primary);
    font-family: 'Cinzel', serif;
    font-size: 1.02rem;
    letter-spacing: 0.4px;
}

.forum-details p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 0.4rem;
}

.subforum-links,
.forum-mods {
    color: var(--text-muted);
    font-size: 12.5px;
}

.subforum-links a,
.forum-mods a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: color 0.25s ease;
}

.subforum-links a:hover,
.forum-mods a:hover {
    color: var(--gold-bright);
}

.col-activity {
    color: var(--text-muted);
    font-size: 12.5px;
}

.no-posts {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem;
    border: 1px dashed rgba(212, 175, 55, 0.22);
    color: var(--text-muted);
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.no-posts i {
    color: rgba(212, 175, 55, 0.55);
    font-size: 11px;
}

/* Announcements / Threads */
.announce-main {
    padding: 2.2rem 0 5rem;
    position: relative;
    z-index: 1;
}

.announce-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.6rem;
    align-items: start;
    margin-top: 1.6rem;
}

.post-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-left: 2px solid rgba(212, 175, 55, 0.5);
    padding: 2rem 2.2rem;
    margin-bottom: 1.4rem;
    position: relative;
    scroll-margin-top: 96px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-card:last-child {
    margin-bottom: 0;
}

.post-card:target {
    border-left-color: var(--gold-bright);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.28), var(--shadow-gold);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.post-tag {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.26rem 0.6rem;
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--gold-light);
}

.post-tag.pinned {
    background: rgba(212, 175, 55, 0.14);
    color: var(--gold-bright);
    border-color: rgba(212, 175, 55, 0.55);
}

.post-author {
    font-size: 11.5px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.post-title {
    font-family: 'Cinzel', serif;
    font-size: 1.55rem;
    line-height: 1.3;
    letter-spacing: 0.4px;
    color: var(--text-primary);
    margin-bottom: 0.9rem;
}

.post-title .fa-hashtag {
    color: rgba(212, 175, 55, 0.45);
    font-size: 0.85rem;
    margin-left: 0.55rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.post-card:hover .post-title .fa-hashtag {
    opacity: 1;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover {
    color: var(--gold-light);
}

.post-body {
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.85;
}

.post-body p + p {
    margin-top: 0.8rem;
}

.post-body strong {
    color: var(--text-primary);
}

.post-body a {
    color: var(--gold-primary);
    text-decoration: none;
}

.post-body a:hover {
    color: var(--gold-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-list {
    list-style: none;
    margin: 0.9rem 0 0;
    display: grid;
    gap: 0.45rem;
}

.post-list li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.post-list li > i {
    color: var(--gold-primary);
    font-size: 0.7rem;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.post-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.post-table th,
.post-table td {
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
    font-size: 13px;
}

.post-table th {
    color: var(--gold-light);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(212, 175, 55, 0.08);
    border-bottom-color: rgba(212, 175, 55, 0.25);
}

.post-table.numeric td:last-child {
    text-align: right;
    color: var(--gold-light);
    white-space: nowrap;
}

.post-table tr:last-child td {
    border-bottom: none;
}

.post-callout {
    margin-top: 1.1rem;
    padding: 0.9rem 1.1rem;
    border-left: 2px solid var(--gold-primary);
    background: rgba(212, 175, 55, 0.07);
    font-size: 12.8px;
    color: var(--text-secondary);
}

.post-callout i {
    color: var(--gold-primary);
    margin-right: 0.45rem;
}

.post-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.post-footer-note {
    font-size: 11.5px;
    color: var(--text-muted);
}

.post-footer-link {
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-primary);
    text-decoration: none;
}

.post-footer-link:hover {
    color: var(--gold-bright);
}

.announce-aside {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.aside-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    padding: 1.4rem;
}

.aside-title {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aside-nav {
    list-style: none;
    display: grid;
    gap: 0.1rem;
}

.aside-nav a {
    display: block;
    padding: 0.45rem 0.65rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12.5px;
    border-left: 2px solid transparent;
    transition: all 0.25s ease;
}

.aside-nav a:hover {
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.06);
    border-left-color: var(--gold-primary);
}

.aside-facts {
    display: grid;
    gap: 0.5rem;
    font-size: 12.5px;
}

.aside-fact {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
    color: var(--text-secondary);
}

.aside-fact:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.aside-fact strong {
    color: var(--gold-light);
    font-weight: 600;
}

.forum-details h3 a {
    color: inherit;
    text-decoration: none;
}

.forum-details h3 a:hover {
    color: var(--gold-bright);
}

.row-activity {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 12px;
    color: var(--text-muted);
}

.row-activity strong {
    color: var(--gold-light);
    font-weight: 600;
}

/* Account (Login / Register) */
.account-main {
    padding: 3rem 0 5rem;
    position: relative;
    z-index: 1;
}

.account-card {
    max-width: 520px;
    margin: 0 auto;
    background: var(--bg-panel);
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-dark);
    overflow: hidden;
}

.account-head {
    text-align: center;
    padding: 2rem 2rem 0;
}

.account-head img {
    width: 72px;
    height: 72px;
    margin-bottom: 0.9rem;
    filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.4));
}

.account-head h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin-bottom: 0.35rem;
}

.account-head p {
    color: var(--text-muted);
    font-size: 13px;
}

.account-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 1.6rem;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-gold);
}

.account-tab {
    padding: 0.95rem 1rem;
    background: transparent;
    border: 0;
    border-right: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
}

.account-tab:last-child {
    border-right: 0;
}

.account-tab:hover {
    color: var(--gold-light);
    background: rgba(212, 175, 55, 0.05);
}

.account-tab.active {
    color: var(--gold-bright);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.14), transparent);
    box-shadow: inset 0 -2px 0 var(--gold-primary);
}

.account-form {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.8rem 2rem 2rem;
}

.account-form.active {
    display: flex;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.field label {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-secondary);
}

.field input {
    background: rgba(8, 8, 13, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: var(--text-primary);
    padding: 0.75rem 0.9rem;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field input:focus {
    outline: none;
    border-color: var(--border-gold-hover);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.field input.invalid {
    border-color: var(--red-accent);
}

.field-hint {
    font-size: 11.5px;
    color: var(--text-muted);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--text-secondary);
}

.form-row a {
    color: var(--gold-primary);
    text-decoration: none;
}

.form-row a:hover {
    color: var(--gold-bright);
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox input {
    accent-color: var(--gold-primary);
    margin-top: 0.2rem;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 0.3rem;
    padding: 0.85rem 1.4rem;
    border: 1px solid var(--gold-light);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.95), rgba(245, 217, 139, 0.95));
    color: #1a1405;
    font-family: inherit;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-gold:hover {
    box-shadow: 0 6px 26px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.form-notice {
    display: none;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    font-size: 12.5px;
    line-height: 1.55;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-light);
}

.form-notice.show {
    display: flex;
}

.form-notice i {
    color: var(--gold-primary);
    margin-top: 0.15rem;
}

.account-footer-note {
    padding: 0 2rem 1.6rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

.account-footer-note a {
    color: var(--gold-primary);
    text-decoration: none;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, transparent 0%, rgba(8, 8, 13, 0.98) 100%);
    border-top: 1px solid var(--border-gold);
    padding: 3rem 0 1.6rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo .brand {
    gap: 0.65rem;
}

.footer-description {
    color: var(--text-muted);
    margin: 1rem 0 1.4rem;
    max-width: 320px;
}

.footer-heading {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--gold-bright);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.6rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 13px;
}

.footer-note {
    margin-top: 0.4rem;
    font-size: 12px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 74px;
        flex-direction: column;
        background: #08080d;
        backdrop-filter: blur(18px) saturate(1.2);
        -webkit-backdrop-filter: blur(18px) saturate(1.2);
        width: 100%;
        padding: 2rem 0;
        gap: 1.4rem;
        transition: 0.3s ease;
        border-bottom: 1px solid var(--border-gold);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .forum-title {
        font-size: 2rem;
    }

    .forum-header {
        padding: 2.5rem 0;
    }

    .download-forum-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .download-forum-btn {
        align-self: stretch;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .announce-layout {
        grid-template-columns: 1fr;
    }

    .announce-aside {
        position: static;
    }

    .post-card {
        padding: 1.6rem;
    }
}

@media (max-width: 640px) {
    .quick-nav-container {
        justify-content: center;
    }

    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .category-title-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-body {
        padding: 1.2rem;
    }

    .forum-row td {
        padding: 1rem;
    }

    .forum-table {
        min-width: 0;
    }

    .forum-table th.col-activity,
    .forum-row td.col-activity {
        display: none;
    }

    .forum-table th {
        padding: 0.8rem 1rem;
    }

    .brand-sub {
        display: none;
    }

    .brand-name {
        font-size: 1.12rem;
        letter-spacing: 1.5px;
    }

    .forum-emblem {
        width: 72px;
        height: 72px;
    }

    .account-form {
        padding: 1.4rem;
    }

    .account-head {
        padding: 1.6rem 1.4rem 0;
    }

    .account-tab {
        font-size: 11.5px;
        letter-spacing: 1px;
    }

    .forum-title {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }

    .announce-aside {
        display: none;
    }

    .post-title {
        font-size: 1.3rem;
    }

    .post-card {
        padding: 1.3rem;
    }

    .post-table th,
    .post-table td {
        padding: 0.5rem 0.6rem;
        font-size: 12.5px;
    }
}

/* =========================================================
   SESSION, ACCOUNT STATE & ADMIN PANEL
========================================================= */

.nav-link.nav-user {
    color: var(--gold-light);
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link.nav-user i,
.nav-link.nav-admin i {
    color: var(--gold-primary);
}

.nav-link.nav-admin {
    color: var(--gold-bright);
}

.nav-link.nav-signout {
    color: var(--text-muted);
}

.nav-link.nav-signout:hover {
    color: var(--red-accent);
}

.nav-menu.has-session {
    gap: 1rem;
}

@media (min-width: 969px) and (max-width: 1320px) {
    .nav-link.nav-signout span,
    .nav-link.nav-admin {
        letter-spacing: 0.5px;
    }

    .nav-link.nav-signout span {
        display: none;
    }
}

.form-notice.is-error {
    border-color: rgba(220, 38, 38, 0.5);
    background: rgba(220, 38, 38, 0.1);
    color: #fca5a5;
}

.form-notice.is-error i {
    color: #ef4444;
}

.btn-gold.ghost {
    background: transparent;
    color: var(--gold-light);
    border-color: var(--border-gold);
    text-decoration: none;
}

.btn-gold.ghost:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-bright);
}

.account-session {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 2rem;
}

.account-session[hidden] {
    display: none;
}

.account-session-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-gold);
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-bright);
    font-size: 1.4rem;
}

.account-session h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.account-session h2 span {
    color: var(--gold-light);
}

.account-session p {
    font-size: 12.5px;
    color: var(--text-secondary);
}

.account-session-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.4rem;
}

/* Admin panel */
.admin-main {
    position: relative;
    z-index: 1;
    padding: 2.2rem 0 4rem;
}

.admin-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.6rem;
    padding: 1.8rem 2rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-gold);
    border-left: 3px solid var(--gold-primary);
}

.admin-kicker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-primary);
}

.admin-hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    letter-spacing: 1px;
    margin: 0.35rem 0 0.4rem;
}

.admin-hero p {
    font-size: 13px;
    color: var(--text-secondary);
}

.admin-hero p strong {
    color: var(--gold-light);
}

.admin-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.admin-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    margin-top: 1.6rem;
}

.admin-side {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.6rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
}

.admin-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.8rem;
    background: none;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-nav-btn i {
    width: 16px;
    color: var(--gold-primary);
}

.admin-nav-btn:hover {
    color: var(--gold-light);
    background: rgba(212, 175, 55, 0.06);
}

.admin-nav-btn.active {
    color: var(--gold-bright);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.14), transparent);
    border-color: rgba(212, 175, 55, 0.3);
}

.admin-nav-count {
    margin-left: auto;
    padding: 0.1rem 0.45rem;
    font-size: 11px;
    color: var(--gold-light);
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.admin-publish {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.2rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-gold);
}

.admin-publish h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    color: var(--gold-light);
}

.admin-publish p {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.admin-publish p.is-dirty {
    color: var(--gold-bright);
}

.admin-publish-btn {
    width: 100%;
    margin-top: 0.2rem;
}

.admin-publish .form-notice {
    font-size: 11.5px;
}

.admin-hint {
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--text-muted);
}

.admin-hint code,
.field-hint code,
.admin-note-list code {
    padding: 0.05rem 0.3rem;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 11px;
    color: var(--gold-light);
    background: rgba(212, 175, 55, 0.08);
}

.admin-content {
    min-width: 0;
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
    animation: adminFade 0.25s ease;
}

@keyframes adminFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.admin-section-head {
    margin-bottom: 1.1rem;
}

.admin-section-head h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
}

.admin-section-head p {
    margin-top: 0.2rem;
    font-size: 12.5px;
    color: var(--text-muted);
}

.admin-section-head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

.admin-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 1rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
}

.admin-stat-icon {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: var(--gold-primary);
}

.admin-stat-value {
    font-family: 'Cinzel', serif;
    font-size: 1.7rem;
    line-height: 1.1;
    color: var(--gold-light);
}

.admin-stat-value--sm {
    margin-top: 0.45rem;
    font-size: 1rem;
}

.admin-stat-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
}

.admin-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.admin-note-card {
    padding: 1.2rem 1.4rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-left: 2px solid rgba(212, 175, 55, 0.5);
}

.admin-note-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: var(--gold-light);
}

.admin-note-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    list-style: none;
}

.admin-note-list li {
    display: flex;
    gap: 0.55rem;
    font-size: 12.5px;
    color: var(--text-secondary);
}

.admin-note-list i {
    margin-top: 0.45rem;
    font-size: 0.65rem;
    color: var(--gold-primary);
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.95rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-btn:hover {
    background: rgba(212, 175, 55, 0.16);
    color: var(--gold-bright);
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.15);
}

.admin-btn.solid {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.95), rgba(245, 217, 139, 0.95));
    border-color: var(--gold-light);
    color: #1a1405;
}

.admin-btn.solid:hover {
    color: #1a1405;
    box-shadow: 0 6px 22px rgba(212, 175, 55, 0.35);
}

.admin-btn.ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text-secondary);
}

.admin-btn.ghost:hover {
    background: rgba(212, 175, 55, 0.06);
    border-color: var(--border-gold);
    color: var(--gold-light);
    box-shadow: none;
}

.admin-btn.danger {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.45);
    color: #fca5a5;
}

.admin-btn.danger:hover {
    background: rgba(220, 38, 38, 0.16);
    color: #fecaca;
    box-shadow: none;
}

.admin-btn.small {
    padding: 0.4rem 0.65rem;
    font-size: 10.5px;
    letter-spacing: 0.6px;
}

.admin-icon-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    cursor: pointer;
    transition: 0.2s ease;
}

.admin-icon-btn:hover {
    border-color: var(--border-gold);
    color: var(--gold-bright);
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.admin-filter {
    display: flex;
    background: rgba(8, 8, 13, 0.6);
    border: 1px solid var(--border-light);
}

.admin-filter-btn {
    padding: 0.55rem 0.9rem;
    background: none;
    border: none;
    border-right: 1px solid var(--border-light);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.2s ease;
}

.admin-filter-btn:last-child {
    border-right: none;
}

.admin-filter-btn:hover {
    color: var(--gold-light);
}

.admin-filter-btn.active {
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.12);
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.admin-group-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.7rem 0 0.1rem;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--text-muted);
}

.admin-group-label i {
    color: var(--gold-primary);
}

.admin-post-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-left: 2px solid rgba(212, 175, 55, 0.35);
    transition: border-color 0.2s ease;
}

.admin-post-row:hover {
    border-color: rgba(212, 175, 55, 0.4);
}

.admin-post-row.is-hidden {
    opacity: 0.55;
}

.admin-post-main {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.admin-post-title {
    font-family: 'Cinzel', serif;
    font-size: 1.02rem;
    overflow-wrap: anywhere;
}

.admin-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 11px;
    color: var(--text-muted);
}

.admin-post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
    flex-shrink: 0;
}

.admin-badge {
    padding: 0.16rem 0.45rem;
    border: 1px solid;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.admin-badge.published {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
}

.admin-badge.draft {
    color: var(--gold-light);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.08);
}

.admin-badge.edited {
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(96, 165, 250, 0.08);
}

.admin-badge.hidden {
    color: #fca5a5;
    border-color: rgba(220, 38, 38, 0.4);
    background: rgba(220, 38, 38, 0.08);
}

.admin-badge.pinned {
    color: var(--gold-bright);
    border-color: var(--border-gold);
    background: rgba(212, 175, 55, 0.1);
}

.admin-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    border: 1px dashed var(--border-light);
}

.admin-editor {
    margin-top: 1.4rem;
    padding: 1.5rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-gold);
    border-left: 2px solid var(--gold-primary);
}

.admin-editor[hidden] {
    display: none;
}

.admin-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.admin-editor-head h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    color: var(--gold-light);
}

.admin-editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.admin-span-2 {
    grid-column: 1 / -1;
}

.admin-editor-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.admin-editor-actions .btn-gold {
    margin-top: 0;
}

.admin-preview-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--text-muted);
}

.admin-preview {
    padding: 1.2rem 1.3rem;
    background: rgba(8, 8, 13, 0.55);
    border: 1px dashed rgba(212, 175, 55, 0.25);
}

.admin-preview .post-title {
    font-size: 1.35rem;
}

.admin-preview-empty {
    font-size: 12.5px;
    font-style: italic;
    color: var(--text-muted);
}

.field select,
.field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: rgba(8, 8, 13, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13.5px;
    line-height: 1.6;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.field textarea {
    min-height: 180px;
    resize: vertical;
}

.field select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.field textarea.invalid,
.field select.invalid {
    border-color: var(--red-accent);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.admin-danger-zone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1.6rem;
    padding: 1.2rem 1.4rem;
    background: rgba(220, 38, 38, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.35);
}

.admin-danger-zone h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: #fca5a5;
}

.admin-danger-zone p {
    font-size: 12px;
    color: var(--text-secondary);
}

.admin-static-note {
    display: flex;
    gap: 0.55rem;
    margin-top: 1.4rem;
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--text-muted);
}

.admin-static-note i {
    margin-top: 0.2rem;
    color: var(--gold-primary);
}

.admin-preview-banner {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    background: rgba(10, 10, 15, 0.97);
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7);
    transform: translateX(-50%);
}

.admin-preview-banner a {
    color: var(--gold-bright);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.5);
}

.admin-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1300;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: rgba(10, 10, 15, 0.98);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #86efac;
    font-size: 12.5px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.75);
}

.admin-toast[hidden] {
    display: none;
}

.admin-toast.is-error {
    border-color: rgba(220, 38, 38, 0.5);
    color: #fca5a5;
}

@media (max-width: 1100px) {
    .admin-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-side {
        position: static;
        min-width: 0;
    }

    .admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
        overflow: visible;
        min-width: 0;
    }

    .admin-nav-btn {
        flex: 1 1 calc(50% - 0.35rem);
        min-width: 0;
    }

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

@media (max-width: 968px) {
    .nav-menu {
        max-height: calc(100vh - 74px);
        overflow-y: auto;
    }

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

@media (max-width: 768px) {
    .admin-main {
        padding: 1.4rem 0 3rem;
    }

    .admin-hero {
        padding: 1.3rem;
    }

    .admin-hero h1 {
        font-size: 1.7rem;
    }

    .admin-editor-grid,
    .admin-form-grid,
    .admin-form-grid--3 {
        grid-template-columns: 1fr;
    }

    .admin-post-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-post-actions {
        justify-content: flex-start;
    }

    .admin-preview-banner {
        left: 12px;
        right: 12px;
        white-space: normal;
        transform: none;
    }

    .admin-toast {
        left: 12px;
        right: 12px;
    }

    .admin-quick .admin-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

