/* SMM Panel Global v1.0.0 — Prime theme (orange/cream, light, mobile-first). */
:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-light: #ffedd5;
  --cream: #fff7ed;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --green: #15803d;
  --red: #b91c1c;
  --amber: #b45309;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--cream); line-height: 1.5; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); font-size: 0.9em; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar-in { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { font-weight: 800; font-size: 1.15em; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand-mark { background: var(--orange); color: #fff; border-radius: 8px; padding: 2px 8px; font-size: 0.9em; }
.topnav { display: flex; gap: 12px; flex-wrap: wrap; margin-left: auto; }
.topnav a { color: var(--ink); font-size: 0.95em; }
.currency-form select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.balance-chip { background: var(--orange-light); border: 1px solid #fdba74; padding: 6px 12px; border-radius: 999px; font-weight: 700; color: var(--orange-dark); }
.balance-chip:hover { text-decoration: none; }
.impersonate-banner { background: #7c3aed; color: #fff; text-align: center; padding: 8px; font-size: 0.95em; }
.impersonate-banner a { color: #fff; font-weight: 700; margin-left: 12px; }
.broadcast { background: #fffbeb; border-bottom: 1px solid #fde68a; text-align: center; padding: 8px 12px; }
main.wrap { padding-top: 20px; padding-bottom: 40px; min-height: 60vh; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.flash-success { background: #dcfce7; color: #166534; }
.flash-error { background: #fee2e2; color: #991b1b; }
.flash-info { background: #dbeafe; color: #1e40af; }
.hero { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; margin-bottom: 20px; }
.hero h1 { margin: 0 0 8px; font-size: 1.7em; }
.hero p { margin: 0 0 16px; color: var(--muted); }
.btn { display: inline-block; background: var(--orange); color: #fff; border: none; padding: 10px 18px; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 1em; }
.btn:hover { background: var(--orange-dark); text-decoration: none; }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: var(--red); }
.btn-small { padding: 6px 10px; font-size: 0.9em; border-radius: 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.card h2, .card h3 { margin-top: 0; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat .label { color: var(--muted); font-size: 0.85em; }
.stat .value { font-size: 1.4em; font-weight: 800; }
form label { display: block; margin-bottom: 10px; font-weight: 600; font-size: 0.95em; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 1em; background: #fff; margin-top: 4px; }
textarea { min-height: 90px; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.95em; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--cream); font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.03em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.8em; font-weight: 700; }
.badge-completed, .badge-paid, .badge-active, .badge-on, .badge-enabled { background: #dcfce7; color: #166534; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-processing, .badge-in_progress { background: #dbeafe; color: #1e40af; }
.badge-canceled, .badge-failed, .badge-error, .badge-disabled, .badge-off { background: #fee2e2; color: #991b1b; }
.badge-partial { background: #ffedd5; color: #9a3412; }
.pill { display: inline-block; background: var(--orange-light); border-radius: 999px; padding: 4px 12px; margin: 2px; font-size: 0.9em; }
.login-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.footer { border-top: 1px solid var(--line); background: #fff; padding: 20px 0; }
.footer-in { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 14px; padding: 22px; max-width: 520px; width: 100%; max-height: 85vh; overflow: auto; }
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; }
.admin-sidebar { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; position: sticky; top: 70px; }
.admin-sidebar a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); }
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--orange-light); text-decoration: none; }
.admin-sidebar h4 { margin: 12px 10px 4px; color: var(--muted); font-size: 0.8em; text-transform: uppercase; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 700; }
@media (max-width: 760px) {
  .login-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .hero h1 { font-size: 1.35em; }
  .topnav { gap: 8px; }
}
