/* Admin Virtual BigDream - memakai tema Studio: tosca (utama) + oranye (aksen/CTA). Tanpa build step. */
:root {
    --bg: #f4faf9; --bg-2: #e6f5f2;
    --glass: rgba(255,255,255,.72); --glass-2: rgba(255,255,255,.92); --glass-solid: #ffffff;
    --stroke: rgba(15,70,70,.11); --stroke-2: rgba(15,70,70,.22);
    --text: #0f2a2c; --muted: #4d6a6c; --faint: #7a9496;
    --blue: #0d9488; --cyan: #0f9f95; --violet: #14b8a6; --pink: #f59e0b; --orange: #f97316;
    --ok: #16a34a; --bad: #e11d48; --warn: #f59e0b;
    --holo: linear-gradient(120deg, #2dd4bf, #14b8a6 50%, #0d9488);
    --shadow: 0 10px 30px rgba(13,90,90,.10);
    --glow: rgba(13,148,136,.28);
    --radius: 20px; --sidebar: 280px;
    --mesh-a: #5eead4; --mesh-b: #99f6e4; --mesh-c: #fdba74; --mesh-o: .35;
    color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #071517; --bg-2: #0b2023;
    --glass: rgba(255,255,255,.055); --glass-2: rgba(255,255,255,.09); --glass-solid: #0e2326;
    --stroke: rgba(255,255,255,.12); --stroke-2: rgba(255,255,255,.22);
    --text: #e8f6f5; --muted: #93b3b3; --faint: #6c8d8e;
    --blue: #2dd4bf; --cyan: #5eead4; --violet: #14b8a6; --pink: #fbbf24; --orange: #fb923c;
    --ok: #34d399; --bad: #ff6b81; --warn: #fbbf24;
    --shadow: 0 10px 40px rgba(0,0,0,.35);
    --glow: rgba(45,212,191,.28);
    --mesh-a: #0d9488; --mesh-b: #0f766e; --mesh-c: #c2410c; --mesh-o: .32;
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #071517; --bg-2: #0b2023;
        --glass: rgba(255,255,255,.055); --glass-2: rgba(255,255,255,.09); --glass-solid: #0e2326;
        --stroke: rgba(255,255,255,.12); --stroke-2: rgba(255,255,255,.22);
        --text: #e8f6f5; --muted: #93b3b3; --faint: #6c8d8e;
        --blue: #2dd4bf; --cyan: #5eead4; --violet: #14b8a6; --pink: #fbbf24; --orange: #fb923c;
        --ok: #34d399; --bad: #ff6b81; --warn: #fbbf24;
        --shadow: 0 10px 40px rgba(0,0,0,.35);
        --glow: rgba(45,212,191,.28);
        --mesh-a: #0d9488; --mesh-b: #0f766e; --mesh-c: #c2410c; --mesh-o: .32;
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5; overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; }

/* Latar: gradien mesh bergerak pelan */
.bg-mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(1200px 700px at 80% -10%, var(--bg-2), var(--bg)); }
.bg-mesh i { position: absolute; border-radius: 50%; filter: blur(100px); opacity: var(--mesh-o); animation: drift 22s ease-in-out infinite alternate; }
.bg-mesh i:nth-child(1) { width: 520px; height: 520px; left: -140px; top: -120px; background: var(--mesh-a); }
.bg-mesh i:nth-child(2) { width: 460px; height: 460px; right: -120px; top: 12%; background: var(--mesh-b); animation-duration: 28s; }
.bg-mesh i:nth-child(3) { width: 420px; height: 420px; left: 28%; bottom: -160px; background: var(--mesh-c); opacity: .22; animation-duration: 32s; }
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .bg-mesh i, .holo-text, .btn::after { animation: none !important; } }

