/* Sadat.uk – VoIP Services & Online Top-Up. Mobile-first, no external fonts or frameworks. */
:root {
    --navy-900: #0b2140;
    --navy-800: #0f2b54;
    --navy-700: #183d72;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-100: #ccfbf1;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f6f8fb;
    --card: #ffffff;
    --success: #15803d;
    --success-bg: #dcfce7;
    --warning: #a16207;
    --warning-bg: #fef3c7;
    --danger: #b91c1c;
    --danger-bg: #fee2e2;
    --info: #1d4ed8;
    --info-bg: #dbeafe;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .06);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; }
a { color: var(--teal-700); text-underline-offset: 2px; }
a:hover { color: var(--navy-800); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; color: var(--navy-900); }
h1 { font-size: 1.75rem; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: .875em; }
code { overflow-wrap: anywhere; } /* long Stripe/session ids must not widen the page on phones */
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.page-pad { padding-top: 32px; padding-bottom: 48px; }
.section { padding-top: 40px; padding-bottom: 24px; }
.section-title { font-size: 1.5rem; text-align: center; margin-bottom: 24px; }
.section-title-sm { font-size: 1.1rem; margin: 32px 0 12px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.125rem; color: var(--ink-2); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--teal-700); margin-bottom: .4em; }
.optional { font-weight: 400; color: var(--muted); font-size: .875em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.text-danger { color: var(--danger); }
.pre { white-space: pre-wrap; word-break: break-all; background: #f1f5f9; padding: 8px; border-radius: 6px; max-height: 240px; overflow: auto; margin: 6px 0 0; }
.pre-wrap { white-space: pre-wrap; }
.hp { position: absolute; left: -5000px; }

/* Header */
.site-header { background: var(--navy-800); color: #fff; position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand:hover { color: #fff; }
.brand .logo { color: var(--teal-600); flex: none; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { width: 22px; height: 2px; background: #fff; border-radius: 2px; }
.site-nav { display: none; width: 100%; flex-direction: column; padding: 8px 0 16px; gap: 4px; }
.site-nav.open { display: flex; }
.site-nav a, .site-nav .link-button { color: #dbe7f6; text-decoration: none; padding: 10px 4px; font-weight: 500; }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--teal-600); }
.site-nav a:hover, .site-nav .link-button:hover { color: #fff; }
.site-nav .btn { color: #fff; text-align: center; }
@media (min-width: 860px) {
    .nav-toggle { display: none; }
    .site-nav { display: flex; width: auto; flex-direction: row; align-items: center; padding: 0; gap: 18px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--teal-600); color: #fff; border: 1px solid transparent;
    border-radius: var(--radius-sm); padding: 10px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; min-height: 44px; }
.btn:hover { background: var(--teal-700); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-small { padding: 6px 12px; min-height: 36px; font-size: .9rem; }
.btn-large { padding: 14px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn-ghost:hover { background: #eef2f7; color: var(--navy-900); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); }
.btn-warning { background: #d97706; }
.btn-warning:hover { background: #b45309; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #991b1b; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--teal-700); text-decoration: underline; cursor: pointer; }
.inline-form { display: inline; }

/* Cards, alerts, badges */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card.empty { text-align: center; padding: 32px 20px; }
.card-attention { border-color: #fcd34d; background: #fffdf5; }
.narrow-card { max-width: 640px; }
.alert { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: var(--success-bg); color: #14532d; border-color: #bbf7d0; }
.alert-error { background: var(--danger-bg); color: #7f1d1d; border-color: #fecaca; }
.alert-warning { background: var(--warning-bg); color: #713f12; border-color: #fde68a; }
.alert-info { background: var(--info-bg); color: #1e3a8a; border-color: #bfdbfe; }
.flash-stack { padding-top: 16px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-neutral { background: #e2e8f0; color: var(--ink-2); }
.badge-muted { background: #f1f5f9; color: var(--muted); }

/* Forms */
.form .field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="search"], input[type="number"], select, textarea {
    width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #cbd5e1; border-radius: var(--radius-sm); padding: 10px 12px; min-height: 44px; }
input:focus, select:focus, textarea:focus { border-color: var(--teal-600); outline: 3px solid rgba(13, 148, 136, .2); outline-offset: 0; }
.has-error input { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .875rem; margin: 6px 0 0; }
.field-ok, .hint.field-ok { color: var(--success); font-size: .875rem; margin: 6px 0 0; font-weight: 600; }
.hint { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.hint.field-error { color: var(--danger); }
.field.checkbox { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.field.checkbox input { width: 20px; height: 20px; margin-top: 3px; }
.field.checkbox label { font-weight: 400; margin: 0; }
.field.checkbox .field-error { grid-column: 1 / -1; }
.check { display: flex; gap: 8px; align-items: center; font-size: .9rem; margin: 6px 0 12px; }
.check input { width: 18px; height: 18px; }
fieldset { border: 0; margin: 0 0 20px; padding: 20px; }
legend { font-weight: 700; font-size: 1.1rem; color: var(--navy-900); padding: 0; float: left; width: 100%; margin-bottom: 12px; }
legend + * { clear: left; }
.inline-fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.inline-fields .field { margin-bottom: 0; }
.inline-fields .grow { flex: 1 1 220px; }
.input-num { max-width: 110px; }
.code-input { font-family: var(--mono); font-size: 1.4rem; letter-spacing: .2em; text-align: center; }

/* Choice tiles */
.choice, .amount { display: block; position: relative; cursor: pointer; margin-bottom: 10px; }
.choice input, .amount input { position: absolute; opacity: 0; }
.choice-body, .amount-body { display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: #fff; }
.choice input:checked + .choice-body, .amount input:checked + .amount-body { border-color: var(--teal-600); background: #f0fdfa; }
.choice input:focus-visible + .choice-body, .amount input:focus-visible + .amount-body { outline: 3px solid #f59e0b; outline-offset: 2px; }
.amount-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.amount { margin: 0; }
.amount-body { text-align: center; padding: 16px 8px; }
.amount-price { font-size: 1.4rem; font-weight: 800; color: var(--navy-900); }
.amount-credit { font-size: .85rem; color: var(--muted); }
@media (min-width: 640px) { .amount-grid { grid-template-columns: repeat(3, 1fr); } }
.custom-amount { margin-top: 14px; }
.custom-amount[hidden] { display: none; }
.pay-card { text-align: left; }

/* Hero & marketing */
.hero { background: linear-gradient(160deg, var(--navy-800), var(--navy-700) 60%, #12507a); color: #fff; padding: 48px 0 56px; }
.hero h1 { color: #fff; font-size: 2rem; }
.hero .lead { color: #d6e4f5; }
.hero .eyebrow { color: #5eead4; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.trust-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: #c9dbef; }
.trust-row li::before { content: "✓ "; color: #5eead4; font-weight: 700; }
.hero-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 24px; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); max-width: 380px; justify-self: center; width: 100%; }
.mock-balance { display: flex; flex-direction: column; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.mock-balance strong { font-size: 2rem; color: var(--navy-900); }
.mock-balance .badge { align-self: flex-start; }
.mock-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .95rem; color: var(--ink-2); }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.2fr 1fr; } .hero h1 { font-size: 2.6rem; } }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--teal-100); color: var(--teal-700); font-weight: 800; margin-bottom: 8px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.package { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); }
.package-name { font-weight: 700; color: var(--teal-700); text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }
.package-price { font-size: 2rem; font-weight: 800; color: var(--navy-900); }
.package-credit { color: var(--muted); font-size: .9rem; }
.feature-grid { display: grid; gap: 16px; }
.feature { padding: 4px 0; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }

/* Auth */
.auth-wrap { display: flex; justify-content: center; padding-top: 40px; padding-bottom: 56px; }
.auth-card { width: 100%; max-width: 460px; }
.secret-key { font-family: var(--mono); font-size: 1.2rem; background: #f1f5f9; padding: 12px; border-radius: 8px; text-align: center; letter-spacing: .08em; word-break: break-all; }
.recovery-codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0 20px; }
.recovery-codes code { display: block; background: #f1f5f9; padding: 8px; border-radius: 6px; text-align: center; font-size: 1rem; }
.checklist { list-style: none; padding: 0; }
.checklist .ok { color: var(--success); }
.checklist .bad { color: var(--danger); font-weight: 600; }

/* Customer dashboard */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.page-head h1 { margin: 0; }
.account-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .account-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .account-grid { grid-template-columns: repeat(3, 1fr); } }
.account-card { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.account-user, .balance { display: flex; flex-direction: column; }
.balance strong { font-size: 1.8rem; color: var(--navy-900); }
.add-card { align-items: center; justify-content: center; border-style: dashed; color: var(--teal-700); text-decoration: none; font-weight: 600; min-height: 140px; box-shadow: none; }

/* Order status */
.order-status { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.status-icon { width: 44px; height: 44px; border-radius: 50%; flex: none; background: #e2e8f0; position: relative; }
.status-success { background: var(--success-bg); }
.status-success::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--success); font-weight: 800; font-size: 1.4rem; }
.status-info { background: var(--info-bg); }
.status-info::after { content: ""; position: absolute; inset: 10px; border: 3px solid var(--info); border-right-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; }
.status-warning { background: var(--warning-bg); }
.status-warning::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--warning); font-weight: 800; font-size: 1.4rem; }
.status-neutral::after { content: ""; position: absolute; inset: 10px; border: 3px solid var(--muted); border-right-color: transparent; border-radius: 50%; animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .status-info::after, .status-neutral::after { animation: none; } }
.status-label { margin: 0 0 4px; }
.summary { display: grid; gap: 0; margin: 0 0 16px; }
.summary > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Tables (stack on mobile) */
.table-wrap { width: 100%; overflow-x: auto; margin-bottom: 20px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #f8fafc; }
.table-compact th, .table-compact td { padding: 7px 10px; font-size: .9rem; }
.table tr.total td { font-weight: 700; background: #f8fafc; }
.row-error td { background: #fff7f7; }
@media (max-width: 719px) {
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
    .table td { border: 0; padding: 4px 12px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
    .table td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; text-align: left; }
    .table td[data-label=""]::before { content: none; }
    .table-wrap { overflow-x: visible; }
}
.pager { display: flex; gap: 16px; justify-content: center; align-items: center; }

/* Footer */
.site-footer { background: var(--navy-900); color: #b8c7dc; margin-top: 48px; padding: 40px 0 24px; }
.site-footer a { color: #dbe7f6; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font-weight: 800; color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.footer-heading { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 24px; padding-top: 16px; }
.site-footer .muted { color: #93a5bf; }

/* Admin */
body.admin { background: #f1f4f8; }
.admin-shell { display: block; min-height: 100vh; }
.admin-side { background: var(--navy-900); color: #fff; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.brand-admin { font-size: 1rem; }
.admin-nav { display: none; width: 100%; flex-direction: column; padding: 8px 0; }
.admin-nav.open { display: flex; }
.admin-nav a, .admin-signout { color: #c4d3e8; text-decoration: none; padding: 9px 10px; border-radius: 6px; font-size: .95rem; display: flex; justify-content: space-between; align-items: center; }
.admin-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-nav a[aria-current="page"] { background: var(--teal-700); color: #fff; }
.admin-signout { text-align: left; width: 100%; text-decoration: none; }
.count { background: #f59e0b; color: #1f1300; border-radius: 999px; padding: 0 8px; font-size: .78rem; font-weight: 700; }
.admin-main { padding: 20px 16px 48px; min-width: 0; }
.admin-title { font-size: 1.5rem; margin-bottom: 16px; }
@media (min-width: 960px) {
    .admin-shell { display: grid; grid-template-columns: 240px 1fr; }
    .admin-side { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 20px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
    .admin-nav-toggle { display: none; }
    .admin-nav { display: flex; }
    .brand-admin { margin: 0 8px 16px; }
    .admin-main { padding: 28px 32px 48px; }
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.stat-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.stat-value { font-size: 1.7rem; font-weight: 800; color: var(--navy-900); }
.stat-sub { font-size: .85rem; color: var(--muted); }
.stat.is-hot { border-color: #f59e0b; background: #fffbeb; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.search { display: flex; gap: 8px; flex: 1 1 280px; max-width: 520px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.tabs a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); background: #fff; border: 1px solid var(--line); font-size: .9rem; }
.tabs a[aria-current="page"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.detail-grid { display: grid; gap: 20px; }
@media (min-width: 1100px) { .detail-grid { grid-template-columns: 1fr 1fr; } }
.detail-grid .card { margin-bottom: 0; }
.detail-grid + * { margin-top: 20px; }
.decision-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .decision-grid { grid-template-columns: repeat(3, 1fr); } }
.decision { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: #fff; }
.decision input[type="text"] { margin-bottom: 4px; }
.order-head { margin-bottom: 16px; }
.status-reason { margin: 8px 0 0; color: var(--ink-2); background: #fff; border-left: 4px solid #f59e0b; padding: 8px 12px; border-radius: 4px; }
.link-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.msg-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 8px; }

/* Call history, account management, security */
.filters { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: end; }
.filters .field { margin: 0; }
@media (min-width: 720px) { .filters { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .filters { grid-template-columns: repeat(4, 1fr); } }
.custom-range { display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; align-items: center; }
.custom-range[hidden] { display: none; }
.custom-range label { margin: 0; }
.filter-actions .btn { width: 100%; }
.export-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.data-freshness { margin: 0 0 16px; }
.plain-list { list-style: none; padding: 0; margin: 0 0 12px; }
.settings-pre { background: #f8fafc; color: var(--ink); font-size: .9rem; }
details > summary.btn { list-style: none; margin: 4px 0 10px; }
details > summary::-webkit-details-marker { display: none; }
.small-value { font-size: 1.1rem; }
.admin-role { color: #8fa3bf; padding: 8px 10px 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* Print */
.print-page { background: #fff; }
.print-sheet { padding: 24px 16px; }
@media print {
    .no-print, .site-header, .site-footer, .admin-side, .export-bar, .filters, .nav-toggle { display: none !important; }
    body { background: #fff; font-size: 11pt; }
    .table { border: 0; }
    .table th, .table td { padding: 4px 6px; }
    .table thead { display: table-header-group; }
    a { color: inherit; text-decoration: none; }
}

/* In-page confirmation (replaces native confirm(), which some browsers suppress) */
.confirm-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 12px; border: 1px solid #fcd34d; background: #fffbeb; border-radius: var(--radius-sm); }
.confirm-box p { margin: 0; flex: 1 1 100%; font-weight: 600; color: var(--ink); }
form.inline-form .confirm-box { display: flex; }

/* Sign-in: divider between the website login and "Sign in with your VoIP account" */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: var(--muted, #64748b); font-size: .875rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* "Set up your calling app" card */
.setup-card summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.setup-card summary::-webkit-details-marker { display: none; }
.setup-card summary h2 { margin: 0; }
.setup-steps { margin: 16px 0 8px; padding-left: 1.25rem; display: grid; gap: 14px; }
code.copyable { font-size: 1.05rem; padding: 4px 8px; border-radius: 6px; background: #f1f5f9; word-break: break-all; }

/* Calling-app setup page */
.setup-step h2 { display: flex; align-items: center; gap: 10px; }
.setup-step h2 .step-num { margin-bottom: 0; }
.qr-wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.qr { width: 220px; height: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.qr svg { width: 100%; height: 100%; display: block; }

/* Dashboard: calling credit first */
.balance-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.balance-hero > div { display: grid; gap: 2px; }
.balance-big { font-size: 2.4rem; line-height: 1.1; color: var(--navy-900); }
.install-tip { background: #f0fdfa; border-color: #99f6e4; }
.install-tip p { margin: 6px 0; }
