@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #fa7268;
  --primary-hover: #f95e52;
  --primary-dark: #e64a3f;
  --primary-light: #ffd4cf;
  --card: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f8f9fb;
  --text: #1f2233;
  --text-soft: #6b6f80;
  --border: #ececf2;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #ef4444;
  --shadow: 0 4px 18px rgba(20, 20, 50, 0.06);
  --radius: 12px;
}

[data-theme="dark"] {
  --bg: #0f1117;
  --bg-soft: #181b24;
  --card: #1c1f2a;
  --text: #f1f1f5;
  --text-soft: #c5c8d4;
  --border: #2a2e3d;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

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

html, body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 6%;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
}
.brand {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.3px;
}
.brand .accent { color: var(--primary); }
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-weight: 600;
  color: var(--text-soft);
  font-size: 15px;
  transition: color .2s;
}
.nav-links a.active, .nav-links a:hover { color: var(--primary); }
.nav-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.nav-actions a.login-link {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}
.nav-mobile-actions { display: none; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s, transform .1s;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 6% 90px;
  max-width: 1300px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 54px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}
.hero p {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 30px;
  font-size: 17px;
  max-width: 480px;
}
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image svg {
  width: 100%;
  max-width: 460px;
  height: auto;
}

/* ===== SECTIONS ===== */
.section {
  padding: 70px 6%;
  max-width: 1300px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-soft);
  margin-bottom: 50px;
}
.section-heading {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1100px;
  margin: 0 auto;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pricing-head {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 28px 20px;
  font-weight: 700;
}
.pricing-head .plan-name { font-size: 20px; margin-bottom: 6px; }
.pricing-head .plan-price { font-size: 26px; font-weight: 800; }
.pricing-features {
  list-style: none;
  padding: 12px 22px 22px;
}
.pricing-features li {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-soft);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li span:last-child { color: var(--text); font-weight: 600; }
.pricing-pay {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 14px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-weight: 700;
  font-size: 14px;
  align-items: center;
}
.pricing-actions { padding: 0 22px 22px; display: flex; flex-direction: column; gap: 10px; }

/* ===== STATS ===== */
.stats-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 70px 6%;
  max-width: 1300px;
  margin: 0 auto;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 20px;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 56px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  color: var(--primary);
  font-weight: 600;
  margin-top: 8px;
}
.stats-text h3 {
  color: var(--primary);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}
.stats-text p { color: var(--text-soft); margin-bottom: 28px; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-soft);
  font-size: 14px;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--primary); }

/* ===== AUTH ===== */
.auth-wrapper {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow);
}
.auth-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 22px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  transition: border-color .2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
}
.auth-link {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-soft);
}
.auth-link a { color: var(--primary); font-weight: 700; }
.auth-link.spread { display: flex; justify-content: space-between; padding: 8px 6px 0; }
.auth-msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}
.auth-msg.error { background: #fde7e7; color: #b91c1c; display: block; }
.auth-msg.success { background: #d1fae5; color: #065f46; display: block; }

/* ===== DASHBOARD LAYOUT ===== */
.app-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar .brand { padding: 0 24px 22px; font-size: 22px; }
.sidebar nav { display: flex; flex-direction: column; }
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 14px;
  transition: all .15s;
  border-left: 3px solid transparent;
}
.sidebar nav a:hover { color: var(--text); background: var(--bg-soft); }
.sidebar nav a.active {
  color: #fff;
  background: var(--primary);
}
.sidebar nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 20px;
}

