/* XLabs PBO — palet hijau tua, mode terang & gelap (atribut data-theme pada <html>) */
:root {
  --bg: #F4F8F4; --surface: #FFFFFF; --surface-2: #EAF3EC; --text: #0B1F14; --muted: #46604F;
  --border: #D5E5D9; --primary: #15803D; --primary-2: #166534; --accent: #16A34A;
  --cta: #65A30D; --cta-text: #1A2E05; --sidebar: #0C2418;
  --emerald: #10B981; --teal: #047857; --lime: #84CC16;
  --hover-row: #F6FAF7; --input-bg: #FFFFFF;
  --ok: #15803D; --ok-bg: #DCFCE7; --bad: #B91C1C; --bad-bg: #FEE2E2; --warn: #A16207; --warn-bg: #FEF3C7;
  --info: #0F766E; --info-bg: #CCFBF1;
  --ring: rgba(21,128,61,.22);
  --shadow: 0 1px 2px rgba(11,31,20,.05), 0 8px 24px -10px rgba(11,31,20,.14);
  --shadow-lg: 0 2px 6px rgba(11,31,20,.06), 0 22px 48px -16px rgba(11,31,20,.28);
  --grad: linear-gradient(135deg, #05190F 0%, #0E3B22 55%, #15803D 100%);
  --grad-btn: linear-gradient(135deg, #16A34A, #15803D);
  --grad-text: linear-gradient(90deg, #A3E635, #34D399 35%, #10B981 60%, #A3E635);
  --radius: 16px; --radius-sm: 11px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
  --serif: Cambria, Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #04140C; --surface: #0B2216; --surface-2: #0F2D1D; --text: #E8F5EC; --muted: #A3C4AE;
  --border: #1B3D29; --primary: #22A35A; --primary-2: #15803D; --accent: #A3E635;
  --cta: #84CC16; --cta-text: #1A2E05; --sidebar: #03100A;
  --hover-row: #0E2A1B; --input-bg: #071A10;
  --ok: #4ADE80; --ok-bg: rgba(34,197,94,.14); --bad: #FCA5A5; --bad-bg: rgba(239,68,68,.15); --warn: #FCD34D; --warn-bg: rgba(234,179,8,.14);
  --info: #5EEAD4; --info-bg: rgba(20,184,166,.14);
  --ring: rgba(163,230,53,.25);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -10px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.35), 0 22px 48px -16px rgba(0,0,0,.75);
  color-scheme: dark;
}

/* ---------- Dasar ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; overflow-x: clip; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 15px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body, .card, .side, .topbar, input, select, textarea, table, th, td, .week, .feature, .plan, .btn-ghost, .seg, .chip, .badge, .lab-side, .auth, .auth-form {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease; }
::selection { background: #BBF7D0; color: #052E16; }
a { color: var(--primary); text-decoration: none; }
[data-theme="dark"] a:not(.btn):not(.brand) { color: #4ADE80; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6rem; letter-spacing: -.02em; font-weight: 800; color: var(--text); }
h1 { font-size: 1.85rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 .8rem; }
small, .muted { color: var(--muted); }
code, pre { font-family: var(--mono); }
:not(pre) > code { background: var(--surface-2); color: var(--primary); padding: .1em .4em; border-radius: 6px; font-size: .88em; }
[data-theme="dark"] :not(pre) > code { color: var(--accent); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Tombol ---------- */
.btn, .btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .6rem 1.15rem;
  border-radius: 12px; border: 1px solid transparent; background: var(--grad-btn); color: #fff; font-weight: 700; font-size: .93rem;
  font-family: inherit; cursor: pointer; text-decoration: none !important; line-height: 1.2;
  box-shadow: 0 1px 2px rgba(11,31,20,.15), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s, background-color .4s; }
.btn:hover, .btn-primary:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 10px 22px -10px rgba(21,128,61,.75); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-amber, .btn-cta { background: var(--cta); color: var(--cta-text); box-shadow: 0 1px 2px rgba(26,46,5,.2), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-amber:hover, .btn-cta:hover { color: var(--cta-text); background: var(--lime); box-shadow: 0 10px 24px -10px rgba(132,204,22,.85); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); color: var(--primary); border-color: var(--primary); box-shadow: none; }
[data-theme="dark"] .btn-ghost:hover { color: var(--accent); border-color: var(--accent); }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); box-shadow: none;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
.btn-danger { background: #B91C1C; } .btn-danger:hover { box-shadow: 0 10px 22px -10px rgba(185,28,28,.75); }
.btn-ok { background: #15803D; }
.btn-sm { min-height: 36px; padding: .4rem .8rem; font-size: .84rem; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: .8rem 1.5rem; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }

/* ---------- Form ---------- */
label { display: block; font-weight: 600; font-size: .88rem; margin: .85rem 0 .35rem; color: var(--text); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: .62rem .9rem; border: 1.5px solid var(--border); border-radius: 12px; font: inherit;
  background: var(--input-bg); color: var(--text); transition: border-color .2s, box-shadow .2s, background-color .4s, color .4s; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .7; }
input:hover, select:hover, textarea:hover { border-color: var(--primary); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); width: 1rem; height: 1rem; }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.check input { margin-top: .2rem; flex: none; }
.row { display: flex; gap: 1rem; flex-wrap: wrap; }
.row > * { flex: 1 1 200px; }

/* ---------- Kartu, badge, tabel ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.35rem 1.45rem; margin-bottom: 1.2rem; }
.card-tint { background: var(--surface-2); box-shadow: none; }
.card-dark { background: var(--grad); color: #fff; border: 0; position: relative; overflow: hidden; }
.card-dark h1, .card-dark h2, .card-dark h3 { color: #fff; }
.card-dark .muted, .card-dark small { color: #BBF7D0; opacity: .85; }
.grid > .card { margin-bottom: 0; }
.grid-4 > .card { position: relative; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, background-color .4s; }
.grid-4 > .card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--primary); }
.grid-4 > .card:nth-child(2)::before { background: var(--emerald); }
.grid-4 > .card:nth-child(3)::before { background: var(--teal); }
.grid-4 > .card:nth-child(4)::before { background: var(--lime); }
.grid-4 > .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.grid-4 > .card > small:first-child { font-weight: 700; text-transform: uppercase; letter-spacing: .07em; font-size: .7rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .7rem; border-radius: 99px; font-size: .75rem; font-weight: 700;
  background: var(--surface-2); color: var(--primary); line-height: 1.5; }
[data-theme="dark"] .badge { color: var(--accent); }
.badge-ok { background: var(--ok-bg); color: var(--ok) !important; }
.badge-bad { background: var(--bad-bg); color: var(--bad) !important; }
.badge-warn { background: var(--warn-bg); color: var(--warn) !important; }
.badge-dark { background: var(--sidebar); color: #DCFCE7 !important; border: 1px solid var(--border); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
th, td { padding: .72rem .85rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--surface-2); font-weight: 700; color: var(--muted); white-space: nowrap; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; }
thead th:first-child, tr:first-child > th:first-child { border-top-left-radius: 10px; }
thead th:last-child, tr:first-child > th:last-child { border-top-right-radius: 10px; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: var(--hover-row); }
.grid { display: grid; gap: 1.1rem; margin-bottom: 1.2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); margin-bottom: 1.4rem; }
.stat { font-size: 2.05rem; font-weight: 800; color: var(--text); line-height: 1.15; letter-spacing: -.03em; margin: .2rem 0 .3rem; }

/* ---------- Flash ---------- */
.flash { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 12px; margin-bottom: .8rem; font-size: .92rem;
  border: 1px solid transparent; animation: fade-down .4s var(--ease); }
.flash::before { font-weight: 800; flex: none; }
.flash-success { background: var(--ok-bg); color: var(--ok); } .flash-success::before { content: "✓"; }
.flash-danger { background: var(--bad-bg); color: var(--bad); } .flash-danger::before { content: "!"; }
.flash-warning { background: var(--warn-bg); color: var(--warn); } .flash-warning::before { content: "!"; }
.flash-info { background: var(--info-bg); color: var(--info); } .flash-info::before { content: "i"; font-style: italic; }

/* ---------- Tombol tema ---------- */
.theme-toggle { width: 42px; height: 42px; flex: none; display: inline-grid; place-items: center; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; padding: 0;
  transition: background-color .2s, transform .2s var(--ease), border-color .2s; }
.theme-toggle:hover { background: rgba(255,255,255,.16); }
.theme-toggle svg { width: 20px; height: 20px; transition: transform .5s var(--ease), opacity .3s; grid-area: 1 / 1; }
.theme-toggle .i-moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme="dark"] .theme-toggle .i-sun { opacity: 0; transform: rotate(90deg) scale(.5); }
[data-theme="dark"] .theme-toggle .i-moon { opacity: 1; transform: none; }
.theme-toggle:hover svg { transform: rotate(18deg); }
[data-theme="dark"] .theme-toggle:hover .i-moon { transform: rotate(-18deg); }
.app-top .theme-toggle { border-color: var(--border); background: var(--surface); color: var(--text); }
.app-top .theme-toggle:hover { background: var(--surface-2); }

