/* =====================================================
   ServerZone — Design System
   Palet warna solid, satu warna aksen, tanpa gradient.
   Dipakai bersama oleh index.html, user.html, admin.html
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;450;500;600&display=swap');

:root {
  /* Permukaan — abu kebiruan gelap, rata tanpa campuran warna */
  --bg:          #0d1117;
  --bg-2:        #11161f;
  --surface:     #161b26;
  --surface-2:   #1c2230;
  --surface-3:   #252c3d;
  --border:      #2b3242;
  --border-soft: #212836;

  /* Teks */
  --text:      #e6edf3;
  --text-dim:  #9aa7b8;
  --text-mute: #6b7889;

  /* Satu-satunya warna aksen. Semua elemen interaktif memakai ini. */
  --accent:      #22d3ee;
  --accent-fill: rgba(34, 211, 238, .12);   /* isian datar, bukan gradient */
  --accent-line: rgba(34, 211, 238, .38);
  --on-accent:   #06202a;                   /* teks di atas bidang aksen */

  /* Warna status — hanya untuk menandai keadaan data, bukan hiasan */
  --success: #3fb950;
  --warning: #d29922;
  --danger:  #f85149;

  /* Bentuk */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-full: 999px;

  --shadow-sm: 0 2px 6px rgba(0,0,0,.3);
  --shadow:    0 12px 30px -14px rgba(0,0,0,.7);
  --shadow-lg: 0 24px 55px -20px rgba(0,0,0,.8);

  --font:      'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Outfit', 'Inter', system-ui, sans-serif;
  --mono:      'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);

  --nav-h: 74px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 22px; }

/* Ikon: mewarisi warna & ukuran teks di sekitarnya.
   fill/stroke WAJIB ditetapkan di sini, bukan pada <svg> pembungkus sprite —
   atribut pada root sprite tidak diwarisi lewat <use>, sehingga tanpa aturan ini
   browser memakai default SVG (fill hitam) dan ikon jadi blok hitam. */
.ico {
  width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.18em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-lg { width: 1.5em; height: 1.5em; }

.text-accent { color: var(--accent); }

/* =====================================================
   Tombol
   ===================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--r-sm);
  border: 1px solid transparent; background: transparent;
  font-family: var(--font); font-weight: 600; font-size: .93rem; white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #38dcf4; }

.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost { color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }

.btn-danger { background: transparent; color: var(--danger); border-color: rgba(248,81,73,.4); }
.btn-danger:hover { background: rgba(248,81,73,.14); }

.btn-sm { padding: 8px 15px; font-size: .82rem; gap: 6px; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

/* =====================================================
   Navbar (landing)
   ===================================================== */
.navbar {
  position: sticky; top: 0; z-index: 300; height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.navbar.scrolled { border-bottom-color: var(--border-soft); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }

.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 800; font-size: 1.16rem; letter-spacing: -.03em; }
.brand img {
  width: 36px; height: 36px; border-radius: 8px; object-fit: cover;
  border: 1px solid var(--border);
  transition: transform .3s var(--ease);
}
.brand:hover img { transform: scale(1.06); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; display: flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: var(--r-sm);
  color: var(--text-dim); font-weight: 500; font-size: .92rem;
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--accent); background: var(--surface); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; padding: 8px; border-radius: var(--r-sm); color: var(--text); }
.nav-toggle:hover { background: var(--surface); }

.user-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 7px; border: 1px solid var(--border); border-radius: var(--r-full);
  background: var(--surface); font-size: .85rem; font-weight: 500;
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem; flex-shrink: 0;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 14px 22px 20px;
    transform: translateY(-115%); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .2s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 14px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-actions .user-chip span:last-child { display: none; }
}

/* =====================================================
   Hero
   ===================================================== */
