:root {
    --bg: #071019;
    --bg-2: #0b1723;
    --panel: rgba(14, 29, 42, 0.78);
    --panel-solid: #0f1d2b;
    --line: rgba(148, 190, 220, 0.16);
    --line-strong: rgba(148, 190, 220, 0.3);
    --text: #eef7ff;
    --muted: #93a9ba;
    --accent: #68e1c1;
    --accent-2: #5aa7ff;
    --accent-3: #ffcc66;
    --danger: #ff7b8a;
    --success: #6de3a1;
    --radius: 22px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(900px 600px at 80% -10%, rgba(90, 167, 255, 0.18), transparent 62%),
        radial-gradient(700px 500px at 10% 20%, rgba(104, 225, 193, 0.12), transparent 55%),
        linear-gradient(180deg, #06101a 0%, #08131e 45%, #050b12 100%);
    font: 16px/1.65 "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #9cf5df; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 4.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(5, 12, 19, 0.72);
    border-bottom: 1px solid var(--line);
}

.nav { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; letter-spacing: 0.02em; }
.brand:hover { color: var(--text); }
.brand-mark {
    width: 38px; height: 38px; border-radius: 13px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #041018; font-weight: 900; font-size: 18px;
    box-shadow: 0 10px 35px rgba(90, 167, 255, 0.28);
}
.brand small { display: block; color: var(--muted); font-size: 10px; letter-spacing: 0.22em; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 14px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { margin-left: 8px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; border-radius: 999px;
    padding: 12px 20px; font-weight: 700; font-size: 14px; cursor: pointer;
    text-decoration: none; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    background: linear-gradient(135deg, var(--accent), #8ff2d8);
    color: #03110d; box-shadow: 0 12px 34px rgba(104, 225, 193, 0.18);
}
.btn:hover { transform: translateY(-1px); color: #03110d; }
.btn.secondary { background: rgba(255, 255, 255, 0.05); color: var(--text); border-color: var(--line-strong); box-shadow: none; }
.btn.secondary:hover { background: rgba(255, 255, 255, 0.09); color: var(--text); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--muted); box-shadow: none; }
.btn.ghost:hover { color: var(--text); border-color: var(--line-strong); }
.btn.danger { background: rgba(255, 123, 138, 0.12); border-color: rgba(255, 123, 138, 0.32); color: var(--danger); box-shadow: none; }
.btn.small { padding: 8px 14px; font-size: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.hero { padding: 86px 0 54px; position: relative; overflow: hidden; }
.hero::after {
    content: ""; position: absolute; right: -120px; top: -100px; width: 560px; height: 560px;
    background: conic-gradient(from 180deg, rgba(104,225,193,.16), rgba(90,167,255,.18), transparent 60%);
    border-radius: 50%; filter: blur(2px); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr); gap: 44px; align-items: center; position: relative; z-index: 1; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
    color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); display: inline-block; }
.hero p.lead { color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.2rem); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-stat strong { display: block; font-size: 28px; letter-spacing: -0.03em; }
.hero-stat span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; }
.hero-visual { position: relative; min-height: 380px; }
.orb {
    position: absolute; inset: 30px 10px 10px 30px; border-radius: 46% 54% 58% 42% / 44% 46% 54% 56%;
    background: linear-gradient(145deg, rgba(104,225,193,.28), rgba(90,167,255,.08) 45%, rgba(255,204,102,.12));
    border: 1px solid rgba(148, 190, 220, 0.2); box-shadow: var(--shadow);
    animation: float 9s ease-in-out infinite;
}
.orb::before, .orb::after {
    content: ""; position: absolute; border-radius: 50%;
    border: 1px solid rgba(148, 190, 220, 0.18);
}
.orb::before { inset: 34px; }
.orb::after { inset: 76px; border-style: dashed; }
.float-card {
    position: absolute; background: rgba(9, 22, 33, 0.92); border: 1px solid var(--line-strong);
    border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.float-card.one { top: 20px; right: 0; }
.float-card.two { bottom: 18px; left: 0; }
.float-card small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.float-card strong { display: block; margin-top: 4px; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }

.section { padding: 54px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head p { color: var(--muted); margin: 0; max-width: 620px; }
.section-head .link { font-weight: 700; white-space: nowrap; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card {
    background: linear-gradient(180deg, rgba(16, 33, 48, 0.86), rgba(8, 18, 28, 0.92));
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.post-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgba(90,167,255,.2), rgba(104,225,193,.1)); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.post-body h3 { margin-bottom: 8px; }
.post-body h3 a { color: var(--text); }
.post-body p { color: var(--muted); font-size: 14px; flex: 1; }
.post-card .more { color: var(--accent); font-weight: 700; font-size: 13px; margin-top: 10px; }
.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    background: rgba(90, 167, 255, 0.12); color: #9dcbff; border: 1px solid rgba(90,167,255,.2);
}
.badge.green { background: rgba(104,225,193,.1); color: var(--accent); border-color: rgba(104,225,193,.2); }
.badge.yellow { background: rgba(255,204,102,.1); color: var(--accent-3); border-color: rgba(255,204,102,.2); }
.badge.red { background: rgba(255,123,138,.1); color: var(--danger); border-color: rgba(255,123,138,.2); }
.badge.gray { background: rgba(255,255,255,.05); color: var(--muted); border-color: var(--line); }

.featured {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    background: linear-gradient(135deg, rgba(18, 42, 60, .9), rgba(7, 17, 26, .95));
    border: 1px solid var(--line-strong); border-radius: 28px; overflow: hidden; margin-bottom: 42px;
    box-shadow: var(--shadow);
}
.featured-body { padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.featured-body h2 { font-size: clamp(1.8rem, 3.4vw, 3.1rem); }
.featured-body h2 a { color: var(--text); }
.featured-body p { color: var(--muted); }
.featured-cover { min-height: 320px; background: linear-gradient(135deg, rgba(90,167,255,.2), rgba(104,225,193,.1)); }
.featured-cover img { width: 100%; height: 100%; object-fit: cover; }

.roadmap-list { display: grid; gap: 12px; }
.roadmap-item {
    display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 18px; align-items: center;
    padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel);
}
.roadmap-item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.roadmap-item p { margin: 0; color: var(--muted); font-size: 14px; }
.roadmap-date { color: var(--muted); font-size: 13px; white-space: nowrap; }

.timeline { position: relative; display: grid; gap: 16px; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline-item { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 18px; position: relative; }
.timeline-dot { width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-solid); border: 1px solid var(--line-strong); z-index: 1; }
.timeline-dot.green { border-color: rgba(104,225,193,.35); color: var(--accent); }
.timeline-dot.yellow { border-color: rgba(255,204,102,.35); color: var(--accent-3); }
.timeline-body { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.timeline-body h3 { margin-bottom: 6px; }
.timeline-body p { color: var(--muted); margin: 0; }

.page-head { padding: 70px 0 30px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin-bottom: 12px; }
.page-head p { color: var(--muted); max-width: 700px; font-size: 1.08rem; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.filter { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
.filter.active, .filter:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.05); }

.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 42px; padding: 48px 0 70px; align-items: start; }
.article { min-width: 0; }
.article-cover { border-radius: 24px; overflow: hidden; margin: 26px 0 30px; border: 1px solid var(--line); }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.article-content { color: #dbe8f2; font-size: 1.04rem; }
.article-content h2, .article-content h3 { margin-top: 1.6em; }
.article-content blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 3px solid var(--accent); background: rgba(104,225,193,.06); border-radius: 0 14px 14px 0; color: #cfe3ef; }
.article-content code { background: rgba(255,255,255,.07); border: 1px solid var(--line); padding: 2px 6px; border-radius: 7px; font-size: .9em; }
.article-content pre { background: #050c13; border: 1px solid var(--line); border-radius: 16px; padding: 18px; overflow: auto; }
.article-content pre code { background: none; border: none; padding: 0; }
.article-content img { border-radius: 18px; margin: 18px 0; }
.article-content a { text-decoration: underline; text-underline-offset: 3px; }
.article-content ul, .article-content ol { padding-left: 1.4em; color: #dbe8f2; }
.article-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.article-gallery a { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.article-gallery img { width: 100%; height: 240px; object-fit: cover; }
.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin-bottom: 16px; position: sticky; top: 96px; }
.side-card h3 { font-size: 1rem; }
.side-card p { color: var(--muted); font-size: 14px; }
.meta-list { display: grid; gap: 12px; margin: 0; }
.meta-list div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; text-align: right; }

.cta {
    margin: 30px 0 70px; padding: clamp(28px, 5vw, 54px); border-radius: 28px;
    background: linear-gradient(135deg, rgba(104,225,193,.14), rgba(90,167,255,.12));
    border: 1px solid var(--line-strong); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: center;
}
.cta h2 { margin-bottom: 8px; }
.cta p { color: var(--muted); margin: 0; }

.empty { padding: 44px 24px; border: 1px dashed var(--line-strong); border-radius: 22px; color: var(--muted); text-align: center; background: rgba(255,255,255,.02); }
.empty strong { color: var(--text); display: block; margin-bottom: 6px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; text-align: center; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.pagination a:hover, .pagination .current { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.05); }

.site-footer { border-top: 1px solid var(--line); padding: 42px 0 30px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 30px; }
.footer-grid h4 { color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--muted); margin-bottom: 8px; }
.footer-grid a:hover { color: var(--text); }
.copyright { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; }

.flash-wrap { display: grid; gap: 8px; margin: 16px auto 0; }
.flash { padding: 12px 16px; border-radius: 14px; font-size: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.flash.success { border-color: rgba(109,227,161,.3); background: rgba(109,227,161,.08); color: #a9f3c8; }
.flash.error { border-color: rgba(255,123,138,.3); background: rgba(255,123,138,.08); color: #ffb0b8; }
.flash.warning { border-color: rgba(255,204,102,.3); background: rgba(255,204,102,.08); color: #ffe1a3; }

.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.error-page .code { font-size: clamp(5rem, 18vw, 12rem); font-weight: 900; line-height: .8; letter-spacing: -.08em; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .8; }

/* ---- admin ---- */
.admin-body { background: #060e16; }
.admin-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar { border-right: 1px solid var(--line); padding: 24px 18px; background: rgba(7, 17, 26, .9); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.sidebar .brand { margin-bottom: 30px; padding: 0 8px; }
.side-nav { display: grid; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 13px; color: var(--muted); font-weight: 600; font-size: 14px; }
.side-nav a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.side-nav a.active { background: linear-gradient(135deg, rgba(104,225,193,.14), rgba(90,167,255,.1)); color: var(--text); border: 1px solid rgba(104,225,193,.18); }
.side-nav .ico { width: 20px; text-align: center; opacity: .9; }
.sidebar-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.sidebar-foot a { color: var(--muted); }
.admin-main { min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 32px; border-bottom: 1px solid var(--line); background: rgba(6,14,22,.75); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 10; }
.admin-topbar h1 { font-size: 20px; margin: 0; letter-spacing: -.01em; }
.admin-topbar .user { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #041018; font-weight: 900; }
.admin-content { padding: 28px 32px 64px; }
.page-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-title-row h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.page-title-row p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.stat-card small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 800; }
.stat-card strong { display: block; font-size: 30px; letter-spacing: -.04em; margin-top: 6px; }
.stat-card .hint { font-size: 12px; color: var(--muted); margin-top: 2px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin-bottom: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1.05rem; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.panel-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.panel-grid .panel { margin: 0; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(255,255,255,.018); }
table.data .title-cell { min-width: 260px; }
table.data .title-cell strong { display: block; color: var(--text); }
table.data .title-cell small { color: var(--muted); }
.table-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.field { display: grid; gap: 6px; }
.field > label, .field-label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.field .hint { color: var(--muted); font-size: 12px; }
.input, .select, .textarea {
    width: 100%; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(4, 12, 19, .65);
    color: var(--text); padding: 11px 13px; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus { border-color: rgba(104,225,193,.6); box-shadow: 0 0 0 3px rgba(104,225,193,.09); }
.textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.textarea.editor { min-height: 420px; font-family: "Cascadia Code", Consolas, monospace; font-size: 13px; }
.select option { background: #0b1723; }
.check { display: flex; align-items: center; gap: 9px; color: var(--text); font-size: 14px; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.inline-form { display: inline; }

.note { padding: 13px 15px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); font-size: 13px; }
.note strong { color: var(--text); }
.note.warn { border-color: rgba(255,204,102,.25); background: rgba(255,204,102,.06); color: #ffe2a8; }
.note.success { border-color: rgba(109,227,161,.25); background: rgba(109,227,161,.06); color: #b8f5d0; }

.editor-toolbar { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.editor-toolbar button { background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
.editor-toolbar button:hover { color: var(--text); border-color: var(--line-strong); }

.media-preview { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.media-preview .item { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.media-preview img { width: 100%; height: 100px; object-fit: cover; }
.media-preview .remove { position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 8px; width: 28px; height: 28px; cursor: pointer; }
.cover-preview { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-width: 320px; }
.cover-preview img { max-height: 170px; object-fit: cover; width: 100%; }

.progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; margin: 10px 0 4px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; }

.chat-card { border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 14px; background: rgba(255,255,255,.02); }
.chat-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 14px; flex-wrap: wrap; }
.chat-card-head h3 { margin: 0 0 4px; }
.chat-card-head small { color: var(--muted); }
.chat-stats { display: flex; gap: 16px; color: var(--muted); font-size: 12px; }

.login-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(800px 500px at 20% 10%, rgba(104,225,193,.12), transparent), radial-gradient(800px 500px at 90% 80%, rgba(90,167,255,.15), transparent), #050c13; }
.login-card { width: min(440px, 100%); background: rgba(12, 27, 40, .82); border: 1px solid var(--line-strong); border-radius: 26px; padding: 32px; box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.login-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.login-card > p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.login-card .brand { margin-bottom: 24px; }
.login-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 18px 0; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.login-links { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }

.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row .input { font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; }
.copy-btn { white-space: nowrap; }

@media (max-width: 1050px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 300px; max-width: 520px; }
    .post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .featured { grid-template-columns: 1fr; }
    .featured-cover { min-height: 260px; order: -1; }
    .article-wrap { grid-template-columns: 1fr; }
    .side-card { position: static; }
    .admin-shell { grid-template-columns: 1fr; }
    .sidebar { height: auto; position: static; border-right: 0; border-bottom: 1px solid var(--line); }
    .side-nav { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
    .sidebar-foot { display: none; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
    .wrap { width: min(100% - 28px, 1160px); }
    .nav { gap: 14px; }
    .nav-links { display: none; }
    .hero { padding-top: 54px; }
    .post-grid, .post-grid.two, .panel-grid, .panel-grid.three, .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
    .roadmap-item { grid-template-columns: 1fr; gap: 8px; }
    .roadmap-date { text-align: left; }
    .cta { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .article-gallery { grid-template-columns: 1fr; }
    .article-gallery img { height: 200px; }
    .admin-content { padding: 20px 16px 50px; }
    .admin-topbar { padding: 14px 16px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .media-preview { grid-template-columns: 1fr 1fr; }
    .section-head { align-items: start; flex-direction: column; }
    .login-card { padding: 24px; }
}
