:root {
  --bg: #0b0c10;
  --panel: #14161d;
  --line: #232631;
  --ink: #f3f4f7;
  --muted: #9aa0ad;
  --accent: #ff2e63;
  --accent2: #08d9d6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #11131a, #0b0c10);
  position: sticky; top: 0; z-index: 10;
}
.topbar .brand { display: flex; align-items: baseline; gap: 8px; color: var(--ink); }
.topbar .brand .logo { color: var(--accent); font-size: 20px; }
.topbar .brand em { color: var(--muted); font-style: normal; font-size: 12px; }
.topbar nav a { margin-left: 20px; color: var(--ink); }
.topbar nav a:hover { color: var(--accent); text-decoration: none; }

main { max-width: 1200px; margin: 0 auto; padding: 32px 24px 80px; }

.flash { max-width: 1200px; margin: 12px auto; padding: 10px 16px; border-radius: 8px; }
.flash-info    { background: #16323a; color: #cdeff1; }
.flash-success { background: #133b22; color: #c8f5d4; }
.flash-error   { background: #3b1414; color: #ffd3d3; }

footer { text-align: center; color: var(--muted); padding: 30px; border-top: 1px solid var(--line); }

/* --- Hero --- */
.hero { padding: 40px 0 24px; }
.hero h1 { font-size: 48px; line-height: 1.1; margin: 0 0 12px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); max-width: 720px; font-size: 18px; }

/* --- Product grid --- */
.grid { display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .15s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card .thumb { aspect-ratio: 1 / 1; background: #000;
  background-size: cover; background-position: center; }
.card .meta { padding: 14px 16px; }
.card h3 { margin: 0 0 4px; font-size: 16px; }
.card .pid { color: var(--muted); font-size: 11px; font-family: ui-monospace, Menlo, monospace; }

/* --- Forms --- */
.panel { background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.panel h2 { margin-top: 0; }
label { display: block; margin: 12px 0 6px; color: var(--muted); font-size: 13px;
  text-transform: uppercase; letter-spacing: .04em; }
input[type=text], input[type=password], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: #0a0b10; color: var(--ink); border: 1px solid var(--line);
  font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
button, .btn {
  display: inline-block; padding: 12px 20px; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: white; border: 0; font-weight: 600;
  font: inherit;
}
button:hover, .btn:hover { background: #ff5a82; text-decoration: none; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }

/* --- Product detail --- */
.product-detail { display: grid; gap: 32px; grid-template-columns: 1.2fr 1fr; }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.gallery img { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #000; }
.gallery img:first-child { grid-column: span 2; }

/* --- Tables --- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; }
tr:hover td { background: rgba(255,255,255,.02); }

code, pre { font-family: ui-monospace, Menlo, monospace; }
pre { background: #07080c; padding: 14px; border-radius: 10px; overflow: auto;
  border: 1px solid var(--line); font-size: 12px; }
