* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.18), transparent 24%),
    radial-gradient(circle at top right, rgba(168,85,247,.16), transparent 22%),
    linear-gradient(180deg, #0b1020 0%, #0f172a 45%, #0b1222 100%);
  color: #e5eefc;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.admin-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, rgba(15,23,42,.96), rgba(10,15,30,.98));
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 20px 0 40px rgba(0,0,0,.28);
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 20px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed 45%, #06b6d4);
  box-shadow: 0 12px 30px rgba(79,70,229,.45);
}

.brand-text h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  color: #fff;
}

.brand-text p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #9fb1d9;
}

.nav-section {
  margin-top: 10px;
}

.nav-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #6980b3;
  padding: 10px 12px;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  color: #cbd6ef;
  margin-bottom: 8px;
  transition: .22s ease;
  border: 1px solid transparent;
  font-weight: 600;
}

.sidebar a:hover,
.sidebar a.active {
  background: linear-gradient(135deg, rgba(59,130,246,.30), rgba(168,85,247,.22));
  border-color: rgba(255,255,255,.10);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37,99,235,.20);
}

.sidebar .logout-link {
  margin-top: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}

.main {
  padding: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(19,29,52,.95), rgba(15,23,42,.88));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 40px rgba(0,0,0,.22);
}

.topbar-left h1 {
  margin: 0;
  font-size: 30px;
  color: #fff;
  font-weight: 800;
}

