/* ================= Olafyu Store — Admin Glass Pink ================= */
.admin-body {
  display: flex; min-height: 100vh;
  background:
    radial-gradient(800px 500px at 8% -6%,  rgba(227,169,196,.14), transparent 60%),
    radial-gradient(700px 460px at 96% 6%,  rgba(201,139,171,.10), transparent 58%),
    var(--bg);
  background-attachment: fixed;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: 262px; flex-shrink: 0;
  background: rgba(23,20,27,.62);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-right: 1px solid var(--border); position: fixed; inset: 0 auto 0 0;
  overflow-y: auto; z-index: 60;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 12px; padding: 21px 18px;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand strong { display: block; font-size: 14.5px; }
.sidebar-brand small { color: var(--muted); font-size: 11.5px; }
.sidebar-nav { padding: 14px 12px 30px; display: flex; flex-direction: column; gap: 3px; }
.nav-label {
  font-size: 10.5px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 1px; padding: 16px 10px 7px; font-weight: 700;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px;
  border-radius: 999px; font-size: 13.5px; color: #d3c6ce;
  border: 1px solid transparent;
  transition: .2s;
}
.sidebar-nav a:hover {
  background: rgba(255,255,255,.055); color: #fff;
  border-color: var(--border);
}
.sidebar-nav a.active {
  background: linear-gradient(160deg, var(--primary-soft), var(--primary-deep));
  color: #2b1f26; font-weight: 700;
  border-color: rgba(240,199,217,.45);
  box-shadow:
    0 6px 18px rgba(227,169,196,.28),
    0 0 28px rgba(227,169,196,.22),
    inset 0 1px 1px rgba(255,255,255,.6);
}
.sidebar-nav a.danger { color: #f0adb1; }
.sidebar-nav a.danger:hover { background: rgba(224,142,147,.14); border-color: rgba(224,142,147,.3); }
.sidebar-nav .ic { width: 18px; text-align: center; font-style: normal; font-size: 14px; }

/* ---------- Main ---------- */
.admin-main { flex: 1; margin-left: 262px; min-width: 0; }
.admin-topbar {
  height: 66px; display: flex; align-items: center; gap: 16px; padding: 0 24px;
  background: rgba(23,20,27,.66);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40;
}
.admin-topbar h1 { font-size: 17px; flex: 1; letter-spacing: -.2px; }
.burger {
  display: none; background: none; border: none; color: var(--text);
  font-size: 20px; cursor: pointer;
}
.topbar-user { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--primary-soft), var(--primary-deep));
  color: #2b1f26; font-weight: 800; font-size: 13px;
  box-shadow: 0 0 18px var(--primary-glow-2), inset 0 1px 1px rgba(255,255,255,.55);
}
.admin-content { padding: 26px; }

/* ---------- Statistik ---------- */
.stat-grid {
  display: grid; gap: 17px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 24px;
}
.stat-card {
  position: relative; overflow: hidden;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(135%); -webkit-backdrop-filter: blur(18px) saturate(135%);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow), inset 0 1px 1px rgba(255,255,255,.13);
  transition: transform .22s cubic-bezier(.34,1.3,.64,1), box-shadow .22s;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(0,0,0,.45), 0 0 30px rgba(227,169,196,.20), inset 0 1px 1px rgba(255,255,255,.2);
}
.stat-card .stat-label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; font-weight: 700; }
.stat-card .stat-value { font-size: 26px; font-weight: 800; margin-top: 7px; letter-spacing: -.5px; }
.stat-card .stat-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
/* garis aksen bercahaya di sisi kiri */
.stat-card::after {
  content: ''; position: absolute; left: 0; top: 14%; bottom: 14%; width: 3px;
  border-radius: 999px; background: var(--primary);
  box-shadow: 0 0 14px var(--primary-glow);
}
.stat-card.primary::after { background: var(--primary);  box-shadow: 0 0 14px var(--primary-glow); }
.stat-card.success::after { background: var(--success);  box-shadow: 0 0 14px rgba(134,201,168,.6); }
.stat-card.warning::after { background: var(--warning);  box-shadow: 0 0 14px rgba(223,192,138,.6); }
.stat-card.danger::after  { background: var(--danger);   box-shadow: 0 0 14px rgba(224,142,147,.6); }

/* ---------- Panel ---------- */
.panel {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(135%); -webkit-backdrop-filter: blur(18px) saturate(135%);
  border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 22px; overflow: hidden;
  box-shadow: var(--shadow), inset 0 1px 1px rgba(255,255,255,.13);
}
.panel-head {
  padding: 17px 21px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: rgba(255,255,255,.022);
}
.panel-head h2 { font-size: 15px; }
.panel-head p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.panel-body { padding: 21px; }
.panel-body.no-pad { padding: 0; }

