/* =========================================================
   Ruang Aksara — Panel Penulis
   ========================================================= */
.admin-body {
    background: #08070c;
    color: var(--text);
    min-height: 100vh;
    font-family: var(--sans);
}
.admin-body::before { opacity: .55; }

/* ---------- Bar ---------- */
.admin-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(8, 7, 12, .92);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid var(--line);
}
.admin-bar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.admin-brand { display: flex; align-items: center; gap: 11px; }
.admin-brand .brand-mark { width: 28px; height: 28px; }
.admin-brand-name {
    display: block;
    font-family: var(--serif);
    font-size: 17px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-3);
    line-height: 1.1;
}
.admin-brand-sub { display: block; font-size: 8.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-2); }
.admin-bar-actions { display: flex; align-items: center; gap: 8px; }

.admin-nav-wrap { border-top: 1px solid var(--line-soft); }
.admin-nav {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav-link {
    position: relative;
    padding: 13px 14px;
    font-size: 10.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    border-bottom: 1px solid transparent;
    transition: color .25s, border-color .25s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.admin-nav-link:hover { color: var(--gold-3); }
.admin-nav-link.is-active { color: var(--gold-3); border-bottom-color: var(--gold-2); }
.nav-badge {
    font-style: normal;
    font-size: 9px;
    letter-spacing: 0;
    padding: 2px 6px;
    border-radius: 999px;
    background: linear-gradient(100deg, var(--gold-3), var(--gold-1));
    color: #17120a;
    font-weight: 600;
}

/* ---------- Main ---------- */
.admin-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 34px 24px 70px;
    position: relative;
    z-index: 1;
}
.admin-head { margin-bottom: 26px; }
.admin-head h1 {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    color: #f8f3e9;
    line-height: 1.1;
    margin: 0 0 6px;
}
.admin-sub { font-size: 11.5px; letter-spacing: .04em; color: var(--muted-2); }
.admin-sub strong { color: var(--gold-2); font-weight: 500; }
.admin-foot {
    text-align: center;
    padding: 26px 24px 40px;
    font-size: 10.5px;
    letter-spacing: .08em;
    color: var(--muted-2);
    border-top: 1px solid var(--line-soft);
    position: relative;
    z-index: 1;
}

/* ---------- Stat cards ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}
.stat-card {
    padding: 22px 24px;
    border-radius: 16px;
    border: 1px solid var(--line-soft);
    background: var(--glass);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color .3s, transform .3s;
}
.stat-card:hover { border-color: rgba(216, 182, 120, .35); transform: translateY(-2px); }
.stat-label { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-2); }
.stat-value { font-family: var(--serif); font-size: 2.3rem; line-height: 1.15; color: var(--gold-3); font-weight: 500; }
.stat-foot { font-size: 11px; color: var(--muted); }
.stat-foot a { color: var(--gold-2); }

/* ---------- Panels ---------- */
.panel {
    padding: 24px;
    border-radius: 18px;
    border: 1px solid var(--line-soft);
    background: var(--glass);
    margin-bottom: 22px;
}
.panel-grid {
    display: grid;
    grid-template-columns: 1.35fr .9fr;
    gap: 22px;
    align-items: start;
}
.panel-grid--form { grid-template-columns: 1fr 1fr; }
.panel-grid > .panel { margin-bottom: 0; }
.panel + .panel-grid, .panel-grid + .panel-grid, .panel-grid + .panel { margin-top: 22px; }
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.panel-head h2 {
    font-family: var(--serif);
    font-size: 1.45rem;
    color: #f6f1e6;
    margin: 0;
}
.panel-hint { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.panel-empty { color: var(--muted-2); font-size: 13px; padding: 16px 0; }
.panel-note { font-size: 11.5px; color: var(--muted-2); line-height: 1.7; margin-top: 12px; }
.panel-note a { color: var(--gold-2); }
.panel-note--warn { color: #e2c68d; }
.panel-divider { height: 1px; background: var(--line-soft); margin: 22px 0; }
.panel-subhead {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--gold-2);
    margin: 20px 0 12px;
    letter-spacing: .02em;
}
.panel > form > .panel-subhead:first-of-type { margin-top: 8px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -6px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
.data-table th {
    text-align: left;
    font-size: 9px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 500;
    padding: 10px 10px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.data-table td { padding: 13px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.data-table tr:hover td { background: rgba(216, 182, 120, .035); }
.cell-title { color: #f2ece0; font-size: 13.5px; }
a.cell-title:hover { color: var(--gold-3); }
.cell-muted { color: var(--muted-2); font-size: 11.5px; }
.cell-muted a { color: var(--gold-2); }
.cell-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 8.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    border: 1px solid transparent;
    white-space: nowrap;
    margin-left: 4px;
    vertical-align: middle;
}
.badge--ok { color: #a8e6c1; background: rgba(60, 150, 100, .16); border-color: rgba(100, 200, 150, .3); }
.badge--warn { color: #f0d79a; background: rgba(190, 140, 40, .16); border-color: rgba(216, 182, 120, .35); }
.badge--muted { color: var(--muted-2); background: rgba(255, 255, 255, .04); border-color: var(--line-soft); }
.badge--gold { color: #17120a; background: linear-gradient(100deg, var(--gold-3), var(--gold-1)); }

/* ---------- Mini buttons ---------- */
.mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .22s, border-color .22s, background .22s;
    font-family: var(--sans);
    white-space: nowrap;
}
.mini-btn:hover { color: var(--gold-3); border-color: rgba(216, 182, 120, .5); background: rgba(216, 182, 120, .07); }
.mini-btn--gold { color: #17120a; background: linear-gradient(100deg, var(--gold-3), var(--gold-1)); border-color: transparent; font-weight: 600; }
.mini-btn--gold:hover { color: #17120a; background: linear-gradient(100deg, #fff2cf, var(--gold-2)); }
.mini-btn--danger { color: #e9a9a9; border-color: rgba(220, 120, 120, .28); }
.mini-btn--danger:hover { color: #ffd0d0; border-color: rgba(220, 120, 120, .6); background: rgba(200, 70, 70, .12); }
.inline-form { display: inline-block; }

/* ---------- Toolbar / tabs ---------- */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.toolbar-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar-input {
    padding: 9px 12px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(8, 7, 12, .6);
    color: var(--text);
    font-family: var(--sans);
    font-size: 12.5px;
    font-weight: 300;
}
.toolbar-input:focus { outline: none; border-color: rgba(216, 182, 120, .55); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.tab em { font-style: normal; font-size: 9.5px; color: var(--muted-2); }
.tab:hover { color: var(--gold-3); border-color: rgba(216, 182, 120, .4); }
.tab.is-active { color: #17120a; background: linear-gradient(100deg, var(--gold-3), var(--gold-1)); border-color: transparent; font-weight: 600; }
.tab.is-active em { color: #17120a; opacity: .7; }

/* ---------- Manage lists ---------- */
.manage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.manage-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, .018);
    transition: border-color .25s, background .25s;
}
.manage-item:hover { border-color: rgba(216, 182, 120, .28); }
.manage-item.is-unread { border-color: rgba(216, 182, 120, .4); background: rgba(216, 182, 120, .05); }
.manage-body { min-width: 0; flex: 1; }
.manage-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.manage-head strong { font-size: 13px; color: #f2ece0; font-weight: 500; }
.manage-title { font-family: var(--serif); font-size: 1.1rem; color: #f4eee2; line-height: 1.45; }
.manage-subject { font-size: 12px; color: var(--gold-2); margin-bottom: 4px; }
.manage-text { font-size: 13px; color: #cfc8ba; line-height: 1.7; }
.manage-meta { font-size: 10.5px; color: var(--muted-2); margin-top: 8px; line-height: 1.6; }
.manage-meta a { color: var(--gold-2); }
.manage-year { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.manage-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; flex: 0 0 auto; }

/* ---------- Feed ---------- */
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feed-item { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.feed-item:last-child { border-bottom: 0; padding-bottom: 0; }
.feed-head { display: flex; align-items: center; gap: 6px; justify-content: space-between; margin-bottom: 5px; }
.feed-head strong { font-size: 12.5px; font-weight: 500; color: #f0eade; }
.feed-text { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.feed-meta { display: block; margin-top: 6px; font-size: 10px; color: var(--muted-2); }

/* ---------- Checklist ---------- */
.check-list { display: grid; gap: 2px; }
.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 4px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 12.5px;
    color: var(--muted);
    transition: color .25s, padding .25s;
}
.check-item:last-child { border-bottom: 0; }
.check-item:hover { color: var(--gold-3); padding-left: 8px; }
.check-dot {
    width: 18px; height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 9px;
    border: 1px solid rgba(220, 140, 140, .4);
    color: #e9a9a9;
    background: rgba(200, 80, 80, .1);
    flex: 0 0 auto;
}
.check-dot.is-ok { border-color: rgba(110, 200, 150, .45); color: #a8e6c1; background: rgba(60, 150, 100, .14); }

/* ---------- Forms in admin ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; }
.form-main { min-width: 0; }
.form-side { display: flex; flex-direction: column; gap: 8px; }
.admin-body .field input, .admin-body .field textarea, .admin-body .field select { font-size: 13.5px; }
.admin-body .field input[type="file"] { padding: 10px; font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .02); }
.admin-body .field input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 7px 12px;
    border-radius: 7px;
    border: 1px solid rgba(216, 182, 120, .4);
    background: rgba(216, 182, 120, .1);
    color: var(--gold-3);
    font-family: var(--sans);
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}
.check-toggle {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 14px;
    cursor: pointer;
}
.check-toggle input[type="checkbox"] {
    appearance: none;
    width: 16px; height: 16px;
    margin: 2px 0 0;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(8, 7, 12, .6);
    cursor: pointer;
    flex: 0 0 auto;
    position: relative;
}
.check-toggle input[type="checkbox"]:checked {
    background: linear-gradient(100deg, var(--gold-3), var(--gold-1));
    border-color: transparent;
}
.check-toggle input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #17120a;
    font-weight: 700;
}
.thumb-preview {
    height: 44px;
    width: auto;
    border-radius: 6px;
    border: 1px solid var(--line);
    margin-bottom: 10px;
    object-fit: cover;
}
.cover-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    margin-bottom: 10px;
}
.photo-row { display: flex; gap: 16px; align-items: flex-start; }
.photo-thumb { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); flex: 0 0 auto; }
.photo-thumb--round { border-radius: 50%; }
.notice { font-size: 12.5px; }

/* ---------- Auth screens ---------- */
.admin-body--auth { display: flex; align-items: center; justify-content: center; padding: 40px 20px; min-height: 100vh; }
.auth-wrap { width: 100%; max-width: 470px; position: relative; z-index: 1; }
.auth-card {
    padding: 36px 32px 28px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background:
        radial-gradient(ellipse at 50% -10%, rgba(216, 182, 120, .14), transparent 60%),
        linear-gradient(158deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
    box-shadow: var(--shadow-lg);
}
.auth-brand { text-align: center; margin-bottom: 26px; display: grid; justify-items: center; gap: 4px; }
.auth-brand .brand-mark { width: 38px; height: 38px; margin-bottom: 6px; }
.auth-brand-name {
    font-family: var(--serif);
    font-size: 21px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-3);
}
.auth-brand-sub { font-size: 8.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted-2); }
.auth-head { margin-bottom: 22px; text-align: center; }
.auth-title { font-family: var(--serif); font-size: 1.85rem; color: #f8f3e9; margin: 8px 0 8px; }
.auth-sub { font-size: 12px; color: var(--muted-2); line-height: 1.7; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 11px; color: var(--muted-2); }
.auth-foot a { color: var(--gold-2); }
.auth-card .btn-block { margin-top: 6px; }
.admin-body .btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .panel-grid, .panel-grid--form, .form-grid { grid-template-columns: 1fr; }
    .form-side { order: -1; }
}
@media (max-width: 720px) {
    .admin-bar-inner { padding: 12px 18px; }
    .admin-main { padding: 24px 18px 56px; }
    .admin-nav { padding: 0 18px; }
    .stat-grid { gap: 12px; }
    .stat-card { padding: 18px; }
    .panel { padding: 18px; }
    .manage-item { flex-direction: column; gap: 12px; }
    .manage-actions { flex-direction: row; flex-wrap: wrap; }
    .auth-card { padding: 28px 22px 22px; }
    .toolbar { align-items: flex-start; }
}

/* ===== Pratinjau running text (Profil) ===== */
.ticker-contoh {
  overflow: hidden;
  margin: 0 0 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(201, 164, 104, 0.24);
  border-bottom: 1px solid rgba(201, 164, 104, 0.24);
  background: rgba(201, 164, 104, 0.07);
  border-radius: 8px;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: 600 11px/1.4 Inter, system-ui, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #D9C49A;
  text-align: center;
}
.ticker-contoh span {
  display: inline-block;
  padding: 0 14px;
  animation: tickerContoh 14s linear infinite;
}
@keyframes tickerContoh {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
