/* =====================================================================
   AhmdAPIs Dashboard — FULLY MANUAL (tanpa Bootstrap). Semua beranimasi,
   halus (tanpa blink), ikon FontAwesome. Variabel warna dari theme.css.
   ===================================================================== */

/* ---------- Base buttons (dipakai dashboard & modal) ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: .9rem; padding: 10px 18px; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer; line-height: 1; white-space: nowrap; transition: transform .2s ease, background .25s ease, box-shadow .25s ease, color .2s ease, border-color .2s ease, opacity .2s ease; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sm { padding: 7px 13px; font-size: .82rem; border-radius: 10px; }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37,99,235,.45); }
.btn-soft { background: var(--surface-2); color: var(--brand); border-color: var(--border); }
.btn-soft:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-2px); }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; background: transparent; color: var(--text); border: 1.5px solid transparent; cursor: pointer; font-size: 1.05rem; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.icon-btn:hover { background: var(--surface-2); color: var(--brand); transform: translateY(-2px); }
.ms-auto { margin-left: auto; }
.d-none { display: none !important; }

/* ---------- Navbar ---------- */
.dash-navbar { position: fixed; top: 0; left: 0; right: 0; height: 64px; background: var(--glass); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--glass-border); box-shadow: 0 4px 20px rgba(15,23,42,.06); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; z-index: 1040; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 10px; }
.nav-brand { font-size: 1.18rem; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; letter-spacing: -.3px; transition: transform .25s ease, opacity .25s ease; }
.nav-brand:hover { transform: translateY(-1px); opacity: .9; }
.nav-brand i { color: var(--brand); transition: transform .35s ease; }
.nav-brand:hover i { transform: rotate(-12deg) scale(1.12); }
.search-box { position: relative; display: flex; align-items: center; }
.search-box i { position: absolute; left: 13px; color: var(--text-muted); font-size: .9rem; pointer-events: none; transition: color .25s ease; }
.search-box input { padding: 9px 14px 9px 34px; border-radius: 12px; width: 220px; background: var(--surface-2); border: 1.5px solid transparent; color: var(--text); outline: none; transition: border-color .25s ease, box-shadow .25s ease, width .3s ease, background .25s ease; }
.search-box input:focus { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px rgba(37,99,235,.14); width: 250px; }
.search-box input:focus + i, .search-box:focus-within i { color: var(--brand); }
@media (max-width: 767px) { .search-box { display: none; } }

/* Animasi ikon toggle tema (restart tiap klik karena nama animasi ikut berganti) */
#themeToggle i { display: inline-block; transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
#themeToggle i.fa-moon { animation: iconSwapMoon .55s cubic-bezier(.34,1.56,.64,1); }
#themeToggle i.fa-sun { animation: iconSwapSun .55s cubic-bezier(.34,1.56,.64,1); }
@keyframes iconSwapMoon { 0% { transform: rotate(-160deg) scale(.2); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(0) scale(1); opacity: 1; } }
@keyframes iconSwapSun { 0% { transform: rotate(160deg) scale(.2); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(0) scale(1); opacity: 1; } }

/* ---------- Profile dropdown (animasi kecil -> normal) ---------- */
.profile { position: relative; }
.profile-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 18px 44px rgba(15,23,42,.18); padding: 8px; z-index: 1060; transform-origin: top right; transform: scale(.85) translateY(-6px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .28s cubic-bezier(.34,1.56,.64,1), opacity .2s ease, visibility .28s; }
.profile.open .profile-menu { transform: scale(1) translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.profile-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.profile-head i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-grad); color: #fff; font-size: 1.1rem; }
.profile-head strong { display: block; font-size: .92rem; }
.profile-head small { color: var(--text-muted); font-size: .78rem; }
.profile-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 600; transition: background .2s ease, color .2s ease, transform .2s ease; }
.profile-item i { width: 18px; text-align: center; color: var(--brand); transition: color .2s ease; }
.profile-item:hover { background: var(--surface-2); transform: translateX(3px); }
.profile-item.disabled { opacity: .5; pointer-events: none; }
.profile-sep { height: 1px; background: var(--border); margin: 6px 4px; }

