/* Atlas VPN — Persian RTL dark theme, mobile-first, self-contained */

:root {
  --bg: #070b14;
  --bg-2: #0b1220;
  --surface: #111a2b;
  --surface-2: #16223a;
  --border: #1f2d47;
  --border-soft: #17233b;
  --text: #e8eef7;
  --text-dim: #9fb0c7;
  --text-mute: #6b7c96;
  --accent: #2dd4bf;
  --accent-2: #34d399;
  --accent-ink: #04231f;
  --danger: #f87171;
  --danger-ink: #2a0d0d;
  --warn: #fbbf24;
  --ok: #34d399;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -20px rgba(0,0,0,.7);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Vazirmatn", "Segoe UI", Tahoma, "Iranian Sans", sans-serif;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(45,212,191,.10), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(52,211,153,.06), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; }

/* Layout */
.main {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 16px 48px;
}

.page-title { font-size: 1.5rem; }
.section-title { font-size: 1.2rem; margin: 28px 0 14px; display: flex; align-items: center; gap: 10px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(9,14,24,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; }
.brand:hover { color: var(--text); }
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-name { font-size: 1.12rem; letter-spacing: .2px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > a { color: var(--text-dim); padding: 8px 10px; border-radius: 9px; font-size: .95rem; }
.nav-links > a:hover { color: var(--text); background: var(--surface); }
.nav-admin { color: var(--accent) !important; }
.nav-logout { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 1rem; font-weight: 700;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .06s ease, filter .15s ease, background .15s ease;
  white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: .9rem; border-radius: 10px; }
.btn-block { display: flex; width: 100%; }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
}
.btn-accent:hover { filter: brightness(1.06); color: var(--accent-ink); }
.btn-ghost {
  background: var(--surface); color: var(--text-dim);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }
.btn-danger { background: rgba(248,113,113,.12); color: var(--danger); border-color: rgba(248,113,113,.35); }
.btn-danger:hover { background: rgba(248,113,113,.2); color: var(--danger); }

/* Flash */
.flash {
  max-width: var(--maxw); margin: 14px auto 0; padding: 12px 16px;
  border-radius: 12px; display: flex; align-items: center; gap: 10px;
  font-weight: 600; width: calc(100% - 32px);
}
.flash-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .85rem; flex: none; }
.flash-ok { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.4); color: #bbf7e0; }
.flash-ok .flash-ico { background: var(--ok); color: #04231f; }
.flash-err { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.4); color: #fecaca; }
.flash-err .flash-ico { background: var(--danger); color: #2a0d0d; }

/* Alerts (inline form errors) */
.alert { padding: 11px 14px; border-radius: 11px; margin-bottom: 16px; font-weight: 600; font-size: .95rem; }
.alert-err { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.4); color: #fecaca; }

/* Hero */
.hero { position: relative; padding: 30px 0 10px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -60% 20% auto auto; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(45,212,191,.22), transparent 65%);
  filter: blur(10px); pointer-events: none;
}
.hero-body { position: relative; }
.hero-badge {
  display: inline-block; background: var(--surface); border: 1px solid var(--border);
  color: var(--accent); padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700;
}
.hero-title { font-size: 2rem; margin-top: 14px; letter-spacing: .2px; }
.hero-sub { color: var(--text-dim); max-width: 620px; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-feats {
  list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px;
  color: var(--text-dim);
}
.hero-feats li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.feat-ico { font-size: 1.1rem; }

/* Plans */
.plans { margin-top: 34px; }
.plan-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.plan-card {
  position: relative; background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
}
.plan-card--featured { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(45,212,191,.4), var(--shadow); }
.plan-flag {
  position: absolute; top: -11px; inset-inline-start: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
  font-size: .78rem; font-weight: 800; padding: 4px 12px; border-radius: 999px;
}
.plan-title { font-size: 1.15rem; margin: 0; }
.plan-price { font-size: 1.7rem; font-weight: 800; color: var(--accent); }
.plan-specs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan-specs li { display: flex; align-items: center; gap: 10px; color: var(--text-dim); }
.spec-ico { flex: none; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.badge-inf { background: rgba(52,211,153,.14); color: var(--accent-2); border: 1px solid rgba(52,211,153,.35); }

/* Payment info block on landing */
.pay-info { margin-top: 36px; }
.pay-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.pay-lead { color: var(--text-dim); margin-top: 0; }

/* Card number box */
.card-box { background: var(--bg-2); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 16px; margin-top: 14px; }
.card-box-label { font-size: .85rem; color: var(--text-mute); }
.card-num-row { display: flex; align-items: center; gap: 12px; margin: 8px 0; flex-wrap: wrap; }
.card-num {
  font-family: "SF Mono", "Consolas", ui-monospace, monospace;
  font-size: 1.4rem; font-weight: 700; letter-spacing: 3px; color: var(--text);
  background: var(--surface-2); padding: 8px 14px; border-radius: 10px; user-select: all;
}
.card-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--text-dim); font-size: .95rem; }

/* Auth */
.auth { display: flex; justify-content: center; padding: 24px 0; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.auth-title { font-size: 1.4rem; margin-bottom: 4px; }
.auth-sub { color: var(--text-dim); margin-top: 0; }
.auth-alt { text-align: center; color: var(--text-dim); margin-top: 18px; }

/* Forms */
.form { display: grid; gap: 16px; margin-top: 18px; }
.field { display: grid; gap: 7px; }
.field-label { font-size: .92rem; color: var(--text-dim); font-weight: 600; }
.field-hint { font-size: .82rem; color: var(--text-mute); }
.input {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px;
  padding: 12px 14px; transition: border .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--text-mute); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,212,191,.15); }
.input-sm { padding: 8px 12px; font-size: .9rem; }
.input-file { padding: 10px; cursor: pointer; }
.input-file::file-selector-button {
  font-family: inherit; margin-inline-end: 12px; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; cursor: pointer;
}

/* Dashboard */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dash-user { color: var(--text-dim); font-size: .92rem; background: var(--surface); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); }

