:root{
  --bg:#0b1220;
  --card:#0f1a2f;
  --text:#e8eefc;
  --muted:#aeb9d6;
  --border:rgba(255,255,255,.12);
  --accent:#66e3c4;
  --danger:#ff6b6b;
  --shadow: 0 12px 30px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 10% -10%, rgba(102,227,196,.22), transparent 60%),
              radial-gradient(900px 500px at 110% 0%, rgba(102,156,255,.18), transparent 55%),
              var(--bg);
  color:var(--text);
}
a{color:inherit}
.container{max-width:1100px;margin:0 auto;padding:28px 16px}
.topbar{
  display:flex;flex-direction:column;align-items:stretch;gap:12px;
  padding:14px 16px;border:1px solid var(--border);border-radius:14px;background:rgba(15,26,47,.75);
  backdrop-filter: blur(8px);
}
.toprow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{
  display:flex;align-items:center;gap:12px;
  font-weight:700;letter-spacing:.2px;
  text-decoration:none;
  min-width:0;
}
.brandlogo{
  height:80px;
  width:auto;
  display:block;
  border-radius:12px;
  background:#fff;
  padding:4px 8px;
}
.topactions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.nav{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;flex:1;min-width:0}
.menutoggle{
  appearance:none;
  display:none;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:inherit;
  cursor:pointer;
}
.menutoggle:hover{border-color:rgba(102,227,196,.45)}
.menutoggle:focus-visible{
  outline:none;
  box-shadow: 0 0 0 3px rgba(102,227,196,.18);
}
.menutoggle .icon{opacity:.92}
.pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 12px;border-radius:999px;border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  text-decoration:none;
}
.pill:hover{border-color:rgba(102,227,196,.45)}
.iconbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  text-decoration:none;
}
.iconbtn:hover{border-color:rgba(102,227,196,.45)}
.iconbtn:focus-visible{
  outline:none;
  box-shadow: 0 0 0 3px rgba(102,227,196,.18);
}
.icon{
  width:20px;
  height:20px;
  fill:currentColor;
  opacity:.92;
}
.brand:focus-visible{
  outline:none;
  border-radius:12px;
  box-shadow: 0 0 0 3px rgba(102,227,196,.18);
}
.grid{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
}
@media (max-width: 980px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 640px){
  .grid{grid-template-columns:1fr}
  .brandlogo{height:60px;padding:3px 6px}
  .toprow{flex-wrap:wrap}
  .menutoggle{display:inline-flex}
  .nav{
    display:none;
    flex-basis:100%;
    justify-content:flex-start;
    order:3;
  }
  .topactions{order:2;margin-left:auto}
  .topbar[data-menu-open="1"] .nav{display:flex}
}
.card{
  border:1px solid var(--border);border-radius:18px;background:rgba(15,26,47,.7);
  box-shadow:var(--shadow);overflow:hidden;
}
.imgwrap{aspect-ratio: 4 / 3; background: rgba(255,255,255,.03); display:flex;align-items:center;justify-content:center}
.imgwrap img{width:100%;height:100%;object-fit:cover;display:block}
.imgph{color:var(--muted);font-size:13px}
.cardbody{padding:14px 14px 16px}
.row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.title{margin:0;font-size:16px}
.price{font-weight:700;color:var(--accent)}
.muted{color:var(--muted)}
.desc{margin:10px 0 0;line-height:1.45;color:var(--muted);font-size:14px}
.chip{display:inline-flex;padding:4px 10px;border-radius:999px;border:1px solid var(--border);font-size:12px;color:var(--muted)}

/* Forms */
.panel{margin-top:18px;padding:16px;border:1px solid var(--border);border-radius:16px;background:rgba(15,26,47,.7);box-shadow:var(--shadow)}
label{display:block;font-size:13px;color:var(--muted);margin:12px 0 6px}
input[type="text"], input[type="password"], input[type="email"], input[type="number"], select, textarea{
  width:100%;padding:10px 12px;border-radius:12px;border:1px solid var(--border);
  background:rgba(255,255,255,.04);color:var(--text);outline:none;
}
textarea{min-height:110px;resize:vertical}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.btn{
  appearance:none;border:1px solid var(--border);background:rgba(255,255,255,.06);color:var(--text);
  padding:10px 12px;border-radius:12px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:8px;
}
.btn:hover{border-color:rgba(102,227,196,.45)}
.btn.primary{background:rgba(102,227,196,.16);border-color:rgba(102,227,196,.35)}
.btn.danger{background:rgba(255,107,107,.12);border-color:rgba(255,107,107,.35)}
.hr{height:1px;background:var(--border);margin:16px 0}
.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:10px 8px;border-bottom:1px solid var(--border);text-align:left;font-size:14px;vertical-align:top}
.table th{color:var(--muted);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.08em}
.toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.tool{
  font-size:12px;
  padding:6px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.92);
  cursor:pointer;
}
.tool:hover{border-color:rgba(102,227,196,.45);background:rgba(102,227,196,.12)}
.tool:focus{outline:none}
.tool:focus-visible{
  border-color:rgba(102,227,196,.65);
  box-shadow: 0 0 0 3px rgba(102,227,196,.18);
}
.rte-editor{
  width:100%;
  min-height:140px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
  outline:none;
  line-height:1.5;
  margin-top:8px;
}
.rte-editor:focus{
  border-color:rgba(102,227,196,.45);
  box-shadow: 0 0 0 3px rgba(102,227,196,.12);
}
.rte-editor p{margin:0 0 10px}
.rte-editor p:last-child{margin-bottom:0}
.rte-editor h2{margin:0 0 10px;font-size:18px}
.rte-editor h3{margin:0 0 10px;font-size:16px}
.rte-editor ul,.rte-editor ol{margin:0 0 10px;padding-left:20px}
.rte-editor li{margin:4px 0}
.notice{padding:10px 12px;border-radius:12px;border:1px solid var(--border);background:rgba(255,255,255,.04);color:var(--muted)}
.notice.ok{border-color:rgba(102,227,196,.35)}
.notice.bad{border-color:rgba(255,107,107,.35)}