/* ---------- Sidebar ---------- */
.sidebar { position: fixed; top: 64px; left: 0; bottom: 0; width: 260px; background: var(--surface); border-right: 1px solid var(--border); padding: 16px; overflow-y: auto; z-index: 1035; transform: translateX(-100%); transition: transform .35s cubic-bezier(.4,0,.2,1); }
body.sidebar-open .sidebar { transform: translateX(0); }
body.sidebar-open #content-wrap { margin-left: 260px; }
#content-wrap { margin-top: 64px; transition: margin-left .35s cubic-bezier(.4,0,.2,1); }
.overlay { position: fixed; inset: 64px 0 0 0; background: rgba(3,10,25,.4); opacity: 0; visibility: hidden; transition: opacity .3s ease; z-index: 1030; }
body.sidebar-open .overlay { opacity: 1; visibility: visible; }
@media (min-width: 992px) { body.sidebar-open .overlay { display: none; } }
@media (max-width: 991px) { body.sidebar-open #content-wrap { margin-left: 0; } .sidebar { width: 280px; } }
.sidebar-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin: 14px 6px 6px; }
.sidebar .nav-link { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; border-radius: 11px; padding: 11px 12px; margin-bottom: 3px; position: relative; overflow: hidden; transition: background .25s ease, color .25s ease, transform .2s ease, padding-left .25s ease; }
.sidebar .nav-link i { width: 20px; text-align: center; transition: transform .25s ease; }
.sidebar .nav-link:hover { background: var(--surface-2); padding-left: 16px; }
.sidebar .nav-link:hover i { transform: scale(1.15); }
.sidebar .nav-link.active { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.32); }
.sidebar .nav-link.active i { color: #fff; }

/* ---------- Content + HTMX transitions (no blink) ---------- */
.dash-main { padding: 22px; max-width: 1240px; }
.top-loader { position: fixed; top: 64px; left: 0; height: 3px; width: 100%; background: var(--brand-grad); transform: scaleX(0); transform-origin: left; z-index: 1050; }
.htmx-request .top-loader { animation: loading 1s ease infinite; }
@keyframes loading { 0% { transform: scaleX(0); } 50% { transform: scaleX(.7); } 100% { transform: scaleX(1); opacity: 0; } }
#main.htmx-swapping { opacity: 0; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease; }
#main.htmx-settling { opacity: 1; transform: translateY(0); transition: opacity .3s ease, transform .3s ease; }

/* ---------- Breadcrumb ---------- */
.breadcrumb-wrap { margin-bottom: 16px; }
.crumbs { list-style: none; display: flex; align-items: center; gap: 8px; padding: 0; margin: 0; font-size: .88rem; }
.crumbs li { display: inline-flex; align-items: center; color: var(--text-muted); }
.crumbs li + li::before { content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin: 0 10px 0 2px; color: var(--text-muted); opacity: .6; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); text-decoration: none; font-weight: 700; transition: color .2s ease, transform .2s ease; }
.crumbs a:hover { transform: translateX(-2px); opacity: .85; }
.crumbs .active { color: var(--text); font-weight: 700; }

