:root {
  --primary: #1a73e8;
  --secondary: #0d47a1;
  --accent: #4fc3f7;
  --bg: #f5f9ff;
  --bg-2: #e8f1fc;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #d7e3f4;
  --ok: #059669;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 1rem;
  --font: "Poppins", system-ui, sans-serif;
  --shadow: 0 12px 40px rgba(13, 71, 161, 0.12);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(79, 195, 247, 0.28), transparent 55%),
    radial-gradient(800px 400px at 100% 0%, rgba(26, 115, 232, 0.18), transparent 50%),
    linear-gradient(180deg, var(--bg), #ffffff 45%, var(--bg-2));
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }

.site-nav {
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  box-shadow: 0 4px 20px rgba(13, 71, 161, 0.25);
}
.site-nav .nav-link, .site-nav .navbar-brand { color: #fff !important; }
.site-nav .nav-link:hover { opacity: 0.9; }
.navbar-toggler { border-color: rgba(255,255,255,0.5); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-right: 0.4rem;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
}

.btn-accent, .btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: 0;
  color: #fff !important;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.65rem 1.1rem;
}
.btn-accent:hover, .btn-primary:hover {
  filter: brightness(1.05);
  color: #fff !important;
}
.btn-outline-light {
  border-radius: 0.75rem;
  color: #fff;
  border-color: rgba(255,255,255,0.65);
}
.btn-outline-primary {
  border-radius: 0.75rem;
  color: var(--primary);
  border-color: var(--primary);
}

.hero {
  padding: 3.5rem 0 2rem;
}
.brand-kicker {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
.brand-kicker span { color: var(--primary); }
.hero-title {
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 2rem);
  max-width: 28rem;
  line-height: 1.3;
  margin-bottom: 0.85rem;
}
.hero-lead { color: var(--muted); max-width: 34rem; line-height: 1.65; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.1rem 0 1.35rem; }
.pill {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--secondary);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.shop-section { padding: 1rem 0 3.5rem; }
.section-title { font-weight: 700; color: var(--secondary); }
.section-sub { color: var(--muted); }

.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(26, 115, 232, 0.18);
}
.product-card.featured { border-color: var(--accent); }
.product-top { padding: 1.1rem 1.1rem 0.25rem; }
.product-body { padding: 0 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.product-icon {
  width: 3rem; height: 3rem; border-radius: 0.85rem;
  display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin-bottom: 0.75rem;
}
.product-icon.gpt { background: linear-gradient(135deg, #10a37f, #1a73e8); }
.product-icon.gemini { background: linear-gradient(135deg, #4285f4, #ea4335); }
.product-icon.claude { background: linear-gradient(135deg, #d97757, #0d47a1); }

.badge-tier {
  background: rgba(26, 115, 232, 0.1);
  color: var(--primary);
  border: 1px solid rgba(26, 115, 232, 0.25);
}
.badge-featured {
  background: rgba(79, 195, 247, 0.2);
  color: var(--secondary);
  border: 1px solid rgba(79, 195, 247, 0.45);
}
.stock-badge {
  font-size: 0.75rem; font-weight: 700;
  padding: 0.25rem 0.55rem; border-radius: 999px;
}
.stock-ok { background: #d1fae5; color: #047857; }
.stock-low { background: #fef3c7; color: #b45309; }
.stock-out { background: #fee2e2; color: #b91c1c; }

.plan-price {
  font-size: 1.7rem; font-weight: 800; color: var(--secondary);
}
.feature-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.feature-list li {
  position: relative; padding-left: 1.1rem; margin-bottom: 0.35rem;
  color: #334155; font-size: 0.9rem;
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.45rem;
  width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--primary);
}

.panel, .stat-card, .auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-card { padding: 1.15rem; }
.stat-card .value { font-size: 1.6rem; font-weight: 800; color: var(--secondary); }
.auth-card { max-width: 480px; margin: 2.5rem auto; padding: 1.75rem; }

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--line);
  --bs-table-striped-bg: #f8fbff;
  --bs-table-hover-bg: #eef5ff;
}

.form-control, .form-select {
  border-radius: 0.75rem;
  border-color: var(--line);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(26, 115, 232, 0.15);
}
.form-label { font-weight: 600; color: #334155; }

.site-footer {
  margin-top: auto;
  background: var(--secondary);
  color: #dbeafe;
}
.site-footer a { color: #fff; }

.qr-frame {
  max-width: 260px; border-radius: 0.85rem; border: 1px solid var(--line);
  background: #fff; padding: 0.75rem;
}
.qr-frame img { width: 100%; display: block; }

.status-pill {
  display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700;
}
.status-paid, .status-delivered, .status-active { background: #d1fae5; color: #047857; }
.status-under_review, .status-awaiting_payment { background: #fef3c7; color: #b45309; }
.status-cancelled, .status-failed, .status-disabled { background: #fee2e2; color: #b91c1c; }
.status-pending { background: #e2e8f0; color: #475569; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.how-step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; box-shadow: var(--shadow);
}
.how-step b { display: block; color: var(--secondary); margin-bottom: 0.35rem; }

.credential-box {
  background: #0f172a; color: #e2e8f0; border-radius: 0.85rem;
  padding: 0.9rem 1rem; font-family: ui-monospace, monospace; font-size: 0.86rem;
  white-space: pre-wrap; word-break: break-word;
}

.filter-bar {
  background: #fff; border: 1px solid var(--line); border-radius: 1rem;
  padding: 0.85rem; box-shadow: var(--shadow); margin-bottom: 1.25rem;
}

.cart-badge {
  background: var(--accent); color: var(--secondary); border-radius: 999px;
  font-size: 0.7rem; font-weight: 800; padding: 0.1rem 0.4rem; margin-left: 0.25rem;
}

.toast-container { z-index: 1080; }

@media (max-width: 991.98px) {
  .how-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; }
}