/* ---------- Landing: topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(5,25,15,.72); color: #fff;
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar .inner { max-width: 1160px; margin: 0 auto; padding: .7rem 1.25rem; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff !important; font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; text-decoration: none !important; }
.brand .logo { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #A3E635, #16A34A); color: #052E16;
  display: grid; place-items: center; font-family: var(--mono); font-size: .85rem; font-weight: 800; box-shadow: 0 6px 18px -6px rgba(132,204,22,.8); }
.topbar nav { margin-left: auto; display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; }
.topbar nav a:not(.btn) { color: #D1FAE5 !important; padding: .5rem .8rem; border-radius: 10px; font-size: .9rem; font-weight: 500; }
.topbar nav a:not(.btn):hover { background: rgba(255,255,255,.08); color: #fff !important; text-decoration: none; }
.topbar nav .btn { margin-left: .3rem; }
.container { max-width: 1160px; margin: 0 auto; padding: 1.6rem 1.25rem 3rem; }
.narrow { max-width: 460px; }

/* ---------- Landing: hero ---------- */
.hero { background: var(--grad); color: #fff; padding: 4.8rem 1.25rem 5.2rem; position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -44px; z-index: -1; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px; animation: grid-pan 22s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 15%, transparent 70%); mask-image: radial-gradient(ellipse at 60% 40%, #000 15%, transparent 70%); }
.orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; will-change: transform; }
.orb-1 { width: 420px; height: 420px; background: rgba(16,185,129,.45); top: -140px; right: -80px; animation: orb-float 16s ease-in-out infinite; }
.orb-2 { width: 360px; height: 360px; background: rgba(132,204,22,.28); bottom: -160px; left: -100px; animation: orb-float 20s ease-in-out infinite reverse; }
.hero .inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.9rem); color: #fff; letter-spacing: -.04em; line-height: 1.05; margin-bottom: 1.1rem; }
.hero h1 .hl { background: var(--grad-text); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite; }
.hero p { color: #D1FAE5; opacity: .9; font-size: 1.07rem; max-width: 36rem; }
.hero .kicker { display: inline-flex; align-items: center; gap: .55rem; color: #D9F99D; font-weight: 700; letter-spacing: .08em; font-size: .74rem; text-transform: uppercase;
  background: rgba(163,230,53,.1); border: 1px solid rgba(163,230,53,.3); padding: .38rem .85rem; border-radius: 99px; margin-bottom: 1.2rem; }
.hero .kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse 2s infinite; }
.hero .cta { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.7rem 0 0; }
.hero-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; margin-top: 2.3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.65rem; font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.hero-stats span { font-size: .82rem; color: #A7F3D0; opacity: .85; }
.code-card { background: rgba(3,16,10,.88); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; font-family: var(--mono); font-size: .84rem; color: #E8F5EC;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.65), 0 0 0 1px rgba(16,185,129,.15); overflow: hidden; animation: float 7s ease-in-out infinite; }
.code-card .bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07);
  font-family: var(--font); font-size: .78rem; color: #A3C4AE; }
.code-card .bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; display: inline-block; }
.code-card .bar i:nth-child(2) { background: #FEBC2E; } .code-card .bar i:nth-child(3) { background: #28C840; margin-right: .5rem; }
.code-card pre { margin: 0; padding: 1.1rem 1.2rem; white-space: pre; overflow-x: auto; line-height: 1.7; }
.code-card .k { color: #C4B5FD; font-weight: 600; } .code-card .v { color: #7DD3FC; } .code-card .s { color: #BEF264; }
.code-card .c { color: #6EE7B7; font-style: italic; } .code-card .t { color: #FCD34D; }
.code-card .cursor { display: inline-block; width: .55em; height: 1.1em; background: var(--lime); vertical-align: text-bottom; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }

/* ---------- Landing: seksi ---------- */
.eyebrow { display: block; text-align: center; color: var(--primary); font-weight: 700; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 4rem; }
[data-theme="dark"] .eyebrow { color: var(--accent); }
.section-title { text-align: center; margin: 4rem 0 .5rem; font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.eyebrow + .section-title { margin-top: .4rem; }
.section-sub { text-align: center; color: var(--muted); max-width: 38rem; margin: 0 auto 2rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.1rem; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 1.45rem; border: 1px solid var(--border);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, background-color .4s; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.feature .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.2rem; margin-bottom: .9rem; color: #fff;
  background: linear-gradient(135deg, #16A34A, #15803D); box-shadow: 0 8px 18px -8px rgba(21,128,61,.8); }
.feature:nth-child(6n+2) .ic { background: linear-gradient(135deg, #10B981, #047857); }
.feature:nth-child(6n+3) .ic { background: linear-gradient(135deg, #84CC16, #4D7C0F); }
.feature:nth-child(6n+4) .ic { background: linear-gradient(135deg, #14B8A6, #047857); }
.feature:nth-child(6n+5) .ic { background: linear-gradient(135deg, #22C55E, #166534); }
.feature:nth-child(6n+6) .ic { background: linear-gradient(135deg, #34D399, #0E3B22); }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1.1rem; }
.how .card { margin: 0; box-shadow: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, background-color .4s; }
.how .card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.how .n { width: 42px; height: 42px; border-radius: 12px; background: var(--cta); color: var(--cta-text); display: grid; place-items: center; font-weight: 800;
  margin-bottom: .8rem; box-shadow: 0 8px 18px -8px rgba(132,204,22,.8); }
.how p { margin: 0; font-size: .92rem; }

/* ---------- Kartu harga ---------- */
.plan { display: flex; flex-direction: column; position: relative; box-shadow: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, background-color .4s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.plan.featured { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 26px 60px -24px rgba(21,128,61,.6); }
.plan.featured h3, .plan.featured .price { color: #fff; }
.plan.featured small, .plan.featured .muted { color: #BBF7D0; }
.plan.featured li { color: #ECFDF5; } .plan.featured li.no { color: rgba(236,253,245,.45); }
.plan.featured ul { border-top-color: rgba(255,255,255,.15); }
.plan.featured li::before { background: rgba(163,230,53,.18); color: #D9F99D; }
.plan.featured li.no::before { background: rgba(255,255,255,.08); color: rgba(236,253,245,.45); }
@media (min-width: 1025px) { .plan.featured { transform: scale(1.04); } .plan.featured:hover { transform: scale(1.04) translateY(-6px); } }
.plan .badge-warn { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--cta) !important; color: var(--cta-text) !important; box-shadow: 0 8px 18px -8px rgba(132,204,22,.9); }
.plan .price { font-size: 2.35rem; font-weight: 800; color: var(--text); letter-spacing: -.04em; line-height: 1.1; margin-top: .3rem; }
.plan ul { padding: 1rem 0 0; list-style: none; margin: 1rem 0 1.3rem; flex: 1; border-top: 1px dashed var(--border); }
.plan li { padding: .35rem 0 .35rem 1.9rem; position: relative; font-size: .92rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; top: .4rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--ok-bg); color: var(--ok);
  font-weight: 800; font-size: .7rem; display: grid; place-items: center; }
.plan li.no { color: var(--muted); opacity: .6; } .plan li.no::before { content: "–"; background: var(--surface-2); color: var(--muted); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: .4rem 0 0; }
.steps li { counter-increment: s; position: relative; padding: .2rem 0 .9rem 2.7rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.95rem; height: 1.95rem; border-radius: 50%; background: var(--grad-btn); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.cta-band { margin: 4.5rem 0 0; border-radius: 24px; padding: 2.8rem 2rem; text-align: center; background: var(--grad); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::after { content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; border-radius: 50%; background: rgba(132,204,22,.25); filter: blur(70px);
  right: -120px; top: -160px; animation: orb-float 18s ease-in-out infinite; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.8vw, 2rem); }
.cta-band p { color: #D1FAE5; max-width: 34rem; margin: 0 auto 1.4rem; }

/* ---------- Footer ---------- */
footer.foot { text-align: center; color: var(--muted); font-size: .84rem; padding: 2rem 1rem; }
.foot a { color: var(--muted); margin: 0 .4rem; }
.foot a:hover { color: var(--primary); }
.site-foot { background: var(--sidebar); color: #A3C4AE; margin-top: 3rem; padding: 2.8rem 1.25rem 1.6rem; font-size: .88rem; }
.site-foot .inner { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-foot .brand { margin-bottom: .6rem; }
.site-foot p { max-width: 26rem; margin: 0; }
.site-foot nav { display: flex; flex-direction: column; gap: .4rem; }
.site-foot nav strong { color: #fff; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .2rem; }
.site-foot a { color: #D1FAE5 !important; opacity: .8; } .site-foot a:hover { opacity: 1; }
.site-foot .copy { max-width: 1160px; margin: 2rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; color: #6B8F78; }

/* ---------- Masuk / daftar ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; max-width: 1000px; margin: 2.2rem auto; background: var(--surface); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.auth.auth-wide { max-width: 1080px; grid-template-columns: .85fr 1.15fr; }
.auth-aside { background: var(--grad); color: #fff; padding: 2.6rem 2.4rem; display: flex; flex-direction: column; position: relative; overflow: hidden; isolation: isolate; }
.auth-aside::after { content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; border-radius: 50%; background: rgba(16,185,129,.4); filter: blur(60px);
  right: -120px; bottom: -100px; animation: orb-float 16s ease-in-out infinite; }
.auth-aside .brand { margin-bottom: 2rem; }
.auth-aside h2 { color: #fff; font-size: 1.65rem; letter-spacing: -.03em; }
.auth-aside p { color: #D1FAE5; opacity: .9; }
.auth-aside ul { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: .8rem; }
.auth-aside li { display: flex; gap: .7rem; align-items: flex-start; color: #ECFDF5; font-size: .92rem; }
.auth-aside li b { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--cta); color: var(--cta-text); display: grid; place-items: center; font-size: .78rem; }
.auth-aside .quote { margin-top: auto; padding-top: 2rem; font-family: var(--mono); font-size: .8rem; color: #86EFAC; opacity: .8; }
.auth-form { padding: 2.6rem 2.4rem; background: var(--surface); }
.auth-form h1 { font-size: 1.75rem; margin-bottom: .3rem; }
.auth-form .sub { color: var(--muted); margin-bottom: 1.2rem; }
.auth-form .alt { text-align: center; color: var(--muted); font-size: .9rem; margin: 1.2rem 0 0; }

/* ---------- Aplikasi (dasbor) ---------- */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side { background: var(--sidebar); background-image: radial-gradient(520px 320px at 0% 0%, rgba(21,128,61,.35), transparent 70%);
  color: #fff; padding: 1.25rem .9rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.side .brand { margin: 0 .35rem 1.5rem; }
.side nav { flex: 1; }
.side nav a { display: flex; gap: .7rem; align-items: center; color: #B7D3C1 !important; padding: .6rem .75rem; border-radius: 10px; font-size: .9rem; font-weight: 500;
  margin-bottom: 2px; position: relative; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.side nav a span { width: 1.4rem; text-align: center; opacity: .8; }
.side nav a:hover { background: rgba(255,255,255,.06); color: #fff !important; text-decoration: none; transform: translateX(2px); }
.side nav a.active { background: rgba(34,163,90,.22); color: #fff !important; font-weight: 600; }
.side nav a.active::before { content: ""; position: absolute; left: -.9rem; top: 18%; bottom: 18%; width: 4px; border-radius: 0 4px 4px 0; background: var(--lime);
  box-shadow: 0 0 12px rgba(132,204,22,.8); }
.side nav a.active span { opacity: 1; color: #D9F99D; }
.side nav .sep { color: #6B8F78; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 1.1rem .75rem .45rem; }
.side .user { margin-top: 1.2rem; padding: .85rem; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07);
  font-size: .86rem; color: #fff; display: grid; grid-template-columns: auto 1fr; gap: .1rem .7rem; align-items: center; }
.side .user .avatar { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #A3E635, #10B981 50%, #047857);
  color: #052E16; display: grid; place-items: center; font-weight: 800; font-size: .88rem; box-shadow: 0 0 0 3px rgba(16,185,129,.25); }
.side .user .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .user small { color: #8FB39B; font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.side .user form { grid-column: 1 / -1; margin-top: .6rem !important; }
.side .user button { width: 100%; min-height: 36px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #D9F99D; cursor: pointer;
  border-radius: 10px; font: inherit; font-size: .82rem; font-weight: 600; transition: background-color .2s; }
.side .user button:hover { background: rgba(132,204,22,.16); }
.main { padding: 1.4rem 2.2rem 3rem; max-width: 1240px; width: 100%; min-width: 0; }
.app-top { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; margin-bottom: 1rem; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.page-head h1 { margin: 0; }
.main > h2 { margin-top: 1.8rem; }
.menu-toggle { display: none; margin-right: auto; }
.side-backdrop { display: none; }

/* ---------- Modul ---------- */
.week { display: flex; gap: 1rem; align-items: center; padding: .9rem 1.1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  margin-bottom: .6rem; flex-wrap: wrap; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s, background-color .4s; }
.week:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--primary); }
.grid > .week { margin-bottom: 0; }
.week .num { width: 46px; height: 46px; border-radius: 13px; background: var(--grad-btn); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none;
  box-shadow: 0 8px 16px -8px rgba(21,128,61,.75); }
.week.locked { opacity: .6; } .week.locked:hover { transform: none; box-shadow: none; border-color: var(--border); }
.week.locked .num { background: var(--muted); box-shadow: none; }
.week.exam .num { background: var(--cta); color: var(--cta-text); box-shadow: 0 8px 16px -8px rgba(132,204,22,.8); }
.week .body { flex: 1; min-width: 180px; }
.week .body strong { display: block; font-weight: 700; }
.week .body small { font-size: .84rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { background: var(--surface-2); color: var(--primary); padding: .26rem .7rem; border-radius: 99px; font-size: .8rem; font-weight: 600; }
[data-theme="dark"] .chip { color: var(--accent); }
.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: .4rem; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, #16A34A, #84CC16); border-radius: 99px; transition: width .8s var(--ease); }

/* ---------- Lab IDE (editor selalu gelap) ---------- */
.lab-wrap { display: grid; grid-template-columns: 370px 1fr; height: 100vh; }
.lab-side { background: var(--surface); border-right: 1px solid var(--border); overflow-y: auto; padding: 1.1rem 1.2rem; }
.lab-main { display: grid; grid-template-rows: auto 1fr 38%; min-width: 0; background: #071A10; }
.lab-main .container { color: var(--text); }
.lab-bar { display: flex; gap: .5rem; align-items: center; padding: .6rem .85rem; background: #03100A; border-bottom: 1px solid #1B3D29; flex-wrap: wrap; }
.lab-bar .btn-ghost { background: rgba(255,255,255,.06); color: #D1FAE5; border-color: rgba(255,255,255,.12); }
.lab-bar .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.lab-bar .status { color: #A3C4AE; font-size: .84rem; margin-left: auto; }
.editor-host { min-height: 0; overflow: hidden; }
.editor-host textarea { white-space: pre; overflow: auto; padding: .8rem 1rem; tab-size: 4; }
.editor-host textarea, .editor-host .CodeMirror { width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; font-family: var(--mono); font-size: 14px;
  background: #0B2216; color: #E8F5EC; resize: none; box-shadow: none; }
.out { display: grid; grid-template-columns: 1fr 310px; min-height: 0; border-top: 1px solid #1B3D29; }
.out pre { margin: 0; padding: .85rem 1rem; color: #E8F5EC; font-size: 13px; overflow: auto; white-space: pre-wrap; word-break: break-word; background: #06170E; }
.out pre.err { color: #FCA5A5; }
.checks { background: #03100A; overflow: auto; padding: .75rem .85rem; color: #E8F5EC; font-size: .86rem; border-left: 1px solid #1B3D29; }
.checks h4 { margin: 0 0 .5rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #8FB39B; }
.checks .item { display: flex; gap: .5rem; padding: .3rem 0; }
.checks .ok { color: #86EFAC; } .checks .bad { color: #FCA5A5; } .checks .pend { color: #6B8F78; }
.checks small { color: #A3C4AE; }
.score-big { font-weight: 800; font-size: 1.6rem; color: var(--lime); }
.lab-side ol { padding-left: 1.2rem; } .lab-side li { margin-bottom: .45rem; font-size: .92rem; }

/* ---------- Grafik dasbor ---------- */
.charts { display: grid; gap: 1.1rem; grid-template-columns: repeat(12, 1fr); margin-bottom: 1.2rem; }
.charts .span-12 { grid-column: span 12; } .charts .span-8 { grid-column: span 8; }
.charts .span-6 { grid-column: span 6; } .charts .span-4 { grid-column: span 4; }
.chart-card { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.chart-card figcaption { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; }
.chart-card figcaption h3 { margin: 0; }
.chart-card figcaption p { margin: .15rem 0 0; font-size: .84rem; color: var(--muted); }
.chart-box { position: relative; height: clamp(260px, 34vw, 340px); }
.chart-box.tall { height: clamp(280px, 30vw, 360px); }
.chart-card details { margin-top: .8rem; font-size: .86rem; border-top: 1px solid var(--border); padding-top: .6rem; }
.chart-card summary { cursor: pointer; color: var(--primary); font-weight: 600; }
[data-theme="dark"] .chart-card summary { color: var(--accent); }
.chart-card details table { margin-top: .5rem; font-size: .84rem; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: .38rem .78rem; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
  border-radius: 8px; transition: background-color .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.chart-empty { display: none; position: absolute; inset: 0; place-items: center; color: var(--muted); font-size: .9rem; }

/* ---------- Legal & sertifikat ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 1.15rem; margin-top: 1.8rem; }
.legal li { margin-bottom: .35rem; }
.legal table { margin: .4rem 0 1rem; }
/* Sertifikat: lembar A4 lanskap (1123×794 px @96dpi), warna tetap terang di kedua tema */
.cert { position: relative; width: 1123px; height: 794px; margin: 1.5rem auto 2.5rem; background: #fff; color: #0B1F14; overflow: hidden;
  text-align: center; box-shadow: 0 20px 50px -20px rgba(0,0,0,.35); -webkit-print-color-adjust: exact; print-color-adjust: exact; font-family: var(--font); }
.cert h1, .cert p, .cert strong { color: inherit; }
.cert-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px 110px; }
.cert-band { display: none; }
.cert-org { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #15803D; }
.cert h1 { font-size: 46px; letter-spacing: .06em; margin: 18px 0 6px; font-weight: 800; }
.cert-intro { font-size: 17px; color: #46604F; margin: 6px 0 0; }
.cert .name { font-size: 50px; font-weight: 800; color: #15803D; margin: 10px 0 2px; line-height: 1.15; }
.cert-nim { font-size: 15px; color: #46604F; margin: 0 0 14px; }
.cert-body { font-size: 17px; line-height: 1.65; max-width: 760px; margin: 0; }
.cert-pred { font-size: 16px; margin: 12px 0 0; }
.cert-foot { position: absolute; left: 110px; right: 110px; bottom: 64px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; text-align: left; }
.cert-meta { font-size: 13px; color: #46604F; line-height: 1.55; }
.cert-meta small { font-size: 11px; color: #6B8F78; }
.cert-signs { display: flex; gap: 40px; }
.cert .sign { display: flex; flex-direction: column; align-items: center; min-width: 210px; font-size: 15px; text-align: center; }
.cert .sign .line { width: 100%; height: 1px; background: #0B1F14; margin: 56px 0 8px; }
.cert .sign small { color: #46604F; font-size: 13px; }
.cert-stamp { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-18deg); font-size: 96px; font-weight: 800; letter-spacing: .1em;
  color: rgba(185,28,28,.28); border: 8px solid rgba(185,28,28,.28); padding: 4px 30px; border-radius: 16px; pointer-events: none; }
/* Tema klasik */
.cert-klasik { background: #FFFDF6; border: 14px solid #0C2418; }
.cert-klasik::before { content: ""; position: absolute; inset: 14px; border: 3px solid #B8962E; pointer-events: none; }
.cert-klasik::after { content: ""; position: absolute; inset: 24px; border: 1px solid rgba(184,150,46,.6); pointer-events: none; }
.cert-klasik h1, .cert-klasik .name { font-family: var(--serif); }
.cert-klasik h1 { color: #0C2418; font-weight: 700; }
.cert-klasik .name { font-style: italic; font-weight: 700; color: #166534; }
.cert-klasik .cert-org { color: #8A6D1C; }
/* Tema modern */
.cert-modern .cert-band { display: flex; position: absolute; left: 0; top: 0; bottom: 0; width: 120px; background: linear-gradient(180deg, #05190F, #0E3B22 55%, #15803D);
  align-items: flex-start; justify-content: center; padding-top: 56px; }
.cert-modern .cert-band .logo { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, #A3E635, #16A34A); color: #052E16;
  display: grid; place-items: center; font-family: var(--mono); font-weight: 800; font-size: 18px; }
.cert-modern::after { content: ""; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; border-radius: 50%; background: rgba(132,204,22,.12); }
.cert-modern .cert-inner, .cert-modern .cert-foot { left: 120px; }
.cert-modern .cert-inner { align-items: flex-start; text-align: left; padding-left: 90px; }
.cert-modern .cert-foot { left: 210px; }
.cert-modern h1 { font-size: 52px; letter-spacing: -.01em; background: linear-gradient(90deg, #0E3B22, #15803D); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cert-modern .cert-body { max-width: 720px; }
/* Tema minimalis */
.cert-minimalis { background: #fff; }
.cert-minimalis::before { content: ""; position: absolute; inset: 36px; border: 1px solid #CFD8D2; pointer-events: none; }
.cert-minimalis h1 { font-size: 30px; font-weight: 600; letter-spacing: .4em; color: #46604F; }
.cert-minimalis .name { font-size: 54px; font-weight: 500; color: #0B1F14; letter-spacing: -.02em; }
.cert-minimalis .cert-org { color: #6B8F78; font-weight: 600; }
.cert-minimalis .sign .line { background: #CFD8D2; }
/* Pemilih tema & pratinjau di halaman Konsep */
.theme-picks { display: grid; gap: .55rem; }
.theme-pick { display: flex; align-items: center; gap: .75rem; margin: 0; padding: .65rem .8rem; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; font-weight: 500; }
.theme-pick:has(input:checked) { border-color: var(--primary); background: var(--surface-2); }
.theme-pick .swatch { width: 54px; height: 38px; border-radius: 6px; flex: none; background: #fff; border: 1px solid #CFD8D2; }
.swatch-klasik { background: #FFFDF6 !important; box-shadow: inset 0 0 0 4px #0C2418, inset 0 0 0 6px #B8962E; }
.swatch-modern { background: linear-gradient(90deg, #0E3B22 0 26%, #fff 26%) !important; }
.swatch-minimalis { box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px #CFD8D2; }
.cert-frame { position: relative; overflow: hidden; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); }
.cert-frame iframe { width: 1123px; height: 794px; border: 0; transform-origin: 0 0; position: absolute; left: 0; top: 0; }
@media (min-width: 1025px) { .cert-preview-card { position: sticky; top: 1rem; } }
body:has(.cert-preview-wrap) { background: #fff; overflow: hidden; }
body:has(.cert-preview-wrap) > .container { display: none; }
.cert-preview-wrap .cert { margin: 0; box-shadow: none; }
@media screen and (max-width: 1180px) { .cert { zoom: .75; } }
@media screen and (max-width: 900px) { .cert { zoom: .5; } }
@media screen and (max-width: 600px) { .cert { zoom: .32; } }
.cert-preview-wrap .cert { zoom: 1 !important; }
@media print {
  .no-print, .theme-toggle { display: none !important; }
  body { background: #fff !important; color: #000; }
  .cert { margin: 0; box-shadow: none; zoom: 1 !important; }
}

/* ---------- Mahasiswa: daftar & detail ---------- */
.user-cell { display: flex; align-items: center; gap: .7rem; color: inherit !important; text-decoration: none !important; }
a.user-cell:hover strong { color: var(--primary); }
.avatar-sm { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem;
  color: #052E16; background: linear-gradient(135deg, #A3E635, #10B981 55%, #047857); }
.avatar-lg { width: 54px; height: 54px; font-size: 1.05rem; }
.user-list td { vertical-align: middle; }
table.kv th { width: 34%; background: transparent; text-transform: none; letter-spacing: 0; font-size: .86rem; color: var(--muted); font-weight: 600; white-space: normal; }
table.kv td, table.kv th { padding: .55rem .4rem; }
table.kv tr:first-child > th { border-radius: 0; }
.edit-row > td { background: var(--surface-2) !important; }
.period-form { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; margin-bottom: .4rem; }
.period-form > div { flex: 0 1 auto; }
.period-form label { margin-top: 0; }
.period-form input[type=date], .period-form select { width: auto; min-width: 150px; }
.period-form .quick { display: flex; flex-direction: column; gap: .3rem; }

/* Login sebagai / lihat akun */
.imp-bar { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
  padding: .55rem 16px; background: #b45309; color: #fff; font-size: .9rem; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.imp-bar.imp-ro { background: #1d4ed8; }
.imp-bar small { opacity: .85; }
.imp-bar form { margin: 0; }
.imp-bar .btn { background: #fff; color: #111; border-color: #fff; }

/* Mata kuliah: pemilih (staf), kepala & tab (mahasiswa), kartu katalog */
.course-picker { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: -.4rem 0 1.1rem; font-size: .9rem; }
.chip-link { display: inline-block; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-weight: 600; font-size: .86rem; }
.chip-link:hover { border-color: var(--primary); color: var(--primary); }
.chip-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.course-head { margin-bottom: 1.2rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: 1rem; border-bottom: 1px solid var(--border); }
.tabs a { padding: .55rem .95rem; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 600; margin-bottom: -1px; }
.tabs a:hover { color: var(--primary); }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
[data-theme="dark"] .tabs a.active, [data-theme="dark"] .tabs a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.course-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; margin-bottom: 1.4rem; }
.course-card { display: flex; flex-direction: column; gap: .5rem; }
.course-card h3 { margin: 0; }
.course-card .foot { margin-top: auto; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.course-card.locked { opacity: .9; }
.plan-group { margin: 1.6rem 0 .6rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.plan-group h2 { margin: 0; }
.plan .covers { display: flex; flex-wrap: wrap; gap: .3rem; margin: .4rem 0 0; }
.plan.focus { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Lab web (HTML/CSS/JS) */
.lab-main.lab-web { grid-template-rows: auto 1fr 46%; }
.out .web-preview { width: 100%; height: 100%; min-height: 0; border: 0; background: #fff; display: block; }
.out .web-col { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; background: #fff; }
.out .web-col .cap { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #8FB39B; background: #03100A; padding: .3rem .8rem; }
.out .console { max-height: 96px; overflow: auto; margin: 0; padding: .35rem .8rem; font-size: 12px; background: #06170E; color: #FCA5A5; white-space: pre-wrap; }
.out .console:empty { display: none; }

/* Jadwal materi (dosen) */
.schedule-global { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; margin-bottom: .9rem; padding-bottom: .9rem; border-bottom: 1px solid var(--border); }
.schedule-global > div { flex: 1 1 220px; max-width: 320px; }
.schedule-global label { margin-top: 0; }
table.schedule td { vertical-align: middle; }
table.schedule select { min-width: 190px; }
table.schedule input[type=datetime-local] { min-width: 190px; }
table.schedule td small { display: block; }

/* ---------- Animasi masuk layar ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes shimmer { to { background-position: 220% center; } }
@keyframes orb-float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-30px, 25px) scale(1.06); } 66% { transform: translate(20px, -20px) scale(.95); } }
@keyframes grid-pan { to { transform: translate(44px, 44px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(132,204,22,.6); } 70% { box-shadow: 0 0 0 9px rgba(132,204,22,0); } 100% { box-shadow: 0 0 0 0 rgba(132,204,22,0); } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Responsif ---------- */
@media (max-width: 1024px) {
  .charts .span-8, .charts .span-4 { grid-column: span 12; }
  .hero .inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero { padding: 3.6rem 1.25rem 4rem; }
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 50; left: 0; top: 0; width: 280px; transform: translateX(-105%); transition: transform .3s var(--ease); box-shadow: 0 0 40px rgba(0,0,0,.35); }
  .side.open { transform: none; }
  .side.open + .main .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(3,16,10,.55); z-index: 45;
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: fade-down .25s ease; }
  .menu-toggle { display: inline-flex; }
  .app-top { justify-content: space-between; }
  .main { padding: 1rem 1.25rem 2.5rem; }
  .lab-wrap { grid-template-columns: 1fr; height: auto; }
  .lab-side { border-right: 0; }
  .lab-main { height: 92vh; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .charts .span-6 { grid-column: span 12; }
  .topbar nav a:not(.btn) { display: none; }
  .topbar .inner { padding: .6rem 1rem; gap: .5rem; }
  .container { padding: 1.2rem 1rem 2.5rem; }
  .main { padding: .9rem 1rem 2rem; }
  .auth, .auth.auth-wide { grid-template-columns: 1fr; margin: 1rem auto; border-radius: 20px; }
  .auth-aside { padding: 1.6rem 1.4rem; } .auth-aside ul, .auth-aside .quote { display: none; } .auth-aside .brand { margin-bottom: 1rem; }
  .auth-form { padding: 1.6rem 1.4rem; }
  .hero-stats { gap: 1.4rem; }
  .code-card { font-size: .76rem; }
  .cta-band { padding: 2.2rem 1.2rem; }
  .out { grid-template-columns: 1fr; }
  .checks { max-height: 180px; border-left: 0; }
  .card { padding: 1.1rem 1.15rem; }
}
.hero-bleed { margin: -1.6rem calc(50% - 50vw) 0; }
@media (max-width: 720px) { .hero-bleed { margin-top: -1.2rem; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Kelola pengguna */
[hidden] { display: none !important; }
.btn-danger-text { color: var(--bad) !important; }