/* ---------- Overview cards (mobile 1 kolom, ikon tak gepeng) ---------- */
.ov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ov-card { display: flex; align-items: center; gap: 14px; background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; transition: transform .3s ease, box-shadow .3s ease; }
.ov-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(37,99,235,.2); }
.ov-icon { flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; background: var(--brand-grad); color: #fff; font-size: 1.3rem; box-shadow: 0 8px 18px rgba(37,99,235,.35); transition: transform .3s ease; }
.ov-card:hover .ov-icon { transform: scale(1.08) rotate(-6deg); }
.ov-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ov-num, .ov-num * { font-family: "Fira Code", monospace; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.ov-num { font-size: 1.7rem; font-weight: 700; line-height: 1.15; display: inline-flex; align-items: baseline; }
.ov-num-sm { font-size: 1.1rem; }
.reel { display: inline-block; }
.reel-sep { display: inline-block; padding: 0 1px; }
.ov-label { font-size: .82rem; color: var(--text-muted); font-weight: 600; }
@media (max-width: 1100px) { .ov-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .ov-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ov-grid { grid-template-columns: 1fr; gap: 12px; } .ov-num { font-size: 1.5rem; } }

/* ---------- Quick access chips ---------- */
.quick-access { margin-top: 26px; }
.qa-title { display: flex; align-items: center; gap: 8px; font-size: .95rem; margin: 0 0 14px; }
.qa-title i { color: var(--brand); }
.qa-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 12px; padding: 10px 15px; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600; font-size: .86rem; cursor: pointer; transition: transform .2s ease, background .25s ease, color .25s ease, box-shadow .25s ease; }
.chip i { color: var(--brand); transition: color .2s ease; }
.chip:hover { background: var(--brand-grad); color: #fff; transform: translateY(-3px); box-shadow: 0 12px 24px rgba(37,99,235,.3); }
.chip:hover i { color: #fff; }

/* ---------- Category head + filter (animated) ---------- */
.cat-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.cat-title { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin: 0; }
.cat-title i { color: var(--brand); }
.filter-box { position: relative; display: flex; align-items: center; }
.filter-box i { position: absolute; left: 14px; color: var(--text-muted); font-size: .9rem; pointer-events: none; transition: color .25s ease, transform .25s ease; }
.filter-box input { padding: 11px 16px 11px 38px; width: 250px; border-radius: 13px; background: var(--surface-2); border: 1.5px solid transparent; color: var(--text); outline: none; transition: border-color .25s ease, box-shadow .25s ease, background .25s ease, width .3s ease; }
.filter-box input:focus { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px rgba(37,99,235,.14); width: 280px; }
.filter-box:focus-within i { color: var(--brand); transform: scale(1.12); }

/* ---------- Table (manual, latar = warna card, bukan abu-abu) ---------- */
.table-wrap { padding: 6px; overflow-x: auto; }
.api-table { width: 100%; border-collapse: separate; border-spacing: 0; background: transparent; font-size: .9rem; }
.api-table thead th { text-align: left; padding: 13px 14px; font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); border-bottom: 1.5px solid var(--border); white-space: nowrap; }
.api-table thead th i { color: var(--brand); margin-right: 4px; }
.api-table thead th[role="button"] { cursor: pointer; transition: color .2s ease; }
.api-table thead th[role="button"]:hover { color: var(--brand); }
.api-table thead .sort-ic { opacity: .5; margin-left: 3px; }
.api-table tbody td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text); }
.api-table tbody tr { transition: background .2s ease; }
.api-table tbody tr:hover { background: var(--surface-2); }
.api-table tbody tr:last-child td { border-bottom: none; }
.td-name { font-weight: 700; }
.td-desc { color: var(--text-muted); max-width: 320px; }
.ta-end { text-align: right; }
.td-params { max-width: 280px; vertical-align: middle; }
.td-params .param-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.param { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); border-radius: 8px; padding: 3px 8px; font-family: "Fira Code", monospace; font-size: .76rem; transition: transform .2s ease, background .2s ease; }
.param:hover { transform: translateY(-2px); }
.param i { font-size: .7rem; }
.param.req { background: rgba(37,99,235,.12); border-color: rgba(37,99,235,.3); color: var(--brand); }
.param.muted { opacity: .6; }
.star { color: #ef4444; font-weight: 800; margin-left: 1px; }
.table-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* Badges (method + status) */
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; padding: 4px 10px; font-size: .75rem; font-weight: 700; color: #fff; letter-spacing: .3px; }
.badge.method { text-transform: uppercase; }
.method-GET { background: #16a34a; } .method-POST { background: #2563eb; } .method-PUT { background: #d97706; } .method-DELETE { background: #dc2626; }
.badge.status { text-transform: capitalize; }
.badge.status i { font-size: .5rem; }
.status-online { background: rgba(22,163,74,.15); color: #16a34a; }
.status-degraded { background: rgba(217,119,6,.15); color: #d97706; }
.status-offline { background: rgba(220,38,38,.15); color: #dc2626; }

/* Pager (manual, kompat dgn markup lama .page-item/.page-link) */
.pager { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; }
.pager li, .pager .page-item { display: inline-flex; }
.pager a, .pager .page-link, .pager button { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: .84rem; font-weight: 600; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.pager a:hover, .pager .page-link:hover, .pager button:hover { transform: translateY(-2px); color: var(--brand); }
.pager .active a, .pager .page-item.active .page-link, .pager .active button { background: var(--brand-grad); color: #fff; border-color: transparent; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 46px 20px; color: var(--text-muted); }
.empty-state i { font-size: 2rem; color: var(--brand); opacity: .7; }
.empty-state p { margin: 12px 0 0; }

/* ---------- Cards / titles ---------- */
.card-title { display: flex; align-items: center; gap: 9px; margin: 0 0 6px; }
.card-title i { color: var(--brand); }
.doc-code { background: #282c34; color: #abb2bf; border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-family: "Fira Code", monospace; font-size: .86rem; }

/* ---------- API Key field ---------- */
.key-field { display: flex; gap: 8px; margin: 16px 0; }
.key-field input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 12px; background: var(--surface-2); border: 1.5px solid var(--border); color: var(--text); font-family: "Fira Code", monospace; outline: none; }

/* ---------- Recent list ---------- */
.recent-list { list-style: none; padding: 0; margin: 0; }
.recent-list li { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.recent-list li:last-child { border-bottom: none; }

/* ---------- Settings switch (custom) ---------- */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.switch-row > span:first-child { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.switch-row i { color: var(--brand); }
.switch { position: relative; width: 48px; height: 26px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; transition: background .3s ease; }
.slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.switch input:checked + .slider { background: var(--brand-grad); border-color: transparent; }
.switch input:checked + .slider::before { transform: translateX(22px); }

/* ---------- Try modal (manual; markup lama distyle di sini) ---------- */
.modal { position: fixed; inset: 0; z-index: 1080; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.fade.show, .modal.show { display: flex; }
.modal-backdrop-el { position: absolute; inset: 0; background: rgba(3,10,25,.55); backdrop-filter: blur(3px); animation: fadeIn .25s ease; }
.modal-dialog { position: relative; width: 100%; max-width: 640px; z-index: 1; animation: modalPop .38s cubic-bezier(.34,1.56,.64,1); }
@keyframes modalPop { 0% { opacity: 0; transform: scale(.9) translateY(14px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content { max-height: 85vh; overflow-y: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.modal-title { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 1.08rem; }
.modal-title i { color: var(--brand); }
.modal-body { margin: 6px 0; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.btn-close { background: transparent; border: none; }
/* Form fields yang dibuat try-modal.js (nama class lama distyle manual) */
.try-form, .row.g-3 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.try-form [class*="col-"], .row [class*="col-"] { min-width: 0; }
.form-label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-control, .form-select { width: 100%; padding: 10px 13px; border-radius: 11px; background: var(--surface-2); border: 1.5px solid var(--border); color: var(--text); font-family: "Plus Jakarta Sans", sans-serif; outline: none; transition: border-color .25s ease, box-shadow .25s ease, background .25s ease; }
.form-control:focus, .form-select:focus { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px rgba(37,99,235,.14); }
.text-danger { color: #ef4444; }
@media (max-width: 560px) { .try-form, .row.g-3 { grid-template-columns: 1fr; } }
.try-result { margin-top: 16px; animation: codeInDash .35s ease; }
@keyframes codeInDash { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.result-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .85rem; }
.result-json { max-height: 340px; overflow: auto; border-radius: 12px; background: #282c34; padding: 14px 16px; margin: 0; }
.result-json code, .result-json .shiki, .result-json .shiki * { font-family: "Fira Code", monospace !important; font-size: .84rem; }

/* ---------- Toast (manual) ---------- */
.toast-container { position: fixed; right: 18px; bottom: 18px; z-index: 1090; display: flex; flex-direction: column; gap: 10px; }
.toast-msg { display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: 340px; padding: 13px 16px; border-radius: 13px; color: #fff; font-weight: 600; font-size: .88rem; box-shadow: 0 12px 30px rgba(15,23,42,.28); animation: toastIn .35s cubic-bezier(.34,1.56,.64,1); }
.toast-msg.out { animation: toastOut .3s ease forwards; }
.toast-msg i { font-size: 1rem; }
.toast-primary { background: var(--brand-grad); }
.toast-success { background: linear-gradient(135deg,#16a34a,#22c55e); }
.toast-danger { background: linear-gradient(135deg,#dc2626,#ef4444); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(.9); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ============ Cursor hanya untuk PC, dihapus di mobile ============ */
@media (max-width: 991px) {
  a, button, [role="button"], .btn, .icon-btn, .chip, .switch-row, .switch, .slider, .profile-item, .crumbs a, .code-tab, .pager button, .pager a, .api-table thead th[role="button"], .filter-box, .btn-try, label, .fld-label, .try-alert-x { cursor: default !important; }
}

/* ============ Try panel (pengganti modal) ============ */
.try-panel { position: relative; margin-top: 18px; opacity: 0; transform: translateY(-26px); transition: opacity .5s ease, transform .55s cubic-bezier(.22,1,.36,1); }
.try-panel.open { opacity: 1; transform: translateY(0); }
.try-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.try-panel .card-title { margin: 0; }
.try-url-row { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; margin: 12px 0; }
.try-method { flex: 0 0 auto; font-family: "Fira Code", monospace; font-weight: 700; font-size: .75rem; color: #fff; background: var(--brand-grad); padding: 4px 9px; border-radius: 7px; }
.try-url { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-family: "Fira Code", monospace; font-size: .82rem; color: var(--text); }
.try-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin: 6px 0 16px; }
.fld { position: relative; }
.fld-input { width: 100%; box-sizing: border-box; padding: 18px 13px 7px; border-radius: 12px; background: var(--surface-2); border: 1.5px solid var(--border); color: var(--text); font-family: "Plus Jakarta Sans", sans-serif; font-size: .9rem; outline: none; transition: border-color .25s ease, box-shadow .25s ease, background .25s ease; }
.fld-input:focus { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px rgba(37,99,235,.14); }
.fld-label { position: absolute; left: 13px; top: 14px; color: var(--text-muted); font-size: .9rem; pointer-events: none; transition: top .2s ease, font-size .2s ease, color .2s ease; }
.fld-input:focus + .fld-label, .fld-input:not(:placeholder-shown) + .fld-label { top: 5px; font-size: .68rem; color: var(--brand); }
.fld-label .opt { color: var(--text-muted); font-weight: 500; }
.try-actions { display: flex; align-items: center; gap: 14px; }
.try-ping { display: inline-flex; align-items: center; gap: 6px; font-family: "Fira Code", monospace; font-size: .82rem; color: var(--text-muted); }
.try-ping i { color: var(--brand); }
#trySend.loading { opacity: .7; pointer-events: none; }
#trySend.loading i { animation: spinTry .8s linear infinite; }
@keyframes spinTry { to { transform: rotate(360deg); } }
.try-output { margin-top: 16px; animation: codeInDash .35s ease; }
.try-out-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 700; font-size: .9rem; }
.try-out-head i { color: var(--brand); }
.try-img { max-width: 100%; border-radius: 12px; border: 1px solid var(--border); }
.try-alert-stack { position: fixed; top: 80px; right: 18px; z-index: 1200; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 36px)); pointer-events: none; }
.try-alert-stack .try-alert { pointer-events: auto; }
.try-alert { position: relative; display: flex; align-items: center; gap: 11px; overflow: hidden; padding: 13px 42px 13px 15px; border-radius: 14px; color: var(--text); background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 16px 40px rgba(15,23,42,.22); opacity: 0; transform: translateX(115%); transition: opacity .45s ease, transform .55s cubic-bezier(.22,1,.36,1); }
.try-alert.show { opacity: 1; transform: translateX(0); }
.try-alert.out { opacity: 0; transform: translateX(115%); }
.try-alert i { font-size: 1.15rem; }
.try-alert-body strong { font-family: "Fira Code", monospace; margin-right: 4px; }
.try-alert-ok { background: linear-gradient(135deg,#16a34a,#22c55e); }
.try-alert-warn { background: linear-gradient(135deg,#d97706,#f59e0b); }
.try-alert-err { background: linear-gradient(135deg,#dc2626,#ef4444); }
.try-alert-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.2); border: none; color: #fff; width: 24px; height: 24px; border-radius: 7px; cursor: pointer; display: grid; place-items: center; transition: background .2s ease; }
.try-alert-x:hover { background: rgba(255,255,255,.35); }
.try-alert-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255,255,255,.85); }
@media (max-width: 600px) { .try-fields { grid-template-columns: 1fr; } }

/* ============ Footer dashboard (copyright, gaya landing) ============ */
.dash-footer { margin-top: 0; padding: 26px 24px; border-top: 1px solid var(--border); background: var(--surface); }
.dash-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; max-width: 1160px; margin: 0 auto; }
.dash-footer .footer-logo { font-size: 1.15rem; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.dash-footer-social { display: flex; gap: 10px; }
.dash-footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--brand); border: 1px solid var(--border); font-size: 1rem; text-decoration: none; transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease; }
.dash-footer-social a:hover { transform: translateY(-3px); background: var(--brand); color: #fff; box-shadow: 0 10px 22px rgba(37,99,235,.35); }
.dash-footer-bottom { max-width: 1160px; margin: 14px auto 0; text-align: center; color: var(--text-muted); font-size: .85rem; }
@media (max-width: 600px) { .dash-footer-inner { flex-direction: column; text-align: center; } }

/* ====== Sticky footer (anti-terbang) + alert transparan + validasi input ====== */
#content-wrap { display: flex; flex-direction: column; min-height: 100vh; box-sizing: border-box; }
#content-wrap #main { flex: 1 0 auto; }
.dash-footer { flex-shrink: 0; }

.try-alert-body { flex: 1; font-size: .9rem; line-height: 1.35; }
.try-alert-body strong { font-weight: 700; }
.try-alert-ok, .try-alert-warn, .try-alert-err { background: var(--glass); }
.try-alert-ok { border-left: 4px solid #16a34a; }
.try-alert-ok > i { color: #16a34a; }
.try-alert-warn { border-left: 4px solid #d97706; }
.try-alert-warn > i { color: #d97706; }
.try-alert-err { border-left: 4px solid #dc2626; }
.try-alert-err > i { color: #dc2626; }
.try-alert > i { font-size: 1.05rem; flex-shrink: 0; }
.try-alert-x { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: none; background: transparent; color: var(--text-muted); border-radius: 8px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.try-alert-x:hover { background: var(--surface-2); color: var(--text); }
.try-alert-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--brand); transform-origin: left; transform: scaleX(1); }
.try-alert.run .try-alert-bar { animation: tryBar 4s linear forwards; }
@keyframes tryBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.fld-input.invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.15); animation: fldShake .4s ease; }
@keyframes fldShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* ====== Footer benar-benar flush: buang padding container di sekeliling footer ====== */
/* Padding horizontal & bawah dipindah dari #content-wrap ke .dash-main, jadi footer edge-to-edge (desktop & mobile), tanpa gap. Padding-top (offset navbar) tetap. */
#content-wrap { padding-left: 0 !important; padding-right: 0 !important; padding-bottom: 0 !important; }
.dash-main { padding-left: 24px; padding-right: 24px; }
.dash-footer { margin: 0; border-radius: 0; }