:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #172637;
  background: #fff;
  --blue: #164ddc;
  --line: #e1e7ef;
  --muted: #64748b;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
a { color: inherit; }

.wrap { max-width: 1200px; margin: auto; padding: 0 24px; }
.topline { background: #10233e; color: #dce7ff; font-size: 11px; letter-spacing: 1px; }
.topline-inner { display: flex; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.site-header { border-top: 5px solid var(--blue); }
.header-content { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.brand { text-decoration: none; font-weight: 900; font-size: 38px; letter-spacing: -2px; }
.brand span, footer strong span { color: var(--blue); }
.brand small { display: block; font-size: 10px; letter-spacing: 3px; color: #677587; margin-top: 4px; }
.header-side { font-size: 11px; font-weight: 800; color: #3e526c; letter-spacing: 1px; }
.live-dot { display: inline-block; width: 8px; height: 8px; background: #e23b4c; border-radius: 50%; margin-right: 6px; }

.nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.nav-inner { display: flex; overflow: auto; gap: 28px; }
.nav-link { background: none; border: 0; border-bottom: 3px solid transparent; padding: 16px 0 13px; color: #40516a; white-space: nowrap; font-size: 13px; font-weight: 800; }
.nav-link.active, .nav-link:hover { border-color: var(--blue); color: var(--blue); }

.ticker { background: #f3f6fb; border-bottom: 1px solid var(--line); }
.ticker-inner { display: flex; gap: 18px; align-items: center; font-size: 12px; color: #52637b; padding-top: 11px; padding-bottom: 11px; }
.ticker b { background: var(--blue); color: #fff; padding: 6px 10px; font-size: 10px; letter-spacing: 1px; }

.main { padding-top: 34px; padding-bottom: 75px; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 29px; }
.eyebrow { font-size: 11px; letter-spacing: 1px; font-weight: 800; color: var(--blue); display: block; margin-bottom: 12px; }
.section-intro h1 { font-size: 35px; letter-spacing: -1.4px; margin: 0 0 8px; }
.section-intro p { margin: 0; color: var(--muted); font-size: 14px; }
.search { border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; padding: 12px 14px; gap: 9px; min-width: 270px; }
.search svg { width: 17px; height: 17px; fill: none; stroke: #748197; stroke-width: 2; }
.search input { border: 0; outline: 0; width: 100%; font-size: 13px; }

.main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
.feature-card { display: grid; grid-template-columns: 52% 48%; text-align: left; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; padding: 0; width: 100%; }
.feature-image { min-height: 310px; background: #eaf0f9; }
.feature-image img, .article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-copy { padding: 28px; }
.feature-copy h2 { font-size: 27px; line-height: 1.23; letter-spacing: -.8px; margin: 10px 0 14px; }
.feature-copy p { font-size: 14px; line-height: 1.7; color: #607088; }
.readmore { display: inline-block; color: var(--blue); font-weight: 800; font-size: 12px; margin-top: 12px; }
.placeholder { height: 100%; min-height: 160px; background: linear-gradient(135deg, #0c2555, #164ddc 75%, #6f9cff); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; gap: 8px; }
.placeholder>span { font-size: 22px; font-weight: 900; letter-spacing: -1px; }
.placeholder>span span { color: #b6d0ff; }
.placeholder small { font-size: 9px; letter-spacing: 2px; }

.section-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid #142a48; margin: 36px 0 8px; padding-bottom: 12px; }
.section-heading h2 { font-size: 21px; margin: 0; }
.section-heading span { font-size: 12px; color: var(--muted); }
.article-card { display: grid; grid-template-columns: 200px 1fr; gap: 20px; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 22px 0; text-align: left; }
.article-card:hover h3, .popular-item:hover span { color: var(--blue); }
.article-thumb { height: 132px; overflow: hidden; border-radius: 6px; }
.article-card h3 { font-size: 19px; line-height: 1.3; margin: 4px 0 8px; }
.article-card p { font-size: 13px; color: #64748b; line-height: 1.6; margin: 0; }

.aside-box { border: 1px solid var(--line); border-radius: 9px; padding: 20px; margin-bottom: 22px; }
.aside-box h3 { font-size: 13px; letter-spacing: 1px; margin: 0 0 18px; border-left: 4px solid var(--blue); padding-left: 10px; }
.popular-item { border: 0; border-top: 1px solid var(--line); padding: 15px 0; display: flex; gap: 14px; background: none; width: 100%; text-align: left; }
.popular-item b { font-size: 24px; color: #a8b9d1; }
.popular-item span { font-size: 13px; line-height: 1.45; font-weight: 700; }
.about { background: #f4f7fc; }
.about p { color: #5f6e83; font-size: 13px; line-height: 1.7; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags button { background: #eef3fb; border: 1px solid #dae5f4; border-radius: 5px; padding: 8px 10px; color: #285080; font-size: 12px; }
.empty { padding: 30px; color: var(--muted); }

footer { background: #10233e; color: #e9eff9; padding: 38px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 30px; }
.footer-grid strong { font-size: 25px; }
.footer-grid b { font-size: 12px; letter-spacing: 1px; }
.footer-grid p { font-size: 12px; line-height: 1.7; color: #b4c2d7; }
.footer-grid a { color: #dceaff; }
.copyright { border-top: 1px solid #34465e; padding-top: 18px; margin-top: 25px; font-size: 11px; color: #a6b8d1; }

/* --- MODAL & DIALOGS --- */
.article-dialog, .privacy-dialog { border: 0; border-radius: 12px; box-shadow: 0 24px 80px #10233e66; max-width: 790px; width: calc(100% - 28px); max-height: 90vh; padding: 38px; position: fixed; }
.article-dialog::backdrop, .privacy-dialog::backdrop { background: #0e2139aa; }
.article-dialog h1 { font-size: 34px; line-height: 1.25; letter-spacing: -1px; }
.article-dialog p { font-family: Georgia, serif; font-size: 18px; line-height: 1.8; }
.article-dialog .lead { font-weight: bold; }
.article-dialog .article-meta { font-family: Arial, sans-serif; font-size: 12px; color: var(--muted); }
.article-hero { width: 100%; height: auto; border-radius: 6px; }
.close { float: right; border: 0; background: #eff3f9; font-size: 27px; border-radius: 50%; width: 39px; height: 39px; }
.privacy-dialog { max-width: 560px; }
.privacy-dialog p { font-size: 14px; line-height: 1.7; }
.primary-btn { border: 0; background: var(--blue); color: #fff; border-radius: 6px; padding: 13px 16px; font-weight: bold; }

/* --- MEDIA QUERIES --- */
@media(max-width:900px){ .main-grid { grid-template-columns: 1fr; } .main-grid aside { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; } .aside-box { margin: 0; } .main-grid aside .aside-box:last-child { grid-column: 1/-1; } }
@media(max-width:650px){ .wrap { padding-left: 17px; padding-right: 17px; } .topline-inner { font-size: 9px; } .brand { font-size: 29px; } .header-content { padding-top: 22px; padding-bottom: 22px; } .header-side { font-size: 9px; } .nav-inner { gap: 22px; } .section-intro { display: block; } .section-intro h1 { font-size: 28px; } .search { margin-top: 20px; min-width: 0; } .feature-card { display: block; } .feature-image { height: 230px; min-height: 0; } .feature-copy { padding: 22px; } .feature-copy h2 { font-size: 24px; } .article-card { grid-template-columns: 115px 1fr; gap: 13px; } .article-thumb { height: 100px; } .article-card h3 { font-size: 15px; } .article-card p { display: none; } .main-grid aside { display: block; } .aside-box { margin-bottom: 16px; } .footer-grid { grid-template-columns: 1fr; gap: 12px; } .article-dialog, .privacy-dialog { padding: 20px; } .article-dialog h1 { font-size: 26px; } .article-dialog p { font-size: 16px; } }

/* --- V4.1 READING CONTROLS --- */
.feed-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0; color: var(--muted); font-size: 13px; }
.feed-controls select, .feed-controls button, .pagination button, .article-actions button { background: white; color: #164ddc; border: 1px solid #cbd8ed; border-radius: 7px; padding: 10px 13px; font-weight: 700; }
.feed-controls button[aria-pressed="true"] { background: #164ddc; color: white; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px 0; font-size: 13px; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.article-actions { display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid #e1e7ef; padding-top: 18px; }
.reading-progress { height: 4px; width: 0; background: #164ddc; position: sticky; top: -38px; z-index: 2; transition: width .1s; }
#article-feedback { font-size: 13px; color: #52637b; }
button:hover:not(:disabled) { filter: brightness(.96); }
@media(max-width:650px){ .article-actions button { flex: 1; } .feed-controls { gap: 8px; } }

/* --- V4.2 READER ACKNOWLEDGEMENT GATE --- */
.access-gate { border: 0; border-radius: 14px; box-shadow: 0 25px 90px #10233e66; max-width: 580px; width: calc(100% - 28px); max-height: 90vh; overflow: auto; padding: 29px 31px; position: fixed; }
.access-gate::backdrop { background: rgba(9,25,50,.68); backdrop-filter: blur(2px); }
.access-gate h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.5px; margin: 12px 0; }
.access-gate p { font-size: 14px; line-height: 1.65; color: #53627a; }
.gate-eyebrow { display: block; color: #164ddc; font-size: 10px; font-weight: 800; letter-spacing: 1.4px; padding-top: 4px; }
.gate-preview { background: #f1f5fc; border: 1px solid #dde7f5; border-radius: 9px; padding: 14px 16px; margin: 18px 0; }
.gate-preview span { color: #597399; font-size: 10px; letter-spacing: .9px; font-weight: 800; display: block; margin-bottom: 8px; }
.gate-preview strong { line-height: 1.4; display: block; font-size: 16px; }
.gate-terms { border-left: 3px solid #164ddc; background: #fafcff; padding: 10px 15px; margin: 16px 0; }
.gate-terms strong { font-size: 13px; }
.gate-terms p { font-size: 12px; margin: 8px 0; }
.gate-check { display: flex; align-items: flex-start; gap: 12px; border: 1px solid #cad9eb; border-radius: 9px; padding: 14px; cursor: pointer; font-weight: 700; font-size: 13px; line-height: 1.5; }
.gate-check input { width: 19px; height: 19px; flex: none; accent-color: #164ddc; margin: 0; }
.gate-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.gate-actions button { border-radius: 7px; border: 1px solid #cbd8ed; padding: 13px 16px; font-size: 13px; font-weight: 800; }
.gate-decline { background: #fff; color: #34465e; }
.gate-confirm { background: #164ddc; color: #fff; border-color: #164ddc!important; }
.gate-confirm:disabled { background: #d7dfeb; color: #6a7890; border-color: #d7dfeb!important; cursor: not-allowed; filter: none!important; }
.gate-feedback { min-height: 0; margin: 0!important; }
@media(max-width:650px){ .access-gate { padding: 23px 19px; } .access-gate h2 { font-size: 23px; } .gate-actions { flex-direction: column-reverse; } .gate-actions button { width: 100%; } }

/* --- FIXED LANDING GATE FORM (PRESISI & RAPI) --- */
#form-identitas label {
  display: block !important;
  margin-bottom: 6px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  color: #1e293b !important;
}
#form-identitas input {
  display: block !important;
  width: 100% !important;
  padding: 12px 14px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  color: #0f172a !important;
  background: #fff !important;
  box-sizing: border-box !important;
  margin-bottom: 16px !important;
  outline: none !important;
}
#form-identitas input:focus {
  border-color: #164ddc !important;
  box-shadow: 0 0 0 3px rgba(22, 77, 220, 0.15) !important;
}
#form-identitas input::placeholder {
  color: #94a3b8 !important;
  font-weight: 400 !important;
}
/* =========================================
   ADMIN DASHBOARD STYLES (FIXED)
   ========================================= */
.admin-page { background: #f4f7fc; color: #172637; }
.admin-wrap { max-width: 1100px; margin: auto; padding: 30px 20px 60px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; font-size: 14px; font-weight: bold; }
.admin-top a { color: var(--blue); text-decoration: none; }
.admin-brand { font-size: 24px; font-weight: 900; letter-spacing: -1px; }
.admin-brand span { color: var(--blue); }

.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; box-shadow: 0 4px 20px rgba(16,35,62,.04); margin-bottom: 24px; }
.admin-note { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }

/* Login Form */
.admin-form label { display: block; margin-bottom: 16px; font-weight: bold; font-size: 13px; }
.admin-form input { display: block; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; margin-top: 6px; }
.admin-form input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(22,77,220,.15); }
.primary-btn { background: var(--blue); color: #fff; border: none; padding: 12px 20px; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 14px; }
.primary-btn:hover { background: #0b3dbf; }
.secondary-btn { background: #fff; color: var(--blue); border: 1px solid #cbd8ed; padding: 10px 16px; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 13px; }
.secondary-btn:hover { background: #f0f5ff; }
.admin-status { font-size: 13px; color: #e23b4c; margin-top: 12px; font-weight: bold; }

/* Dashboard Header & Tabs */
.admin-console-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.admin-console-header h1 { font-size: 28px; margin: 4px 0 8px; }
.admin-tabs { display: flex; gap: 10px; border-bottom: 2px solid var(--line); margin-bottom: 24px; padding-bottom: 10px; }
.admin-tabs button { background: #f4f7fc; border: 1px solid var(--line); padding: 10px 16px; border-radius: 6px; font-weight: bold; color: #52637b; cursor: pointer; font-size: 13px; }
.admin-tabs button.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Stats */
.admin-stats { display: flex; gap: 16px; margin-bottom: 24px; }
.admin-stat { background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; flex: 1; }
.admin-stat strong { display: block; font-size: 24px; color: var(--blue); margin-bottom: 4px; }
.admin-stat span { font-size: 12px; color: var(--muted); font-weight: bold; text-transform: uppercase; letter-spacing: .5px; }

/* Tables */
.admin-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.admin-actions input[type="search"] { padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; min-width: 250px; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.admin-table th { background: #f8fafc; padding: 12px 16px; font-weight: bold; color: #3e526c; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table a { color: var(--blue); text-decoration: none; font-weight: bold; }
.admin-table button { background: #fff; border: 1px solid #fca5a5; color: #dc2626; padding: 6px 10px; border-radius: 4px; font-size: 12px; font-weight: bold; cursor: pointer; }

/* CMS Editor Layout */
.editor-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-top: 20px; align-items: start; }
.editor-form { background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.editor-form-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.editor-form-head h3 { margin: 0; font-size: 18px; }
.editor-form-head span { font-size: 12px; color: var(--muted); }
.editor-form label { display: block; margin-bottom: 14px; font-weight: bold; font-size: 13px; }
.editor-form input[type="text"], .editor-form select, .editor-form textarea { display: block; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; margin-top: 6px; font-family: inherit; }
.editor-form textarea { resize: vertical; }
.editor-fields-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.editor-featured { display: flex !important; align-items: center; gap: 8px; margin-top: 28px !important; }
.editor-featured input { width: 18px; height: 18px; }
.editor-media-fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 14px; margin-bottom: 16px; }
.editor-media-fieldset legend { font-size: 13px; font-weight: bold; padding: 0 6px; }
.editor-image-preview { margin-top: 12px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.editor-image-preview img { max-width: 100%; border-radius: 4px; margin-bottom: 10px; display: block; }
.editor-buttons { display: flex; gap: 10px; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }

.editor-list-wrap { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.editorial-row { border-bottom: 1px solid var(--line); padding: 16px 0; }
.editorial-row:last-child { border-bottom: none; }
.editorial-state { font-size: 10px; font-weight: bold; padding: 4px 8px; border-radius: 4px; letter-spacing: .5px; }
.editorial-state.published { background: #dcfce7; color: #166534; }
.editorial-state.draft { background: #f1f5f9; color: #475569; }
.editorial-featured { font-size: 11px; color: #d97706; font-weight: bold; }
.editorial-row strong { display: block; font-size: 15px; margin: 8px 0; line-height: 1.3; }
.editorial-row p { font-size: 12px; color: var(--muted); margin: 4px 0; }
.editorial-row small { font-size: 11px; color: #94a3b8; }
.editorial-row-actions { margin-top: 10px; display: flex; gap: 8px; }
.editorial-row-actions button { background: #fff; border: 1px solid var(--line); padding: 6px 10px; font-size: 12px; border-radius: 4px; font-weight: bold; cursor: pointer; }
.editorial-row-actions button.danger-outline { color: #dc2626; border-color: #fca5a5; }

/* RSS Feeds */
.feed-list { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.feed-row { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.feed-row:last-child { border-bottom: none; }
.feed-row strong { display: block; font-size: 14px; margin-bottom: 4px; }
.feed-row small { display: block; font-size: 11px; color: var(--muted); word-break: break-all; }
.feed-category { font-size: 10px; font-weight: bold; background: #eef3fb; padding: 2px 6px; border-radius: 4px; margin-left: 8px; color: var(--blue); }
.feed-switch { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: bold; cursor: pointer; }
.feed-switch input { width: 18px; height: 18px; }

@media(max-width: 800px) {
  .editor-layout { grid-template-columns: 1fr; }
  .admin-tabs { flex-wrap: wrap; }
  .admin-console-header { flex-direction: column; gap: 16px; }
  .admin-stats { flex-direction: column; }
}