.topbar-left p {
  margin: 6px 0 0;
  color: #98abd3;
  font-size: 14px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.06);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  padding: 8px 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.user-name {
  color: #fff;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  color: white;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 40px rgba(0,0,0,.24);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}

.stat-card.orange { background: linear-gradient(135deg, #ff7a18, #c2410c); }
.stat-card.red    { background: linear-gradient(135deg, #ef4444, #9f1239); }
.stat-card.green  { background: linear-gradient(135deg, #22c55e, #15803d); }
.stat-card.blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

.stat-card .label {
  font-size: 13px;
  opacity: .95;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.stat-card .value {
  font-size: 42px;
  font-weight: 800;
  margin-top: 8px;
  line-height: 1;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 20px;
}

.panel {
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(20,30,54,.98), rgba(12,18,36,.98));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 24px 48px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.04);
  margin-bottom: 20px;
}

.panel h2, .panel h3 {
  margin: 0 0 14px;
  color: #fff;
}

.panel-sub {
  color: #9bb0d8;
  font-size: 14px;
  margin-bottom: 16px;
}

.package-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.package-card {
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-weight: 700;
}

.package-card strong {
  display: block;
  font-size: 28px;
  margin-top: 8px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

label {
  display: block;
  font-size: 13px;
  color: #c5d3ef;
  font-weight: 700;
  margin-bottom: 8px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: #fff;
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
}

input::placeholder, textarea::placeholder {
  color: #93a7ce;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  padding: 13px 18px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  transition: .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-green {
  background: linear-gradient(135deg, #65a30d, #22c55e);
  color: white;
  box-shadow: 0 12px 28px rgba(34,197,94,.26);
}

.btn-blue {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  box-shadow: 0 12px 28px rgba(37,99,235,.22);
}

.btn-red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.chart-box {
  height: 260px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)),
    repeating-linear-gradient(
      to right,
      transparent,
      transparent 58px,
      rgba(255,255,255,.03) 58px,
      rgba(255,255,255,.03) 59px
    ),
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 46px,
      rgba(255,255,255,.03) 46px,
      rgba(255,255,255,.03) 47px
    );
  position: relative;
  overflow: hidden;
}

.chart-bars {
  position: absolute;
  bottom: 20px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: end;
  gap: 10px;
  height: 180px;
}

.chart-bars span {
  flex: 1;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #8b5cf6, #3b82f6);
  opacity: .95;
}

.line-overlay {
  position: absolute;
  inset: 0;
}

.kpi-box {
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(59,130,246,.16), rgba(168,85,247,.10));
  border: 1px solid rgba(255,255,255,.08);
}

.kpi-box strong {
  display: block;
  font-size: 42px;
  color: white;
}

.kpi-box span {
  color: #a7bcdf;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.list-item:last-child {
  border-bottom: 0;
}

.list-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-sm {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.list-title {
  color: #fff;
  font-weight: 700;
}

.list-sub {
  color: #95a8cd;
  font-size: 13px;
  margin-top: 4px;
}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.small-btn {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: white;
  padding: 9px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.log-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 12px;
}

.dot.green { background: #22c55e; }
.dot.red { background: #ef4444; }
.dot.orange { background: #f59e0b; }

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #dbe6fb;
}

th {
  color: #90a6cf;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge.green {
  background: rgba(34,197,94,.16);
  color: #86efac;
}

.badge.gray {
  background: rgba(148,163,184,.15);
  color: #cbd5e1;
}

.page-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.page-actions h1,
.page-actions h2 {
  margin: 0;
}

.hint {
  color: #9db0d3;
  font-size: 14px;
}

@media (max-width: 1200px) {
  .stats-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }
}
.ad-box{
  background:white;
  border-radius:16px;
  padding:10px;
  margin:12px 0;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
  text-align:center;
}

.ad-box img{
  width:100%;
  border-radius:12px;
}

.top-banner{
  margin:20px 0;
}

.ad-inline{
  grid-column: span 2;
}

.bottom-banner{
  margin-top:30px;
}
.wow-layout{
  display:grid;
  grid-template-columns:220px minmax(0, 1fr) 220px;
  gap:18px;
  align-items:start;
}
.wow-shell{
  width:min(1600px, calc(100% - 28px));
  margin:0 auto;
}
.ad-inline,
.wow-inline-banner{
  grid-column: 1 / -1;
}

.wow-layout{
  display:grid;
  grid-template-columns:220px minmax(0, 1fr) 220px;
  gap:18px;
  align-items:start;
}

.wow-shell{
  width:min(1600px, calc(100% - 28px));
  margin:0 auto;
}
.error-card{
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(239,68,68,.10);
  border: 1px solid rgba(239,68,68,.22);
  color: #fecaca;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
  overflow: hidden;
}
.post-description-card{
  margin-top:18px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 16px 36px rgba(15,23,42,.10);
  border: 1px solid rgba(148,163,184,.15);
}

.post-description-card h3{
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
}

.post-description-text{
  color: #334155;
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-line;
  word-break: break-word;
}
.wow-side-col{
  display:grid;
  gap:16px;
}

.wow-ad-card{
  background:#fff;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 16px 34px rgba(15,23,42,.10);
  padding:10px;
}

.wow-ad-card img{
  width:100%;
  aspect-ratio:1 / 1;
  object-fit:cover;
  border-radius:16px;
  display:block;
}

.wow-ad-body{
  padding:12px 4px 2px;
}

.wow-ad-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  background:linear-gradient(135deg,#facc15,#f59e0b);
  color:#111827;
  font-weight:1000;
  text-decoration:none;
}
.wow-ad-card.is-side-ad img{
  width:100%;
  aspect-ratio:1 / 1;
  object-fit:cover;
  border-radius:16px;
  display:block;
}
.wow-stats
.wow-stat
.wow-stat strong
.wow-stat span
@media (max-width: 768px){
  .wow-title,
  .dashboard-title,
  .seller-title,
  .post-detail-title,
  .money-top h1,
  .section-head h2{
    font-size:28px !important;
  }

  .wow-main-card,
  .page-card,
  .seller-card,
  .money-panel,
  .dashboard-card,
  .post-detail-card{
    padding:16px !important;
    border-radius:22px !important;
  }

  .wow-post-image,
  .seller-post-image,
  .post-detail-image{
    height:220px !important;
  }

  .home-categories-grid{
    grid-template-columns:1fr 1fr !important;
    gap:12px !important;
  }

  .home-category-card{
    min-height:110px !important;
  }
}
.wow-premium-section{
  margin-bottom:20px;
}

.wow-premium-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.wow-premium-card{
  position:relative;
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 20px 40px rgba(0,0,0,.12);
  transition:.2s;
}

.wow-premium-card:hover{
  transform:translateY(-5px);
  box-shadow:0 28px 60px rgba(0,0,0,.18);
}

.wow-premium-img{
  height:180px;
  background:#dbeafe;
}

.wow-premium-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* BADGE */
.wow-badge{
  position:absolute;
  top:10px;
  left:10px;
  background:linear-gradient(135deg,#facc15,#f59e0b);
  color:#111;
  padding:6px 12px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  z-index:2;
}

/* RIBBON */
.wow-ribbon{
  position:absolute;
  top:16px;
  right:-40px;
  width:140px;
  text-align:center;
  background:#ef4444;
  color:#fff;
  font-weight:900;
  font-size:12px;
  transform:rotate(45deg);
  padding:6px 0;
}

/* TEXT */
.wow-premium-body{
  padding:14px;
}

.wow-premium-title{
  font-weight:900;
  font-size:16px;
  margin-bottom:6px;
}

.wow-premium-price{
  font-weight:900;
  font-size:18px;
  color:#1d4ed8;
}

.wow-premium-tag{
  display:inline-block;
  margin-top:8px;
  background:#ef4444;
  color:#fff;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}