/* Ads4u Dashboard Skin — Styles */
:root{
  --a-bd:rgba(15,23,42,.12);
  --a-text:#0f172a;
  --a-muted:#64748b;
}

/* แถบสรุปสถานะด้านบน */
.a-status{
  position:sticky; top:0; z-index:20;
  margin:0 0 14px;
  border-radius:16px; padding:14px 16px;
  background:#fff;
  border:1px solid var(--a-bd);
  box-shadow:0 8px 20px rgba(2,6,23,.06);
  color:var(--a-text);
}
.a-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.a-badge{
  font-weight:800; font-size:13px;
  padding:6px 10px; border-radius:999px;
  background:var(--a-accent,#6366f1); color:#0b1020;
}
.a-label{font-size:13px; color:var(--a-muted)}
.a-value{font-weight:800; color:var(--a-text)}

/* Progress สู่เลเวลถัดไป */
.a-prog{display:grid; grid-template-columns:1fr auto; gap:10px; align-items:center; margin-top:8px}
.a-bar{width:100%; height:10px; border-radius:999px; background:rgba(2,6,23,.09); overflow:hidden}
.a-bar>span{display:block; height:100%; width:0; border-radius:999px;
  background:linear-gradient(90deg, var(--a-accent,#6366f1), #9ca3af)}

/* การ์ดระดับสมาชิก */
.a-card{position:relative; border-radius:18px; outline:1px solid var(--a-bd)}
.a-card.a-current{outline:2px solid var(--a-accent); box-shadow:0 10px 28px rgba(2,6,23,.12)}
.a-ribbon{
  position:absolute; top:12px; left:-8px;
  background:var(--a-accent); color:#0b1020;
  font-weight:900; padding:6px 12px; border-radius:10px
}

/* โน้ตเล็ก */
.a-note{font-size:12px; color:#475569}

/* --- Mobile fix: อย่าให้แถบสถานะทับเมนู --- */
@media (max-width: 768px) {
  .a-status{
    position: static;     /* เลิก sticky บนมือถือ */
    top: auto;
    z-index: 1;           /* ลดชั้นให้ต่ำกว่าชั้นเมนู */
    margin: 8px 0 12px;
    border-radius: 12px;
  }
  .a-row{ gap: 8px }
  .a-badge{ font-size:12px; padding:5px 8px }
  .a-label{ font-size:12px }
  .a-prog{ grid-template-columns: 1fr } /* แถวเดียว */
  .a-bar{ height: 8px }
}