.hero { padding: 80px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px 7px 10px; border-radius: var(--r-full);
  background: var(--accent-fill); border: 1px solid var(--accent-line);
  color: var(--accent); font-size: .8rem; font-weight: 600; margin-bottom: 22px;
}
.pill .ping { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pill .ping::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  animation: ping 1.8s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 20px; }
.hero .lead { color: var(--text-dim); font-size: 1.06rem; max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats > div {
  flex: 1; min-width: 108px; padding: 14px 18px;
  border: 1px solid var(--border-soft); border-radius: var(--r-sm);
  background: var(--surface);
  transition: border-color .2s, transform .2s var(--ease);
}
.hero-stats > div:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.hero-stats b { display: block; font-family: var(--font-head); font-size: 1.6rem; line-height: 1.1; }
.hero-stats span { color: var(--text-mute); font-size: .78rem; }

/* Kartu terminal */
.terminal {
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow); overflow: hidden;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.terminal-bar {
  display: flex; align-items: center; gap: 8px; padding: 13px 18px;
  border-bottom: 1px solid var(--border-soft); background: var(--bg-2);
}
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.terminal-bar span { margin-left: auto; font-family: var(--mono); font-size: .72rem; color: var(--text-mute); }

.terminal-body { padding: 20px 22px 24px; font-family: var(--mono); font-size: .82rem; line-height: 2; color: var(--text-dim); }
.terminal-body .row { opacity: 0; animation: typeIn .4s var(--ease) forwards; display: flex; gap: 9px; }
.terminal-body .row:nth-child(1) { animation-delay: .4s; }
.terminal-body .row:nth-child(2) { animation-delay: 1.0s; }
.terminal-body .row:nth-child(3) { animation-delay: 1.6s; }
.terminal-body .row:nth-child(4) { animation-delay: 2.2s; }
.terminal-body .row:nth-child(5) { animation-delay: 2.8s; }
.terminal-body .row:nth-child(6) { animation-delay: 3.4s; }
@keyframes typeIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.terminal-body .p { color: var(--accent); }
.terminal-body .ok { color: var(--success); }
.terminal-body .dim { color: var(--text-mute); }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* =====================================================
   Strip fitur
   ===================================================== */
.feature-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; padding: 10px 0 30px; }
.feature-item {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px;
  border: 1px solid var(--border-soft); border-radius: var(--r);
  background: var(--surface);
  transition: border-color .25s, transform .25s var(--ease);
}
.feature-item:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.feature-item .ic {
  width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center; flex-shrink: 0;
  background: var(--accent-fill); color: var(--accent);
}
.feature-item h4 { font-size: .96rem; margin-bottom: 3px; }
.feature-item p { color: var(--text-mute); font-size: .84rem; line-height: 1.5; }

/* =====================================================
   Bagian umum
   ===================================================== */
.section { padding: 76px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent); font-weight: 700; letter-spacing: .14em; font-size: .73rem; text-transform: uppercase;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 12px 0 14px; }
.section-head p { color: var(--text-dim); font-size: 1rem; }

/* Tab filter */
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 34px; flex-wrap: wrap; }
.tab {
  padding: 9px 20px; border-radius: var(--r-sm); border: 1px solid var(--border);
  color: var(--text-dim); font-size: .87rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
  transition: color .2s, border-color .2s, background .2s;
}
.tab:hover { color: var(--text); border-color: var(--text-mute); }
.tab.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* =====================================================
   Kartu produk
   ===================================================== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: 22px; }

.product-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 26px; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--surface);
  transition: transform .25s var(--ease), border-color .25s;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--accent); }

.product-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.product-card .cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-mute);
}
.product-card h3 { font-size: 1.2rem; }

.tag-hot {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: var(--r-sm);
  background: var(--accent); color: var(--on-accent);
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}

.price { font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; line-height: 1.15; }
.price small { font-size: .8rem; color: var(--text-mute); font-weight: 400; font-family: var(--font); }

.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: .84rem; color: var(--text-dim); }
.spec-list li { display: flex; align-items: center; gap: 8px; }
.spec-list .ico { color: var(--accent); }
.spec-list b { color: var(--text); font-weight: 600; }

.os-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.os-chip {
  padding: 3px 10px; border-radius: var(--r-sm); border: 1px solid var(--border);
  font-size: .71rem; color: var(--text-dim);
}

.stock { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--success); }
.stock.low { color: var(--warning); }
.stock.out { color: var(--danger); }

.card-divider { height: 1px; background: var(--border-soft); }

/* Placeholder saat memuat — kedip halus, tanpa gradient */
.skeleton-card {
  height: 340px; border-radius: var(--r-lg);
  border: 1px solid var(--border-soft); background: var(--surface);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* =====================================================
   FAQ
   ===================================================== */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface); overflow: hidden;
  transition: border-color .25s;
}
.faq-item:hover { border-color: var(--accent-line); }
.faq-item.open { border-color: var(--accent); }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 19px 22px; font-weight: 600; font-size: .97rem; color: var(--text);
}
.faq-q .num {
  width: 26px; height: 26px; border-radius: var(--r-sm); display: grid; place-items: center; flex-shrink: 0;
  background: var(--accent-fill); color: var(--accent);
  font-size: .74rem; font-weight: 700; font-family: var(--font-head);
}
.faq-q .chev { margin-left: auto; color: var(--accent); transition: transform .3s var(--ease); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 22px 20px 62px; color: var(--text-dim); font-size: .92rem; }