/* Kerangka */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
    position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 14px; display: flex; flex-direction: column; gap: 14px;
    background: var(--glass); border-right: 1px solid var(--stroke); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
    z-index: 50;
}
.sidebar > * { flex: none; }
.main { min-width: 0; padding: 22px clamp(14px, 3vw, 36px) 60px; }
.topbar { display: none; }
.scrim { display: none; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none !important; padding: 4px 6px; }
.brand .logo { width: 34px; height: 34px; border-radius: 11px; background: var(--holo); display: grid; place-items: center; box-shadow: 0 6px 20px var(--glow); }
.brand .logo svg { width: 19px; height: 19px; stroke: #fff; }
.brand b { background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Ikon */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Kartu paket di sidebar */
.plan-card { position: relative; padding: 14px; border-radius: 18px; background: var(--glass-2); border: 1px solid var(--stroke); overflow: hidden; }
.plan-card::before { content: ""; position: absolute; inset: 0; background: var(--holo); opacity: .10; pointer-events: none; }
.plan-card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; }
.plan-name { font-weight: 800; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.plan-name .ic { color: var(--warn); }
.badge-free { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--glass-2); border: 1px solid var(--stroke); color: var(--muted); }
.plan-meta { font-size: 12px; color: var(--muted); margin-top: 2px; position: relative; }
.mini-quota { margin-top: 12px; display: grid; gap: 9px; position: relative; }
.q { font-size: 12px; }
.q .top { display: flex; justify-content: space-between; color: var(--muted); }
.q .top b { color: var(--text); font-weight: 700; }
.bar { height: 7px; border-radius: 99px; background: rgba(127,140,180,.22); overflow: hidden; margin-top: 4px; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2dd4bf, #0d9488); transition: width .6s ease; }
.bar.warn > i { background: linear-gradient(90deg, var(--warn), var(--orange)); }
.bar.full > i { background: linear-gradient(90deg, var(--orange), var(--bad)); }

/* Navigasi */
.nav { display: grid; gap: 2px; }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); padding: 12px 10px 4px; }
.nav a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--muted); font-weight: 600; font-size: 14.5px;
    text-decoration: none !important; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.nav a:hover { background: var(--glass); color: var(--text); }
.nav a.active { color: var(--text); background: var(--glass-2); border-color: var(--stroke-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 6px 20px var(--glow); }
.nav a.active .ic { color: var(--cyan); }
.nav a .tag { margin-left: auto; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--glass-2); color: var(--faint); display: inline-flex; align-items: center; gap: 4px; }
.nav a .tag .ic { width: 12px; height: 12px; }
.nav a.locked { opacity: .72; }
.sidebar-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--stroke); }
.who { display: flex; align-items: center; gap: 10px; padding: 4px 6px; min-width: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--holo); display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }

/* Tombol */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: 0; overflow: hidden;
    padding: 12px 20px; border-radius: 14px; font: inherit; font-weight: 700; font-size: 15px; color: #fff; text-decoration: none !important;
    background: linear-gradient(120deg, #14b8a6, #0d9488); background-size: 160% 100%; box-shadow: 0 8px 22px var(--glow);
    transition: transform .15s, box-shadow .15s, background-position .4s;
}
.btn:hover { transform: translateY(-1px); background-position: 100% 0; box-shadow: 0 12px 30px var(--glow); }
.btn:active { transform: translateY(0); }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); animation: shine 5s ease-in-out infinite; }
@keyframes shine { 60%, 100% { transform: translateX(120%); } }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 14px; font-size: 13.5px; border-radius: 12px; }
.btn.ghost { background: var(--glass); color: var(--text); border: 1px solid var(--stroke-2); box-shadow: none; }
.btn.ghost::after { display: none; }
.btn.ghost:hover { background: var(--glass-2); }
.btn.gold { background: linear-gradient(120deg, #ffb340, #ff7a2f); color: #2a1400; box-shadow: 0 8px 24px rgba(255,138,61,.38); }
.btn.danger { background: linear-gradient(120deg, #ff6b81, #e0405f); }

/* Kartu kaca */
.card, .glass {
    position: relative; background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 20px;
    backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: var(--shadow);
}
.card.pad-sm { padding: 14px; }
.card.holo { border-color: transparent; background-clip: padding-box; }
.card.holo::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--holo); background-size: 250% 250%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    animation: holo 8s linear infinite; pointer-events: none;
}
@keyframes holo { to { background-position: 250% 250%; } }
.holo-text { background: var(--holo); background-size: 250% 250%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: holo 10s linear infinite; }

/* Judul halaman */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 20px; }
.page-head h1 { margin: 0; font-size: clamp(24px, 3.6vw, 32px); letter-spacing: -.02em; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 60ch; }
h2 { font-size: 18px; margin: 28px 0 12px; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Langkah */
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; padding: 0; list-style: none; }
.steps li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--glass); border: 1px solid var(--stroke); }
.steps li b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--glass-2); color: var(--text); }
.steps li.on { color: var(--text); border-color: var(--stroke-2); }
.steps li.on b { background: var(--holo); color: #fff; }

/* Formulir */
.form { display: grid; gap: 16px; }
.field label, label.lbl { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.input, .select, .textarea, input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=search], input[type=datetime-local], input[type=file], select, textarea {
    width: 100%; padding: 13px 15px; border-radius: 14px; font: inherit; font-size: 15px; color: var(--text);
    background: var(--glass); border: 1px solid var(--stroke-2); outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
select option { color: #111; }
.input:focus, .select:focus, .textarea:focus, input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--glow); background: var(--glass-2); }
textarea { resize: vertical; min-height: 96px; }
input[type=file] { padding: 18px; border-style: dashed; cursor: pointer; }
input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 10px; background: var(--holo); color: #fff; font-weight: 700; cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.row-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.err { color: var(--bad); font-size: 13.5px; margin-top: 6px; font-weight: 600; }
.alert { padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; margin-bottom: 14px; border: 1px solid var(--stroke); background: var(--glass); }
.alert.ok { border-color: rgba(52,211,153,.5); color: var(--ok); }
.alert.bad { border-color: rgba(255,107,129,.5); color: var(--bad); }
.alert.info { border-color: color-mix(in srgb, var(--blue) 45%, transparent); }

/* Chip & pil */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: var(--glass-2); border: 1px solid var(--stroke); color: var(--muted); }
.chip b { color: var(--text); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(20,184,166,.16); color: var(--blue); }
.pill.ok { background: rgba(52,211,153,.16); color: var(--ok); }
.pill.bad { background: rgba(255,107,129,.16); color: var(--bad); }
.pill.warn { background: rgba(251,191,36,.16); color: var(--warn); }
.pill.lock { background: var(--glass-2); color: var(--faint); }

/* Grid & ubin menu */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid.tight { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 20px; background: var(--glass); border: 1px solid var(--stroke); text-decoration: none !important; color: var(--text); transition: transform .18s, border-color .18s, box-shadow .18s; backdrop-filter: blur(16px); position: relative; overflow: hidden; }
.tile:hover { transform: translateY(-3px); border-color: var(--stroke-2); box-shadow: 0 14px 36px rgba(79,140,255,.22); }
.tile .ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--holo); box-shadow: 0 8px 22px var(--glow); }
.tile .ico .ic { width: 23px; height: 23px; }
.tile h3 { margin: 0; font-size: 16px; }
.tile p { margin: 0; font-size: 13px; color: var(--muted); }
.tile .go { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--cyan); }
.tile.locked { opacity: .65; }
.tile.locked .ico { background: var(--glass-2); box-shadow: none; color: var(--faint); }
.tile.feature { background: linear-gradient(135deg, rgba(20,184,166,.18), rgba(45,212,191,.10), rgba(249,115,22,.08)); }

/* Dasbor */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.hero h1 { margin: 0 0 6px; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.02em; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 14px; }
.stat { padding: 12px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--stroke); }
.stat .v { font-size: 20px; font-weight: 800; }
.stat .l { font-size: 12px; color: var(--muted); }

