:root {
  color-scheme: light;
  --page: #f3f6f9;
  --surface: #ffffff;
  --soft: #f7f9fc;
  --line: #dce4ec;
  --line-dark: #c9d5e0;
  --text: #142235;
  --muted: #64758a;
  --accent: #0b6bcb;
  --accent-dark: #0755a4;
  --navy: #0c1d31;
  --success: #16835c;
  --danger: #b4423b;
  --shadow: 0 18px 48px rgba(22, 40, 63, .08);
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; overflow-x: hidden; background: var(--page); color: var(--text); font: 14px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(11, 107, 203, .24); outline-offset: 2px; }
.shell { width: min(100% - 36px, 1120px); margin-inline: auto; }
.app-shell { width: calc(100% - 48px); max-width: 1180px; min-width: 0; margin-inline: auto; }

.site-header, .app-header, .site-footer { background: var(--surface); }
.site-header, .app-header { border-bottom: 1px solid var(--line); }
.app-header { position: sticky; z-index: 20; top: 0; }
.header-inner { min-height: 62px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; min-width: 0; gap: 9px; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: .045em; }
.brand > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-icon { display: grid; place-items: center; width: 38px; height: 31px; border-radius: 8px; background: linear-gradient(140deg, #0978df, #0756a8); color: #fff; box-shadow: 0 6px 14px rgba(11,107,203,.18); font-size: 9px; letter-spacing: .05em; }
.brand-accent { color: var(--accent); }
.header-label { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .14em; }
.main-nav { display: flex; align-self: stretch; gap: 8px; margin-left: 20px; }
.main-nav a { display: flex; align-items: center; position: relative; padding: 0 10px; color: #55667a; text-decoration: none; font-size: 13px; font-weight: 680; }
.main-nav a:hover { color: var(--accent); }
.main-nav a.active { color: var(--text); }
.main-nav a.active::after { content: ""; position: absolute; inset: auto 8px -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.account-menu { display: flex; align-items: center; min-width: 0; gap: 13px; margin-left: auto; }
.account-name { max-width: 155px; overflow: hidden; color: #47596d; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.credit-chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 10px; border: 1px solid #cfe0ef; border-radius: 99px; background: #f3f9ff; color: #47617a; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.credit-chip strong { color: var(--accent); font-size: 14px; }
.account-menu form { margin: 0; }
.link-button { padding: 5px 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 650; }
.link-button:hover { color: var(--danger); }

.app-main { flex: 1; padding-block: 24px 32px; }
.dashboard-hero { display: flex; align-items: center; justify-content: space-between; min-width: 0; gap: 24px; margin-bottom: 15px; }
.dashboard-hero > * { min-width: 0; }
.dashboard-hero h1, .auth-showcase h1 { margin: 0; font-size: clamp(28px, 3.2vw, 36px); line-height: 1.1; font-weight: 760; letter-spacing: -.04em; }
.compact-hero { margin-bottom: 18px; }
.eyebrow { margin: 0 0 5px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.intro { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.balance-card { display: grid; grid-template-columns: auto auto; min-width: 172px; padding: 10px 13px; border: 1px solid #cbdbe8; border-radius: 11px; background: var(--surface); box-shadow: 0 8px 22px rgba(27, 52, 76, .055); }
.balance-card span { grid-column: 1 / -1; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.balance-card strong { margin-top: 1px; color: var(--text); font-size: 25px; line-height: 1.1; }
.balance-card small { align-self: end; padding: 0 0 4px 5px; color: var(--muted); }
.balance-card a { grid-column: 1 / -1; margin-top: 4px; font-size: 11px; font-weight: 750; text-decoration: none; }

.marque-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; min-width: 0; margin-bottom: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.marque-strip > div { display: flex; justify-content: center; align-items: center; min-width: 0; height: 50px; gap: 8px; color: #3c4c5f; font-size: 11px; font-weight: 680; }
.marque-strip > div + div { border-left: 1px solid var(--line); }
.marque-strip img { display: block; width: 32px; height: 32px; object-fit: contain; border-radius: 5px; }
.brand-cell img { display: block; width: 38px; height: 38px; object-fit: contain; border-radius: 5px; }

.calculator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; min-width: 0; overflow: hidden; border: 1px solid var(--line-dark); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.entry, .result { min-width: 0; padding: 22px 24px; }
.entry form { min-width: 0; }
.result { border-left: 1px solid var(--line); background: linear-gradient(145deg, #f8fbff, #f2f7fb); }
.section-heading { display: flex; gap: 10px; margin-bottom: 18px; }
.step-number { display: grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; border: 1px solid #bbd4e8; border-radius: 7px; background: #f3f9fe; color: var(--accent); font-size: 9px; font-weight: 800; }
h2 { margin: 0; font-size: 16px; line-height: 1.25; font-weight: 750; letter-spacing: -.015em; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
label { display: block; margin-bottom: 7px; color: #53677d; font-size: 10px; font-weight: 790; letter-spacing: .11em; }
.field { margin-bottom: 16px; }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
input[type=text], input[type=email], input[type=password], input[type=number], select { display: block; width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #b9c8d7; border-radius: 8px; background: #fff; color: var(--text); }
input[name=serial] { font: 16px/1.5 ui-monospace, Consolas, monospace; letter-spacing: .05em; text-transform: uppercase; }
input::placeholder { color: #8c9bac; }
input[aria-invalid=true] { border-color: #c85650; box-shadow: 0 0 0 3px rgba(200, 86, 80, .08); }
.field-help { margin: 5px 0 14px; color: var(--muted); font-size: 10px; }
.primary, .secondary, .button-link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 42px; padding: 10px 14px; border-radius: 9px; font-size: 12px; font-weight: 750; text-decoration: none; }
.primary { border: 1px solid var(--accent); background: linear-gradient(180deg, #1479d7, var(--accent)); color: #fff; box-shadow: 0 7px 15px rgba(11, 107, 203, .15); }
.primary:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
.primary:disabled { cursor: not-allowed; border-color: #9aabb9; background: #9aabb9; box-shadow: none; }
.primary span { font-size: 18px; line-height: 1; }
.secondary { justify-content: center; border: 1px solid #aebfce; background: #fff; color: #30465c; }
.secondary:hover { border-color: var(--accent); color: var(--accent); }
.inline-action { display: block; margin-top: 10px; font-size: 11px; font-weight: 750; text-align: center; text-decoration: none; }
.form-error { margin: 0 0 14px; padding: 9px 11px; border: 1px solid #e7b4ae; border-radius: 8px; background: #fff4f2; color: #913a32; font-size: 11px; }
.code-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pin { min-height: 53px; margin: 0 0 5px; color: var(--accent); font: 750 clamp(40px, 5vw, 54px)/1 ui-monospace, Consolas, monospace; letter-spacing: .09em; white-space: nowrap; }
.pin.empty { color: #a8b7c6; }
.copy { padding: 8px 12px; border: 1px solid #a6c7df; border-radius: 8px; background: #fff; color: var(--accent); font-size: 11px; font-weight: 750; white-space: nowrap; }
.copy:hover { background: #e9f4fb; }
.result-serial { margin: 0 0 17px; color: var(--muted); font: 12px ui-monospace, Consolas, monospace; letter-spacing: .05em; overflow-wrap: anywhere; }
.identity { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.identity > span { display: flex; align-items: center; min-width: 0; min-height: 58px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.identity .brand-cell { gap: 8px; }
.meta-copy { display: block; min-width: 0; }
.identity small { display: block; margin-bottom: 2px; color: #758497; font-size: 9px; letter-spacing: .09em; }
.identity strong { display: block; font-size: 12px; font-weight: 730; overflow-wrap: anywhere; }
.empty-text { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.copy-status { display: block; min-height: 16px; margin-top: 6px; color: var(--success); font-size: 11px; }

.panel { width: 100%; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 10px 32px rgba(22,40,63,.045); }
.history-panel, .user-panel { margin-top: 16px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.panel-heading .eyebrow { margin-bottom: 3px; }
.muted { color: var(--muted); font-size: 11px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 20px; border-bottom: 1px solid #e7edf2; text-align: left; white-space: nowrap; }
th { background: #f9fbfc; color: #6a7b8d; font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
td { color: #47596d; font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
.mono, .code-small { font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.code-small { color: var(--accent); font-size: 13px; }
.empty-state { padding: 28px; color: var(--muted); text-align: center; }
.safety-note { margin: 9px 0 0; color: var(--muted); font-size: 10px; }

.auth-main { display: grid; flex: 1; place-items: center; padding: 48px 24px; background: radial-gradient(circle at 15% 20%, #dceeff 0, transparent 30%), linear-gradient(135deg, #edf3f8, #f8fafc 55%, #e9f1f8); }
.auth-layout { display: grid; grid-template-columns: 1.1fr .9fr; width: min(100%, 980px); overflow: hidden; border: 1px solid #cbd8e4; border-radius: 20px; background: var(--surface); box-shadow: 0 28px 80px rgba(12,29,49,.14); }
.auth-showcase { position: relative; overflow: hidden; padding: 65px 55px; background: linear-gradient(145deg, #0a2038, #0c3155); color: #fff; }
.auth-showcase::after { content: ""; position: absolute; right: -90px; bottom: -120px; width: 310px; height: 310px; border: 60px solid rgba(63, 158, 245, .09); border-radius: 50%; }
.secure-badge { display: inline-block; margin-bottom: 45px; padding: 7px 10px; border: 1px solid rgba(150,203,248,.35); border-radius: 99px; color: #9dd0fb; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.auth-showcase h1 { position: relative; z-index: 1; font-size: clamp(38px, 5vw, 54px); }
.auth-showcase h1 span { color: #67b7fb; }
.auth-showcase > p { position: relative; z-index: 1; max-width: 470px; margin: 22px 0 40px; color: #b9c9d9; font-size: 14px; }
.auth-features { display: flex; position: relative; z-index: 1; flex-wrap: wrap; gap: 8px; }
.auth-features span { padding: 7px 9px; border-radius: 7px; background: rgba(255,255,255,.07); color: #d8e7f3; font-size: 10px; }
.auth-card { align-self: center; padding: 50px 46px; }
.auth-card.compact { width: min(100%, 480px); border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.auth-card h1, .auth-card h2 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.auth-copy { margin: 8px 0 25px; color: var(--muted); font-size: 12px; }
.no-signup { margin: 20px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.alert { margin: 0 0 18px; padding: 11px 13px; border: 1px solid; border-radius: 9px; font-size: 12px; }
.alert-success { border-color: #a9dac6; background: #effaf5; color: #146647; }
.alert-error { border-color: #e4b4b0; background: #fff3f2; color: #8e3832; }
.alert-info { border-color: #add1ec; background: #f0f8fe; color: #245f8b; }

.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.package-card { position: relative; padding: 20px; border: 1px solid var(--line-dark); border-radius: 13px; background: var(--surface); box-shadow: 0 9px 26px rgba(22,40,63,.045); }
.package-card.featured { border: 2px solid var(--accent); padding: 19px; box-shadow: 0 13px 34px rgba(11,107,203,.11); }
.popular { position: absolute; top: -10px; right: 17px; padding: 4px 8px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.package-name { margin: 0; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.package-credits { display: flex; align-items: baseline; gap: 7px; margin: 12px 0 1px; }
.package-credits strong { font-size: 40px; line-height: 1; letter-spacing: -.04em; }
.package-credits span { color: var(--muted); }
.package-price { margin: 14px 0 1px; font-size: 15px; font-weight: 750; }
.package-unit { margin: 0 0 18px; color: var(--muted); font-size: 10px; }
.payment-note { display: flex; align-items: center; gap: 15px; margin-top: 15px; padding: 13px 16px; border: 1px solid #cfe0eb; border-radius: 10px; background: #f7fbfe; }
.payment-note strong { flex: 0 0 auto; color: #2b536f; font-size: 11px; }
.payment-note span { color: var(--muted); font-size: 10px; }
.type-pill, .status { display: inline-flex; align-items: center; width: max-content; padding: 3px 7px; border-radius: 99px; background: #edf3f7; color: #516679; font-size: 9px; font-weight: 750; text-transform: capitalize; }
.positive { color: var(--success); font-weight: 750; }
.negative { color: var(--danger); font-weight: 750; }

.admin-stats { display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.admin-stats span { display: grid; min-width: 95px; padding: 12px 15px; color: var(--muted); font-size: 9px; text-align: center; text-transform: uppercase; letter-spacing: .07em; }
.admin-stats span + span { border-left: 1px solid var(--line); }
.admin-stats strong { color: var(--text); font-size: 21px; line-height: 1.2; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 18px; }
.form-panel form { padding: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.admin-note { padding: 24px; background: linear-gradient(145deg, #0d263f, #123858); color: #fff; }
.admin-note h2 { margin-bottom: 12px; }
.admin-note p:not(.eyebrow), .admin-note li { color: #bfd0df; font-size: 11px; }
.admin-note ul { margin: 18px 0 0; padding-left: 17px; }
.admin-note li + li { margin-top: 7px; }
.package-admin-panel { margin-top: 18px; }
.package-alert { margin: 16px 20px 0; }
.package-admin-list { display: grid; }
.package-editor { min-width: 0; padding: 16px 20px; }
.package-editor + .package-editor, .package-create { border-top: 1px solid var(--line); }
.package-editor-title, .package-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.package-editor-title { margin-bottom: 13px; }
.package-editor-title > div { display: grid; min-width: 0; }
.package-editor-title strong { font-size: 13px; }
.package-editor-title span, .package-editor-footer > span { color: var(--muted); font-size: 10px; }
.package-fields { display: grid; grid-template-columns: minmax(170px, 1.5fr) repeat(5, minmax(90px, .7fr)); gap: 11px; }
.package-fields .field { margin-bottom: 11px; }
.toggle-field { display: inline-flex; align-items: center; width: max-content; margin: 0; gap: 7px; color: #40566b; font-size: 10px; font-weight: 750; letter-spacing: 0; text-transform: none; }
.toggle-field input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.package-editor-footer { padding-top: 2px; }
.package-editor-footer .secondary { width: auto; min-width: 145px; }
.package-create { background: #f8fafc; }
.package-create > summary { padding: 12px 20px; color: var(--accent); cursor: pointer; font-size: 11px; font-weight: 750; }
.package-create[open] > summary { border-bottom: 1px solid var(--line); }
.package-create .package-editor { background: #f8fafc; }
.new-package-toggle { align-self: center; min-height: 42px; }
.user-list { display: grid; }
.user-card + .user-card { border-top: 1px solid var(--line); }
.user-summary { display: grid; grid-template-columns: 40px minmax(140px, 1fr) auto 90px; align-items: center; gap: 13px; padding: 15px 22px; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #e8f3fc; color: var(--accent); font-weight: 800; }
.user-summary > div:nth-child(2) { display: grid; min-width: 0; }
.user-summary > div:nth-child(2) strong, .user-summary > div:nth-child(2) span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-summary > div:nth-child(2) span { color: var(--muted); font-size: 11px; }
.status-active { background: #e8f7f0; color: #15704f; }
.status-suspended { background: #f9e9e7; color: #99433d; }
.user-balance { display: grid; text-align: right; }
.user-balance strong { font-size: 18px; }
.user-balance span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.user-card details { border-top: 1px solid #edf1f5; background: #f9fbfc; }
.user-card summary { padding: 9px 22px; color: var(--accent); cursor: pointer; font-size: 10px; font-weight: 750; }
.manage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 8px 22px 22px; }
.manage-form { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.manage-form h3 { margin: 0 0 14px; font-size: 13px; }
select { appearance: auto; }

.site-footer { margin-top: auto; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; min-height: 58px; gap: 14px; color: var(--muted); font-size: 10px; }
.footer-inner span:first-child { color: #33455a; font-weight: 760; letter-spacing: .05em; }

@media (max-width: 900px) {
  .account-name { display: none; }
  .main-nav { margin-left: 0; }
  .calculator, .auth-layout { grid-template-columns: 1fr; }
  .result { border-top: 1px solid var(--line); border-left: 0; }
  .auth-showcase { padding: 42px; }
  .secure-badge { margin-bottom: 24px; }
  .admin-grid { grid-template-columns: 1fr; }
  .package-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .app-shell { width: calc(100% - 24px); max-width: 1180px; }
  .app-header .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: auto; gap: 9px 12px; padding-block: 9px 0; }
  .app-header .brand { overflow: hidden; }
  .account-menu { margin-left: 0; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; width: auto; min-width: 0; height: 38px; margin: 0; border-top: 1px solid var(--line); }
  .main-nav a { flex: 1; justify-content: center; }
  .credit-chip { flex: 0 0 auto; margin-left: 0; }
  .app-main { padding-block: 18px 26px; }
  .dashboard-hero { align-items: stretch; flex-direction: column; gap: 12px; margin-bottom: 12px; }
  .dashboard-hero h1 { font-size: 28px; }
  .intro { margin-top: 4px; font-size: 12px; }
  .balance-card { display: flex; align-items: center; width: 100%; min-width: 0; padding: 9px 11px; overflow: hidden; }
  .balance-card span { margin-right: auto; }
  .balance-card strong { margin: 0 0 0 10px; font-size: 22px; }
  .balance-card small { align-self: auto; padding: 2px 0 0 4px; }
  .balance-card a { margin: 0 0 0 auto; padding-left: 12px; }
  .marque-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marque-strip > div:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .marque-strip > div:nth-child(4) { border-top: 1px solid var(--line); }
  .entry, .result { padding: 19px 18px; }
  .package-grid { grid-template-columns: 1fr; }
  .package-card.featured { order: -1; }
  .admin-stats { width: 100%; }
  .admin-stats span { flex: 1; min-width: 0; }
  .form-grid, .manage-grid { grid-template-columns: 1fr; gap: 0; }
  .user-summary { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .user-balance { grid-column: 2 / 4; grid-row: 2; text-align: left; }
  .auth-main { align-items: start; padding: 16px 12px; }
  .auth-layout { border-radius: 15px; }
  .auth-showcase { padding: 25px 24px; }
  .secure-badge { margin-bottom: 14px; }
  .auth-showcase h1 { font-size: 31px; }
  .auth-showcase > p { margin: 12px 0 0; font-size: 12px; }
  .auth-features { display: none; }
  .auth-card { padding: 28px 24px; }
}
@media (max-width: 600px) {
  .package-fields { grid-template-columns: 1fr 1fr; }
  .package-editor { padding: 15px; }
  .package-editor-title, .package-editor-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
  .package-editor-footer .secondary { width: 100%; }
  .history-panel .panel-heading { padding: 14px 15px; }
  .history-panel .muted { display: none; }
  .history-panel .table-wrap { overflow: visible; }
  .history-panel table, .history-panel tbody { display: block; width: 100%; }
  .history-panel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .history-panel tr { display: grid; gap: 5px; padding: 12px 15px; border-bottom: 1px solid var(--line); }
  .history-panel tr:last-child { border-bottom: 0; }
  .history-panel td { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0; border: 0; white-space: normal; text-align: right; }
  .history-panel td::before { content: attr(data-label); flex: 0 0 auto; color: #77889a; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .history-panel td:first-child { padding-bottom: 4px; color: var(--text); font-size: 12px; font-weight: 700; }
}
@media (max-width: 520px) {
  .auth-main { padding: 12px 10px; }
  .auth-showcase { padding: 22px 20px; }
  .auth-card { padding: 25px 20px; }
  .auth-showcase h1 { font-size: 28px; }
  .header-label { display: none; }
  .account-menu { gap: 8px; }
  .link-button { font-size: 0; }
  .link-button::after { content: "Exit"; font-size: 11px; }
  .identity { grid-template-columns: 1fr; }
  .package-fields { grid-template-columns: 1fr; gap: 0; }
  .balance-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; row-gap: 2px; }
  .balance-card span { margin-right: 0; }
  .balance-card strong { margin-left: 8px; }
  .balance-card a { grid-column: 1 / -1; margin: 0; padding: 2px 0 0; }
  .panel-heading, th, td { padding-inline: 16px; }
  .payment-note { align-items: flex-start; flex-direction: column; gap: 4px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; padding-block: 10px; }
}
@media (max-width: 390px) {
  .brand { font-size: 12px; }
  .brand-icon { width: 34px; height: 29px; }
  .credit-chip { display: none; }
  .main-nav a { padding-inline: 4px; font-size: 11px; }
  .marque-strip > div { height: 46px; font-size: 10px; }
  .marque-strip img { width: 28px; height: 28px; }
  .code-line { align-items: flex-start; flex-direction: column; gap: 5px; }
  .pin { font-size: 38px; }
  .copy { align-self: stretch; }
  .admin-stats strong { font-size: 18px; }
  .admin-stats span { padding: 9px 6px; }
}