/* =====================================================
   Kontak
   ===================================================== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.card {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); padding: 28px;
}
.contact-item {
  display: flex; gap: 15px; align-items: flex-start; padding: 15px; border-radius: var(--r);
  transition: background .2s;
}
.contact-item:hover { background: var(--surface-2); }
.contact-item .ic {
  width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center; flex-shrink: 0;
  background: var(--accent-fill); color: var(--accent);
}
.contact-item b { display: block; font-size: .93rem; margin-bottom: 2px; }
.contact-item span { color: var(--text-dim); font-size: .88rem; }

/* =====================================================
   Form
   ===================================================== */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 500; color: var(--text-dim); margin-bottom: 7px;
}
.form-group label .ico { color: var(--text-mute); }

.form-control {
  width: 100%; padding: 12px 15px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text);
  outline: none; transition: border-color .18s;
}
.form-control::placeholder { color: var(--text-mute); }
.form-control:focus { border-color: var(--accent); }
.form-control:disabled { opacity: .55; cursor: not-allowed; }
select.form-control {
  appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239aa7b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 6 8 10 12 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
select.form-control option { background: var(--surface); color: var(--text); }
textarea.form-control { resize: vertical; min-height: 110px; }

.input-icon { position: relative; }
.input-icon .ico-left {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-mute); pointer-events: none; transition: color .18s;
}
.input-icon .form-control { padding-left: 42px; }
.input-icon:focus-within .ico-left { color: var(--accent); }
.input-icon .toggle-pw {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  padding: 7px; border-radius: var(--r-sm); color: var(--text-mute);
}
.input-icon .toggle-pw:hover { color: var(--text); background: var(--surface-2); }

.form-alert {
  display: none; align-items: center; gap: 9px;
  padding: 11px 15px; border-radius: var(--r-sm); font-size: .86rem; margin-bottom: 16px;
  background: rgba(248,81,73,.1); border: 1px solid rgba(248,81,73,.35); color: var(--danger);
  animation: shake .35s var(--ease);
}
.form-alert.show { display: flex; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* =====================================================
   Footer
   ===================================================== */
.footer { border-top: 1px solid var(--border-soft); padding: 46px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.footer-grid p { color: var(--text-mute); font-size: .88rem; max-width: 320px; margin-top: 14px; }
.footer h5 { font-family: var(--font-head); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: var(--text-dim); font-size: .89rem; display: flex; align-items: center; gap: 8px; transition: color .18s, transform .18s; }
.footer-links a:hover { color: var(--accent); transform: translateX(3px); }
.footer-bottom {
  border-top: 1px solid var(--border-soft); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  color: var(--text-mute); font-size: .84rem;
}

/* Kembali ke atas */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 250;
  width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* =====================================================
   Modal
   ===================================================== */
.modal {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 22px;
  background: rgba(6, 9, 14, .8);
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease);
}
.modal.show { opacity: 1; pointer-events: auto; }
.modal-box {
  width: 100%; max-width: 430px; max-height: 88vh; overflow-y: auto;
  padding: 32px; border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-lg);
  transform: translateY(20px); opacity: 0;
  transition: transform .3s var(--ease), opacity .2s;
}
.modal.show .modal-box { transform: none; opacity: 1; }
.modal-box.wide { max-width: 560px; }
.modal-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.modal-head .ic {
  width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; flex-shrink: 0;
  background: var(--accent-fill); color: var(--accent);
}
.modal-head h3 { font-size: 1.28rem; }
.modal-head p { color: var(--text-mute); font-size: .86rem; margin-top: 2px; }
.modal-close { margin-left: auto; padding: 8px; border-radius: var(--r-sm); color: var(--text-mute); }
.modal-close:hover { color: var(--text); background: var(--surface-2); }
.modal-note { text-align: center; font-size: .87rem; color: var(--text-dim); margin-top: 20px; }
.modal-note a { color: var(--accent); font-weight: 600; cursor: pointer; }
.modal-note a:hover { text-decoration: underline; }