.sub-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-top: 8px; }
.sub-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--border-soft); }
.sub-status { display: flex; align-items: center; gap: 12px; }
.sub-days { color: var(--text-dim); font-weight: 600; }
.sub-exp { color: var(--text-dim); font-size: .95rem; }

.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.pill-on { background: rgba(52,211,153,.15); color: var(--accent-2); border: 1px solid rgba(52,211,153,.4); }
.pill-off { background: rgba(248,113,113,.12); color: var(--danger); border: 1px solid rgba(248,113,113,.4); }
.pill-wait { background: rgba(251,191,36,.12); color: var(--warn); border: 1px solid rgba(251,191,36,.4); }

.usage { margin: 18px 0; }
.usage-row { display: flex; justify-content: space-between; color: var(--text-dim); font-size: .95rem; margin-bottom: 8px; }
.usage-bar { height: 12px; background: var(--bg-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.usage-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; transition: width .5s ease; }

.sub-grid { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 6px; }
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-img { background: #fff; padding: 10px; border-radius: 14px; width: 200px; height: 200px; }
.qr-hint { color: var(--text-mute); font-size: .85rem; }

.links { display: grid; gap: 14px; align-content: start; }
.link-block { display: grid; gap: 6px; }
.link-label { font-size: .88rem; color: var(--text-dim); font-weight: 600; }
.link-row { display: flex; gap: 8px; }
.link-input { font-family: ui-monospace, "Consolas", monospace; font-size: .82rem; }

.help-box { margin-top: 20px; padding: 16px; background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); }
.help-title { font-size: 1rem; margin-bottom: 8px; }
.help-box p { color: var(--text-dim); margin: 0 0 8px; }
.help-apps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--text-dim); }

/* Empty state */
.empty-state { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 44px 22px; margin-top: 10px; }
.empty-ico { font-size: 2.6rem; }
.empty-state h2 { font-size: 1.25rem; margin-top: 10px; }
.empty-state p { color: var(--text-dim); max-width: 460px; margin: 6px auto 20px; }
.empty-note { color: var(--text-mute); padding: 18px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-sm); text-align: center; }

/* Recent / tables */
.recent { margin-top: 30px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; min-width: 460px; }
.table th, .table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--border-soft); }
.table th { background: var(--bg-2); color: var(--text-dim); font-size: .88rem; font-weight: 700; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-2); }
.cell-date { color: var(--text-dim); white-space: nowrap; font-size: .9rem; }
.cell-email { font-size: .88rem; }
.link-more { display: inline-block; margin-top: 12px; font-weight: 600; }