/* Karya */
.works { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.work { border-radius: 18px; overflow: hidden; background: var(--glass); border: 1px solid var(--stroke); text-decoration: none !important; color: var(--text); display: block; transition: transform .18s, box-shadow .18s; }
.work:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.3); }
.work .thumb { aspect-ratio: 4/5; background: linear-gradient(135deg, rgba(20,184,166,.22), rgba(45,212,191,.12)); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.work .thumb img, .work .thumb video { width: 100%; height: 100%; object-fit: cover; }
.work .meta { padding: 10px 12px 12px; display: grid; gap: 4px; }
.work .meta .t { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work .meta .s { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty .ic { width: 38px; height: 38px; color: var(--faint); margin-bottom: 8px; }

/* Tabel jadi kartu di ponsel */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 8px 10px; }
.table td { padding: 12px 10px; border-top: 1px solid var(--stroke); vertical-align: middle; }

/* Paket */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.plan { display: flex; flex-direction: column; gap: 12px; }
.plan .price { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.plan .price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li .ic { width: 17px; height: 17px; margin-top: 2px; color: var(--ok); }
.plan li.off { color: var(--faint); }
.plan li.off .ic { color: var(--faint); }
.plan .cta { margin-top: auto; }
.plan.current { border-color: transparent; }

/* Putar & pemutar */
.media-frame { border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--stroke); }
.media-frame video, .media-frame img { display: block; width: 100%; max-height: 70vh; object-fit: contain; }
.progress-wrap { margin: 10px 0; }

/* Login */
.guest { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.guest .box { width: min(440px, 100%); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--stroke); }

/* Responsif: drawer di ponsel */
@media (max-width: 979px) {
    .shell { display: block; }
    .topbar {
        position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px 14px;
        background: var(--glass); border-bottom: 1px solid var(--stroke); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
    }
    .topbar .iconbtn { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--stroke); color: var(--text); cursor: pointer; }
    .topbar .brand { flex: 1; font-size: 16px; padding: 0; }
    .topbar .plan-chip { text-decoration: none !important; }
    .sidebar {
        position: fixed; left: 0; top: 0; bottom: 0; width: min(86vw, 320px); transform: translateX(-104%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
        background: var(--glass-solid); box-shadow: 0 0 60px rgba(0,0,0,.5);
    }
    html.nav-open .sidebar { transform: none; }
    html.nav-open { overflow: hidden; }
    .scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(3,6,16,.6); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .25s; }
    html.nav-open .scrim { opacity: 1; pointer-events: auto; }
    .hero { grid-template-columns: 1fr; }
    .main { padding-top: 16px; }
}
@media (max-width: 640px) {
    .row-2 { grid-template-columns: 1fr; }
    .card { padding: 16px; border-radius: 18px; }
    .table.stack thead { display: none; }
    .table.stack tr { display: block; padding: 10px 0; border-top: 1px solid var(--stroke); }
    .table.stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 4px; }
    .table.stack td::before { content: attr(data-l); color: var(--faint); font-size: 12px; font-weight: 700; }
    .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .tile { padding: 14px; }
    .tile p { display: none; }
}
@media (max-width: 380px) { .grid { grid-template-columns: 1fr; } }

