/* BERKAH · POS-09 (Produk, Harga, Paket & Promo)
   Tema: Violet → Fuchsia (distinct)
*/
:root{
  --bg:#0b1020;
  --card:#0f1730;
  --muted:#9aa6c3;
  --line:rgba(255,255,255,.10);
  --brand1:#7c3aed;  /* violet */
  --brand2:#ec4899;  /* fuchsia */
  --brand3:#22c55e;  /* emerald accent */
  --warn:#f59e0b;
  --danger:#ef4444;
  --ok:#22c55e;
  --chip:#121b3a;
  --text:#e8ecff;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 22px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background:
    radial-gradient(1200px 900px at 20% -10%, rgba(124,58,237,.35), transparent 60%),
    radial-gradient(1200px 900px at 90% 0%, rgba(236,72,153,.28), transparent 55%),
    radial-gradient(900px 700px at 50% 110%, rgba(34,197,94,.18), transparent 60%),
    linear-gradient(180deg, #070a14, var(--bg));
  color:var(--text);
}

a{color:inherit; text-decoration:none}
small{color:var(--muted)}
.container{max-width:1180px; margin:0 auto; padding:20px}
.hidden{display:none !important}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(7,10,20,.6);
  border-bottom:1px solid var(--line);
}
.topbarInner{max-width:1180px; margin:0 auto; padding:14px 20px; display:flex; gap:14px; align-items:center; justify-content:space-between}
.brand{
  display:flex; align-items:center; gap:12px;
}
.logo{
  width:44px; height:44px; border-radius:14px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  box-shadow: 0 10px 25px rgba(124,58,237,.25);
  display:grid; place-items:center; font-weight:900;
}
.brandText b{display:block; letter-spacing:.3px}
.brandText span{display:block; font-size:12px; color:var(--muted); margin-top:2px}
.userBox{display:flex; align-items:center; gap:10px}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px; border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
}
.pill .dot{width:8px; height:8px; border-radius:999px; background:var(--ok); box-shadow:0 0 0 4px rgba(34,197,94,.15)}

.hero{
  border-radius:var(--radius2);
  padding:22px;
  background:
    linear-gradient(135deg, rgba(124,58,237,.35), rgba(236,72,153,.20)),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.heroGrid{display:grid; grid-template-columns: 1.2fr .8fr; gap:18px; align-items:stretch}
@media (max-width: 900px){ .heroGrid{grid-template-columns:1fr} }

.hTitle{font-size:28px; margin:0 0 6px 0; letter-spacing:.2px}
.hSub{margin:0; color:rgba(232,236,255,.82); line-height:1.45}
.ctaRow{margin-top:14px; display:flex; gap:10px; flex-wrap:wrap}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  font-weight:700;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.085)}
.btnPrimary{
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  border: 0;
  box-shadow: 0 14px 30px rgba(236,72,153,.20);
}
.btnPrimary:hover{box-shadow: 0 18px 42px rgba(236,72,153,.26)}
.btnGhost{background: rgba(0,0,0,.0)}
.btnSmall{padding:9px 10px; border-radius:12px; font-size:13px}

.panel{
  border-radius:var(--radius2);
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panelHeader{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:14px 16px;
  background: linear-gradient(135deg, rgba(124,58,237,.26), rgba(236,72,153,.14));
  border-bottom:1px solid rgba(255,255,255,.14);
}
.panelHeader b{letter-spacing:.2px}
.panelBody{padding:16px}

.filters{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:10px;
}
@media (max-width: 900px){ .filters{grid-template-columns:1fr 1fr} }
@media (max-width: 520px){ .filters{grid-template-columns:1fr} }

.field label{display:block; font-size:12px; color:rgba(232,236,255,.8); margin-bottom:6px}
.input, .select{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:2px solid rgba(255,255,255,.14);
  background: rgba(5,8,16,.55);
  color:var(--text);
  outline:none;
}
.input:focus, .select:focus{border-color: rgba(236,72,153,.55); box-shadow:0 0 0 4px rgba(236,72,153,.18)}
.chips{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px}
.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(18,27,58,.72);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(232,236,255,.92);
  font-size:12px;
}
.chip b{font-weight:800}

.gridCards{display:grid; grid-template-columns: repeat(4, 1fr); gap:12px; margin-top:14px}
@media (max-width: 980px){ .gridCards{grid-template-columns: 1fr 1fr} }
@media (max-width: 520px){ .gridCards{grid-template-columns: 1fr} }

.card{
  border-radius:var(--radius2);
  border:1px solid rgba(255,255,255,.12);
  background: rgba(15,23,48,.55);
  box-shadow: 0 12px 26px rgba(0,0,0,.22);
  padding:14px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover{transform: translateY(-1px); box-shadow: 0 18px 34px rgba(0,0,0,.30)}
.cardTop{display:flex; justify-content:space-between; gap:10px; align-items:flex-start}
.badge{
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:rgba(232,236,255,.92);
}
.badgeOk{border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.12)}
.badgeWarn{border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.12)}
.badgeInfo{border-color: rgba(124,58,237,.35); background: rgba(124,58,237,.12)}
.card h3{margin:10px 0 6px 0; font-size:16px}
.card p{margin:0; color:rgba(232,236,255,.76); font-size:13px; line-height:1.45}
.cardFooter{margin-top:10px; display:flex; gap:10px; flex-wrap:wrap}

.tableWrap{
  border-radius:var(--radius2);
  border:1px solid rgba(255,255,255,.12);
  overflow:hidden;
  background: rgba(10,14,28,.55);
}
.tableHead{
  padding:12px 14px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background: linear-gradient(135deg, rgba(124,58,237,.26), rgba(236,72,153,.14));
  border-bottom:1px solid rgba(255,255,255,.14);
}
.tableHead .searchRow{display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.table{
  width:100%;
  border-collapse: collapse;
}
.table th{
  background: rgba(124,58,237,.55);
  color:#fff;
  padding:10px 10px;
  font-size:12px;
  text-align:left;
  border-right:1px solid rgba(255,255,255,.16);
}
.table td{
  padding:10px 10px;
  border-top:1px solid rgba(255,255,255,.10);
  border-right:1px solid rgba(255,255,255,.08);
  color:rgba(232,236,255,.9);
  font-size:13px;
}
.table tr:hover td{background: rgba(255,255,255,.03)}

.footer{
  margin:26px 0 10px 0;
  color:rgba(232,236,255,.72);
  display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap;
}
.kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:12px;
  padding:3px 7px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:rgba(232,236,255,.9);
}

/* Login */
.authWrap{max-width:520px; margin:30px auto}
.authCard{
  border-radius:var(--radius2);
  border:1px solid rgba(255,255,255,.14);
  background: rgba(15,23,48,.60);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.authHead{
  padding:18px 18px;
  background: linear-gradient(135deg, rgba(124,58,237,.36), rgba(236,72,153,.20));
  border-bottom:1px solid rgba(255,255,255,.14);
}
.authBody{padding:18px}
.help{margin-top:10px; color:rgba(232,236,255,.7); font-size:12px; line-height:1.5}
.alert{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(245,158,11,.35);
  background: rgba(245,158,11,.12);
  color:rgba(255,255,255,.92);
  margin-bottom:12px;
}
