:root {
  --bg: #08131f;
  --bg2: #10243a;
  --panel: #13263a;
  --line: rgba(255,255,255,.08);
  --text: #f5f7fb;
  --muted: #9db0c6;
  --accent: #ffd166;
  --accent2: #4cd3a7;
  --danger: #ff6b6b;
  --shadow: 0 20px 45px rgba(0,0,0,.25);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #06101b 0%, #0b1725 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-wrap { max-width: 1320px; margin: 0 auto; padding: 18px; }
.topbar, .admin-topbar, .panel, .auth-card, .install-card, .metric-card, .sidebar, .price-card, .info-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.topbar {
  background: linear-gradient(90deg, #10243a, #173551);
  border-radius: 24px;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.eyebrow { color: var(--accent2); text-transform: uppercase; font-size: 12px; letter-spacing: 2px; margin-bottom: 8px; }
h1,h2,h3,p { margin-top: 0; }
.topbar h1 { margin-bottom: 6px; font-size: 34px; }
.topbar p, .admin-topbar p { color: var(--muted); margin-bottom: 0; }
.status-pill {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  padding: 12px 14px;
  border-radius: 999px;
}
.main-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.panel { background: rgba(19,38,58,.95); border-radius: 22px; padding: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.panel-head span { color: var(--muted); }
.products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  padding: 14px;
}
.thumb-wrap { height: 180px; border-radius: 16px; overflow: hidden; background: #0b1b2c; margin-bottom: 12px; }
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { display:flex; align-items:center; justify-content:center; height:100%; color:var(--muted); }
.product-meta { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.badge { background: rgba(255,255,255,.08); padding: 6px 10px; border-radius: 999px; font-size: 12px; }
.badge-hot { background: rgba(255,209,102,.15); color: var(--accent); }
.product-card h3 { margin-bottom: 8px; font-size: 22px; }
.product-card p { color: var(--muted); min-height: 48px; }
.price-row { display:flex; align-items:flex-end; gap:10px; }
.price-row strong { font-size: 32px; color: var(--accent); }
.price-row span { text-decoration: line-through; color: var(--muted); }
.promo-stack { display:grid; gap:14px; }
.promo-card {
  background: linear-gradient(135deg, rgba(255,107,107,.95), rgba(255,145,77,.95));
  border-radius: 18px;
  padding: 18px;
}
.promo-big { font-size: 32px; font-weight: 700; margin-top: 10px; }
.info-card, .empty-box { background: rgba(255,255,255,.03); border-radius: 18px; padding: 18px; border: 1px solid rgba(255,255,255,.06); margin-top: 14px; }
.info-card ul { list-style: none; padding-left: 0; margin: 0; }
.info-card li { margin-bottom: 10px; color: var(--muted); }
.footer-bar { margin-top: 18px; text-align: center; color: var(--muted); padding: 16px; }
.auth-body, .install-body { min-height: 100vh; display:flex; align-items:center; justify-content:center; padding:16px; }
.auth-card, .install-card {
  width: 100%; max-width: 460px; background: rgba(16,36,58,.96); border-radius: 24px; padding: 28px;
}
.install-card { max-width: 720px; }
label { display:block; margin-bottom: 8px; font-weight: 700; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="file"], input[type="date"], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: var(--text); margin-bottom: 16px;
}
textarea { min-height: 110px; resize: vertical; }
.btn, button {
  appearance: none; border: 0; cursor: pointer; border-radius: 12px; padding: 12px 18px; background: var(--accent); color: #1a1a1a; font-weight: 700; display:inline-block;
}
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.14); color: var(--text); }
.alert { border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; }
.alert.error { background: rgba(255,107,107,.16); border: 1px solid rgba(255,107,107,.35); }
.alert.success { background: rgba(76,211,167,.16); border: 1px solid rgba(76,211,167,.35); }
.admin-body { background: linear-gradient(180deg, #07111c 0%, #0d1724 100%); }
.admin-layout { display:grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: rgba(10,22,35,.95); padding: 22px; }
.brand-box { margin-bottom: 18px; }
.sidebar nav { display:grid; gap: 8px; }
.sidebar nav a { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); }
.sidebar nav a:hover { background: rgba(255,255,255,.08); }
.admin-content { padding: 20px; }
.admin-topbar { background: rgba(16,36,58,.95); padding: 18px 20px; border-radius: 20px; margin-bottom: 18px; }
.cards-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { background: rgba(19,38,58,.95); border-radius: 20px; padding: 18px; }
.metric-card span { color: var(--muted); display:block; margin-bottom: 8px; }
.metric-card strong { font-size: 32px; }
.admin-panel { padding: 16px; }
.toolbar { margin-bottom: 14px; }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.08); text-align:left; vertical-align: middle; }
th { color: var(--muted); font-size: 14px; }
.actions { display:flex; gap:10px; flex-wrap:wrap; }
.actions a { color: var(--accent2); }
.table-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 12px; }
.form-panel { max-width: 880px; }
.form-actions { display:flex; gap:10px; flex-wrap:wrap; }
.two-col, .split-grid, .check-row, .install-form { display:grid; gap:14px; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-grid { grid-template-columns: 1.1fr 1fr; }
.check-row { grid-template-columns: repeat(2, max-content); align-items:center; }
.check { display:flex; align-items:center; gap:8px; font-weight:400; }
.check input { width:auto; margin:0; }
.install-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-section { background: rgba(255,255,255,.03); padding: 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.06); }
.image-preview img { width: 160px; height: 160px; object-fit: cover; border-radius: 16px; margin-bottom: 16px; }
@media (max-width: 1024px) {
  .main-grid, .admin-layout, .split-grid, .install-form { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-wrap, .admin-content { padding: 12px; }
  .topbar { padding: 18px; }
  .topbar h1 { font-size: 28px; }
  .cards-grid, .two-col, .check-row { grid-template-columns: 1fr; }
  .sidebar { padding: 16px; }
}

:root {
  --primary: #10243a;
  --secondary: #ffd166;
}
body { background: linear-gradient(180deg, #06101b 0%, #0b1725 100%); }
.btn, button { background: var(--secondary); }
.topbar { background: linear-gradient(90deg, var(--primary), #173551); }
.product-card, .metric-card, .panel, .auth-card, .install-card, .sidebar, .admin-topbar { backdrop-filter: blur(4px); }
.brand-logo { max-height: 54px; max-width: 140px; margin-bottom: 8px; object-fit: contain; }
.admin-mobilebar { display:none; margin-bottom:14px; gap:10px; align-items:center; }
.admin-mobilebar .menu-btn { background: rgba(255,255,255,.08); color: var(--text); border:1px solid rgba(255,255,255,.12); }
.sidebar nav a.is-active { background: rgba(255,209,102,.16); color: var(--accent); }
.help-text { color: var(--muted); font-size: 13px; margin-top: -10px; margin-bottom: 14px; }
.logo-preview { background: rgba(255,255,255,.03); border:1px dashed rgba(255,255,255,.12); border-radius:16px; padding:12px; margin-bottom:14px; }
.logo-preview img { max-height:70px; object-fit:contain; }
@media (max-width: 1024px) {
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; max-width: 86vw; z-index: 999; transform: translateX(-110%); transition: transform .25s ease; overflow-y:auto; }
  .sidebar.is-open { transform: translateX(0); }
  .admin-mobilebar { display:flex; }
}