/* Buy page */
.back-link { display: inline-block; color: var(--text-dim); margin-bottom: 6px; font-size: .92rem; }
.buy-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.buy-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); align-self: start; }
.buy-plan-title { font-size: 1.2rem; }
.amount-box { margin-top: 16px; padding: 14px 16px; background: var(--bg-2); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: space-between; }
.amount-val { color: var(--accent); font-size: 1.3rem; }
.buy-pay { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.steps { color: var(--text-dim); padding-inline-start: 20px; margin: 0 0 4px; display: grid; gap: 8px; }
.steps b { color: var(--text); }
.upload-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-soft); }

/* Admin */
.count-badge { background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.admin-list { display: grid; gap: 14px; }
.admin-order { display: grid; grid-template-columns: 96px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.receipt-thumb { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); aspect-ratio: 3/4; }
.receipt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.receipt-open { position: absolute; inset-inline: 0; bottom: 0; background: rgba(7,11,20,.8); color: var(--text); font-size: .72rem; text-align: center; padding: 3px; }
.admin-order-body { display: grid; gap: 12px; align-content: start; }
.admin-order-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ord-id { font-weight: 700; }
.ord-amount { color: var(--accent); font-size: 1.05rem; }
.ord-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0; }
.ord-meta > div { display: grid; gap: 2px; }
.ord-meta dt { color: var(--text-mute); font-size: .8rem; margin: 0; }
.ord-meta dd { margin: 0; color: var(--text-dim); font-size: .92rem; word-break: break-word; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.admin-actions form { margin: 0; display: flex; gap: 8px; align-items: center; }
.reject-form { flex: 1; min-width: 200px; }
.reject-form .input-sm { flex: 1; min-width: 120px; }

/* Footer */
.footer { border-top: 1px solid var(--border-soft); margin-top: auto; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 20px 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--text-dim); font-size: .9rem; }
.footer-dim { color: var(--text-mute); }

/* Copy button feedback */
.copy-btn.copied { background: rgba(52,211,153,.15); color: var(--accent-2); border-color: rgba(52,211,153,.4); }

/* ======================================================================= */
/* Catalog v2 — protocol sections + GB×duration price grid (landing)        */
/* ======================================================================= */
.catalog { margin-top: 30px; display: grid; gap: 26px; }
.proto-section {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.proto-section--reality { border-color: rgba(45,212,191,.4); box-shadow: 0 0 0 1px rgba(45,212,191,.18), var(--shadow); }
.proto-section--wireguard { border-color: rgba(129,140,248,.42); box-shadow: 0 0 0 1px rgba(129,140,248,.16), var(--shadow); }
.proto-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.proto-ico {
  flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.35rem; background: var(--surface-2); border: 1px solid var(--border);
}
.proto-section--reality .proto-ico { color: var(--accent); border-color: rgba(45,212,191,.4); }
.proto-section--shadowsocks .proto-ico { color: #fbbf24; border-color: rgba(251,191,36,.4); }
.proto-section--wireguard .proto-ico { color: #a5b4fc; border-color: rgba(129,140,248,.42); }
.proto-titles { display: grid; gap: 3px; flex: 1; min-width: 200px; }
.proto-label { font-size: 1.18rem; font-weight: 800; margin: 0; }
.proto-note { margin: 0; color: var(--text-dim); font-size: .92rem; display: inline-flex; align-items: center; gap: 7px; }
.proto-note .note-ico { flex: none; }
.proto-note--reality { color: #7fe6d8; }
.proto-note--wireguard { color: #b3bcf7; }

/* GB × duration price grid */
.tier-table { width: 100%; border-collapse: collapse; min-width: 340px; }
.tier-table thead th {
  padding: 10px 12px; text-align: center; color: var(--text-dim); font-size: .88rem; font-weight: 700;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
}
.tier-table thead th:first-child { text-align: start; border-start-start-radius: var(--radius-sm); }
.tier-table thead th:last-child { border-start-end-radius: var(--radius-sm); }
.tier-table td { padding: 8px 10px; border-bottom: 1px solid var(--border-soft); text-align: center; }
.tier-table tbody tr:last-child td { border-bottom: none; }
.tier-table tbody tr:hover { background: var(--surface-2); }
.tier-gb { text-align: start; font-weight: 700; color: var(--text); white-space: nowrap; }
.tier-gb .gb-ico { color: var(--text-mute); margin-inline-end: 6px; }
.tier-none { color: var(--text-mute); }
.tier-buy {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 108px; padding: 9px 12px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font-weight: 700; transition: border .15s ease, background .15s ease, transform .06s ease;
}
.tier-buy:hover { border-color: var(--accent); background: rgba(45,212,191,.1); color: var(--text); }
.tier-buy:active { transform: translateY(1px); }
.tier-buy .tier-price { color: var(--accent); font-size: 1.02rem; }
.tier-buy .tier-cta { font-size: .74rem; color: var(--text-mute); font-weight: 600; }
.tier-buy:hover .tier-cta { color: var(--accent-2); }

/* ======================================================================= */
/* Multi-subscription dashboard                                             */
/* ======================================================================= */
.subs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 24px 0 14px; }
.subs-head .section-title { margin: 0; }
.subs-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.sub-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); display: grid; gap: 14px;
}
.sub-item--reality { border-inline-start: 3px solid var(--accent); }
.sub-item--shadowsocks { border-inline-start: 3px solid #fbbf24; }
.sub-item--wireguard { border-inline-start: 3px solid #a5b4fc; }
.sub-item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sub-proto { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; }
.sub-proto .sub-proto-ico { font-size: 1.15rem; }
.sub-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--text-dim); font-size: .9rem; }
.sub-item .usage { margin: 4px 0 0; }
.sub-body { display: grid; gap: 16px; grid-template-columns: 1fr; }
.sub-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sub-qr .qr-img { width: 168px; height: 168px; }
.conf-box { display: grid; gap: 8px; }
.conf-area {
  width: 100%; min-height: 128px; resize: vertical; font-family: ui-monospace, "Consolas", monospace;
  font-size: .78rem; line-height: 1.5; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--border); border-radius: 11px; padding: 12px; direction: ltr; white-space: pre;
}
.sub-endpoint { color: var(--text-dim); font-size: .85rem; }
.sub-endpoint b { color: var(--text); font-family: ui-monospace, "Consolas", monospace; }
.pending-list { display: grid; gap: 12px; margin-top: 6px; }
.pending-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 14px 16px;
}
.pending-item .pending-info { display: grid; gap: 3px; }
.pending-item .pending-plan { font-weight: 700; }
.pending-item .pending-sub { color: var(--text-dim); font-size: .88rem; }

