/* ==========================================================
   LINZZZSTOREE — token dasar desain
   Palet: dark "terminal store" + aksen emerald & amber
   ========================================================== */
:root {
  --bg: #0b0f14;
  --surface: #121820;
  --surface-2: #182029;
  --border: #232d38;
  --text: #e8eef4;
  --text-muted: #8b98a5;
  --accent: #35d68f;
  --accent-dim: #1f7a52;
  --accent-2: #ffb130;
  --danger: #ff5d5d;
  --radius: 10px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------------- Header ---------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hamburger {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 1.6s infinite ease-in-out;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.header-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
}
.header-link:hover { color: var(--text); background: var(--surface-2); }

.user-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.user-icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.user-popup {
  position: absolute;
  top: 52px;
  right: 0;
  width: 220px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.user-popup.open { display: flex; }
.user-popup .popup-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0 4px 4px;
  border-bottom: 1px solid var(--border);
}
.user-popup button, .user-popup a.popup-item {
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 8px;
  border-radius: 6px;
  font-size: 0.9rem;
}
.user-popup button:hover, .user-popup a.popup-item:hover { background: var(--surface); color: var(--accent); }

/* ---------------- Sidebar ---------------- */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 60;
}
.sidebar-overlay.open { display: block; }

.sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 260px;
  height: 100%;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  transition: left 0.2s ease;
  z-index: 61;
}
.sidebar.open { left: 0; }
.sidebar h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 16px;
}
.sidebar nav a {
  display: block;
  padding: 10px 10px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.sidebar nav a:hover, .sidebar nav a.active {
  background: var(--surface-2);
  color: var(--accent);
}

/* ---------------- Main content ---------------- */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.page-subtitle {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

/* ---------------- Bot product card ---------------- */
.bot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  max-width: 360px;
  position: relative;
  overflow: hidden;
}
.bot-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dim));
}
.bot-card .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  background: rgba(53, 214, 143, 0.1);
  border: 1px solid var(--accent-dim);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.bot-card h2 {
  font-family: var(--font-display);
  margin: 0 0 12px;
  font-size: 1.2rem;
}
.bot-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.bot-card ul li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
}
.bot-card ul li:last-child { border-bottom: none; }
.bot-card ul li span.value { color: var(--text); font-family: var(--font-mono); }

.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  width: 100%;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #06130d; }
.btn-primary:hover { background: #4ee6a3; }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); }

/* ---------------- Forms (auth) ---------------- */
.auth-wrap {
  max-width: 400px;
  margin: 60px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 4px;
}
.tabs button {
  flex: 1;
  padding: 9px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
}
.tabs button.active { background: var(--accent); color: #06130d; }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.92rem;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
}
.captcha-box .question {
  font-family: var(--font-mono);
  color: var(--accent-2);
  font-size: 1rem;
  white-space: nowrap;
}
.captcha-box input { flex: 1; min-width: 0; }

.form-msg {
  font-size: 0.85rem;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  display: none;
}
.form-msg.error { display: block; background: rgba(255,93,93,0.1); color: var(--danger); border: 1px solid rgba(255,93,93,0.3); }
.form-msg.success { display: block; background: rgba(53,214,143,0.1); color: var(--accent); border: 1px solid var(--accent-dim); }

.otp-inputs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.otp-inputs input {
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
}

/* ---------------- Admin ---------------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 230px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  flex-shrink: 0;
}
.admin-sidebar .brand { margin-bottom: 24px; font-size: 1rem; }
.admin-sidebar nav a {
  display: block;
  padding: 10px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active {
  background: var(--surface-2);
  color: var(--accent-2);
}
.admin-main { flex: 1; padding: 30px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.stat-card .label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.stat-card .value { font-family: var(--font-mono); font-size: 1.6rem; color: var(--accent-2); }

table { width: 100%; border-collapse: collapse; }
table th, table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
table th { color: var(--text-muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
}
.badge.pending { background: rgba(255,177,48,0.12); color: var(--accent-2); border: 1px solid rgba(255,177,48,0.3); }
.badge.verified { background: rgba(53,214,143,0.12); color: var(--accent); border: 1px solid var(--accent-dim); }

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--accent-dim);
  background: transparent;
  color: var(--accent);
}
.btn-sm:hover { background: var(--accent); color: #06130d; }
.btn-sm:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 700px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; display: flex; align-items: center; justify-content: space-between; }
  .admin-sidebar nav { display: flex; gap: 6px; }
}