/* =====================================================
   Toast
   ===================================================== */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 900; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.toast {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 14px 18px; border-radius: var(--r-sm);
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  background: var(--surface-2); box-shadow: var(--shadow);
  font-size: .88rem; line-height: 1.45;
  animation: toastIn .3s var(--ease);
}
.toast.hiding { animation: toastOut .25s var(--ease) forwards; }
.toast .ico { color: var(--accent); margin-top: 2px; }
.toast.success { border-left-color: var(--success); }
.toast.success .ico { color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.error .ico { color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* =====================================================
   Reveal saat scroll
   ===================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =====================================================
   Dashboard (user.html & admin.html)
   ===================================================== */
.dash { display: flex; min-height: 100vh; }

.sidebar {
  width: 258px; flex-shrink: 0; z-index: 200;
  background: var(--bg-2); border-right: 1px solid var(--border-soft);
  padding: 20px 14px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease);
}
.sidebar .brand { padding: 6px 10px 24px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.side-nav a {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--r-sm);
  color: var(--text-dim); font-weight: 500; font-size: .91rem; cursor: pointer;
  transition: color .18s, background .18s;
}
.side-nav a .ico { color: var(--text-mute); transition: color .18s; }
.side-nav a:hover { background: var(--surface); color: var(--text); }
.side-nav a:hover .ico { color: var(--text); }
.side-nav a.active { background: var(--accent-fill); color: var(--accent); font-weight: 600; }
.side-nav a.active .ico { color: var(--accent); }
.side-nav a.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--accent);
}
.side-nav .divider {
  margin: 16px 14px 8px; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--text-mute); font-weight: 600;
}
.side-foot { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid var(--border-soft); }
.side-foot .user-chip { width: 100%; justify-content: flex-start; }

.sidebar-backdrop {
  position: fixed; inset: 0; z-index: 199; background: rgba(6, 9, 14, .7);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.sidebar-backdrop.show { opacity: 1; pointer-events: auto; }

.dash-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 70px; flex-shrink: 0; position: sticky; top: 0; z-index: 150;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 26px;
  border-bottom: 1px solid var(--border-soft); background: var(--bg);
}
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar h1 { font-size: 1.14rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-toggle { display: none; padding: 8px; border-radius: var(--r-sm); color: var(--text); }
.sidebar-toggle:hover { background: var(--surface); }

.dash-content { padding: 26px; flex: 1; }
.dash-section { display: none; }
.dash-section.active { display: block; animation: sectionIn .3s var(--ease); }
@keyframes sectionIn { from { opacity: 0; transform: translateY(12px); } }

/* Kartu statistik */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px,1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card {
  display: flex; align-items: center; gap: 15px; padding: 22px;
  border: 1px solid var(--border); border-radius: var(--r); background: var(--surface);
  transition: transform .25s var(--ease), border-color .25s;
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.stat-card .ic {
  width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center; flex-shrink: 0;
  background: var(--accent-fill); color: var(--accent);
}
.stat-card .meta { min-width: 0; }
.stat-card b { display: block; font-family: var(--font-head); font-size: 1.5rem; line-height: 1.15; }
.stat-card span { color: var(--text-mute); font-size: .79rem; }

/* Panel */
.panel {
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface); padding: 24px; margin-bottom: 22px;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.panel-head h2 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.panel-head h2 .ico { color: var(--accent); }
.panel-head p { color: var(--text-mute); font-size: .84rem; margin-top: 2px; }

/* Tabel */
.table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
th {
  color: var(--text-mute); font-weight: 600; font-size: .73rem;
  text-transform: uppercase; letter-spacing: .07em;
  position: sticky; top: 0; background: var(--bg-2);
}
tbody tr { transition: background .18s; }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td small { color: var(--text-mute); font-size: .78rem; }
.cell-actions { display: flex; gap: 7px; }

.empty-state td, .empty-state { text-align: center; padding: 46px 20px; color: var(--text-mute); }
.empty-state .ico { width: 40px; height: 40px; color: var(--text-mute); margin: 0 auto 12px; display: block; }

/* Badge — warna hanya untuk menandai status data */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: var(--r-sm);
  font-size: .74rem; font-weight: 700;
}
.badge .ico { width: .95em; height: .95em; }
.badge.pending    { background: rgba(210,153,34,.14); color: var(--warning); }
.badge.paid,
.badge.active,
.badge.completed  { background: rgba(63,185,80,.14); color: var(--success); }
.badge.processing { background: var(--accent-fill); color: var(--accent); }
.badge.cancelled,
.badge.blocked    { background: rgba(248,81,73,.14); color: var(--danger); }
.badge.role-admin { background: var(--accent-fill); color: var(--accent); }
.badge.role-user  { background: var(--surface-3); color: var(--text-dim); }

.select-status {
  padding: 7px 32px 7px 12px; border-radius: var(--r-sm); font-size: .82rem;
  border: 1px solid var(--border); background-color: var(--bg-2); color: var(--text);
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%239aa7b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 6 8 10 12 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  transition: border-color .18s;
}
.select-status:focus { outline: none; border-color: var(--accent); }

/* Ringkasan checkout */
.summary {
  display: flex; flex-direction: column; gap: 11px; padding: 18px;
  border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--border-soft);
}
.summary-row { display: flex; justify-content: space-between; align-items: center; font-size: .89rem; color: var(--text-dim); gap: 12px; }
.summary-row b { color: var(--text); font-weight: 600; }
.summary-total { border-top: 1px dashed var(--border); padding-top: 13px; margin-top: 3px; }
.summary-total span { color: var(--text); font-weight: 600; }
.summary-total b { font-family: var(--font-head); font-size: 1.4rem; }