/* ======================================================================= */
/* Admin — plan editor                                                      */
/* ======================================================================= */
.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 6px 0 22px; }
.proto-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; border: 1px solid var(--border); }
.proto-pill--reality { background: rgba(45,212,191,.12); color: var(--accent); border-color: rgba(45,212,191,.4); }
.proto-pill--shadowsocks { background: rgba(251,191,36,.12); color: var(--warn); border-color: rgba(251,191,36,.4); }
.proto-pill--wireguard { background: rgba(129,140,248,.14); color: #a5b4fc; border-color: rgba(129,140,248,.42); }
.plan-group { margin-top: 22px; }
.plan-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.plan-editor-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.plan-editor-table th, .plan-editor-table td { padding: 8px 10px; border-bottom: 1px solid var(--border-soft); text-align: start; vertical-align: middle; }
.plan-editor-table th { background: var(--bg-2); color: var(--text-dim); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.plan-editor-table tbody tr:hover { background: var(--surface-2); }
.plan-editor-table .input-sm { min-width: 60px; }
.plan-editor-table .in-title { min-width: 150px; }
.plan-editor-table .in-num { width: 78px; }
.pe-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pe-actions form { margin: 0; display: inline-flex; gap: 6px; align-items: center; }
.pe-row-inactive { opacity: .55; }
.chk { display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: .85rem; cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--accent); }
.create-plan {
  margin-top: 26px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.create-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.select {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px; padding: 12px 14px;
}
.select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,212,191,.15); }
.select-sm { padding: 7px 10px; font-size: .88rem; }

/* order-row protocol tag on admin */
.ord-proto { font-size: .78rem; }

/* Responsive */
@media (min-width: 640px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .create-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 860px) {
  .hero-title { font-size: 2.5rem; }
  .plan-grid { grid-template-columns: repeat(3, 1fr); }
  .sub-grid { grid-template-columns: 220px 1fr; }
  .buy-grid { grid-template-columns: 320px 1fr; }
  .sub-body { grid-template-columns: 190px 1fr; align-items: start; }
  .create-grid { grid-template-columns: repeat(4, 1fr); }
}

/* renew action on dashboard subscription cards */
.sub-actions{margin-top:14px;padding-top:14px;border-top:1px solid rgba(255,255,255,.08);text-align:center}
.sub-actions .btn{min-width:190px}
