/* ============================================
   7Star Data — VTU Platform
   Palette: navy blue primary, red accent
   ============================================ */

:root {
    --blue: #0b3d91;
    --blue-dark: #082c6b;
    --blue-light: #1e5fd0;
    --blue-tint: #eef3fd;
    --red: #e02424;
    --red-dark: #b91c1c;
    --ink: #16202c;
    --body: #5a6672;
    --line: #e4e8ef;
    --bg-soft: #f6f8fc;
    --white: #fff;
    --radius: 10px;
    --shadow: 0 2px 14px rgba(11, 61, 145, .07);
    --shadow-lg: 0 8px 30px rgba(11, 61, 145, .12);
    --wrap: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--body);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
    display: inline-block;
    padding: .72rem 1.6rem;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .2s ease;
    font-family: inherit;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--blue); border-color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- topbar ---------- */
.topbar {
    background: var(--blue-dark);
    color: rgba(255,255,255,.8);
    font-size: .8rem;
    padding: .45rem 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }
.topbar-contact { display: flex; gap: 1.4rem; }

/* ---------- header / nav ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.3rem; color: var(--blue); }
.logo-mark {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    border-radius: 8px;
    display: grid; place-items: center;
    color: #fff; font-size: 1.1rem;
}
.logo span { color: var(--red); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink);
    position: relative;
    padding: .25rem 0;
}
.nav-links a::after {
    content: '';
    position: absolute; left: 0; bottom: -2px;
    width: 0; height: 2px; background: var(--red);
    transition: width .25s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: .7rem; }
.nav-actions .btn { padding: .55rem 1.25rem; font-size: .85rem; }

.nav-toggle {
    display: none;
    background: none; border: 0; cursor: pointer;
    padding: .4rem;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--ink); border-radius: 2px;
}
.nav-toggle span + span { margin-top: 5px; }

/* ---------- hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 55%, #061f4d 100%);
    color: #fff;
    padding: 5rem 0 5.5rem;
    position: relative;
    overflow: hidden;
}
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: .12;
}
.hero::before { width: 420px; height: 420px; background: var(--red); top: -160px; right: -120px; }
.hero::after { width: 300px; height: 300px; background: #4d8dff; bottom: -140px; left: -90px; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    padding: .3rem 1rem;
    border-radius: 40px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .4px;
    margin-bottom: 1.2rem;
}
.hero h1 { color: #fff; font-size: 2.9rem; font-weight: 800; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: #ff8a8a; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.02rem; margin-bottom: 2rem; max-width: 32rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    gap: 2.4rem;
    margin-top: 2.8rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(255,255,255,.16);
}
.hero-stats strong { display: block; font-size: 1.6rem; color: #fff; font-weight: 800; }
.hero-stats small { color: rgba(255,255,255,.7); font-size: .82rem; }

/* hero card */
.hero-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.6rem;
    box-shadow: 0 20px 50px rgba(0,0,0,.28);
    color: var(--ink);
}
.hero-card h4 { font-size: 1rem; margin-bottom: 1rem; }
.hero-card .field { margin-bottom: .85rem; }
.hero-card label { display: block; font-size: .78rem; font-weight: 600; color: var(--body); margin-bottom: .3rem; }
.hero-card select, .hero-card input {
    width: 100%;
    padding: .65rem .8rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: inherit;
    font-size: .88rem;
    color: var(--ink);
    background: #fbfcfe;
}
.hero-card select:focus, .hero-card input:focus { outline: 2px solid var(--blue-light); outline-offset: -1px; }
.hero-card .note { font-size: .74rem; color: var(--body); margin-top: .7rem; text-align: center; }