/* Pilihan (radio/checkbox bergaya kartu) */
.pick { position: relative; display: block; cursor: pointer; margin: 0; font-weight: 400; }
.pick > input { position: absolute; opacity: 0; pointer-events: none; }
.pick > .work { border: 2px solid transparent; }
.pick > input:checked + .work { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(53,224,255,.18), 0 12px 30px rgba(79,140,255,.25); }
.pick > input:focus-visible + .work, .pick > input:focus-visible + .chip { outline: 2px solid var(--cyan); outline-offset: 2px; }
.chip-pick { display: inline-block; }
.chip-pick .chip { padding: 8px 14px; font-size: 13.5px; transition: background .15s, border-color .15s; }
.chip-pick > input:checked + .chip { background: var(--holo); color: #fff; border-color: transparent; }
.chip-pick > input:checked + .chip b { color: #fff; }

/* Nomor urutan (Gabung Video) */
.order-badge { display: none; position: absolute; top: 8px; left: 8px; z-index: 2; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 99px; place-items: center; background: var(--holo); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.pick-merge { border: 2px solid transparent; }
.pick-merge.picked { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(53,224,255,.18); }

/* Aksesibilitas */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.btn:focus-visible { outline-offset: 3px; }

/* ===== Checkout, profil, kupon ===== */
.stack { display: grid; gap: 16px; align-content: start; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.summary { position: sticky; top: 18px; }
.summary dl { margin: 0; display: grid; gap: 8px; font-size: 14px; }
.summary dl > div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; white-space: nowrap; }
.summary .off dd { color: var(--ok); }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--stroke-2); }
.summary .total b { font-size: 26px; letter-spacing: -.02em; }
.durations { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.dur { cursor: pointer; display: block; }
.dur input { position: absolute; opacity: 0; pointer-events: none; }
.dur .box { display: grid; gap: 2px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--stroke-2); background: var(--glass); text-align: center; transition: border-color .15s, background .15s, box-shadow .15s; }
.dur .amt { font-weight: 800; font-size: 16px; }
.dur .save { font-size: 11.5px; font-weight: 700; color: var(--ok); }
.dur:hover .box { border-color: var(--blue); }
.dur input:checked + .box { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, transparent); box-shadow: 0 0 0 3px var(--glow); }
.dur input:focus-visible + .box { outline: 2px solid var(--blue); outline-offset: 2px; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; text-transform: uppercase; }
.coupon-msg { margin-top: 8px; font-size: 13.5px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.coupon-msg.ok { color: var(--ok); }
.coupon-msg.bad { color: var(--bad); }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.benefits li { display: flex; gap: 10px; align-items: flex-start; }
.benefits .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--blue); }

.pay-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 18px; align-items: start; }
.pay-qr { text-align: center; }
.pay-qr img { background: #fff; padding: 10px; border-radius: 16px; max-width: 100%; height: auto; }
.qr-fake { width: 260px; height: 260px; max-width: 100%; margin: 0 auto; display: grid; place-items: center; border-radius: 16px; border: 2px dashed var(--stroke-2); color: var(--muted); font-weight: 700; }
.pay-amount { font-size: clamp(28px, 6vw, 38px); font-weight: 800; letter-spacing: -.02em; color: var(--blue); }
.howto { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; }
.status-line { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--stroke); font-weight: 600; font-size: 14px; }
.status-line .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
.pay-done { text-align: center; padding: 36px 18px; max-width: 560px; margin: 0 auto; }
.done-ic { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.done-ic.bad { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.done-ic .ic { width: 32px; height: 32px; stroke-width: 2.4; }

.profile-card { display: flex; gap: 18px; align-items: flex-start; }
.avatar.big { width: 72px; height: 72px; font-size: 30px; border-radius: 22px; }
.profile-info { min-width: 0; display: grid; gap: 8px; }
.kv { margin: 4px 0; display: grid; gap: 6px; font-size: 14.5px; }
.kv > div { display: flex; gap: 10px; }
.kv dt { color: var(--muted); min-width: 64px; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 16px; }
.stat { display: grid; gap: 2px; text-decoration: none !important; color: var(--text); }
.stat b { font-size: 28px; letter-spacing: -.02em; color: var(--blue); }
.stat span { color: var(--muted); font-size: 13.5px; }
.orders { list-style: none; margin: 0; padding: 0; }
.orders li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--stroke); flex-wrap: wrap; }
.orders li:last-child { border-bottom: 0; }
.orders .right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hint.err { color: var(--bad); font-weight: 600; }
.plan .blurb { color: var(--muted); font-size: 13.5px; margin: -4px 0 0; }
.plan .tagline { font-size: 12px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .05em; }

@media (max-width: 860px) {
    .checkout, .pay-grid { grid-template-columns: 1fr; }
    .summary { position: static; order: -1; }
    .profile-card { flex-direction: column; }
}