.pay-note {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 16px;
  padding: 13px 15px; border-radius: var(--r-sm);
  background: var(--accent-fill); border: 1px solid var(--accent-line);
  color: var(--text-dim); font-size: .83rem; line-height: 1.5;
}
.pay-note .ico { color: var(--accent); margin-top: 2px; }

/* Grid form */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 0 14px; }

/* =====================================================
   Responsif
   ===================================================== */
@media (max-width: 1000px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 960px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: grid; place-items: center; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .section { padding: 54px 0; }
  .dash-content, .topbar { padding-left: 16px; padding-right: 16px; }
  .panel { padding: 18px; }
  .table-wrap { margin: 0 -18px; padding: 0 18px; }
  .modal-box { padding: 24px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats > div { min-width: 90px; padding: 12px 14px; }
  .toast-wrap { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* Hormati preferensi pengguna yang membatasi animasi */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================
   Halaman dokumen — Syarat, Refund, FAQ, Kontak
   ===================================================== */
.page-hero { padding: 52px 0 38px; border-bottom: 1px solid var(--border-soft); }
.page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent); font-weight: 700; letter-spacing: .14em;
  font-size: .73rem; text-transform: uppercase;
}
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 12px 0 14px; }
.page-hero p { color: var(--text-dim); max-width: 660px; }

.doc-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.doc-meta span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border: 1px solid var(--border); border-radius: var(--r-full);
  font-size: .79rem; color: var(--text-mute);
}
.doc-meta .ico { color: var(--accent); }

.doc-layout { display: grid; grid-template-columns: 244px 1fr; gap: 46px; padding: 42px 0 72px; align-items: start; }

/* Daftar isi yang menempel saat digulir */
.doc-toc { position: sticky; top: calc(var(--nav-h) + 22px); }
.doc-toc h4 {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-mute); margin-bottom: 14px;
}
.doc-toc nav { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--border); }
.doc-toc a {
  padding: 8px 14px; font-size: .85rem; color: var(--text-dim);
  border-left: 2px solid transparent; margin-left: -1px;
  transition: color .18s, border-color .18s;
}
.doc-toc a:hover { color: var(--text); }
.doc-toc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

