/* ============================================
   Aiscent — gaya Hostinger, palet hitam-putih-abu
   Putih dominan, hitam hanya sebagai aksen
   ============================================ */

:root {
  --hitam:      #1a1a1a;   /* aksen utama (tombol, CTA) — dipakai hemat */
  --hitam-2:    #000000;
  --teks:       #1f2430;   /* judul & teks utama */
  --teks-abu:   #6b7280;   /* teks sekunder */
  --abu-soft:   #f5f5f7;   /* latar section lembut (pengganti ungu-soft) */
  --abu-soft-2: #ececef;
  --line:       #e7e7ec;   /* garis / border kartu */
  --putih:      #ffffff;
  --radius:     14px;
  --shadow:     0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-sm:  0 4px 16px rgba(0, 0, 0, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--teks);
  background: var(--putih);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--hitam);
  color: var(--putih);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.btn-primary:hover { background: #000; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--teks);
  border: 2px solid var(--line);
}
.btn-ghost:hover { border-color: var(--hitam); }
.btn-white { background: var(--putih); color: var(--hitam); }
.btn-white:hover { transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 34px; font-size: 17px; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-weight: 800;
  font-size: 23px;
  color: var(--teks);
  letter-spacing: -0.5px;
}
.logo span { color: var(--teks-abu); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; color: var(--teks-abu); font-size: 15px; }
.nav-links a:hover { color: var(--hitam); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; font-size: 26px; background: none; border: none; cursor: pointer; color: var(--teks); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #f5f5f7 0%, #ececef 45%, #ffffff 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0,0,0,0.06), transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero-badge {
  display: inline-block;
  background: var(--abu-soft-2);
  color: var(--teks);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 30px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; box-shadow: inset 0 -14px 0 var(--abu-soft-2); }
.hero p { font-size: 19px; color: var(--teks-abu); margin-bottom: 30px; max-width: 480px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; color: var(--teks-abu); font-size: 14px; }
.hero-note strong { color: var(--teks); }