/* ===== Panel admin ===== */
.admin-bar { position: sticky; top: 0; z-index: 40; background: var(--glass); border-bottom: 1px solid var(--stroke); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); }
.admin-bar-in { max-width: 1160px; margin: 0 auto; padding: 10px clamp(14px, 3vw, 28px); display: flex; align-items: center; gap: 14px; }
.admin-tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.admin-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--muted); text-decoration: none !important; white-space: nowrap; }
.admin-tabs a:hover { background: var(--glass-2); color: var(--text); }
.admin-tabs a.active { background: var(--glass-2); color: var(--text); box-shadow: 0 0 0 1px var(--stroke-2); }
.admin-tabs a.active .ic { color: var(--blue); }
.admin-main { max-width: 1160px; margin: 0 auto; padding: 22px clamp(14px, 3vw, 28px) 60px; }
.admin-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.table-wrap { padding: 4px 8px; overflow-x: auto; }
.table td.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.table td.actions form { margin: 0; }
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--glass); border: 1px solid var(--stroke); }
.seg a { padding: 7px 13px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: var(--muted); text-decoration: none !important; }
.seg a.on { background: var(--holo); color: #fff; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; }
.kv.wide > div { justify-content: space-between; }
.kv.wide dt { min-width: 0; }
.hide-sm { display: inline; }
@media (max-width: 860px) { .admin-cols { grid-template-columns: 1fr; } .admin-bar-in .brand span:last-child { display: none; } }
@media (max-width: 560px) { .hide-sm { display: none; } }
.limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.step-h { display: flex; align-items: center; gap: 12px; }
.step-h h2 { margin: 0; font-size: 17px; }
.step-h .num { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--glass-2); border: 1px solid var(--stroke-2); }
.step-h .num.done { background: var(--ok); border-color: transparent; color: #fff; }
.pair-code { margin: 14px 0 6px; text-align: center; font-size: 38px; font-weight: 800; letter-spacing: .3em; color: var(--blue); padding: 14px; border-radius: 16px; background: var(--glass-2); border: 1px dashed var(--stroke-2); }
code { background: var(--glass-2); padding: 1px 6px; border-radius: 6px; font-size: .92em; }

/* ---- Admin Virtual: kartu tugas, kalender, papan ---- */
.task-list { display: grid; gap: 12px; }
.task-card { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: blur(16px); }
.task-card .ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--holo); box-shadow: 0 8px 22px var(--glow); }
.task-card .ico .ic { width: 23px; height: 23px; }
.task-card h3 { margin: 0 0 4px; font-size: 15.5px; }
.task-card .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); }
.task-card.done { opacity: .78; }
.cta-box { padding: 12px 14px; border-radius: 14px; background: var(--glass-2); border: 1px dashed var(--stroke-2); font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { text-align: center; font-size: 12px; font-weight: 800; color: var(--faint); padding: 4px 0; }
.cal .day { min-height: 74px; padding: 8px; border-radius: 14px; background: var(--glass); border: 1px solid var(--stroke); text-decoration: none !important; color: var(--text); display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, transform .15s; }
.cal a.day:hover { border-color: var(--stroke-2); transform: translateY(-2px); }
.cal .day.off { background: transparent; border-style: dashed; opacity: .45; }
.cal .day.today { border-color: var(--blue); box-shadow: 0 0 0 2px var(--glow); }
.cal .day .n { font-weight: 800; font-size: 14px; }
.cal .day .dots { display: flex; gap: 4px; flex-wrap: wrap; font-size: 11px; font-weight: 700; }
.cal .day .dots span { padding: 1px 6px; border-radius: 99px; }
.cal .dots .p { background: rgba(52,211,153,.18); color: var(--ok); }
.cal .dots .s { background: rgba(251,191,36,.18); color: var(--warn); }
.cal .dots .o { background: rgba(255,107,129,.16); color: var(--bad); }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
@media (max-width: 640px) {
    .task-card { grid-template-columns: 44px 1fr; }
    .task-card .act { grid-column: 1 / -1; }
    .cal { gap: 4px; }
    .cal .day { min-height: 56px; padding: 5px; border-radius: 10px; }
    .cal .day .dots span { padding: 0 4px; }
}