.main {
  background: var(--bg-soft);
  min-height: 100vh;
  padding: 24px 32px;
  min-width: 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 14px;
  flex-wrap: wrap;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.sidebar-toggle { display: none; }
.page-title {
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.search-box {
  position: relative;
  width: 280px;
  max-width: 100%;
}
.search-box input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
.search-box svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-soft);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: background .15s, border-color .15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.user-chip:hover { background: var(--bg-soft); border-color: var(--primary); }
.user-meta { text-align: right; line-height: 1.2; }
.user-chip .name { font-weight: 700; font-size: 14px; }
.user-chip .email { font-size: 12px; color: var(--text-soft); }
.user-menu-wrap { position: relative; }
.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(20,20,50,0.12);
  padding: 8px;
  display: none;
  z-index: 250;
}
.user-menu.open { display: block; }
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.user-menu-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.user-menu-item:hover { background: var(--bg-soft); }
.user-menu-item.danger { color: var(--danger); }
.user-menu-item.danger:hover { background: rgba(239,68,68,.08); }
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 150;
}
.sidebar-overlay.open { display: block; }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== CARDS / STATS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-body { display: flex; flex-direction: column; min-width: 0; }
.stat-label { color: var(--text-soft); font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.stat-value { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.2; }
.card-title {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.card-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
}
.panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
}
.panel h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ===== TABLE ===== */
.table-wrap {
  overflow-x: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 700px;
}
.data-table thead th {
  background: var(--bg);
  text-align: left;
  padding: 14px 18px;
  color: var(--text-soft);
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-soft); }
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.badge.active { background: #d1fae5; color: #047857; }
.badge.blocked { background: #fee2e2; color: #b91c1c; }
.badge.unpaid, .badge.pending { background: #fef3c7; color: #92400e; }
.badge.paid { background: #d1fae5; color: #047857; }
.badge.cancelled { background: #fee2e2; color: #b91c1c; }
.badge.get { background: #dbeafe; color: #1d4ed8; }
.badge.post { background: #dcfce7; color: #166534; }
.badge.free { background: #e5e7eb; color: #374151; }
.badge.premium { background: #ffd4cf; color: #b91c1c; }
.badge.vip { background: #fde68a; color: #92400e; }
.badge.admin { background: #1f2233; color: #fff; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #10b981; }
.action-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.action-bar .btn { white-space: nowrap; }
.muted { color: var(--text-soft); font-size: 13px; }
.kv-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.kv-row:last-child { border-bottom: none; }
.kv-row .k { color: var(--text-soft); font-weight: 600; }
.kv-row .v { color: var(--text); font-weight: 700; word-break: break-all; text-align: right; }

/* ===== JAKARTA CLOCK ===== */
.jakarta-clock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.jakarta-clock .clock-tz { color: var(--primary); font-size: 11px; }

/* Plan Card (dashboard active plan) */
.plan-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ff8579 0%, #fa7268 55%, #ef5d51 100%);
  color: #fff;
  border-radius: 22px;
  padding: 22px 24px 20px;
  margin-bottom: 24px;
  box-shadow: 0 18px 40px -18px rgba(250, 114, 104, .55);
}
.plan-card-watermark {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  height: 240px;
  color: rgba(255, 255, 255, .14);
  pointer-events: none;
}
.plan-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.plan-card-top-left { display: flex; align-items: center; gap: 10px; }
.plan-icon-chip {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .22);
  border-radius: 10px;
  color: #fff;
}
.plan-icon-chip svg { width: 20px; height: 20px; }
.plan-active-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
}
.plan-active-dot {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .25);
  animation: planPulse 1.6s ease-in-out infinite;
}
@keyframes planPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .35); }
  50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}
.plan-tier-badge {
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 999px;
  letter-spacing: .5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}
.plan-card[data-tier="vip"] {
  background: linear-gradient(135deg, #6d5cff 0%, #5b3df6 55%, #4827d4 100%);
  box-shadow: 0 18px 40px -18px rgba(91, 61, 246, .55);
}
.plan-card[data-tier="vip"] .plan-tier-badge { color: #5b3df6; }
.plan-card[data-tier="vip"] .plan-cd-num,
.plan-card[data-tier="vip"] .plan-cd-num small { color: #5b3df6; }
.plan-card-name {
  position: relative;
  z-index: 1;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 16px 0 14px;
  line-height: 1.1;
  color: #fff;
}
.plan-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed rgba(255, 255, 255, .35);
  font-size: 14px;
}
.plan-row-icon {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .22);
  border-radius: 8px;
  color: #fff;
  flex-shrink: 0;
}
.plan-row-icon svg { width: 16px; height: 16px; }
.plan-row-label { color: rgba(255, 255, 255, .9); font-weight: 600; }
.plan-row-value { color: #fff; font-weight: 700; margin-left: 4px; }
.plan-countdown {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  background: #fff;
  border-radius: 16px;
  padding: 14px 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}
.plan-cd-cell { text-align: center; padding: 4px 6px; }
.plan-cd-cell + .plan-cd-cell { border-left: 1px solid rgba(0, 0, 0, .05); }
.plan-cd-num {
  color: var(--primary);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.plan-cd-num small {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  opacity: .85;
}
.plan-cd-lbl {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  color: #9aa0ad;
}
@media (max-width: 560px) {
  .plan-card { padding: 18px 18px 16px; border-radius: 18px; }
  .plan-card-name { font-size: 28px; margin: 14px 0 10px; }
  .plan-card-watermark { width: 180px; height: 180px; right: -30px; }
  .plan-tier-badge { padding: 6px 12px; font-size: 12px; }
  .plan-cd-num { font-size: 24px; }
  .plan-cd-num small { font-size: 13px; }
  .plan-cd-lbl { font-size: 10px; }
  .plan-countdown { padding: 12px 6px; }
  .plan-row { font-size: 13px; }
}

/* ===== TRY FEATURE MODAL ===== */
.try-modal {
  position: fixed; inset: 0;
  background: rgba(15, 17, 23, .65);
  z-index: 600;
  display: none;
  align-items: flex-start; justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
  animation: pageFadeIn .2s ease both;
}
.try-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  overflow: hidden;
  color: var(--text);
}
.try-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.try-method { font-family: monospace; font-size: 13px; color: var(--text-soft); display:flex; align-items:center; gap:8px; }
.try-close {
  background: transparent; border: none; font-size: 28px; line-height: 1;
  color: var(--text-soft); cursor: pointer; padding: 0 6px;
}
.try-close:hover { color: var(--danger); }
.try-body { padding: 20px 22px; }
.try-label {
  display: block;
  font-size: 12px; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 6px;
}
.try-params { display: flex; flex-direction: column; gap: 12px; }
.try-param-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.try-param-head code {
  background: var(--bg-soft); padding: 2px 8px; border-radius: 6px;
  font-size: 13px; color: var(--primary); font-weight: 700;
}
.try-param-head .req { color: var(--danger); font-size: 11px; font-weight: 700; }
.try-param-head .opt { color: var(--text-soft); font-size: 11px; font-weight: 600; }
.try-param small { display: block; margin-top: 4px; font-size: 12px; color: var(--text); opacity: .85; }
.try-url-row { display: flex; gap: 8px; align-items: stretch; }
.try-url-row input { font-family: monospace; font-size: 12px; }
.try-actions { display: flex; gap: 10px; margin-top: 16px; }
.try-actions .btn { flex: 1; }
.try-result {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.try-result-head {
  display: flex; justify-content: space-between;
  padding: 8px 14px; background: var(--bg-soft);
  font-size: 12px; font-weight: 700;
}
.try-result pre {
  margin: 0; padding: 14px; background: #0f1117; color: #e0e6ed;
  font-size: 12px; max-height: 360px; overflow: auto;
  white-space: pre-wrap; word-break: break-word;
}
@media (max-width: 520px) {
  .try-modal { padding: 16px 8px; }
  .try-head, .try-body { padding: 14px 16px; }
  .try-actions { flex-direction: column; }
}

.toast-pop {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg);
  padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: 13px;
  z-index: 700;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  animation: pageFadeIn .2s ease both;
}

/* ===== COUNTDOWN ===== */
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.countdown.lg { font-size: 18px; padding: 10px 18px; }

/* ===== QRIS PAYMENT MODAL (SocialGo style) ===== */
.pay-modal {
  position: fixed; inset: 0;
  background: rgba(15, 17, 23, .65);
  z-index: 600;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: pageFadeIn .25s ease both;
}
.pay-card {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  font-family: inherit;
  color: #1f2233;
}
.pay-head {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #047857;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
}
.pay-head .amount { font-weight: 800; font-size: 18px; }
.qris-frame {
  background: linear-gradient(180deg, #ffffff 0%, #fdf2f3 100%);
  padding: 18px 22px 22px;
  text-align: center;
}
.qris-frame .qris-brand {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.qris-frame .qris-logo {
  font-weight: 900; color: #ed1c24;
  font-style: italic; font-size: 22px; letter-spacing: -1px;
}
.qris-frame .qris-logo small { font-style: normal; font-weight: 700; font-size: 9px; color: #555; display: block; line-height: 1; }
.qris-frame .gpn {
  background: linear-gradient(90deg, #ed1c24, #f59e0b, #10b981, #3b82f6);
  color: #fff; padding: 3px 8px; border-radius: 6px;
  font-weight: 800; font-size: 11px;
}
.qris-frame h4 {
  font-size: 18px; font-weight: 800; margin-bottom: 12px; color: #1f2233;
}
.qris-frame img.qr {
  width: 100%;
  max-width: 240px;
  display: block;
  margin: 0 auto 12px;
  border-radius: 8px;
}
.qris-frame .qris-foot {
  font-size: 11px; color: #444;
  font-weight: 600;
  margin-top: 8px;
}
.qris-frame .qris-foot strong { color: #ed1c24; }
.pay-info-block {
  padding: 14px 20px;
  border-top: 1px solid #f0f0f5;
  font-size: 13px;
}
.pay-info-block .row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  color: #555;
}
.pay-info-block .row b { color: #1f2233; }
.pay-status {
  text-align: center;
  padding: 12px 20px;
  background: #f8f9fb;
  font-weight: 700;
  font-size: 13px;
  color: #6b6f80;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pay-status .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--warning);
  animation: pulse 1.2s ease-in-out infinite;
}
.pay-status.paid .dot { background: var(--success); animation: none; }
.pay-status.expired .dot { background: var(--danger); animation: none; }
.pay-actions {
  display: flex; gap: 10px;
  padding: 12px 20px 18px;
}
.pay-actions .btn { flex: 1; }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .5; }
}
@media (max-width: 520px) {
  .pay-card { max-width: 100%; }
  .qris-frame img.qr { max-width: 200px; }
}

.method-cell { display: inline-flex; gap: 6px; }

/* ===== DETAIL PROFILE ===== */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.profile-grid > div .label {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.profile-grid > div .value {
  font-weight: 700;
  word-break: break-all;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 40px 6% 60px; gap: 32px; }
  .hero h1 { font-size: 38px; }
  .hero-image { order: -1; max-width: 320px; margin: 0 auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .stats-section { grid-template-columns: 1fr; gap: 32px; padding: 40px 6%; }
  .pricing-page-grid { grid-template-columns: 1fr !important; max-width: 480px; margin: 0 auto; }
  .dash-bottom { grid-template-columns: 1fr !important; }
  .form-grid-3 { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 900px) {
  .app-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 260px;
    transition: left .25s ease;
    z-index: 200;
    box-shadow: 0 0 30px rgba(0,0,0,.18);
  }
  .sidebar.open { left: 0; }
  .sidebar-toggle { display: inline-flex; }
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    padding: 28px 18px 32px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    animation: slideDown .22s ease;
  }
  .nav-links.open { display: flex; }
  .nav-links > a {
    font-size: 20px;
    padding: 2px 10px;
    text-align: center;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.15;
    letter-spacing: -0.3px;
  }
  .nav-links > a:hover, .nav-links > a.active {
    color: var(--primary-hover);
  }
  .nav-mobile-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 8px;
    padding-top: 6px;
  }
  .nav-mobile-actions .login-link {
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
  }
  .nav-mobile-actions .btn {
    font-size: 14px;
    padding: 8px 22px;
    border-radius: 999px;
  }
  .hamburger { display: inline-flex; }
  .nav-actions .login-link { display: none; }
  .nav-actions > .btn { display: none; }
  .navbar { padding: 16px 5%; }
  .main { padding: 16px; }
  .topbar { gap: 10px; }
  .topbar-left { flex: 0 1 auto; }
  .page-title { font-size: 20px; }
  .topbar-actions { width: auto; gap: 10px; margin-left: auto; }
  .search-box { display: none; }
  .user-meta { display: none; }
  .user-chip { padding: 4px; }
  .footer { flex-direction: column; text-align: center; }
  .form-grid-3 { grid-template-columns: 1fr !important; }
  .panel { padding: 16px; }
  .panel h3 { font-size: 15px; margin-bottom: 10px; }
  .panel p, .panel li { font-size: 13px; line-height: 1.7; }
  .panel ol, .panel ul { padding-left: 18px; }
  .hero h1 { font-size: 32px; line-height: 1.2; }
  .hero p { font-size: 14px; }
  .section-title, .section-heading { font-size: 22px; }
  .pricing-card h3 { font-size: 18px; }
  .pricing-card .price { font-size: 28px; }
  .stat-num { font-size: 32px; }
  .stat-text h3 { font-size: 22px; }
  .footer { font-size: 13px; }
}
@media (max-width: 520px) {
  .cards-grid, .profile-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 13px; }
  .section { padding: 40px 5%; }
  .section-title, .section-heading { font-size: 20px; }
  .stat-num { font-size: 30px; }
  .auth-card { padding: 24px 20px; }
  .auth-card h2 { font-size: 20px; }
  .data-table thead th, .data-table tbody td { padding: 10px 12px; font-size: 12px; }
  .card-value { font-size: 20px; }
  .stat-card { padding: 14px 16px; gap: 12px; }
  .stat-icon { width: 36px; height: 36px; }
  .stat-icon svg { width: 18px; height: 18px; }
  .stat-label { font-size: 12px; }
  .stat-value { font-size: 18px; }
  .panel { padding: 14px; }
  .panel h3 { font-size: 14px; }
  .panel p, .panel li { font-size: 12.5px; line-height: 1.65; }
  .page-title { font-size: 18px; }
  .nav-brand { font-size: 18px; }
}

/* loading spinner button */
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #fff; border-top-color: transparent;
  animation: spin .8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== PAGE TRANSITIONS / ANIMATIONS ===== */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}

body { animation: pageFadeIn .35s ease both; }

.hero > div:first-child { animation: slideInUp .5s ease both; }
.hero-image { animation: scaleIn .6s ease both .1s; }

.panel,
.card,
.pricing-card,
.auth-card,
.feature-card {
  animation: slideInUp .45s ease both;
}
.cards-grid > *:nth-child(1) { animation-delay: .04s; }
.cards-grid > *:nth-child(2) { animation-delay: .10s; }
.cards-grid > *:nth-child(3) { animation-delay: .16s; }
.cards-grid > *:nth-child(4) { animation-delay: .22s; }

.dash-bottom > *:nth-child(1) { animation-delay: .28s; }
.dash-bottom > *:nth-child(2) { animation-delay: .34s; }

.pricing-grid > *:nth-child(1),
.pricing-page-grid > *:nth-child(1) { animation-delay: .05s; }
.pricing-grid > *:nth-child(2),
.pricing-page-grid > *:nth-child(2) { animation-delay: .15s; }
.pricing-grid > *:nth-child(3),
.pricing-page-grid > *:nth-child(3) { animation-delay: .25s; }

.sidebar nav a { transition: background .2s ease, color .2s ease, padding-left .2s ease; }
.sidebar nav a:hover { padding-left: 28px; }

.btn { transition: background .2s ease, transform .15s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(250,114,104,.3); }
.btn:active { transform: translateY(0); }

a, button { transition: color .2s ease, background .2s ease, border-color .2s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
