:root {
  --bg: #0a0f1a;
  --surface: #131b2b;
  --accent: #3fa9ff;
  --accent2: #00e0a4;
  --text: #eaf1ff;
  --muted: #8091ab;
  --danger: #ff5f6d;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  border-bottom: 1px solid #1e2a40;
  position: sticky;
  top: 0;
  background: rgba(10,15,26,0.95);
  backdrop-filter: blur(6px);
  z-index: 10;
}
.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.logo span { color: var(--accent); }
nav a {
  margin-left: 26px;
  font-size: 14px;
  color: var(--muted);
  transition: color .15s;
}
nav a:hover { color: var(--accent2); }
.hero {
  padding: 70px 40px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #16233a, #0a0f1a 70%);
  border-bottom: 1px solid #1e2a40;
}
.hero h1 {
  font-size: 40px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { color: var(--muted); font-size: 16px; }
.hero .badge {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 14px;
  border: 1px solid var(--accent2);
  color: var(--accent2);
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 1px;
  font-family: monospace;
}
main { max-width: 1100px; margin: 0 auto; padding: 50px 24px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid #1e2a40;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #506078;
  font-family: monospace;
}
.card-body { padding: 16px; }
.card-body h3 { font-size: 15px; margin-bottom: 6px; }
.price { color: var(--accent2); font-weight: 700; margin-bottom: 12px; font-family: monospace; }
button, .btn {
  display: inline-block;
  width: 100%;
  padding: 10px 14px;
  background: var(--accent);
  color: #06101f;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: .5px;
  text-align: center;
}
button:hover, .btn:hover { background: var(--accent2); }
.btn.secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.section-title {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: monospace;
}
form.panel {
  max-width: 380px;
  margin: 40px auto;
  background: var(--surface);
  border: 1px solid #1e2a40;
  border-radius: 8px;
  padding: 32px;
}
form.panel h2 { margin-bottom: 22px; font-size: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-family: monospace; }
.field input {
  width: 100%;
  padding: 10px 12px;
  background: #0a0f1a;
  border: 1px solid #24334d;
  border-radius: 4px;
  color: var(--text);
  font-size: 14px;
}
.field input:focus { outline: none; border-color: var(--accent); }
.msg { font-size: 13px; margin-top: 14px; text-align: center; min-height: 18px; }
.msg.error { color: var(--danger); }
.msg.ok { color: var(--accent2); }
table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #1e2a40; font-size: 14px; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-family: monospace; }
.qty-btn {
  width: 28px; height: 28px; padding: 0; display: inline-flex;
  align-items: center; justify-content: center; font-size: 14px;
}
.cart-summary {
  max-width: 320px; margin-left: auto; background: var(--surface);
  border: 1px solid #1e2a40; border-radius: 8px; padding: 20px;
}
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.cart-summary .row.total { color: var(--text); font-weight: 700; font-size: 16px; border-top: 1px solid #1e2a40; padding-top: 12px; }
footer {
  text-align: center;
  padding: 30px;
  color: #3d4d68;
  font-size: 12px;
  border-top: 1px solid #1e2a40;
  font-family: monospace;
}
.pill {
  display: inline-block; background: #0a0f1a; border: 1px solid #24334d;
  color: var(--muted); font-size: 11px; padding: 3px 8px; border-radius: 4px; font-family: monospace;
}