/* ---------- brand strip ---------- */
.brands { background: var(--bg-soft); padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.brands-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.brand-chip {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: .5px;
    color: #8c98a6;
    padding: .5rem 1.1rem;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--line);
    transition: color .2s, border-color .2s;
}
.brand-chip:hover { color: var(--blue); border-color: var(--blue); }

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; }
.section-soft { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section-tag {
    display: inline-block;
    color: var(--red);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: .6rem;
}
.section-head h2 { font-size: 2rem; margin-bottom: .7rem; }
.section-head p { font-size: .96rem; }

/* ---------- service cards ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.9rem 1.6rem;
    box-shadow: var(--shadow);
    transition: transform .22s, box-shadow .22s, border-color .22s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #c9d7f2; }
.service-icon {
    width: 54px; height: 54px;
    border-radius: 12px;
    background: var(--blue-tint);
    display: grid; place-items: center;
    margin-bottom: 1.1rem;
    font-size: 1.5rem;
}
.service-card:nth-child(2n) .service-icon { background: #fdeeee; }
.service-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.service-card p { font-size: .9rem; }

/* ---------- pricing ---------- */
.tabs {
    display: flex;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.tab {
    padding: .6rem 1.6rem;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 40px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--body);
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; min-width: 520px; }
thead { background: var(--blue); }
th {
    text-align: left;
    padding: .95rem 1.2rem;
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
}
td { padding: .9rem 1.2rem; font-size: .9rem; border-top: 1px solid var(--line); }
tbody tr:hover { background: var(--blue-tint); }
td.plan { font-weight: 600; color: var(--ink); }
td.price { font-weight: 700; color: var(--red); }
.pane { display: none; }
.pane.active { display: block; }
.price-note { text-align: center; font-size: .84rem; margin-top: 1.2rem; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.step { text-align: center; padding: 1rem; }
.step-num {
    width: 52px; height: 52px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 800; font-size: 1.15rem;
}
.step h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.step p { font-size: .88rem; }

/* ---------- why / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split h2 { font-size: 1.9rem; margin-bottom: 1rem; }
.feature-list { margin-top: 1.5rem; }
.feature-list li {
    display: flex;
    gap: .8rem;
    padding: .7rem 0;
    font-size: .92rem;
    border-bottom: 1px dashed var(--line);
}
.feature-list li:last-child { border-bottom: 0; }
.tick {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--blue-tint);
    color: var(--blue);
    display: grid; place-items: center;
    font-size: .7rem; font-weight: 800;
    margin-top: .2rem;
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.stat-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    box-shadow: var(--shadow);
}
.stat-box strong { display: block; font-size: 1.9rem; color: var(--blue); font-weight: 800; line-height: 1.2; }
.stat-box span { font-size: .85rem; }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--red) 0%, #8f1414 100%);
    color: #fff;
    padding: 3.4rem 0;
    text-align: center;
}
.cta-band h2 { color: #fff; font-size: 1.9rem; margin-bottom: .6rem; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 1.8rem; }
.cta-band .btn { background: #fff; color: var(--red); border-color: #fff; }
.cta-band .btn:hover { background: rgba(255,255,255,.88); }

/* ---------- footer ---------- */
.site-footer { background: #0a1420; color: #97a4b3; padding: 3.5rem 0 0; font-size: .89rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1.1rem; }
.site-footer .logo { color: #fff; margin-bottom: .9rem; }
.site-footer li { padding: .32rem 0; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .6rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.09);
    padding: 1.3rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .82rem;
}

/* ---------- auth pages ---------- */
.auth {
    min-height: calc(100vh - 72px);
    display: grid;
    place-items: center;
    background: var(--bg-soft);
    padding: 3rem 20px;
}
.auth-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 2.4rem 2rem;
    box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 1.55rem; text-align: center; margin-bottom: .4rem; }
.auth-card .sub { text-align: center; font-size: .89rem; margin-bottom: 1.8rem; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.field label .req { color: var(--red); }
.field input, .field select {
    width: 100%;
    padding: .72rem .9rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: inherit;
    font-size: .92rem;
    color: var(--ink);
    background: #fbfcfe;
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus {
    outline: none;
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(30, 95, 208, .12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.field-hint { font-size: .76rem; margin-top: .3rem; }
.auth-meta { display: flex; justify-content: space-between; align-items: center; font-size: .84rem; margin-bottom: 1.4rem; }
.auth-meta label { display: flex; gap: .4rem; align-items: center; cursor: pointer; }
.auth-meta a { color: var(--blue); font-weight: 600; }
.auth-alt { text-align: center; font-size: .87rem; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.auth-alt a { color: var(--blue); font-weight: 700; }

/* ---------- page banner ---------- */
.page-banner {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    padding: 3.2rem 0;
    text-align: center;
}
.page-banner h1 { color: #fff; font-size: 2.1rem; margin-bottom: .4rem; }
.page-banner p { color: rgba(255,255,255,.82); font-size: .95rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .hero-grid, .split { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero h1 { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 780px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .5rem 20px 1rem;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
    .nav-links a::after { display: none; }
    .nav-actions .btn:first-child { display: none; }
    .topbar-contact { display: none; }
}

@media (max-width: 560px) {
    .hero { padding: 3.5rem 0 4rem; }
    .hero h1 { font-size: 1.85rem; }
    .hero-stats { gap: 1.4rem; }
    .hero-stats strong { font-size: 1.3rem; }
    .section { padding: 3.2rem 0; }
    .section-head h2, .split h2, .cta-band h2 { font-size: 1.55rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .auth-card { padding: 1.9rem 1.4rem; }
    .stat-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Purchase flow — buy.html, form states, admin notices
   ========================================================================== */

:root { --green: #16a34a; --green-50: #f0fdf4; }

/* ---------------------------------------------------------------------------
   Variables referenced throughout this file that were never declared.
   An undefined custom property makes the whole declaration invalid, so every
   rule below was silently dropping its background or colour — most visibly the
   "Sign In" button, which rendered as a white box with white text because
   `background: var(--blue-600)` resolved to nothing.

   Values are taken from what the file already implies: the focus ring at the
   card input is rgba(37,99,235,.1) = #2563eb, and .alert--bad pairs its
   background with #fecaca / #991b1b — i.e. a Tailwind-derived palette.
   --------------------------------------------------------------------------- */
:root {
    --blue-600: #2563eb;   /* proven by the rgba(37,99,235) focus ring */
    --blue-50:  #eff6ff;
    --red-50:   #fef2f2;   /* pairs with #fecaca / #991b1b in .alert--bad */
    --muted:    #6b7280;   /* hint and secondary label text */
    --bg-alt:   #f9fafb;   /* alternating section / dashboard background */
    --nav-h:    72px;      /* matches .nav { height: 72px } */
}

/* The markup uses the double-dash BEM modifiers, but only single-dash
   `.btn-block` existed, so full-width buttons were never full width and
   `.btn--lg` did nothing at all. */
.btn--block { display: block; width: 100%; text-align: center; }
.btn--lg    { padding: .9rem 2rem; font-size: 1.02rem; }

.btn--sm { padding: .45rem 1rem; font-size: .8rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }

.col-action { text-align: right; }
.badge--stock { background: var(--green-50); color: var(--green); margin-left: 0; }

/* --- inner page header --------------------------------------------------- */
.page-head {
    padding: calc(var(--nav-h) + 56px) 0 44px;
    background: linear-gradient(180deg, var(--blue-50), #fff);
    text-align: center;
}
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: .6rem; }
.page-head p { max-width: 36rem; margin: 0 auto; }

/* --- field states -------------------------------------------------------- */
.field__hint { font-size: .78rem; color: var(--muted); margin-top: .35rem; }
.field__error { font-size: .78rem; color: var(--red); margin-top: .35rem; display: none; }
.field.has-error input, .field.has-error select { border-color: var(--red); }
.field.has-error .field__error { display: block; }
.notice--warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* --- buy page layout ----------------------------------------------------- */
.buy { padding: 52px 0 84px; }
.buy__grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 28px; align-items: start; }
.buy__form, .buy__summary {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 28px;
}
.buy__summary { position: sticky; top: calc(var(--nav-h) + 20px); }
.buy h2 { font-size: 1.15rem; margin-bottom: 1.25rem; }

/* network picker */
.net-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.net {
    border: 1px solid var(--line); border-radius: 10px; background: #fff;
    padding: 14px 6px; text-align: center; cursor: pointer; font: inherit;
    font-size: .78rem; font-weight: 700; color: var(--body);
    transition: border-color .2s, background .2s, transform .15s;
}
.net:hover { transform: translateY(-2px); border-color: #cbd5e1; }
.net.is-active { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-600); }
.net__dot { width: 26px; height: 26px; border-radius: 50%; margin: 0 auto 7px; display: block; }

/* plan picker */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.plan-opt {
    border: 1px solid var(--line); border-radius: 10px; background: #fff;
    padding: 13px 8px; text-align: center; cursor: pointer; font: inherit;
    transition: border-color .2s, background .2s, transform .15s;
}
.plan-opt:hover { transform: translateY(-2px); border-color: #cbd5e1; }
.plan-opt.is-active { border-color: var(--blue-600); background: var(--blue-50); }
.plan-opt b { display: block; font-size: 1rem; color: var(--ink); }
.plan-opt span { display: block; font-size: .78rem; color: var(--blue-600); font-weight: 600; }
.plan-opt small { display: block; font-size: .68rem; color: var(--muted); }

/* order summary */
.sum-row {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: .7rem 0; border-bottom: 1px solid #f1f5f9; font-size: .9rem;
}
.sum-row span { color: var(--body); }
.sum-row b { color: var(--ink); font-weight: 600; text-align: right; }
.sum-row--total { border-bottom: 0; padding-top: 1rem; font-size: 1.05rem; }
.sum-row--total b { color: var(--blue-600); font-weight: 800; font-size: 1.25rem; }

@media (max-width: 980px) {
    .buy__grid { grid-template-columns: 1fr; }
    .buy__summary { position: static; }
}
@media (max-width: 560px) {
    .net-grid { grid-template-columns: repeat(2, 1fr); }
    .buy__form, .buy__summary { padding: 24px 20px; }
}

/* ==========================================================================
   Admin
   ========================================================================== */
.admin-bar {
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
    justify-content: space-between; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 20px; font-size: .9rem; box-shadow: var(--shadow);
}
.price-input {
    width: 110px; padding: .45rem .6rem; font: inherit; font-size: .9rem;
    border: 1px solid var(--line); border-radius: 7px; text-align: right;
}
.price-input:focus {
    outline: none; border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.margin-good { color: var(--green); font-weight: 600; }
.margin-bad { color: var(--red); font-weight: 600; }
.admin-save {
    position: sticky; bottom: 0; margin-top: 2rem; padding: 16px 0;
    background: linear-gradient(180deg, rgba(255,255,255,0), #fff 35%);
    text-align: right;
}

/* provider routing options */
.mode-opt {
    display: flex; gap: .75rem; align-items: flex-start; cursor: pointer;
    border: 1px solid var(--line); border-radius: 10px;
    padding: 14px 16px; margin-bottom: 10px; transition: border-color .2s, background .2s;
}
.mode-opt:hover { border-color: #cbd5e1; }
.mode-opt:has(input:checked) { border-color: var(--blue-600); background: var(--blue-50); }
.mode-opt input { margin-top: .35rem; flex-shrink: 0; }
.mode-opt b { display: block; color: var(--ink); font-size: .95rem; margin-bottom: .2rem; }
.mode-opt span { font-size: .86rem; }

/* provider coverage chips in the admin price table */
.prov-chip {
    display: inline-block; font-size: .68rem; font-weight: 700;
    padding: .15rem .45rem; border-radius: 5px; margin-right: .25rem;
    background: var(--blue-50); color: var(--blue-600);
}
.prov-chip--warn { background: #fffbeb; color: #92400e; }

/* ==========================================================================
   Landing page — promo rotator, auth panel, trust rail
   ========================================================================== */

/* announcement strip above the nav */
.topbar {
    background: linear-gradient(90deg, var(--blue), var(--blue-600) 55%, #7c3aed);
    color: #fff; font-size: .8rem; text-align: center; padding: .55rem 20px;
    position: fixed; inset: 0 0 auto 0; z-index: 60; height: 36px;
}
.topbar b { font-weight: 700; }
.topbar span { opacity: .9; }
body.has-topbar { padding-top: 0; }
body.has-topbar .nav { top: 36px; }
body.has-topbar .hero { padding-top: calc(var(--nav-h) + 36px + 56px); }

/* ---- hero with advert rotator ---- */
.hero--promo { padding-bottom: 64px; }
.hero__grid--promo { grid-template-columns: 1.02fr .98fr; gap: 48px; }

.trust-rail { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.trust {
    display: inline-flex; align-items: center; gap: .35rem;
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: .3rem .8rem; font-size: .75rem; font-weight: 600; color: var(--body);
}
.trust i { font-style: normal; }

/* the rotating advert card */
.promo {
    position: relative; border-radius: 20px; overflow: hidden;
    box-shadow: var(--shadow-lg); min-height: 380px; background: var(--ink);
}
.promo__slide {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    justify-content: center; padding: 40px 36px; color: #fff;
    opacity: 0; transform: scale(1.04); transition: opacity .7s ease, transform .7s ease;
    pointer-events: none;
}
.promo__slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.promo__slide::after {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(circle at 78% 18%, rgba(255,255,255,.22), transparent 55%);
}
.promo__slide > * { position: relative; z-index: 1; }

.promo--data     { background: linear-gradient(135deg, #1e3a8a, #2563eb 60%, #3b82f6); }
.promo--airtime  { background: linear-gradient(135deg, #7f1d1d, #dc2626 60%, #f97316); }
.promo--cable    { background: linear-gradient(135deg, #4c1d95, #7c3aed 60%, #a855f7); }
.promo--bills    { background: linear-gradient(135deg, #064e3b, #059669 60%, #10b981); }

.promo__tag {
    align-self: flex-start; background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(6px);
    padding: .3rem .8rem; border-radius: 999px;
    font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    margin-bottom: 1rem;
}
.promo__slide h3 { color: #fff; font-size: clamp(1.5rem, 3.6vw, 2.1rem); line-height: 1.2; margin-bottom: .6rem; }
.promo__slide p { color: rgba(255,255,255,.9); font-size: .95rem; max-width: 26rem; margin-bottom: 1.4rem; }
.promo__price { display: flex; align-items: baseline; gap: .5rem; margin-bottom: 1.4rem; }
.promo__price b { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
.promo__price s { opacity: .65; font-size: 1rem; }
.promo__price em { font-style: normal; font-size: .85rem; opacity: .9; }
.promo__cta {
    align-self: flex-start; background: #fff; color: var(--ink);
    padding: .75rem 1.6rem; border-radius: 8px; font-weight: 700; font-size: .88rem;
    transition: transform .15s ease;
}
.promo__cta:hover { transform: translateY(-2px); }

.promo__dots { position: absolute; bottom: 20px; left: 36px; display: flex; gap: .4rem; z-index: 2; }
.promo__dot {
    width: 26px; height: 4px; border-radius: 2px; border: 0; cursor: pointer;
    background: rgba(255,255,255,.35); transition: background .3s;
}
.promo__dot.is-active { background: #fff; }

/* ---- auth entry panel ---- */
.gateway { background: var(--bg-alt); }
.gateway__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gate {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px 28px; text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.gate:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cbd5e1; }
.gate__icon {
    width: 56px; height: 56px; margin: 0 auto 1.1rem; border-radius: 16px;
    display: grid; place-items: center; font-size: 1.5rem;
    background: var(--blue-50); color: var(--blue-600);
}
.gate--signup .gate__icon { background: var(--green-50); color: var(--green); }
.gate--admin  .gate__icon { background: var(--red-50);   color: var(--red); }
.gate h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.gate p { font-size: .88rem; margin-bottom: 1.4rem; min-height: 3.2rem; }
.gate--admin { border-style: dashed; }

/* ---- featured deals ---- */
.deals { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.deal {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px 22px; position: relative; overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.deal:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.deal__net {
    display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; padding: .2rem .55rem; border-radius: 5px;
    background: var(--bg-alt); color: var(--body); margin-bottom: .9rem;
}
.deal__size { font-size: 1.9rem; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.deal__meta { font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.deal__price { font-size: 1.25rem; font-weight: 700; color: var(--blue-600); margin-bottom: 1rem; }

@media (max-width: 980px) {
    .gateway__grid { grid-template-columns: 1fr; }
    .hero__grid--promo { grid-template-columns: 1fr; }
    .promo { min-height: 320px; }
}
@media (max-width: 560px) {
    .topbar { font-size: .72rem; }
    .promo__slide { padding: 32px 24px; }
    .promo__dots { left: 24px; }
}

/* ==========================================================================
   Sign-in landing (index) — user / admin tabbed entry
   ========================================================================== */
.signin {
    min-height: 100vh; display: grid; place-items: center;
    padding: 40px 20px; position: relative; overflow: hidden;
    background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
}
.signin::before, .signin::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35;
}
.signin::before { width: 460px; height: 460px; background: #3b82f6; top: -160px; right: -120px; }
.signin::after  { width: 380px; height: 380px; background: #dc2626; bottom: -140px; left: -110px; }

.signin__inner { position: relative; z-index: 1; width: 100%; max-width: 430px; }

.signin__brand { text-align: center; margin-bottom: 22px; }
.signin__brand .logo { justify-content: center; color: #fff; font-size: 1.5rem; }
.signin__brand .logo__mark {
    width: 44px; height: 44px; font-size: 1.3rem;
    background: #fff; color: var(--blue-600);
}
.signin__brand .logo em { color: #fca5a5; }
.signin__brand p { color: rgba(255,255,255,.75); font-size: .88rem; margin-top: .5rem; }

.signin__card {
    background: #fff; border-radius: 16px; padding: 8px;
    box-shadow: 0 24px 60px rgba(0,0,0,.32);
}

/* tab switcher */
.switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg-alt); border-radius: 11px; padding: 4px; }
.switch button {
    border: 0; background: none; cursor: pointer; font: inherit;
    padding: .7rem .5rem; border-radius: 8px; font-size: .88rem; font-weight: 600;
    color: var(--body); transition: background .2s, color .2s, box-shadow .2s;
}
.switch button.is-active { background: #fff; color: var(--blue-600); box-shadow: var(--shadow); }
.switch button.is-active[data-pane="admin"] { color: var(--red); }

.pane { display: none; padding: 26px 24px 24px; }
.pane.is-active { display: block; animation: fade .25s ease; }
.pane h1 { font-size: 1.25rem; margin-bottom: .3rem; }
.pane > p { font-size: .86rem; margin-bottom: 1.4rem; }

.signin__foot { text-align: center; margin-top: 20px; font-size: .85rem; color: rgba(255,255,255,.75); }
.signin__foot a { color: #fff; font-weight: 600; text-decoration: underline; }

@media (max-width: 480px) {
    .pane { padding: 22px 18px 20px; }
}

/* ==========================================================================
   Customer dashboard
   ========================================================================== */
.dash { padding: calc(var(--nav-h) + 36px) 0 72px; background: var(--bg-alt); min-height: 100vh; }
.dash__top { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; margin-bottom: 22px; }
.dash__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; }

.balance-card {
    background: linear-gradient(135deg, var(--blue), var(--blue-600));
    color: #fff; border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow);
}
.balance-card small { font-size: .78rem; opacity: .85; }
.balance-card b { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; margin: .2rem 0 .5rem; }
.balance-card span { font-size: .82rem; opacity: .85; }

.fund-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px 26px; box-shadow: var(--shadow);
}
.fund-card h2 { font-size: 1.05rem; margin-bottom: 1rem; }
.fund-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .7rem 0; border-bottom: 1px solid #f1f5f9;
}
.fund-row:last-of-type { border-bottom: 0; }
.fund-row b { display: block; font-size: 1.15rem; color: var(--ink); letter-spacing: .04em; }
.fund-row span { font-size: .8rem; color: var(--muted); }

.status {
    display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase;
    padding: .15rem .45rem; border-radius: 5px; letter-spacing: .04em;
}
.status--delivered { background: var(--green-50); color: var(--green); }
.status--failed    { background: var(--red-50);   color: var(--red); }
.status--review    { background: #fffbeb;         color: #92400e; }
.status--pending   { background: var(--blue-50);  color: var(--blue-600); }

@media (max-width: 900px) {
    .dash__top, .dash__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Sign-in card page (index) — plain, centred, mobile-first
   ========================================================================== */
body.plain { background: #f0f1f3; }

.card-page {
    min-height: 100vh;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 28px 16px 40px;
}

.card-panel {
    width: 100%; max-width: 520px; background: #fff;
    border-radius: 6px; padding: 40px 32px 44px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

/* brand seal */
.card-logo { text-align: center; margin-bottom: 22px; }
.seal {
    display: inline-grid; place-items: center;
    width: 120px; height: 120px;
    background: var(--blue-600);
    color: #fff;
    /* hexagon, echoing a stamped seal */
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}
.seal__inner {
    display: grid; place-items: center; gap: 2px;
    width: 104px; height: 104px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .55);
}
.seal__inner b { font-size: 1.15rem; font-weight: 800; letter-spacing: .04em; line-height: 1; }
.seal__inner i { font-style: normal; font-size: .72rem; font-weight: 600; letter-spacing: .22em; opacity: .9; }

.card-title {
    text-align: center; font-size: 1.6rem; font-weight: 700;
    color: #2f3a4a; margin-bottom: 34px;
}

/* fields on this page are taller and plainer than the app default */
.card-panel .field { margin-bottom: 22px; }
.card-panel .field label {
    font-size: .98rem; font-weight: 500; color: #47525f; margin-bottom: .5rem;
}
.card-panel .field .req { color: inherit; }
.card-panel .field input {
    padding: .85rem .9rem; font-size: 1rem; border-radius: 4px; border-color: #cfd6de;
}
.card-panel .field input:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

.card-link { margin: -6px 0 22px; }
.card-link a { color: #2b7bd6; font-size: 1rem; }
.card-link a:hover { text-decoration: underline; }

.btn--brand {
    background: var(--blue-600); color: #fff;
    padding: .8rem 1.9rem; border-radius: 4px; font-size: 1rem; font-weight: 600;
}
.btn--brand:hover { background: var(--blue); }
.btn--admin {
    background: var(--red); color: #fff;
    padding: .8rem 1.9rem; border-radius: 4px; font-size: 1rem; font-weight: 600;
}
.btn--admin:hover { background: #b91c1c; }

.card-foot { margin-top: 34px; text-align: center; font-size: 1rem; color: #47525f; }
.card-foot a { color: #2b7bd6; font-weight: 500; }
.card-foot a:hover { text-decoration: underline; }

.card-switch { margin-top: 26px; text-align: center; font-size: .85rem; }
.card-switch a { color: var(--muted); }
.card-switch a:hover { color: var(--blue-600); text-decoration: underline; }

.is-hidden { display: none !important; }

@media (max-width: 560px) {
    .card-page { padding: 20px 12px 32px; }
    .card-panel { padding: 32px 22px 36px; border-radius: 4px; }
    .card-title { font-size: 1.45rem; margin-bottom: 28px; }
}

/* alerts on the card pages */
.alert {
    border-radius: 5px; padding: .8rem 1rem; font-size: .9rem;
    margin-bottom: 22px; border: 1px solid;
}
.alert--bad  { background: var(--red-50);   border-color: #fecaca; color: #991b1b; }
.alert--good { background: var(--green-50); border-color: #bbf7d0; color: #166534; }

/* the primary action on card pages is full width so it cannot be missed */
.card-panel .btn--block { margin-top: 4px; }

/* dashboard service panes */
.svc { display: none; }
.svc.is-active { display: block; animation: fade .2s ease; }

.quick-amounts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.quick-amounts button {
    border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit;
    font-size: .8rem; font-weight: 600; color: var(--body);
    padding: .35rem .7rem; border-radius: 999px; transition: all .15s;
}
.quick-amounts button:hover { border-color: var(--blue-600); color: var(--blue-600); }

/* admin stat tiles */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat-tile {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 22px; box-shadow: var(--shadow);
}
.stat-tile small { display: block; font-size: .76rem; color: var(--muted); font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.stat-tile b { display: block; font-size: 1.65rem; font-weight: 800; color: var(--ink); line-height: 1.15; }
.stat-tile span { display: block; font-size: .78rem; color: var(--muted); margin-top: .2rem; }

/* ==========================================================================
   Keep the primary action reachable on phones
   --------------------------------------------------------------------------
   The on-screen keyboard shrinks the visible viewport but 100vh does not
   shrink with it, so a submit button at the foot of a tall form ends up
   below the fold precisely while the user is typing. Two fixes:
     1. dvh, which DOES track the keyboard.
     2. the submit button sticks to the bottom of the viewport, so it is on
        screen the whole way down the form.
   ========================================================================== */

.card-page {
    min-height: 100vh;      /* fallback for older browsers */
    min-height: 100dvh;
}

.card-panel form { position: relative; }

.card-panel .btn--block {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    box-shadow: 0 6px 18px rgba(26, 115, 232, .32), 0 0 0 8px #fff;
}
.card-panel .btn--admin.btn--block {
    box-shadow: 0 6px 18px rgba(220, 38, 38, .32), 0 0 0 8px #fff;
}

/* a focused input must never sit under the sticky button */
.card-panel .field input { scroll-margin-bottom: 96px; }

/* room for the sticky button to rest against */
.card-panel { padding-bottom: 28px; }
.card-foot { padding-bottom: 4px; }

/* dashboard purchase buttons get the same treatment on small screens */
@media (max-width: 700px) {
    .buy__form form .btn--block,
    .panel form .ui-btn--block {
        position: sticky;
        bottom: 12px;
        z-index: 5;
        box-shadow: 0 6px 18px rgba(26, 115, 232, .3), 0 0 0 8px var(--bg-alt, #f8fafc);
    }
}
