/* hive-code.dev — by Zedox Development */
:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a25;
  --bg-input: #0e0e16;
  --border: #1e1e2e;
  --border-accent: #f59e0b33;
  --text: #e0e0e8;
  --text-muted: #6b6b80;
  --text-dim: #45455a;
  --accent: #f59e0b;
  --accent-dim: #f59e0b22;
  --accent-hover: #d97706;
  --green: #22c55e;
  --green-dim: #22c55e22;
  --red: #ef4444;
  --red-dim: #ef444422;
  --blue: #3b82f6;
  --purple: #a78bfa;
  --font: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 12px;
  --radius-sm: 8px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
.nav {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.nav-logo:hover { text-decoration: none; }

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #000;
}

.nav-links { display: flex; gap: 8px; }

.btn {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn:hover { background: var(--accent-hover); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

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

.btn-danger { background: var(--red-dim); color: var(--red); border: 1px solid transparent; }
.btn-danger:hover { border-color: var(--red); }

/* Hero */
.hero {
  text-align: center;
  padding: 80px 0 60px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-cta { display: flex; gap: 12px; justify-content: center; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px 0 80px;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
}

.feature:hover { border-color: var(--border-accent); }

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Pricing */
.pricing-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.pricing-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 8px;
}

.pricing-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.pricing-card.featured { border-color: var(--accent); }

.pricing-card h4 {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.pricing-amount {
  font-size: 36px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--accent);
}

.pricing-unit {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pricing-detail {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
}

/* Auth pages */
.auth-container {
  max-width: 400px;
  margin: 80px auto;
  padding: 0 24px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.auth-card h2 {
  font-size: 22px;
  margin-bottom: 24px;
  text-align: center;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus { border-color: var(--accent); }

.form-btn {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  font-size: 14px;
}

.form-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.form-error {
  background: var(--red-dim);
  border: 1px solid var(--red);
  color: var(--red);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

/* Dashboard */
.dash-layout {
  display: flex;
  min-height: 100vh;
}

.dash-sidebar {
  width: 220px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  position: fixed;
  top: 0;
  bottom: 0;
}

.dash-sidebar .nav-logo { margin-bottom: 24px; padding: 0 8px; }

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.dash-nav-item:hover { background: var(--bg-card-hover); color: var(--text); text-decoration: none; }
.dash-nav-item.active { background: var(--accent-dim); color: var(--accent); font-weight: 600; }

.dash-main {
  flex: 1;
  margin-left: 220px;
  padding: 24px 32px;
  max-width: 900px;
}

.dash-header {
  margin-bottom: 24px;
}

.dash-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.dash-header p {
  color: var(--text-muted);
  font-size: 13px;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.stat-box .label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-box .value {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--accent);
  margin-top: 4px;
}

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--text-muted); }

/* Key display */
.key-display {
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  word-break: break-all;
  margin: 12px 0;
  position: relative;
}

.key-warning {
  color: var(--red);
  font-size: 12px;
  margin-top: 8px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 500px;
  width: 90%;
}

.modal h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

/* Badge */
.badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.badge-green { background: var(--green-dim); color: var(--green); }
.badge-amber { background: var(--accent-dim); color: var(--accent); }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .features, .pricing-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .dash-sidebar { display: none; }
  .dash-main { margin-left: 0; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
