/* Seller @JasaBacklinks - UI v2 */
:root{
  --bg0:#070A12;
  --bg1:#0B1020;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.12);
  --text:#E8ECF5;
  --muted: rgba(232,236,245,.72);
  --primary:#7C5CFF;
  --primary2:#00D4FF;
  --success:#22C55E;
  --danger:#EF4444;
  --warning:#F59E0B;
  --shadow: 0 18px 55px rgba(0,0,0,.55);
  --radius: 16px;
  --radius2: 22px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(124,92,255,.35), transparent 60%),
    radial-gradient(700px 450px at 90% 10%, rgba(0,212,255,.25), transparent 55%),
    radial-gradient(900px 600px at 50% 100%, rgba(245,158,11,.16), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.container{ width:min(1100px, calc(100% - 40px)); margin:0 auto; }

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:30;
  backdrop-filter: blur(12px);
  background: rgba(7,10,18,.55);
  border-bottom: 1px solid var(--border);
}
.topbar-inner{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:12px; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand-mark{
  width:36px; height:36px; border-radius:12px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 12px 35px rgba(124,92,255,.25);
}
.brand-text{ font-family:Poppins, Inter, sans-serif; font-weight:700; letter-spacing:.2px; }

/* Footer */
.footer{
  border-top: 1px solid var(--border);
  background: rgba(7,10,18,.35);
  margin-top: 36px;
}
.footer-inner{
  padding: 18px 0;
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  flex-wrap:wrap;
}

.muted{ color: var(--muted); }
.kpi-row{ display:flex; gap:12px; flex-wrap:wrap; margin:18px 0 0; }
.kpi{ padding:12px 14px; border:1px solid var(--border); border-radius: 14px; background: var(--card); }
.kpi b{ font-weight:700; }
.kpi .dot{ display:inline-block; width:10px; height:10px; border-radius: 99px; margin-right:8px; background: var(--success); }
.kpi .dot.off{ background: rgba(232,236,245,.35); }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight:600;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  cursor:pointer;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); background: var(--card2); border-color: rgba(255,255,255,.18); }
.btn:active{ transform: translateY(0px); }
.btn-primary{
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 12px 35px rgba(124,92,255,.25);
}
.btn-primary:hover{ filter: brightness(1.03); }
.btn-danger{ background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.35); }
.btn-danger:hover{ background: rgba(239,68,68,.22); }
.btn-ghost{ background: transparent; }
.btn-sm{ padding:8px 10px; border-radius: 12px; font-size: 13px; }

.badge{
  display:inline-flex; align-items:center; gap:6px;
  font-size:12px; font-weight:700;
  padding:6px 10px; border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
}
.badge.online{ border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.12); }
.badge.offline{ border-color: rgba(232,236,245,.18); background: rgba(232,236,245,.06); }

.h1{
  font-family:Poppins, Inter, sans-serif;
  margin: 18px 0 6px;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing:.2px;
}
.subhead{ margin:0 0 18px; color: var(--muted); max-width: 70ch; }

.toolbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; flex-wrap:wrap;
  margin: 14px 0 18px;
}
.search{
  flex:1 1 360px;
  display:flex; gap:10px; align-items:center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--border);
}
.search input{
  width:100%;
  background: transparent;
  border:none;
  outline:none;
  color: var(--text);
  font-size: 14px;
}
.pills{ display:flex; gap:8px; flex-wrap:wrap; }
.pill{
  padding: 9px 12px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  font-weight: 700;
  font-size: 13px;
  transition: background .12s ease, border-color .12s ease;
}
.pill.active{ background: rgba(124,92,255,.18); border-color: rgba(124,92,255,.35); }

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.card{
  grid-column: span 6;
  padding: 14px;
  border-radius: var(--radius2);
  background: rgba(255,255,255,.05);
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.card:hover{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
}
.card::before{
  content:'';
  position:absolute; inset:0;
  background: radial-gradient(500px 180px at 10% 0%, rgba(124,92,255,.18), transparent 60%);
  pointer-events:none;
}
.card-inner{ position:relative; display:flex; gap:12px; align-items:flex-start; }
.avatar{
  width:56px; height:56px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.14);
  overflow:hidden;
  background: rgba(255,255,255,.04);
  flex:0 0 auto;
}
.avatar img, .avatar video{ width:100%; height:100%; object-fit:cover; }
.card-main{ flex:1; min-width:0; }
.card-title{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  font-weight: 800;
  font-size: 16px;
  margin: 0;
}
.card-title .verified{ width:18px; height:18px; }
.card-meta{ margin-top:6px; display:flex; flex-wrap:wrap; gap:8px 12px; color: var(--muted); font-size: 13px; }
.tagline{
  margin-top: 10px;
  display:inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing:.3px;
  text-transform: uppercase;
  background: linear-gradient(to right, #ff0000 10%, #ffa000 20%, #ffd400 30%, #78ff00 40%, #00ffc0 50%, #0069ff 60%, #6d03ff 70%, #ff00ba 80%, #ff6ee0 90%, #f00 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow 3s linear infinite;
}
@keyframes rainbow { to{ background-position: 200% center; } }

.card-actions{ margin-top: 12px; display:flex; gap:10px; flex-wrap:wrap; }
.hr{ height:1px; background: var(--border); margin: 14px 0; }

.empty{
  padding: 18px;
  border:1px dashed rgba(255,255,255,.22);
  border-radius: var(--radius2);
  color: var(--muted);
}

.pagination{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin: 18px 0 6px; }
.page{
  min-width: 40px;
  text-align:center;
  padding: 9px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  font-weight: 700;
}
.page.active{ background: rgba(124,92,255,.18); border-color: rgba(124,92,255,.35); }

/* Panel Layout */
body.panel{
  background:
    radial-gradient(800px 520px at 10% 0%, rgba(124,92,255,.25), transparent 60%),
    radial-gradient(600px 420px at 90% 10%, rgba(0,212,255,.22), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}
.panel-topbar{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; gap:14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(7,10,18,.6);
  backdrop-filter: blur(12px);
}
.icon-btn{
  width:42px; height:42px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
}
.icon-btn:hover{ background: rgba(255,255,255,.09); }
.panel-title{ flex:1; min-width:0; }
.panel-title__main{ font-weight:800; }
.panel-title__sub{ color: var(--muted); font-size: 13px; }
.panel-topbar__right{ display:flex; gap:10px; align-items:center; }

.panel-shell{
  display:flex;
  width: 100%;
  min-height: calc(100vh - 66px);
}
.panel-sidebar{
  width: 260px;
  padding: 16px;
  border-right: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.panel-sidebar__brand{
  display:flex; gap:12px; align-items:center;
  padding: 10px;
  border:1px solid var(--border);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.05);
}
.panel-sidebar__name{ font-family:Poppins, Inter, sans-serif; font-weight:800; }
.panel-sidebar__muted{ color: var(--muted); font-size: 13px; margin-top:2px; }
.panel-nav{ margin-top: 14px; display:flex; flex-direction:column; gap:8px; }
.panel-nav__item{
  padding: 12px 12px;
  border-radius: 16px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  font-weight: 800;
  color: var(--text);
}
.panel-nav__item:hover{ background: rgba(255,255,255,.07); }
.panel-nav__item.active{
  background: rgba(124,92,255,.18);
  border-color: rgba(124,92,255,.35);
}
.panel-sidebar__foot{ margin-top: 14px; font-size: 13px; padding: 10px; }

.panel-content{
  flex:1;
  padding: 20px;
}
.panel-card{
  border:1px solid var(--border);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
  padding: 16px;
}
.panel-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.span-6{ grid-column: span 6; }
.span-12{ grid-column: span 12; }

.form-row{ display:grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.field{ grid-column: span 12; }
.label{ display:block; font-weight:800; margin: 0 0 6px; }
.input, .select{
  width:100%;
  padding: 11px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.12);
  color: var(--text);
  outline:none;
}
.input:focus{ border-color: rgba(124,92,255,.55); box-shadow: 0 0 0 4px rgba(124,92,255,.18); }
.help{ color: var(--muted); font-size: 13px; margin-top:6px; }
.alert{
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  margin: 0 0 12px;
  font-weight: 700;
}
.alert.success{ border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.12); }
.alert.error{ border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.12); }

.switch{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 12px;
  border-radius: 16px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
}
.switch-toggle{
  width: 54px; height: 30px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(232,236,245,.12);
  position:relative;
}
.switch-toggle::after{
  content:'';
  position:absolute; top: 3px; left: 3px;
  width: 24px; height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  transition: transform .15s ease, background .15s ease;
}
.switch.on .switch-toggle{
  background: rgba(34,197,94,.18);
  border-color: rgba(34,197,94,.35);
}
.switch.on .switch-toggle::after{ transform: translateX(24px); background: rgba(255,255,255,.92); }

.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 16px;
  border:1px solid var(--border);
}
.table th, .table td{
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align:left;
}
.table th{
  font-size: 12px;
  letter-spacing:.25px;
  text-transform: uppercase;
  color: var(--muted);
}
.table tr:hover td{ background: rgba(255,255,255,.03); }

/* Login */
.auth-wrap{
  min-height: calc(100vh - 90px);
  display:flex; align-items:center; justify-content:center;
}
.auth-card{
  width: min(520px, 100%);
  padding: 18px;
  border-radius: var(--radius2);
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
}
.auth-head{ display:flex; align-items:center; gap:12px; margin-bottom: 10px; }
.auth-title{ font-family:Poppins, Inter, sans-serif; font-size: 22px; font-weight: 900; margin:0; }
.auth-sub{ margin: 0 0 16px; color: var(--muted); }

/* Responsive */
@media (max-width: 920px){
  .card{ grid-column: span 12; }
  .panel-sidebar{ position: fixed; left: 0; top: 66px; bottom: 0; transform: translateX(-105%); transition: transform .18s ease; z-index: 60; backdrop-filter: blur(10px); }
  .panel-sidebar.open{ transform: translateX(0); }
  .panel-content{ padding: 16px; }
  .span-6{ grid-column: span 12; }
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}

.brand-logo{
  height:34px;      /* sesuaikan */
  width:auto;
  display:block;
  object-fit:contain;
}