/* ===== API Keys Gateway - Blue Theme ===== */
:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c8;
  --primary-light: #38bdf8;
  --secondary: #0369a1;
  --accent: #7dd3fc;
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-hover: #334155;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: #334155;
  --gradient: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
  --gradient-soft: linear-gradient(135deg, rgba(14,165,233,0.15) 0%, rgba(3,105,161,0.1) 100%);
  --shadow: 0 10px 40px -10px rgba(14,165,233,0.3);
  --radius: 16px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--primary-light); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--accent); }

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.9rem 0;
}

.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(14,165,233,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14,165,233,0.5);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary-light);
}

.btn-outline:hover {
  background: rgba(14,165,233,0.15);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== HERO ===== */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background: var(--gradient-soft);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, rgba(14,165,233,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #fff 30%, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ===== SECTION ===== */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ===== FEATURES ===== */
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* ===== PRICING / JUALAN ===== */
.price-tag {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-light);
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success { background: rgba(34,197,94,0.2); color: #4ade80; }
.badge-warning { background: rgba(245,158,11,0.2); color: #fbbf24; }
.badge-primary { background: rgba(14,165,233,0.2); color: var(--primary-light); }
.badge-danger { background: rgba(239,68,68,0.2); color: #f87171; }

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.2);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* ===== AUTH BOX ===== */
.auth-wrapper {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* ===== DASHBOARD ===== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 70px);
}

.sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 0.3rem;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
  background: rgba(14,165,233,0.15);
  color: var(--primary-light);
}

.main-content {
  padding: 2rem;
  overflow-y: auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
}

/* ===== STAT CARDS ===== */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.stat-card .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.stat-card .value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-light);
}

/* ===== TABLE ===== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}

th, td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: rgba(14,165,233,0.08);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

td {
  font-size: 0.95rem;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(14,165,233,0.05); }

/* ===== API KEY BOX ===== */
.api-key-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  word-break: break-all;
}

.copy-btn {
  background: rgba(14,165,233,0.2);
  border: none;
  color: var(--primary-light);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  white-space: nowrap;
}

