/* MyCart SaaS — panel platform (atas admin.css) */
.plat-body { background: var(--bg); }
.plat-top { display: flex; align-items: center; gap: 24px; padding: 12px 24px; background: var(--side); color: var(--side-text); flex-wrap: wrap; }
.plat-brand { color: #fff; font-weight: 700; font-size: 1.05rem; }
.plat-brand small { color: var(--side-text); font-weight: 400; margin-left: 4px; }
.plat-brand:hover { text-decoration: none; }
.plat-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.plat-nav a { color: var(--side-text); padding: 6px 12px; border-radius: 8px; font-size: .92rem; }
.plat-nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.plat-nav a.on { background: var(--brand); color: #fff; }
.plat-main { max-width: 1200px; margin: 0 auto; padding: 24px 24px 60px; }
.plat-main > h1 { font-size: 1.3rem; margin-bottom: 18px; }
.plat-main label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 12px; }
.plat-main input:not([type=checkbox]):not([type=radio]), .plat-main select, .auth-card input:not([type=checkbox]):not([type=radio]), .auth-card select {
  display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; background: #fff; }
.plat-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.plat-stats .card { margin: 0; padding: 14px 16px; }
.plat-stats b { display: block; font-size: 1.5rem; }
.plat-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.plat-row-actions form { margin: 0; }
.plat-secret { font-family: ui-monospace, Menlo, monospace; font-size: 1.05rem; background: #111; color: #fff; padding: 2px 8px; border-radius: 6px; user-select: all; }
.plat-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plat-inline { display: flex; gap: 8px; align-items: flex-end; }
.plat-inline label { flex: 1; margin: 0; }
.plat-progress { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; background: #fafafa; border: 1px solid var(--line); border-radius: 8px; padding: 12px; max-height: 360px; overflow: auto; white-space: pre-wrap; }
.badge-cancelled { background: #f3f4f6; color: #6b7280; }
.sql-box { white-space: pre-wrap; background: #111; color: #e5e7eb; padding: 12px; border-radius: 8px; font-size: .8rem; font-family: ui-monospace, Menlo, monospace; user-select: all; }
@media (max-width: 800px) { .plat-cols { grid-template-columns: 1fr; } .plat-main { padding: 16px; } }
/* admin.css set semua input display:block + width:100% — kembalikan radio & checkbox ke saiz asal */
.auth-card input[type=radio], .auth-card input[type=checkbox], .plat-main input[type=radio], .plat-main input[type=checkbox] {
  display: inline-block; width: auto; margin: 3px 0 0; padding: 0; flex: 0 0 auto; accent-color: var(--brand); }
.auth-card label.radio-row, .plat-main label.radio-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.plat-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 8px; }
.plat-plans .card { margin: 0; display: flex; flex-direction: column; }
.plat-plans ul { padding-left: 18px; flex: 1; }
@media print { .plat-top, .no-print { display: none !important; } .plat-body { background: #fff; } .invoice-print { border: 0; box-shadow: none; } }

/* Kolam database */
.db-bar { height: 6px; background: #eef0f3; border-radius: 3px; overflow: hidden; margin-top: 6px; min-width: 90px; }
.db-bar i { display: block; height: 100%; background: #16a34a; }
.db-bar i.near { background: #f59e0b; }
.db-bar i.full { background: #dc2626; }
.db-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; } @media (max-width: 700px) { .db-grid { grid-template-columns: 1fr; } }

@media (max-width: 600px) { .plat-inline { flex-wrap: wrap; } .plat-inline label { flex: 1 1 100%; } .plat-inline .btn { flex: 1; } }
.id-status { display: block; min-height: 1.2em; margin-top: 6px; font-size: .82rem; font-weight: 600; }
.id-status.ok { color: #16a34a; } .id-status.bad { color: #dc2626; } .id-status.wait { color: #9ca3af; font-weight: 400; }
.id-field { display: flex; align-items: center; gap: 6px; } .id-field input { flex: 1; min-width: 0; margin-top: 4px; } .id-field span { flex: 0 0 auto; }
.plan-feats { min-width: 220px; }
.feat-chip { display: inline-block; margin: 0 4px 4px 0; padding: 2px 8px; border-radius: 999px; background: #f3f4f6; color: #374151; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.plan-limits div { white-space: nowrap; line-height: 1.7; }
.yearly-box { background: #f9fafb; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 6px 0 14px; } .yearly-calc { font-size: .9rem; margin-top: 4px; }

/* Tetapan bertab & templat emel */
.narrow-lg { max-width: 760px; }
.mtpl-layout { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
.mtpl-list { padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.mtpl-list a { padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: .9rem; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.mtpl-list a:hover { background: var(--bg, #f3f4f6); text-decoration: none; }
.mtpl-list a.on { background: var(--brand); color: #fff; font-weight: 600; }
.mtpl-list a.on .badge { background: #fff; }
.mtpl-group { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; }
@media (max-width: 860px) { .mtpl-layout { grid-template-columns: 1fr; } }

/* Dashboard */
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 1400px) { .dash-kpis { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 640px) { .dash-kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { margin: 0; padding: 14px 16px; display: grid; gap: 2px; color: var(--text); text-decoration: none; border-left: 3px solid transparent; }
a.kpi:hover { text-decoration: none; border-left-color: var(--brand); }
.kpi small { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.kpi b { font-size: 1.55rem; line-height: 1.2; }
.kpi span { color: var(--muted); font-size: .8rem; }
.kpi-warn { border-left-color: #f59e0b; } .kpi-bad { border-left-color: #dc2626; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.dash-grid > .card { margin: 0; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 18px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; position: relative; }
.bar-col i { display: block; width: 100%; max-width: 44px; background: color-mix(in srgb, var(--brand) 75%, #fff); border-radius: 6px 6px 2px 2px; }
.bars-rev .bar-col i { background: #16a34a; }
.bar-col small { color: var(--muted); font-size: .75rem; }
.bar-val { font-size: .75rem; font-weight: 700; color: var(--text); }
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .9rem; flex-wrap: wrap; }
.dash-list li:first-child { border-top: 0; }
.dash-list .dash-right { margin-left: auto; }
.dash-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #9ca3af; }
.dot-trial { background: #3b82f6; } .dot-due { background: #f59e0b; } .dot-delete { background: #dc2626; }
.plan-row { display: flex; justify-content: space-between; margin: 10px 0 4px; font-size: .9rem; }
.dash-grid .lb-track i { background: var(--brand); }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }

/* Halaman kedai: sekat & log masuk terus */
.sso-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #eef2ff; border-color: #c7d2fe; }
.sso-bar span { flex: 1 1 260px; }
.sso-bar select { width: auto; margin: 0; }
.suspend-box { margin-bottom: 14px; }
.suspend-box summary { list-style: none; display: inline-flex; cursor: pointer; }
.suspend-box summary::-webkit-details-marker { display: none; }
.suspend-box[open] summary { margin-bottom: 10px; }
.suspend-box form { border: 1px solid #fecaca; background: #fff7f7; border-radius: 10px; padding: 12px; }
.reopen-box { margin-bottom: 14px; }

/* Akaun pusat seller */
.acct-body { background: #f3f4f6; min-height: 100vh; }
.acct-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.acct-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.acct-brand .ps-logo { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.acct-brand .ps-logo svg { width: 18px; height: 18px; }
.acct-top nav { display: flex; align-items: center; gap: 16px; font-size: .9rem; }
.acct-top nav a, .acct-top nav .link { color: var(--text); }
.acct-top nav form { margin: 0; }
.acct-main { max-width: 1040px; margin: 0 auto; padding: 24px 16px 60px; }
.acct-hello { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.acct-hello h1 { margin: 0; font-size: 1.5rem; }
.acct-hello p { margin: 2px 0 0; }
.acct-shops { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.acct-shop { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.acct-shop.is-closed { border-color: #fecaca; }
.acct-shop-top { display: flex; gap: 12px; align-items: center; }
.acct-av { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; flex: none; }
.acct-shop-id { min-width: 0; }
.acct-shop-id b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-shop-id small { color: var(--muted); }
.acct-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.acct-closed { color: #b91c1c; margin: 0; }
.acct-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.acct-actions form { margin: 0; }
.acct-actions .btn-ghost { width: auto; white-space: nowrap; }
.acct-note { margin-top: 18px; }
@media (max-width: 600px) { .acct-top nav a[href$="profil.php"] { display: none; } }
.acct-actions .btn { display: flex; align-items: center; justify-content: center; height: 42px; margin: 0; padding: 0 12px; font-size: .9rem; font-weight: 600; line-height: 1; white-space: nowrap; box-sizing: border-box; }

/* Laporan emel */
.mail-chart { position: relative; height: 180px; margin-top: 22px; display: flex; align-items: flex-end; gap: 4px; padding: 0; border-bottom: 1px solid var(--line); box-sizing: content-box; }
.mail-chart .mc { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.mail-chart .mc { position: relative; } .mc-val { position: absolute; left: 50%; transform: translateX(-50%); font-size: .62rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.mail-chart .stack { width: 100%; max-width: 26px; display: flex; flex-direction: column; border-radius: 4px 4px 1px 1px; overflow: hidden; }
.stack .s-shop { background: var(--brand); } .stack .s-plat { background: #6366f1; }
.mail-axis { display: flex; gap: 4px; margin-top: 4px; } .mail-axis small { flex: 1; text-align: center; font-size: .66rem; color: var(--muted); }
.limit-line { position: absolute; left: 0; right: 0; border-top: 2px dashed #dc2626; z-index: 1; pointer-events: none; }
.limit-line span { position: absolute; right: 0; top: -18px; font-size: .7rem; font-weight: 700; color: #dc2626; background: var(--card, #fff); padding: 0 4px; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-left: 6px; } .lg-shop { background: var(--brand); } .lg-plat { background: #6366f1; }
.mail-track { margin: 6px 0 2px; } .mail-track i { background: #16a34a; } .mail-track.near i { background: #f59e0b; } .mail-track.full i { background: #dc2626; }

/* v0.17 — profil SMTP */
.smtp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }
.smtp-card { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.smtp-card.is-active { border-color: #16a34a; box-shadow: 0 0 0 2px rgba(22,163,74,.15); }
.smtp-card .card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.smtp-card .card-head h2 { margin: 0; }
.smtp-card details summary { cursor: pointer; color: var(--brand, #4f46e5); font-weight: 600; margin: 4px 0; }
.smtp-card details form { margin-top: 8px; }
.smtp-meta { margin: 0; color: #475569; line-height: 1.6; }
.smtp-actions { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 8px; }
.smtp-actions form { margin: 0; }
.tg-steps { padding-left: 18px; line-height: 1.7; margin: 8px 0 12px; }
.bill-coupon { margin-bottom: 18px; }
.bill-coupon-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.bill-coupon-form label { flex: 1; min-width: 200px; margin: 0; }
.bill-coupon-form input { text-transform: uppercase; letter-spacing: .05em; }
.bill-coupon-on { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.bill-coupon-on form { margin: 0; }