.hero-visual {
  background: var(--putih);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 26px;
}
.hero-visual .bar { display: flex; gap: 6px; margin-bottom: 18px; }
.hero-visual .bar i { width: 12px; height: 12px; border-radius: 50%; background: #dcdce1; display: inline-block; }
.hero-visual .bar i:nth-child(1){ background:#c7c7cd; } .hero-visual .bar i:nth-child(2){ background:#d5d5db; } .hero-visual .bar i:nth-child(3){ background:#e2e2e7; }
.gauge { text-align: center; padding: 20px 0; }
.gauge .num { font-size: 54px; font-weight: 800; color: var(--hitam); }
.gauge .lbl { color: var(--teks-abu); font-weight: 600; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 10px; }
.hero-stats div { background: var(--abu-soft); border-radius: 12px; padding: 14px; text-align: center; }
.hero-stats b { display:block; font-size: 20px; color: var(--teks); }
.hero-stats small { color: var(--teks-abu); }

/* ---------- Section umum ---------- */
section.block { padding: 80px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 54px; }
.section-head h2 { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.section-head p { color: var(--teks-abu); font-size: 18px; }

/* ---------- Fitur ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  background: var(--putih);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.feature-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--abu-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; stroke: var(--hitam); stroke-width: 1.7; fill: none; }
.feature-card h3 { font-size: 20px; margin-bottom: 8px; }
.feature-card p { color: var(--teks-abu); font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card {
  background: var(--putih);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.price-card.populer { border: 2px solid var(--hitam); box-shadow: var(--shadow); }
.price-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--hitam); color: #fff; font-size: 12px; font-weight: 700;
  padding: 6px 16px; border-radius: 30px;
}
.price-card h3 { font-size: 20px; margin-bottom: 6px; }
.price-card .desc { color: var(--teks-abu); font-size: 14px; margin-bottom: 20px; min-height: 40px; }
.price-amount { font-size: 42px; font-weight: 800; color: var(--teks); }
.price-amount small { font-size: 16px; color: var(--teks-abu); font-weight: 600; }
.price-list { list-style: none; margin: 22px 0; flex: 1; }
.price-list li { padding: 9px 0; color: var(--teks); font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.price-list li::before { content: '✓'; color: var(--hitam); font-weight: 800; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, #1a1a1a 0%, #000000 100%);
  border-radius: 24px;
  padding: 56px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { font-size: 34px; margin-bottom: 14px; }
.cta-banner p { opacity: .85; font-size: 18px; margin-bottom: 26px; }

/* ---------- Footer ---------- */
.footer { background: #141417; color: #b7b7bf; padding: 60px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 30px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer a { display: block; color: #9a9aa4; font-size: 14px; padding: 5px 0; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 12px; }
.footer .logo span { color: #9a9aa4; }
.footer-bottom { border-top: 1px solid #2a2a30; padding-top: 24px; text-align: center; font-size: 14px; color: #7c7c86; }

/* ---------- Auth (login/register) ---------- */
.auth-wrap {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-side {
  background: linear-gradient(160deg, #1a1a1a 0%, #000000 100%);
  color: #fff;
  padding: 60px;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-side h2 { font-size: 34px; margin-bottom: 18px; line-height: 1.2; }
.auth-side p { opacity: .85; font-size: 17px; margin-bottom: 30px; }
.auth-side ul { list-style: none; }
.auth-side li { padding: 10px 0; display: flex; gap: 12px; align-items: center; font-weight: 600; }
.auth-side li::before { content: '✓'; background: rgba(255,255,255,.18); width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }

.auth-form-box { padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.auth-form-box .inner { max-width: 400px; width: 100%; margin: 0 auto; }
.auth-form-box h1 { font-size: 30px; margin-bottom: 8px; }
.auth-form-box .sub { color: var(--teks-abu); margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.form-group input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border .15s ease;
}
.form-group input:focus { outline: none; border-color: var(--hitam); }
.auth-alt { text-align: center; margin-top: 22px; color: var(--teks-abu); font-size: 15px; }
.auth-alt a { color: var(--hitam); font-weight: 700; }

.alert { padding: 13px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.alert-error { background: var(--abu-soft); color: var(--teks); border: 1px solid var(--line); }
.alert-success { background: var(--hitam); color: #fff; }

/* ---------- Dashboard ---------- */
.dash-body { background: var(--abu-soft); min-height: 100vh; }
.dash-top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  height: 68px;
}
.dash-top .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.dash-user { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--hitam); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.dash-main { padding: 40px 0; }
.dash-welcome { margin-bottom: 30px; }
.dash-welcome h1 { font-size: 30px; }
.dash-welcome p { color: var(--teks-abu); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 34px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.stat-card .ico { margin-bottom: 10px; }
.stat-card .ico svg { width: 24px; height: 24px; stroke: var(--hitam); stroke-width: 1.7; fill: none; }
.stat-card b { font-size: 28px; display: block; color: var(--teks); }
.stat-card span { color: var(--teks-abu); font-size: 14px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-head { padding: 22px 26px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 18px; display:flex; justify-content: space-between; align-items:center; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 15px 26px; font-size: 15px; }
.table th { color: var(--teks-abu); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--line); }
.table td { border-bottom: 1px solid #f2f2f5; }
.table tr:last-child td { border-bottom: none; }
.badge { padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge-aktif { background: var(--hitam); color: #fff; }
.badge-pending { background: var(--abu-soft-2); color: #55555f; }
.badge-nonaktif { background: var(--abu-soft); color: #9a9aa4; }
.empty { padding: 40px; text-align: center; color: var(--teks-abu); }

/* ---------- Responsif ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .hero-visual { order: -1; }
  .features, .pricing { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 20px 24px; gap: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: block; }
  .table { display: block; overflow-x: auto; }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px 22px; }
}