.copy-btn:hover { background: rgba(14,165,233,0.35); }

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.tab-btn.active, .tab-btn:hover {
  background: rgba(14,165,233,0.15);
  color: var(--primary-light);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== ALERT ===== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.alert-success { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }
.alert-warning { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); color: #fbbf24; }
.alert-danger { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #f87171; }
.alert-info { background: rgba(14,165,233,0.15); border: 1px solid rgba(14,165,233,0.3); color: var(--primary-light); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== CODE BLOCK ===== */
.code-block {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 1rem 0;
}

.code-block .comment { color: #8b949e; }
.code-block .keyword { color: #ff7b72; }
.code-block .string { color: #a5d6ff; }
.code-block .func { color: #d2a8ff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-menu {
    display: flex;
    overflow-x: auto;
    gap: 0.3rem;
    padding-bottom: 0.5rem;
  }
  .sidebar-menu li { margin-bottom: 0; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 3rem 0; }
  .main-content { padding: 1.25rem; }
  .auth-card { padding: 1.75rem; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }
}
/* ===== Extra for PHP Shop ===== */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card .features {
  flex: 1;
  margin: 1rem 0;
}
.product-card .features li {
  padding: 0.3rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.product-card .features li::before {
  content: none; /* check via SVG */
  color: var(--success);
  font-weight: bold;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-light);
}
.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.how-it-works {
  counter-reset: step;
}
.how-step {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 1.5rem;
}
.how-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.order-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.timeline {
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
  margin-left: 0.5rem;
}
.timeline-item {
  position: relative;
  padding-bottom: 1.25rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.7rem;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

/* ===== SVG Icons (hitam) ===== */
.logo-icon {
  background: #0f172a !important;
  color: #f1f5f9 !important;
}
.logo-icon svg {
  display: block;
  color: #f1f5f9;
  stroke: #f1f5f9;
}
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #0f172a;
  flex-shrink: 0;
}
.nav-icon svg,
.sidebar-menu a svg {
  color: currentColor;
  stroke: currentColor;
}
.sidebar-menu a {
  color: #94a3b8;
}
.sidebar-menu a .nav-icon {
  color: #64748b;
}
.sidebar-menu a:hover .nav-icon,
.sidebar-menu a.active .nav-icon {
  color: #0ea5e9;
}
.feature-icon {
  background: #0f172a !important;
  color: #f1f5f9 !important;
}
.feature-icon svg {
  display: block;
  stroke: #f1f5f9;
  color: #f1f5f9;
}
.menu-toggle {
  color: #f1f5f9;
}
.menu-toggle svg {
  stroke: #f1f5f9;
}
.check-icon {
  display: inline-flex;
  color: #22c55e;
  vertical-align: middle;
  margin-right: 0.35rem;
}
.check-icon svg {
  stroke: #22c55e;
}
.inline-icon {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 0.2rem;
}
.product-card .features li::before {
  content: none !important;
}

/* =====================================================================
   DASHBOARD (member area) — layout rapi & konsisten
   ===================================================================== */
.dashboard-layout {
  grid-template-columns: 264px minmax(0, 1fr);
  background: var(--bg);
}
.dashboard-layout .sidebar {
  position: sticky; top: 61px; align-self: start;
  height: calc(100vh - 61px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: 1.25rem 1rem;
  background: #131c31;
}
.side-user { display: flex; align-items: center; gap: .75rem; padding: .85rem; border: 1px solid var(--border); border-radius: 14px; background: rgba(14,165,233,.06); }
.side-avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--gradient); color: #fff; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; text-transform: uppercase; }
.side-user-name { font-weight: 600; font-size: .92rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-role { font-size: .75rem; color: var(--text-muted); text-transform: capitalize; }
.side-label { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #64748b; padding: 0 .5rem .4rem; font-weight: 600; }
.side-section { display: block; }
.dashboard-layout .sidebar-menu a { padding: .65rem .85rem; font-size: .92rem; font-weight: 500; border: 1px solid transparent; }
.dashboard-layout .sidebar-menu a.active { border-color: rgba(14,165,233,.25); }
.side-foot { margin-top: auto; display: grid; gap: .6rem; }
.side-conn { display: flex; align-items: center; gap: .55rem; font-size: .8rem; color: var(--text-muted); padding: .6rem .8rem; border: 1px solid var(--border); border-radius: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #64748b; flex-shrink: 0; }
.dot.ok { background: var(--success); box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.dot.bad { background: var(--danger); box-shadow: 0 0 0 3px rgba(239,68,68,.2); }
.side-logout { font-size: .85rem; text-align: center; padding: .55rem; border-radius: 10px; border: 1px solid var(--border); color: var(--text-muted); }
.side-logout:hover { border-color: var(--danger); color: #f87171; }

.dashboard-layout .main-content { padding: 2rem 2.25rem 3rem; max-width: 1180px; width: 100%; margin: 0 auto; min-width: 0; }

/* Header halaman */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.dash-head h1 { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.dash-head p { color: var(--text-muted); font-size: .92rem; margin-top: .3rem; }
.dash-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* Banner koneksi */
.conn-banner { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-card); margin-bottom: 1.5rem; flex-wrap: wrap; }
.conn-banner.ok { border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }
.conn-banner.bad { border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.08); }
.conn-banner .conn-text { flex: 1; min-width: 220px; }
.conn-banner strong { display: block; font-size: .95rem; }
.conn-banner span.sub { font-size: .85rem; color: var(--text-muted); }
.conn-banner code { background: rgba(0,0,0,.3); padding: .1rem .4rem; border-radius: 6px; font-size: .8rem; }

/* Statistik */
.dash-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.dash-stat { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.25rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; }
.dash-stat .ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(14,165,233,.14); color: var(--primary-light); display: grid; place-items: center; flex-shrink: 0; }
.dash-stat .lbl { font-size: .78rem; color: var(--text-muted); }
.dash-stat .val { font-size: 1.35rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }

/* Kartu */
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; align-items: start; }
.dash-grid.wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.dash-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 1.25rem; }
.dash-grid > .dash-card { margin-bottom: 0; }
.dash-card-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.dash-card-head h3 { font-size: 1rem; font-weight: 600; }
.dash-card-head a { font-size: .85rem; }
.dash-card-body { padding: 1.25rem; }
.dash-card-body.flush { padding: 0; }
.dash-card .muted, .muted { color: var(--text-muted); font-size: .9rem; }
.dash-empty { text-align: center; padding: 2rem 1rem; color: var(--text-muted); font-size: .92rem; }
.dash-empty .btn { margin-top: .85rem; }

/* Tabel */
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th { background: transparent; border-bottom: 1px solid var(--border); padding: .7rem 1.25rem; font-size: .72rem; }
.dash-table td { padding: .85rem 1.25rem; font-size: .9rem; vertical-align: middle; }
.dash-table td small { color: var(--text-muted); display: block; font-size: .78rem; }
.dash-table .num { text-align: right; white-space: nowrap; }
.dash-table .nowrap { white-space: nowrap; }
.dash-scroll { overflow-x: auto; }

/* Aksi cepat */
.quick-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.quick { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem .5rem; text-align: center; font-size: .85rem; font-weight: 500; color: var(--text); background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; }
.quick .ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(14,165,233,.14); color: var(--primary-light); display: grid; place-items: center; }
.quick:hover { border-color: var(--primary); color: var(--text); transform: translateY(-2px); }

/* Key/value & daftar */
.kv { display: grid; grid-template-columns: 140px 1fr; gap: .7rem 1rem; font-size: .92rem; align-items: center; }
.kv dt { color: var(--text-muted); }
.kv dd { font-weight: 500; overflow-wrap: anywhere; }
.tip-list { list-style: none; display: grid; gap: .65rem; color: var(--text-muted); font-size: .9rem; }
.tip-list li { display: flex; gap: .6rem; align-items: flex-start; }
.tip-list .check-icon { color: var(--success); margin-top: .15rem; }
.key-row { padding: .85rem 1.25rem; border-bottom: 1px solid var(--border); }
.key-row:last-child { border-bottom: none; }
.key-row .meta { font-size: .8rem; color: var(--text-muted); margin-bottom: .35rem; }
.dash-card .api-key-box { margin: 0; }

/* Form dalam dashboard */
.dash-form { display: grid; gap: 1rem; }
.dash-form .form-group { margin: 0; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

@media (max-width: 1100px) {
  .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-grid.wide { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-layout .sidebar { position: static; height: auto; flex-direction: column; padding: 1rem; }
  .dashboard-layout .sidebar-menu { flex-wrap: nowrap; }
  .side-foot { display: none; }
  .side-user { display: none; }
  .side-label { display: none; }
  .dashboard-layout .main-content { padding: 1.25rem; }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dash-stats { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv { grid-template-columns: 1fr; gap: .15rem; }
  .kv dd { margin-bottom: .6rem; }
  .form-2col { grid-template-columns: 1fr; }
}
