:root {
  --bg: #0b0f1a;
  --surface: #121826;
  --muted: #1f2937;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --text: #e5e7eb;
  --text-dim: #94a3b8;
  --danger: #ef4444;
  --ok: #22c55e;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #070b12, #0e1422) fixed;
  color: var(--text);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.header {
  border-bottom: 1px solid #0b1220;
  background: rgba(18, 24, 38, 0.7);
  backdrop-filter: saturate(120%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.3px;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.card {
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.8), rgba(18, 24, 38, 0.8));
  border: 1px solid #0b1220;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.grid {
  display: grid;
  gap: 20px;
}

.shop-grid {
  grid-template-columns: 1fr 320px;
}

@media (max-width: 900px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
}

.form {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  gap: 6px;
}

label {
  color: var(--text-dim);
  font-size: 0.9rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #0b1220;
  background: #0a0f1a;
  color: var(--text);
}

.actions {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #fff;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.btn-secondary {
  background: var(--muted);
  color: var(--text);
}

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

.btn-ok {
  background: var(--ok);
  color: #00110a;
}

.hidden {
  display: none;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tab {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  background: var(--muted);
  color: var(--text);
  border: 1px solid #0b1220;
  cursor: pointer;
}

.tab.active {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.pane {
  display: none;
}

.pane.active {
  display: block;
}

.list {
  display: grid;
  gap: 12px;
}

.item {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid #0b1220;
  border-radius: 12px;
  background: #0a0f1a;
}

.product-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.product {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #0b1220;
  border-radius: 12px;
  background: #0a0f1a;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #0b1220;
}

.product h3 {
  margin: 0;
  font-size: 1rem;
}

.product .price {
  font-weight: 700;
}

.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.85);
  color: var(--text-dim);
  font-size: 0.8rem;
  border: 1px solid #0b1220;
}

.hero {
  display: grid;
  gap: 6px;
  padding: 28px;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(37, 99, 235, 0.25), transparent),
              radial-gradient(1200px 600px at 90% 0%, rgba(29, 78, 216, 0.25), transparent),
              linear-gradient(180deg, rgba(31, 41, 55, 0.9), rgba(18, 24, 38, 0.85));
}

.hero-title {
  font-size: 1.6rem;
  font-weight: 700;
}

.hero-sub {
  color: var(--text-dim);
}

.shop-header {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #0b1220;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #0a0f1a;
  border: 1px solid #0b1220;
  color: var(--text);
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.toast.show {
  opacity: 1;
  animation: popIn 0.2s ease;
}

.toast.ok {
  border-color: rgba(34, 197, 94, 0.5);
}

.toast.danger {
  border-color: rgba(239, 68, 68, 0.5);
}

@keyframes popIn {
  from { transform: translateX(-50%) translateY(8px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