/* Isi dokumen */
.doc-content { max-width: 780px; min-width: 0; }
.doc-section { margin-bottom: 40px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.doc-section:last-child { margin-bottom: 0; }
.doc-section > h2 {
  display: flex; align-items: center; gap: 11px;
  font-size: 1.22rem; margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.doc-section > h2 .num {
  width: 27px; height: 27px; flex-shrink: 0; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--accent-fill); color: var(--accent);
  font-family: var(--font-head); font-size: .76rem; font-weight: 700;
}
.doc-section h3 { font-size: 1rem; margin: 22px 0 10px; color: var(--text); }
.doc-section p { color: var(--text-dim); margin-bottom: 14px; }
.doc-section p:last-child { margin-bottom: 0; }
.doc-section strong { color: var(--text); font-weight: 600; }

.doc-list { margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.doc-list li { display: flex; gap: 11px; color: var(--text-dim); font-size: .93rem; line-height: 1.6; }
.doc-list li .ico { color: var(--accent); margin-top: .3em; }
.doc-list.numbered { counter-reset: docitem; }
.doc-list.numbered li { counter-increment: docitem; }
.doc-list.numbered li::before {
  content: counter(docitem); flex-shrink: 0;
  width: 22px; height: 22px; margin-top: .1em; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--surface-3); color: var(--text-dim);
  font-size: .72rem; font-weight: 700; font-family: var(--font-head);
}
.doc-list.deny li .ico { color: var(--danger); }
.doc-list.allow li .ico { color: var(--success); }

/* Kotak sorotan */
.callout {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 15px 17px; border-radius: var(--r); margin: 18px 0;
  background: var(--accent-fill); border: 1px solid var(--accent-line);
  color: var(--text-dim); font-size: .89rem; line-height: 1.6;
}
.callout .ico { color: var(--accent); margin-top: .2em; flex-shrink: 0; }
.callout b { color: var(--text); display: block; margin-bottom: 3px; }
.callout.warn { background: rgba(210,153,34,.09); border-color: rgba(210,153,34,.35); }
.callout.warn .ico { color: var(--warning); }
.callout.danger { background: rgba(248,81,73,.09); border-color: rgba(248,81,73,.35); }
.callout.danger .ico { color: var(--danger); }

/* Contoh perhitungan refund */
.calc-box {
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--bg-2); padding: 20px; margin: 18px 0;
}
.calc-box h4 { font-size: .88rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.calc-box h4 .ico { color: var(--accent); }
.calc-row {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: .88rem; color: var(--text-dim); padding: 7px 0;
}
.calc-row b { color: var(--text); }
.calc-row.total { border-top: 1px dashed var(--border); margin-top: 8px; padding-top: 13px; }
.calc-row.total b { color: var(--accent); font-family: var(--font-head); font-size: 1.15rem; }
.calc-formula {
  font-family: var(--mono); font-size: .82rem; color: var(--accent);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 14px;
  overflow-x: auto; white-space: nowrap;
}

/* Halaman kontak */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 18px; margin-bottom: 26px; }
.contact-card {
  border: 1px solid var(--border); border-radius: var(--r); background: var(--surface);
  padding: 24px; transition: border-color .25s, transform .25s var(--ease);
}
.contact-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.contact-card .ic {
  width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--accent-fill); color: var(--accent); margin-bottom: 15px;
}
.contact-card h3 { font-size: .95rem; margin-bottom: 7px; }
.contact-card p { color: var(--text-dim); font-size: .9rem; line-height: 1.6; }
.contact-card a { color: var(--accent); }
.contact-card a:hover { text-decoration: underline; }
.contact-card small { display: block; color: var(--text-mute); font-size: .79rem; margin-top: 7px; }

/* Alamat usaha — blok utama untuk verifikasi payment gateway */
.address-block {
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface); padding: 26px;
}
.address-block .ic {
  width: 46px; height: 46px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--accent-fill); color: var(--accent);
}
.address-block h3 { font-size: 1rem; margin-bottom: 8px; }
.address-block address { font-style: normal; color: var(--text-dim); line-height: 1.75; font-size: .93rem; }
.address-block .legal-name { color: var(--text); font-weight: 600; }

/* Penanda data yang belum diisi — sengaja mencolok agar tidak ikut terpublikasi */
.todo {
  background: rgba(210,153,34,.16); color: var(--warning);
  border: 1px dashed var(--warning); border-radius: 5px;
  padding: 1px 7px; font-size: .85em; font-weight: 600; font-family: var(--mono);
}

/* Kelompok FAQ */
.faq-group { margin-bottom: 34px; }
.faq-group > h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.05rem; margin-bottom: 16px;
}
.faq-group > h3 .ico { color: var(--accent); }

@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
  .doc-toc { position: static; }
  .doc-toc nav { flex-direction: row; flex-wrap: wrap; border-left: 0; gap: 6px; }
  .doc-toc a {
    border: 1px solid var(--border); border-radius: var(--r-full);
    padding: 6px 13px; font-size: .8rem; margin-left: 0;
  }
  .doc-toc a.active { border-color: var(--accent); }
  .address-block { grid-template-columns: 1fr; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #313a4d; }