/* ---------- Form grid ---------- */
.form-grid { display: grid; gap: 17px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.form-hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.form-actions { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Pratinjau banner (Konfigurasi) ---------- */
.banner-preview {
  width: 100%; max-width: 570px; aspect-ratio: 1140 / 320;
  border: 1px dashed var(--border); border-radius: 14px;
  background: rgba(255,255,255,.03);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.banner-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-preview-empty { font-size: 12px; color: var(--muted); text-align: center; padding: 12px; }

/* ---------- Daftar banner (bisa lebih dari satu) ---------- */
.banner-list-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 18px 0 6px;
}
.banner-list-head label { margin: 0; font-weight: 600; }
.banner-item {
  border: 1px solid var(--border); border-radius: 14px;
  background: rgba(255,255,255,.025);
  padding: 14px 16px; margin-bottom: 14px;
}
.banner-item-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 1px dashed var(--border);
}
.banner-item-no { font-size: 13px; font-weight: 600; color: var(--text); }
.banner-item-body { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.banner-item-fields { display: grid; gap: 12px; }
.banner-item-preview .banner-preview { max-width: 100%; }

@media (max-width: 900px) {
  .banner-item-body { grid-template-columns: 1fr; }
}

/* ---------- Switch bergaya bubble ---------- */
.switch-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.switch { position: relative; display: inline-block; width: 50px; height: 27px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
  border-radius: 999px; transition: .25s;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.35);
}
.slider:before {
  content: ''; position: absolute; height: 19px; width: 19px; left: 3px; bottom: 3px;
  background: linear-gradient(160deg, #fff, #d9cdd4);
  border-radius: 50%; transition: .25s cubic-bezier(.34,1.4,.64,1);
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.switch input:checked + .slider {
  background: linear-gradient(160deg, var(--primary-soft), var(--primary-deep));
  border-color: rgba(240,199,217,.5);
  box-shadow:
    0 0 20px rgba(227,169,196,.45),
    inset 0 1px 1px rgba(255,255,255,.5);
}
.switch input:checked + .slider:before {
  transform: translateX(23px);
  box-shadow: 0 2px 8px rgba(0,0,0,.35), 0 0 12px rgba(255,255,255,.55);
}
.switch-row label { margin: 0; color: var(--text); font-size: 13.5px; }

/* ---------- Gateway box ---------- */
.gateway-box {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 26px rgba(0,0,0,.3), inset 0 1px 1px rgba(255,255,255,.12);
  transition: border-color .22s, box-shadow .22s;
}
.gateway-box:hover {
  border-color: rgba(227,169,196,.35);
  box-shadow: 0 14px 32px rgba(0,0,0,.36), 0 0 28px rgba(227,169,196,.16), inset 0 1px 1px rgba(255,255,255,.16);
}
.gateway-box h3 { font-size: 15px; display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.gateway-logo {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.35), 0 4px 12px rgba(0,0,0,.3);
}
.logo-tripay    { background: linear-gradient(150deg, #a9c4e3, #7d9cc9); color: #22303f; }
.logo-duitku    { background: linear-gradient(150deg, #e8c2a9, #cf9a78); color: #3a2a1f; }
.logo-undead    { background: linear-gradient(150deg, #d6b8e3, #ac8ac9); color: #2f2438; }
.logo-digiflazz { background: linear-gradient(150deg, #a9dcc4, #7fbfa2); color: #1f3329; }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; gap: 11px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 19px; }
.filter-bar .form-group { margin: 0; min-width: 165px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 7px; justify-content: center; padding: 20px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
  font-size: 13px;
  background: var(--glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.12);
  transition: .2s;
}
.pagination a:hover {
  border-color: rgba(227,169,196,.5); color: #fff;
  box-shadow: 0 0 20px rgba(227,169,196,.22), inset 0 1px 1px rgba(255,255,255,.18);
}
.pagination .current {
  background: linear-gradient(160deg, var(--primary-soft), var(--primary-deep));
  border-color: rgba(240,199,217,.5); color: #2b1f26; font-weight: 700;
  box-shadow: 0 0 22px rgba(227,169,196,.35), inset 0 1px 1px rgba(255,255,255,.55);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 999;
  background: rgba(40,34,44,.78);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border);
  padding: 15px 19px; border-radius: var(--radius-sm); font-size: 13.5px; max-width: 340px;
  box-shadow: 0 16px 38px rgba(0,0,0,.5), inset 0 1px 1px rgba(255,255,255,.14);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .28s, transform .28s cubic-bezier(.34,1.3,.64,1);
}
.toast::after {
  content: ''; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px;
  border-radius: 999px; background: var(--primary); box-shadow: 0 0 14px var(--primary-glow);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success::after { background: var(--success); box-shadow: 0 0 14px rgba(134,201,168,.65); }
.toast.error::after   { background: var(--danger);  box-shadow: 0 0 14px rgba(224,142,147,.65); }

/* ---------- Login ---------- */
.blank-page {
  display: grid; place-items: center; min-height: 100vh; padding: 20px;
  background:
    radial-gradient(700px 460px at 20% 0%,  rgba(227,169,196,.18), transparent 62%),
    radial-gradient(620px 420px at 84% 100%, rgba(201,139,171,.14), transparent 60%),
    var(--bg);
}
.login-box {
  width: 100%; max-width: 400px;
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--border); border-radius: 24px; padding: 38px;
  box-shadow:
    0 26px 60px rgba(0,0,0,.55),
    0 0 46px rgba(227,169,196,.14),
    inset 0 1px 1px rgba(255,255,255,.18);
}
.login-box .brand-mark { width: 56px; height: 56px; font-size: 23px; margin: 0 auto 18px; border-radius: 18px; }
.login-box h1 { font-size: 20px; text-align: center; margin-bottom: 5px; }
.login-box p.sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 26px; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0;
  background: rgba(14,12,16,.66);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: none; place-items: center; z-index: 200; padding: 20px;
}
.modal.open { display: grid; }
.modal-box {
  background: rgba(40,34,44,.82);
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--border); border-radius: 22px;
  width: min(560px, 100%); max-height: 88vh; overflow-y: auto;
  box-shadow:
    0 30px 70px rgba(0,0,0,.6),
    0 0 46px rgba(227,169,196,.16),
    inset 0 1px 1px rgba(255,255,255,.18);
}
.modal-head {
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-body { padding: 22px; }
.modal-close {
  background: none; border: none; color: var(--muted); font-size: 22px;
  cursor: pointer; line-height: 1; transition: color .2s;
}
.modal-close:hover { color: var(--primary-soft); }

@media (max-width: 980px) {
  .sidebar { transform: translateX(-100%); transition: .24s; }
  .sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .burger { display: block; }
  .admin-content { padding: 16px; }
}
