/* ==========================================================================
   CRD-GR API SELL — 2026 UI system
   Light editorial-tech theme. Local fonts only.
   ========================================================================== */

@font-face {
    font-family: "Hind Siliguri";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/hind-siliguri-400.ttf") format("truetype");
}
@font-face {
    font-family: "Hind Siliguri";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/hind-siliguri-500.ttf") format("truetype");
}
@font-face {
    font-family: "Hind Siliguri";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/hind-siliguri-600.ttf") format("truetype");
}
@font-face {
    font-family: "Hind Siliguri";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/hind-siliguri-700.ttf") format("truetype");
}

:root {
    --ink: #10241b;
    --ink-soft: #2a4035;
    --muted: #5c7166;
    --muted-2: #8aa094;
    --line: #dce6dc;
    --line-soft: #eaf1e8;
    --bg: #f2f6ef;
    --bg-soft: #f7faf4;
    --card: #ffffff;
    --brand: #0e7a5a;
    --brand-dark: #0a6248;
    --brand-deep: #073c2c;
    --brand-soft: #d3f3e5;
    --brand-tint: #ecfbf4;
    --lime: #d3f56f;
    --lime-soft: #f3ffd3;
    --forest: #0a2b20;
    --forest-2: #0e3a2b;
    --blue: #2563eb;
    --blue-soft: #dbeafe;
    --amber: #b45309;
    --amber-soft: #fef3c7;
    --red: #d92d20;
    --red-soft: #fee4e2;
    --green: #067647;
    --green-soft: #d1fadf;
    --sidebar: #fbfdf8;
    --sidebar-2: #f0f7ee;
    --sidebar-line: #e2ebe2;
    --shadow-sm: 0 1px 2px rgba(16, 36, 27, 0.04), 0 2px 6px rgba(16, 36, 27, 0.04);
    --shadow: 0 24px 60px -28px rgba(16, 36, 27, 0.28);
    --shadow-lg: 0 40px 110px -40px rgba(7, 60, 44, 0.45);
    --radius: 20px;
    --radius-sm: 13px;
    --radius-lg: 30px;
    --sidebar-w: 272px;
    --topbar-h: 72px;
    --font: "Hind Siliguri", "Segoe UI", system-ui, -apple-system, sans-serif;
    --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

a {
    color: var(--brand-dark);
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

a:hover {
    color: var(--brand);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 10px;
    font-weight: 700;
    line-height: 1.32;
    color: var(--ink);
}

h1 { font-size: clamp(32px, 4.4vw, 58px); }
h2 { font-size: clamp(24px, 3vw, 38px); }
h3 { font-size: 16px; }
h4 { font-size: 14px; }

p {
    margin: 0 0 12px;
}

p:last-child,
ul:last-child,
ol:last-child {
    margin-bottom: 0;
}

ul, ol {
    margin: 0 0 12px;
    padding-left: 22px;
}

code, pre, .mono {
    font-family: var(--mono);
    font-variant-ligatures: none;
}

pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

::selection {
    background: var(--lime);
    color: var(--forest);
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Utilities
   ----------------------------------------------------------------------- */

.section {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 84px 24px;
}

.section-tight {
    padding-top: 56px;
    padding-bottom: 56px;
}

.section-head {
    max-width: 660px;
    margin-bottom: 38px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head h2 {
    margin: 12px 0 10px;
    letter-spacing: -0.01em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.8;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
}

.eyebrow .icon {
    width: 15px;
    height: 15px;
}

.mini-title {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
}

.gradient-text {
    color: var(--lime);
}

.text-muted { color: var(--muted) !important; }
.text-brand { color: var(--brand) !important; }
.text-green { color: var(--green) !important; }
.text-red { color: var(--red) !important; }
.text-center { text-align: center; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.strong { font-weight: 600; color: var(--ink); }
.center { text-align: center; }
.hidden { display: none !important; }
.no-print { }
.mb-2 { margin-bottom: 18px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }

.divider {
    height: 1px;
    margin: 18px 0;
    background: var(--line);
}

.icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.icon-sm {
    width: 14px;
    height: 14px;
}

.sub {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted);
    font-weight: 400;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: var(--muted);
}

.back-link .icon {
    transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Brand
   ----------------------------------------------------------------------- */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    line-height: 1.1;
}

.brand:hover {
    color: var(--ink);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: var(--forest);
    color: var(--lime);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    flex: 0 0 auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-text strong {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand-text small {
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.brand-light {
    color: #fff;
}

.brand-light:hover {
    color: #fff;
}

.brand-light .brand-mark {
    background: var(--lime);
    color: var(--forest);
}

.brand-light .brand-text small {
    color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   Buttons & icon buttons
   ----------------------------------------------------------------------- */

.btn {
    --btn-bg: var(--forest);
    --btn-fg: #fff;
    --btn-border: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid var(--btn-border);
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
    color: var(--btn-fg);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn .icon {
    width: 16px;
    height: 16px;
}

.btn-primary {
    --btn-bg: var(--brand);
    --btn-fg: #ffffff;
    box-shadow: 0 10px 24px -12px rgba(14, 122, 90, 0.65);
}

.btn-primary:hover {
    --btn-bg: var(--brand-dark);
    box-shadow: 0 14px 30px -12px rgba(14, 122, 90, 0.7);
}

.btn-dark {
    --btn-bg: var(--forest);
    --btn-fg: #fff;
}

.btn-outline {
    --btn-bg: transparent;
    --btn-fg: var(--ink);
    --btn-border: var(--line);
}

.btn-outline:hover {
    --btn-bg: var(--bg-soft);
    --btn-border: #c8d8c9;
}

.btn-outline-light {
    --btn-bg: rgba(255, 255, 255, 0.06);
    --btn-fg: #f7fff9;
    --btn-border: rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
    --btn-bg: rgba(255, 255, 255, 0.14);
    --btn-border: rgba(255, 255, 255, 0.45);
}

.btn-soft {
    --btn-bg: var(--brand-tint);
    --btn-fg: var(--brand-dark);
    --btn-border: transparent;
}

.btn-soft:hover {
    --btn-bg: var(--brand-soft);
}

.btn-danger {
    --btn-bg: var(--red);
    --btn-fg: #fff;
}

.btn-danger-soft {
    --btn-bg: var(--red-soft);
    --btn-fg: var(--red);
}

.btn-lg {
    min-height: 52px;
    padding: 13px 28px;
    font-size: 15px;
}

.btn-sm {
    min-height: 38px;
    padding: 8px 15px;
    font-size: 12.5px;
}

.btn-xs {
    min-height: 32px;
    padding: 5px 11px;
    font-size: 11.5px;
    gap: 5px;
}

.btn-xs .icon {
    width: 13px;
    height: 13px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--card);
    color: var(--ink-soft);
    flex: 0 0 auto;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.icon-button:hover {
    background: var(--brand-tint);
    border-color: var(--brand-soft);
    color: var(--brand-dark);
}

.icon-button .icon {
    width: 19px;
    height: 19px;
}

.copy-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--card);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.copy-button:hover,
.copy-button.copied {
    border-color: var(--brand-soft);
    background: var(--brand-tint);
    color: var(--brand-dark);
}

.copy-button .icon {
    width: 15px;
    height: 15px;
}

.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--forest);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 18px 40px -18px rgba(7, 25, 18, 0.65);
    opacity: 0;
    transform: translate(-50%, 10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.copy-toast .icon {
    width: 14px;
    height: 14px;
    color: var(--lime);
}

/* --------------------------------------------------------------------------
   Badges & alerts
   ----------------------------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--line-soft);
    color: var(--ink-soft);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    vertical-align: middle;
}

.badge .icon {
    width: 12px;
    height: 12px;
}

.badge-good,
.badge-success {
    background: var(--green-soft);
    color: #05603a;
}

.badge-bad,
.badge-danger {
    background: var(--red-soft);
    color: #b42318;
}

.badge-info {
    background: var(--brand-tint);
    color: var(--brand-dark);
}

.badge-muted {
    background: #eef2ec;
    color: #56685c;
}

.badge-warning {
    background: var(--amber-soft);
    color: #93370d;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.65;
    box-shadow: var(--shadow-sm);
}

.alert > .icon {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.alert > span {
    flex: 1;
    min-width: 0;
}

.alert-success {
    border-color: #b7ebc9;
    background: #f2fdf6;
    color: #05603a;
}

.alert-error {
    border-color: #f7c9c5;
    background: #fff6f5;
    color: #b42318;
}

.alert-info {
    border-color: #c9e8dc;
    background: var(--brand-tint);
    color: #095c44;
}

.alert-warning {
    border-color: #f3dcae;
    background: #fffbf0;
    color: #93370d;
}

.alert-close {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: -3px -4px -3px 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: currentColor;
    opacity: 0.65;
    flex: 0 0 auto;
}

.alert-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.06);
}

.alert-close .icon {
    width: 15px;
    height: 15px;
}

/* --------------------------------------------------------------------------
   Forms
   ----------------------------------------------------------------------- */

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.field > label,
.field-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
}

.input,
.select,
.textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.input::placeholder,
.textarea::placeholder {
    color: var(--muted-2);
}

.input:hover,
.select:hover,
.textarea:hover {
    border-color: #c9d8ca;
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: 0;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(14, 122, 90, 0.11);
}

.textarea {
    min-height: 104px;
    resize: vertical;
}

.select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c7166' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
}

.input[type="file"] {
    padding: 8px 12px;
    font-size: 12.5px;
    cursor: pointer;
}

.input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 7px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--brand-tint);
    color: var(--brand-dark);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group .input {
    padding-right: 46px;
}

.input-suffix {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
}

.input-suffix:hover {
    color: var(--brand-dark);
    background: var(--brand-tint);
}

.input-suffix .icon {
    width: 17px;
    height: 17px;
}

.hint {
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--muted);
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--ink-soft);
    cursor: pointer;
}

.checkbox input[type="checkbox"],
.check-row input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 3px 0 0;
    accent-color: var(--brand);
    flex: 0 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 200px;
}

.search-box .icon {
    position: absolute;
    left: 13px;
    width: 16px;
    height: 16px;
    color: var(--muted-2);
    pointer-events: none;
}

.search-box .input {
    padding-left: 38px;
    min-height: 42px;
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--card);
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-pills a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
}

.filter-pills a:hover,
.filter-pills a.active {
    background: var(--forest);
    color: #fff;
}

.code-inline {
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--brand-tint);
    color: var(--brand-dark);
    font-size: 0.88em;
    font-weight: 500;
    word-break: break-word;
}
/* --------------------------------------------------------------------------
   Public shell & navigation
   ----------------------------------------------------------------------- */

.public-body {
    background: var(--bg-soft);
    color: var(--ink);
}

.public-ribbon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 34px;
    padding: 6px 16px;
    background: var(--forest);
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: center;
}

.public-ribbon strong {
    color: var(--lime);
    font-weight: 600;
}

.public-ribbon .icon {
    width: 13px;
    height: 13px;
    color: var(--lime);
}

.public-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 250, 244, 0.88);
    border-bottom: 1px solid rgba(220, 230, 220, 0.9);
    backdrop-filter: blur(16px) saturate(1.1);
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 1180px;
    min-height: 74px;
    margin: 0 auto;
    padding: 10px 24px;
}

.public-nav .brand {
    margin-right: 4px;
}

.public-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.public-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 500;
}

.public-links a:hover {
    background: #e9f2e5;
    color: var(--brand-deep);
}

.public-links a.active {
    background: var(--forest);
    color: #fff;
}

.public-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.public-login {
    padding: 8px 12px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 600;
}

.public-login:hover {
    color: var(--brand);
}

.public-menu {
    display: none;
    margin-left: auto;
}

.public-mobile-menu {
    display: none;
    padding: 8px 18px 18px;
    border-top: 1px solid var(--line);
    background: rgba(247, 250, 244, 0.98);
    box-shadow: 0 20px 30px -20px rgba(16, 36, 27, 0.3);
}

.public-mobile-menu.open {
    display: block;
}

.public-mobile-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 10px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 500;
}

.public-mobile-menu a:last-child {
    border-bottom: 0;
}

.public-mobile-menu a:hover {
    background: var(--brand-tint);
    color: var(--brand-dark);
}

.public-alerts {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 24px 0;
}

/* --------------------------------------------------------------------------
   Hero
   ----------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--forest);
    color: #e8f3ea;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(760px 460px at 82% 12%, rgba(211, 245, 111, 0.15), transparent 62%),
        radial-gradient(620px 420px at 8% 88%, rgba(14, 122, 90, 0.4), transparent 66%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%);
    z-index: -1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 20%, transparent 75%);
    z-index: -1;
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    align-items: center;
    gap: 52px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 78px 24px 88px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border: 1px solid rgba(211, 245, 111, 0.32);
    border-radius: 999px;
    background: rgba(211, 245, 111, 0.09);
    color: var(--lime);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero-kicker .icon {
    width: 14px;
    height: 14px;
}

.hero h1 {
    margin: 20px 0 18px;
    color: #fff;
    font-size: clamp(34px, 4.6vw, 58px);
    line-height: 1.24;
    letter-spacing: -0.02em;
}

.hero-sub {
    max-width: 550px;
    margin: 0 0 26px;
    color: #b9cdbd;
    font-size: 15.5px;
    line-height: 1.85;
}

.hero-sub .code-inline {
    background: rgba(255, 255, 255, 0.09);
    color: var(--lime);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 18px;
    color: #93ac9a;
    font-size: 12px;
    line-height: 1.6;
}

.hero-note .icon {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    color: var(--lime);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-trust-item {
    padding-right: 26px;
    margin-right: 26px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-trust-item:last-child {
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
}

.hero-trust-item strong {
    display: block;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.hero-trust-item span {
    color: #8fa795;
    font-size: 11px;
}

.hero-visual {
    position: relative;
    min-width: 0;
}

.hero-glow {
    position: absolute;
    inset: -18% -10% -14%;
    background: radial-gradient(closest-side, rgba(211, 245, 111, 0.17), transparent 72%);
    filter: blur(10px);
    pointer-events: none;
}

.console {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: #061d15;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transform: rotate(-0.6deg);
}

.console-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
}

.console-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #3c5147;
}

.console-dot.red { background: #ef7468; }
.console-dot.amber { background: #e7b45b; }
.console-dot.green { background: #66c98b; }

.console-title {
    margin-left: 8px;
    color: #8fa79a;
    font-family: var(--mono);
    font-size: 10.5px;
}

.console-body {
    padding: 18px 18px 20px;
    color: #cfe4d5;
    font-family: var(--mono);
    font-size: 11.5px;
    line-height: 1.95;
}

.code-line {
    white-space: pre-wrap;
    word-break: break-word;
}

.code-key { color: #8ecdf2; }
.code-str { color: var(--lime); }
.code-num { color: #f6c177; }
.code-bool { color: #f49ac1; }

.console-response {
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.console-response-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.console-badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(102, 201, 139, 0.13);
    color: #8be0aa;
    font-size: 9.5px;
    font-weight: 600;
}

.console-time {
    color: #6f8678;
    font-size: 9.5px;
}

.console-user {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
    font-family: var(--font);
}

.console-avatar {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--lime);
    color: var(--forest);
    font-size: 13px;
    font-weight: 700;
    flex: 0 0 auto;
}

.console-user strong {
    display: block;
    color: #eaf5ec;
    font-size: 11.5px;
    line-height: 1.35;
}

.console-user small {
    display: block;
    color: #7f9788;
    font-size: 9.5px;
}

.floating-card {
    position: absolute;
    right: -12px;
    bottom: -28px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 158px;
    padding: 14px 16px;
    border: 1px solid rgba(220, 230, 220, 0.9);
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 26px 50px -22px rgba(0, 0, 0, 0.45);
}

.floating-card small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
}

.floating-card strong {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
}

.floating-card .badge {
    align-self: flex-start;
    margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Metrics strip
   ----------------------------------------------------------------------- */

.metrics-strip {
    position: relative;
    z-index: 2;
    margin-top: -1px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.metrics-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.metric-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 24px 22px;
    border-right: 1px solid var(--line-soft);
}

.metric-item:first-child { padding-left: 0; }
.metric-item:last-child { border-right: 0; padding-right: 0; }

.metric-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--lime-soft);
    color: var(--brand-deep);
    flex: 0 0 auto;
}

.metric-icon .icon {
    width: 18px;
    height: 18px;
}

.metric-item strong {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.metric-item span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Service catalogue cards
   ----------------------------------------------------------------------- */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: #c7dcc9;
    box-shadow: 0 22px 46px -24px rgba(16, 36, 27, 0.28);
}

.service-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.service-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--forest);
    color: var(--lime);
    flex: 0 0 auto;
}

.service-icon .icon {
    width: 21px;
    height: 21px;
}

.service-price {
    text-align: right;
    line-height: 1.3;
}

.service-price strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}

.service-price span {
    color: var(--muted);
    font-size: 10px;
}

.service-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.service-card > p {
    flex: 1;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.7;
}

.service-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.service-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
}

.service-foot > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 10.5px;
}

.service-foot .icon {
    width: 13px;
    height: 13px;
}

.service-foot a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-dark);
}

.service-foot a .icon {
    transition: transform 0.18s ease;
}

.service-foot a:hover .icon {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Steps, about, features
   ----------------------------------------------------------------------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.step-card {
    position: relative;
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-sm);
}

.step-num {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--lime);
    color: var(--forest);
    font-size: 17px;
    font-weight: 700;
}

.step-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.step-card p {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.75;
}

.step-card::after {
    display: none;
}

.about-band {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #edf5e9, #f4f8f0);
}

.about-band .section {
    padding-top: 66px;
    padding-bottom: 66px;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 20px;
    align-items: stretch;
}

.about-panel {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border-radius: var(--radius);
    background: var(--forest);
    color: #e7f2e9;
    box-shadow: 0 30px 60px -34px rgba(10, 43, 32, 0.7);
}

.about-panel::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -110px;
    bottom: -130px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(211, 245, 111, 0.28), transparent 70%);
    pointer-events: none;
}

.about-panel .mini-title {
    color: var(--lime);
}

.about-panel h3 {
    margin: 10px 0 20px;
    color: #fff;
    font-size: 22px;
}

.about-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #bdd0c2;
    font-size: 12.5px;
    line-height: 1.65;
}

.check-dot {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: rgba(211, 245, 111, 0.14);
    color: var(--lime);
    flex: 0 0 auto;
}

.check-dot .icon {
    width: 12px;
    height: 12px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--brand-dark);
    flex: 0 0 auto;
}

.feature-icon .icon {
    width: 18px;
    height: 18px;
}

.feature-item strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
    font-weight: 700;
}

.feature-item p {
    margin: 0;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Pricing
   ----------------------------------------------------------------------- */

.pricing-section {
    position: relative;
    overflow: hidden;
    background: var(--forest);
    color: #dfeae2;
}

.pricing-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(720px 420px at 88% 4%, rgba(211, 245, 111, 0.13), transparent 64%),
        radial-gradient(560px 380px at 4% 100%, rgba(14, 122, 90, 0.35), transparent 70%);
    pointer-events: none;
}

.pricing-section .section {
    position: relative;
    padding-top: 78px;
    padding-bottom: 82px;
}

.pricing-section .section-head p {
    color: #9db2a3;
}

.pricing-section .eyebrow {
    color: var(--lime);
}

.pricing-section h2 {
    color: #fff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.price-card {
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(10px);
    color: #dbe7de;
}

.price-card h3 {
    margin: 0;
    color: #fff;
    font-size: 17px;
}

.price-card.featured {
    border-color: var(--lime);
    background: var(--lime);
    color: var(--forest);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.45);
}

.price-card.featured h3 {
    color: var(--forest);
}

.price-card.featured .price-amount strong,
.price-card.featured .price-amount span {
    color: var(--forest);
}

.price-card.featured > p {
    color: #3c573f;
}

.price-card.featured .price-features li {
    color: #2f4a34;
}

.price-card.featured .badge {
    background: var(--forest);
    color: var(--lime);
}

.price-card.featured .btn-primary {
    --btn-bg: var(--forest);
    --btn-fg: #fff;
}

.price-card > p {
    color: #9fb4a5;
    font-size: 12.5px;
    line-height: 1.7;
}

.price-amount {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 14px 0 10px;
}

.price-amount strong {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.price-amount span {
    color: #93a99a;
    font-size: 11px;
}

.price-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 16px 0 22px;
    padding: 0;
    list-style: none;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b8cbbb;
    font-size: 12px;
}

.price-features .icon {
    width: 14px;
    height: 14px;
    color: var(--lime);
}

.price-card.featured .price-features .icon {
    color: var(--brand-dark);
}

.price-card .btn {
    width: 100%;
}

/* --------------------------------------------------------------------------
   FAQ
   ----------------------------------------------------------------------- */

.faq-section {
    padding-top: 70px;
    padding-bottom: 70px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 940px;
    margin: 0 auto;
    align-items: start;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.faq-item[open] {
    border-color: #c7dcc9;
    box-shadow: 0 18px 38px -30px rgba(16, 36, 27, 0.35);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-icon {
    width: 16px;
    height: 16px;
    color: var(--brand);
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-item > p {
    margin: 0;
    padding: 0 18px 17px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

/* --------------------------------------------------------------------------
   CTA band
   ----------------------------------------------------------------------- */

.cta-band {
    padding: 64px 0;
    background: var(--bg-soft);
}

.cta-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    overflow: hidden;
    padding: 44px 46px;
    border-radius: var(--radius-lg);
    background: var(--lime);
    color: var(--forest);
    box-shadow: 0 26px 60px -42px rgba(10, 43, 32, 0.7);
}

.cta-box::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    right: -130px;
    top: -170px;
    border: 44px solid rgba(10, 43, 32, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

.cta-box > div {
    position: relative;
    max-width: 640px;
}

.cta-box .eyebrow {
    color: var(--brand-deep);
}

.cta-box h2 {
    margin: 10px 0 8px;
    color: var(--forest);
    font-size: clamp(24px, 3vw, 36px);
}

.cta-box p {
    margin: 0;
    color: #3f5a42;
    font-size: 13.5px;
    line-height: 1.7;
}

.cta-box .btn {
    position: relative;
    flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Public footer
   ----------------------------------------------------------------------- */

.public-footer {
    background: var(--forest);
    color: #a9bdb0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
    gap: 36px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 58px 24px 42px;
}

.footer-grid .brand {
    margin-bottom: 14px;
}

.footer-copy {
    max-width: 320px;
    margin-bottom: 16px;
    color: #91a798;
    font-size: 12.5px;
    line-height: 1.75;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid rgba(211, 245, 111, 0.24);
    border-radius: 999px;
    color: var(--lime);
    font-size: 10px;
    font-weight: 500;
}

.footer-badge .icon {
    width: 12px;
    height: 12px;
}

.footer-grid h4 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-grid > div > a:not(.brand) {
    display: block;
    margin-bottom: 9px;
    color: #a6baac;
    font-size: 12.5px;
}

.footer-grid > div > a:not(.brand):hover {
    color: var(--lime);
}

.footer-grid > div > span {
    display: block;
    margin-bottom: 9px;
    color: #94aa9b;
    font-size: 12.5px;
    word-break: break-word;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 24px 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: #7e9486;
    font-size: 11px;
}

/* --------------------------------------------------------------------------
   Auth pages
   ----------------------------------------------------------------------- */

.auth-page {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    min-height: 100vh;
    min-height: 100svh;
    background: var(--bg-soft);
}

.auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 38px 44px 30px;
    background: var(--forest);
    color: #dce9df;
    isolation: isolate;
}

.auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(620px 480px at 84% 10%, rgba(211, 245, 111, 0.17), transparent 64%),
        radial-gradient(520px 420px at 0% 100%, rgba(14, 122, 90, 0.38), transparent 70%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 44%);
    z-index: -1;
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
    z-index: -1;
    pointer-events: none;
}

.auth-visual-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    max-width: 430px;
    padding: 40px 0;
}

.auth-visual-copy h1 {
    margin: 20px 0 16px;
    color: #fff;
    font-size: clamp(32px, 3.4vw, 46px);
    line-height: 1.24;
}

.auth-visual-copy h1 span {
    color: var(--lime);
}

.auth-visual-copy > p {
    margin-bottom: 26px;
    color: #a9bdb0;
    font-size: 13.5px;
    line-height: 1.8;
}

.auth-quote {
    max-width: 390px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(8px);
}

.auth-quote > p {
    margin-bottom: 14px;
    color: #d7e5da;
    font-size: 12.5px;
    line-height: 1.7;
}

.auth-quote-user {
    display: flex;
    align-items: center;
    gap: 9px;
}

.auth-quote-user strong {
    display: block;
    color: #fff;
    font-size: 11.5px;
    line-height: 1.4;
}

.auth-quote-user span span {
    display: block;
    color: #8da496;
    font-size: 10px;
}

.auth-visual-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #7f9688;
    font-size: 10.5px;
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 38px 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 30px 70px -44px rgba(16, 36, 27, 0.35);
}

.auth-card > .brand {
    margin-bottom: 26px;
}

.auth-heading {
    margin-bottom: 20px;
}

.auth-heading h2 {
    margin: 0 0 4px;
    font-size: 25px;
    letter-spacing: -0.02em;
}

.auth-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
}

.auth-form {
    margin-top: 6px;
}

.auth-form .btn-block {
    margin-top: 4px;
}

.auth-alt {
    margin-top: 18px;
    color: var(--muted);
    font-size: 12.5px;
    text-align: center;
}

.auth-alt a {
    font-weight: 600;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}

.auth-links a {
    color: var(--muted);
    font-size: 11.5px;
}

.auth-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 11.5px;
}

.auth-back .icon {
    width: 13px;
    height: 13px;
    transform: rotate(180deg);
}

.auth-page.admin-auth .auth-visual {
    background: #0a1c28;
}
/* --------------------------------------------------------------------------
   Public inner pages
   ----------------------------------------------------------------------- */

.docs-hero {
    position: relative;
    overflow: hidden;
    background: var(--forest);
    color: #dce9df;
    isolation: isolate;
}

.docs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(700px 420px at 86% 0%, rgba(211, 245, 111, 0.16), transparent 64%),
        radial-gradient(520px 360px at 0% 100%, rgba(14, 122, 90, 0.38), transparent 70%);
    z-index: -1;
}

.docs-hero .section {
    padding-top: 62px;
    padding-bottom: 58px;
}

.docs-hero h1 {
    margin: 14px 0 12px;
    color: #fff;
    font-size: clamp(30px, 3.8vw, 46px);
}

.docs-hero p {
    max-width: 760px;
    margin: 0;
    color: #aec2b3;
    font-size: 14.5px;
    line-height: 1.85;
}

.docs-hero p .code-inline {
    background: rgba(255, 255, 255, 0.09);
    color: var(--lime);
}

.docs-hero .eyebrow {
    color: var(--lime);
}

.docs-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.docs-section {
    padding-top: 42px;
    padding-bottom: 66px;
}

.docs-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.docs-toc a {
    display: inline-flex;
    align-items: center;
    min-height: 33px;
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.docs-toc a:hover {
    border-color: var(--brand-soft);
    background: var(--brand-tint);
    color: var(--brand-dark);
}

.docs-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 336px;
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}

.docs-layout > div:last-child {
    position: sticky;
    top: 92px;
}

.docs-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    padding-left: 19px;
    color: var(--ink-soft);
    font-size: 12.5px;
    line-height: 1.7;
}

.docs-list li::marker {
    color: var(--brand);
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.api-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.api-card:hover {
    transform: translateY(-3px);
    border-color: #c7dcc9;
    box-shadow: 0 22px 46px -26px rgba(16, 36, 27, 0.28);
}

.api-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.api-card-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-tint);
    color: var(--brand-dark);
    flex: 0 0 auto;
}

.api-card-icon .icon {
    width: 19px;
    height: 19px;
}

.api-price {
    text-align: right;
    line-height: 1.3;
}

.api-price strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
}

.api-price span {
    color: var(--muted);
    font-size: 10px;
}

.api-card h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.api-card > p {
    flex: 1;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.api-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
}

.api-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

.api-card-foot > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 10px;
}

.api-card-foot .icon {
    width: 12px;
    height: 12px;
}

.api-card-foot a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--brand-dark);
}

.api-card-foot a .icon {
    width: 13px;
    height: 13px;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.search-category,
.search-nid {
    flex: 1;
    min-width: 140px;
}

/* --------------------------------------------------------------------------
   App shell
   ----------------------------------------------------------------------- */

.app-body {
    background: var(--bg);
    font-size: 14px;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-w);
    padding: 18px 14px 14px;
    overflow-y: auto;
    background: linear-gradient(180deg, var(--sidebar), #f5faf2);
    border-right: 1px solid var(--sidebar-line);
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 6px 16px;
}

.sidebar-close {
    display: none;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    padding: 2px 0 14px;
}

.nav-label {
    margin: 16px 12px 6px;
    color: var(--muted-2);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nav-label:first-child {
    margin-top: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 41px;
    padding: 9px 12px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #3c5145;
    font-family: var(--font);
    font-size: 12.8px;
    font-weight: 500;
    text-align: left;
    width: 100%;
}

.nav-link .icon {
    width: 17px;
    height: 17px;
    color: #6c8275;
}

.nav-link:hover {
    background: #edf5e9;
    color: var(--brand-deep);
}

.nav-link:hover .icon {
    color: var(--brand-dark);
}

.nav-link.active {
    background: var(--forest);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 22px -14px rgba(10, 43, 32, 0.55);
}

.nav-link.active .icon {
    color: var(--lime);
}

.nav-logout {
    color: #7a574f;
}

.nav-logout:hover {
    background: var(--red-soft);
    color: var(--red);
}

.nav-logout:hover .icon {
    color: var(--red);
}

.sidebar-callout {
    margin-top: auto;
    padding: 15px;
    border: 1px solid #dbe8d5;
    border-radius: 15px;
    background: linear-gradient(160deg, #f3ffd8, #eaf7e4);
}

.callout-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 9px;
    border-radius: 9px;
    background: var(--forest);
    color: var(--lime);
}

.callout-icon .icon {
    width: 16px;
    height: 16px;
}

.sidebar-callout strong {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
    font-weight: 700;
}

.sidebar-callout p {
    margin: 0;
    color: #61745f;
    font-size: 10.5px;
    line-height: 1.6;
}

.sidebar-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--sidebar-line);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 7px;
    border-radius: 11px;
}

.sidebar-user:hover {
    background: #edf5e9;
}

.avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-size: 15px;
    font-weight: 700;
    flex: 0 0 auto;
}

.avatar-sm {
    width: 33px;
    height: 33px;
    font-size: 13px;
}

.sidebar-user-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.sidebar-user-text strong {
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-text small {
    overflow: hidden;
    color: var(--muted);
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-form {
    margin-top: 4px;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(7, 25, 18, 0.46);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sidebar-backdrop.open {
    display: block;
    opacity: 1;
}

.app-main {
    display: flex;
    flex-direction: column;
    width: calc(100% - var(--sidebar-w));
    min-height: 100vh;
    margin-left: var(--sidebar-w);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--topbar-h);
    padding: 10px 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(242, 246, 239, 0.86);
    backdrop-filter: blur(16px) saturate(1.05);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sidebar-toggle {
    display: none;
}

.topbar-left h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.topbar-left p {
    margin: 1px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.balance-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 6px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.balance-chip > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 9.5px;
}

.balance-chip .icon {
    width: 13px;
    height: 13px;
}

.balance-chip strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-dark);
}

.balance-chip:hover {
    border-color: var(--brand-soft);
    background: var(--brand-tint);
}

.panel-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--forest);
    color: var(--lime);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.panel-chip .icon {
    width: 13px;
    height: 13px;
}

.top-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--lime);
    font-size: 15px;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: var(--shadow-sm);
    flex: 0 0 auto;
}

.top-avatar:hover {
    color: var(--lime);
    transform: translateY(-1px);
}

.content {
    flex: 1;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 26px 28px 40px;
}

.app-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    padding: 15px 28px 22px;
    color: var(--muted);
    font-size: 10.5px;
}

.app-footer a {
    margin-left: auto;
    font-weight: 600;
    color: var(--brand-dark);
}

.footer-dot {
    color: var(--muted-2);
}

.mobile-tabbar {
    display: none;
}

/* --------------------------------------------------------------------------
   Page header
   ----------------------------------------------------------------------- */

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.page-head h2 {
    margin: 0 0 2px;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-head p {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55;
}

.page-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* --------------------------------------------------------------------------
   Cards
   ----------------------------------------------------------------------- */

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-sm);
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--line-soft);
}

.card-head > div {
    min-width: 0;
}

.card-head h3 {
    margin: 0 0 2px;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
}

.card-head p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.card-head > a {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--brand-dark);
}

.card-head > a .icon {
    width: 13px;
    height: 13px;
}

.card-body {
    padding: 20px;
}

.card-body.flush {
    padding: 0;
}

.card > p,
.card > h3 {
    margin-left: 20px;
    margin-right: 20px;
}

.card > p:first-child,
.card > h3:first-child {
    margin-top: 20px;
}

/* --------------------------------------------------------------------------
   Stats & welcome
   ----------------------------------------------------------------------- */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
}

.stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--brand-tint);
    color: var(--brand-dark);
    flex: 0 0 auto;
}

.stat-icon .icon {
    width: 16px;
    height: 16px;
}

.stat-icon.blue {
    background: var(--blue-soft);
    color: var(--blue);
}

.stat-icon.amber {
    background: var(--amber-soft);
    color: var(--amber);
}

.stat-icon.red {
    background: var(--red-soft);
    color: var(--red);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.stat-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.stat-meta .icon {
    width: 11px;
    height: 11px;
}

.stat-meta.good {
    color: var(--green);
}

.welcome-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 22px;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 26px 28px;
    border-radius: 24px;
    background: var(--forest);
    color: #dce9df;
    box-shadow: 0 30px 60px -34px rgba(10, 43, 32, 0.62);
    isolation: isolate;
}

.welcome-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(520px 300px at 92% 0%, rgba(211, 245, 111, 0.18), transparent 62%),
        radial-gradient(420px 260px at 0% 120%, rgba(14, 122, 90, 0.4), transparent 70%);
    z-index: -1;
}

.welcome-card h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.welcome-card h2 span {
    color: var(--lime);
}

.welcome-card p {
    max-width: 520px;
    margin: 0;
    color: #a8bdad;
    font-size: 12.5px;
    line-height: 1.7;
}

.welcome-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.welcome-meta > div {
    padding-right: 24px;
    margin-right: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-meta > div:last-child {
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
}

.welcome-meta strong {
    display: block;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.welcome-meta span {
    color: #8fa795;
    font-size: 10px;
}

/* --------------------------------------------------------------------------
   Dashboard grid & charts
   ----------------------------------------------------------------------- */

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
    gap: 16px;
    align-items: start;
}

.dashboard-grid.equal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chart-bars {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: end;
    gap: 8px;
    height: 180px;
    padding-top: 8px;
}

.chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    height: 100%;
    min-width: 0;
}

.chart-bar-group {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 148px;
    padding-bottom: 2px;
}

.chart-bar {
    width: 15px;
    max-width: 42%;
    min-height: 2px;
    border-radius: 5px 5px 3px 3px;
    background: var(--brand);
    transition: opacity 0.18s ease;
}

.chart-bar.failed {
    background: #f0a9a2;
}

.chart-bar.success {
    background: linear-gradient(180deg, #1a9d75, var(--brand));
}

.chart-col:hover .chart-bar {
    opacity: 0.78;
}

.chart-label {
    color: var(--muted);
    font-size: 10px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: 10.5px;
}

.chart-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.chart-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
}

.chart-dot.red {
    background: #f0a9a2;
}

/* --------------------------------------------------------------------------
   Tables
   ----------------------------------------------------------------------- */

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.table th {
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    background: #f7faf5;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink-soft);
    font-size: 12px;
    vertical-align: middle;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table tbody tr:hover td {
    background: #fbfdf9;
}

.table td.strong {
    color: var(--ink);
    font-weight: 600;
}

.table-empty {
    padding: 34px 16px !important;
    color: var(--muted) !important;
    font-size: 12px !important;
    text-align: center;
}

.table-empty .empty-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0 auto 8px;
    border-radius: 10px;
    background: var(--brand-tint);
    color: var(--brand-dark);
}

.table-empty .empty-icon .icon {
    width: 17px;
    height: 17px;
}

.actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.txn-mono {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--ink-soft);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
}

.page-link,
.page-dots {
    display: grid;
    place-items: center;
    min-width: 33px;
    height: 33px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--ink-soft);
    font-size: 11.5px;
    font-weight: 500;
}

.page-link:hover {
    border-color: var(--brand-soft);
    background: var(--brand-tint);
    color: var(--brand-dark);
}

.page-link.active {
    border-color: var(--forest);
    background: var(--forest);
    color: #fff;
}

.page-dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Info lists, endpoints, code blocks
   ----------------------------------------------------------------------- */

.info-list {
    display: flex;
    flex-direction: column;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 12px;
}

.info-row:first-child {
    padding-top: 0;
}

.info-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.info-row > span:first-child {
    color: var(--muted);
}

.info-row strong {
    color: var(--ink);
    font-weight: 600;
    text-align: right;
}

.endpoint-box {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #f8fbf6;
}

.endpoint-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    flex: 0 0 auto;
}

.endpoint-box code {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.55;
}

.endpoint-box > button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    flex: 0 0 auto;
}

.endpoint-box > button:hover {
    border-color: var(--brand-soft);
    background: var(--brand-tint);
    color: var(--brand-dark);
}

.endpoint-box > button .icon {
    width: 14px;
    height: 14px;
}

.curl-block {
    overflow-x: auto;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: #071f17;
    color: #cfe4d5;
    font-family: var(--mono);
    font-size: 10.5px;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
}

.json-block {
    overflow-x: auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fbf6;
    color: #23503d;
    font-size: 10.5px;
    line-height: 1.75;
}

.json-block pre {
    color: inherit;
    font-family: var(--mono);
}

.key-reveal {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px dashed #bcd8c7;
    border-radius: 11px;
    background: var(--brand-tint);
}

.key-reveal code {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--brand-deep);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.key-reveal button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #cfe4d6;
    border-radius: 8px;
    background: #fff;
    color: var(--brand-dark);
    flex: 0 0 auto;
}

.key-reveal button:hover {
    background: var(--brand-soft);
}

.key-reveal .icon {
    width: 15px;
    height: 15px;
}

.key-warning {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 10px;
    color: var(--amber);
    font-size: 10.5px;
    line-height: 1.6;
}

.key-warning .icon {
    width: 14px;
    height: 14px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.help-box {
    padding: 12px 14px;
    border: 1px solid #d6e9dc;
    border-radius: 11px;
    background: #f1fbf5;
    color: #216344;
    font-size: 11.5px;
    line-height: 1.65;
}

.help-box strong {
    font-weight: 700;
}

.api-price strong {
    font-size: 17px;
}
/* --------------------------------------------------------------------------
   Service detail page
   ----------------------------------------------------------------------- */

.service-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 16px;
}

.service-intro {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border-radius: var(--radius);
    background: var(--forest);
    color: #dbe8de;
    box-shadow: 0 28px 60px -36px rgba(10, 43, 32, 0.65);
    isolation: isolate;
}

.service-intro::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -110px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(211, 245, 111, 0.22), transparent 72%);
    z-index: -1;
}

.service-intro .service-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--lime);
}

.service-intro h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 28px;
    letter-spacing: -0.02em;
}

.service-intro > p {
    max-width: 540px;
    color: #a8bdad;
    font-size: 13px;
    line-height: 1.8;
}

.service-intro-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
}

.service-intro-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #b8cbbd;
    font-size: 10px;
}

.service-intro-meta .icon {
    width: 12px;
    height: 12px;
    color: var(--lime);
}

.query-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-sm);
}

.query-card h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 5px;
    font-size: 16px;
}

.query-card h3 .icon {
    width: 17px;
    height: 17px;
    color: var(--brand);
}

.query-card > .hint {
    margin-bottom: 16px;
}

.query-card form {
    margin: 0;
}

.query-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #f7faf5;
    font-size: 12px;
}

.query-total span {
    color: var(--muted);
}

.query-total strong {
    color: var(--brand-dark);
    font-size: 18px;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Recharge page
   ----------------------------------------------------------------------- */

.recharge-tabs {
    display: flex;
    gap: 9px;
    margin-bottom: 16px;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.recharge-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 0;
    min-width: 180px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    color: var(--ink-soft);
    box-shadow: var(--shadow-sm);
}

.recharge-tab:hover {
    border-color: #c7dcc9;
    color: var(--ink);
}

.recharge-tab.active {
    border-color: var(--brand);
    background: var(--brand-tint);
    box-shadow: 0 0 0 3px rgba(14, 122, 90, 0.09);
}

.recharge-tab-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #fff;
    flex: 0 0 auto;
}

.recharge-tab-icon .icon {
    width: 17px;
    height: 17px;
}

.recharge-tab strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.recharge-tab small {
    display: block;
    color: var(--muted);
    font-size: 9.5px;
    line-height: 1.4;
}

.pay-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f7faf5;
}

.pay-hero-bkash {
    border-color: #f6d3df;
    background: linear-gradient(120deg, #fff4f7, #fdf0f4);
}

.pay-hero-crdgr {
    border-color: #cfe6d8;
    background: linear-gradient(120deg, var(--brand-tint), #f5fbf2);
}

.pay-hero-logo {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #d81b60;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    flex: 0 0 auto;
}

.pay-hero-crdgr .pay-hero-logo {
    background: var(--forest);
    color: var(--lime);
}

.pay-hero strong {
    display: block;
    font-size: 13px;
    line-height: 1.4;
}

.pay-hero p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.55;
}

.recharge-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #f7faf5;
    font-size: 12px;
}

.recharge-total span {
    color: var(--muted);
}

.recharge-total strong {
    color: var(--brand-dark);
    font-size: 17px;
    font-weight: 700;
}

.recharge-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.pay-method {
    position: relative;
    display: block;
    cursor: pointer;
}

.pay-method input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pay-inner {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.pay-method:hover .pay-inner {
    border-color: #c7dcc9;
}

.pay-method input:checked + .pay-inner {
    border-color: var(--brand);
    background: var(--brand-tint);
    box-shadow: 0 0 0 3px rgba(14, 122, 90, 0.08);
}

.pay-method input:focus-visible + .pay-inner {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.pay-logo {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 9px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex: 0 0 auto;
}

.pay-text {
    min-width: 0;
    line-height: 1.35;
}

.pay-text strong {
    display: block;
    overflow: hidden;
    font-size: 11.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pay-text small {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recharge-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recharge-step {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.recharge-step .num {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--lime-soft);
    color: var(--brand-deep);
    font-size: 10.5px;
    font-weight: 700;
    flex: 0 0 auto;
}

.recharge-step p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 11.5px;
    line-height: 1.65;
}

.qr-pay-grid {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.qr-pay-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.qr-pay-image img {
    width: 100%;
    max-width: 170px;
    border-radius: 9px;
}

.qr-pay-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.proof-thumb {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--brand-dark);
    font-size: 10.5px;
    font-weight: 600;
}

.proof-thumb img {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 9px;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   Profile
   ----------------------------------------------------------------------- */

.profile-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.profile-side {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 13px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--lime);
    font-size: 27px;
    font-weight: 700;
    box-shadow: 0 14px 30px -16px rgba(10, 43, 32, 0.55);
}

.profile-side h3 {
    margin: 0 0 2px;
    font-size: 17px;
}

.profile-side > p {
    margin: 0 0 9px;
    color: var(--muted);
    font-size: 11.5px;
    overflow-wrap: anywhere;
}

.profile-side-meta {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
    text-align: left;
}

.profile-side-meta > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 11.5px;
}

.profile-side-meta > div:last-child {
    border-bottom: 0;
}

.profile-side-meta span {
    color: var(--muted);
}

.profile-side-meta strong {
    font-size: 11px;
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}

.profile-form {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-sm);
}

.profile-form h3 {
    margin: 0 0 3px;
    font-size: 15px;
}

.profile-form > p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.6;
}

.profile-form .card-head {
    border-radius: var(--radius) var(--radius) 0 0;
}

/* --------------------------------------------------------------------------
   Modals
   ----------------------------------------------------------------------- */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(7, 25, 18, 0.5);
    backdrop-filter: blur(4px);
}

.modal-backdrop.open {
    display: flex;
}

.modal {
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    animation: modal-in 0.2s ease;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line-soft);
}

.modal-head h3 {
    margin: 0 0 2px;
    font-size: 16px;
}

.modal-head p {
    margin: 0;
    color: var(--muted);
    font-size: 11.5px;
}

.modal-close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--muted);
    flex: 0 0 auto;
}

.modal-close:hover {
    background: var(--bg);
    color: var(--ink);
}

.modal-close .icon {
    width: 15px;
    height: 15px;
}

.modal-body {
    padding: 20px;
}

.modal-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding: 15px 20px;
    border-top: 1px solid var(--line-soft);
}

/* --------------------------------------------------------------------------
   Empty states
   ----------------------------------------------------------------------- */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 46px 22px;
    text-align: center;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    border-radius: 15px;
    background: var(--brand-tint);
    color: var(--brand-dark);
}

.empty-icon .icon {
    width: 24px;
    height: 24px;
}

.empty-state h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.empty-state p {
    max-width: 430px;
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.empty-state .btn {
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Admin-only utility components (kept for panel compatibility)
   ----------------------------------------------------------------------- */

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--ink-soft);
    cursor: pointer;
}

.method-chip {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 2px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.qr-admin-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fbf6;
}

.qr-admin-preview img {
    width: 128px;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
}

.session-avatar {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand-deep);
    font-size: 11.5px;
    font-weight: 700;
    flex: 0 0 auto;
}

.user-cell > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.4;
}

.user-cell > span:last-child strong {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink);
}

.user-cell > span:last-child span {
    color: var(--muted);
    font-size: 9.5px;
    overflow-wrap: anywhere;
}

.switch {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    cursor: pointer;
}

.switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.switch .track {
    position: relative;
    width: 40px;
    height: 23px;
    border-radius: 999px;
    background: #cfdacf;
    transition: background-color 0.18s ease;
    flex: 0 0 auto;
}

.switch .track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.18s ease;
}

.switch input:checked + .track {
    background: var(--brand);
}

.switch input:checked + .track::after {
    transform: translateX(17px);
}

.switch input:focus-visible + .track {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.badge-warn {
    background: var(--amber-soft);
    color: #93370d;
}

.badge-good { background: var(--green-soft); color: #05603a; }
.badge-bad { background: var(--red-soft); color: #b42318; }

.notice-red,
.notice-black {
    font-size: 11px;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Responsive — tablet
   ----------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .hero-inner {
        gap: 34px;
        padding-top: 66px;
        padding-bottom: 78px;
    }

    .service-grid,
    .api-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-grid .price-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .docs-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .dashboard-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.9fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .public-links,
    .public-actions {
        display: none;
    }

    .public-menu {
        display: inline-grid;
    }

    .public-nav {
        min-height: 68px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        max-width: 660px;
        padding-top: 58px;
        padding-bottom: 78px;
    }

    .hero-sub {
        max-width: none;
    }

    .hero-visual {
        max-width: 560px;
        width: 100%;
        margin: 8px auto 0;
    }

    .metrics-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .metric-item {
        border-bottom: 1px solid var(--line-soft);
    }

    .metric-item:nth-child(2) {
        border-right: 0;
    }

    .metric-item:nth-child(3),
    .metric-item:nth-child(4) {
        border-bottom: 0;
    }

    .metric-item:nth-child(3) {
        padding-left: 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        align-items: flex-start;
        flex-direction: column;
        padding: 34px;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .footer-grid > div:last-child {
        grid-column: 1 / -1;
        padding-top: 22px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .auth-main {
        min-height: 100vh;
        min-height: 100svh;
        background:
            radial-gradient(700px 400px at 100% 0%, rgba(211, 245, 111, 0.25), transparent 60%),
            var(--bg-soft);
    }

    .sidebar {
        transform: translateX(-104%);
        transition: transform 0.24s ease;
        box-shadow: 30px 0 80px -40px rgba(7, 25, 18, 0.5);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: inline-grid;
    }

    .app-main {
        width: 100%;
        margin-left: 0;
    }

    .sidebar-toggle {
        display: inline-grid;
    }

    .topbar {
        padding-left: 18px;
        padding-right: 18px;
    }

    .content {
        padding: 22px 18px 36px;
    }

    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-layout > div:last-child {
        position: static;
    }

    .service-hero {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-side {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 16px;
        text-align: left;
    }

    .profile-avatar {
        grid-row: span 3;
        margin: 0;
    }

    .profile-side > .badge {
        justify-self: start;
    }

    .profile-side-meta {
        grid-column: 1 / -1;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Responsive — phone
   ----------------------------------------------------------------------- */

@media (max-width: 720px) {
    body {
        font-size: 14px;
    }

    html {
        scroll-padding-top: 78px;
    }

    .public-ribbon {
        min-height: 30px;
        font-size: 9.5px;
        padding: 5px 12px;
        gap: 6px;
    }

    .public-nav {
        min-height: 62px;
        padding: 8px 14px;
        gap: 10px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 17px;
    }

    .brand-text strong {
        font-size: 14px;
    }

    .brand-text small {
        font-size: 7.5px;
    }

    .public-mobile-menu {
        padding: 6px 14px 15px;
    }

    .public-alerts {
        padding: 12px 14px 0;
    }

    .section {
        padding: 58px 16px;
    }

    .section-tight {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .section-head {
        margin-bottom: 26px;
    }

    .section-head h2 {
        margin-top: 9px;
    }

    .section-head p {
        font-size: 13.5px;
    }

    .hero-inner {
        padding: 46px 16px 66px;
        gap: 30px;
    }

    .hero h1 {
        margin: 16px 0 14px;
        font-size: clamp(29px, 8.6vw, 40px);
        letter-spacing: -0.01em;
    }

    .hero-sub {
        font-size: 13.5px;
        line-height: 1.8;
    }

    .hero-actions {
        gap: 8px;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
        min-height: 48px;
        padding-left: 18px;
        padding-right: 18px;
        font-size: 13.5px;
    }

    .hero-trust {
        gap: 14px 0;
        margin-top: 26px;
        padding-top: 18px;
    }

    .hero-trust-item {
        width: 50%;
        padding-right: 12px;
        margin-right: 0;
        border-right: 0;
    }

    .hero-trust-item strong {
        font-size: 15px;
    }

    .console {
        transform: none;
        border-radius: 16px;
    }

    .console-body {
        padding: 14px;
        font-size: 10px;
        line-height: 1.9;
    }

    .floating-card {
        right: 10px;
        bottom: -20px;
        min-width: 138px;
        padding: 11px 13px;
    }

    .floating-card strong {
        font-size: 18px;
    }

    .metrics-inner {
        padding: 0 16px;
    }

    .metric-item {
        padding: 18px 12px;
        gap: 9px;
    }

    .metric-item:first-child { padding-left: 0; }
    .metric-item:nth-child(3) { padding-left: 0; }
    .metric-item:nth-child(2n) { padding-right: 0; }

    .metric-icon {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .metric-item strong {
        font-size: 11.5px;
    }

    .metric-item span {
        font-size: 9.5px;
    }

    .service-grid,
    .api-grid,
    .pricing-grid,
    .steps,
    .feature-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .service-card,
    .api-card,
    .step-card,
    .price-card {
        padding: 20px;
    }

    .about-band .section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .about-panel {
        padding: 24px;
    }

    .feature-item {
        padding: 16px;
    }

    .pricing-section .section {
        padding-top: 56px;
        padding-bottom: 60px;
    }

    .cta-band {
        padding: 44px 0;
    }

    .cta-box {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .cta-box .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 26px 20px;
        padding: 42px 16px 30px;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .footer-grid > div:last-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 16px 16px 22px;
    }

    .docs-hero .section {
        padding-top: 44px;
        padding-bottom: 42px;
    }

    .docs-section {
        padding-top: 28px;
        padding-bottom: 46px;
    }

    .docs-layout {
        gap: 14px;
    }

    .card-head {
        padding: 14px 15px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .card-body {
        padding: 15px;
    }

    .card > p,
    .card > h3 {
        margin-left: 15px;
        margin-right: 15px;
    }

    .auth-main {
        padding: 22px 14px;
    }

    .auth-card {
        padding: 24px 19px;
        border-radius: 20px;
    }

    .auth-card > .brand {
        margin-bottom: 20px;
    }

    .auth-heading h2 {
        font-size: 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        min-height: 62px;
        padding: 8px 13px;
        gap: 8px;
    }

    .topbar-left {
        gap: 9px;
        min-width: 0;
    }

    .topbar-left h1 {
        font-size: 15.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar-left p {
        max-width: 52vw;
        font-size: 9.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .icon-button {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .sidebar-toggle {
        width: 38px;
        height: 38px;
    }

    .balance-chip {
        min-height: 38px;
        padding: 5px 10px;
        gap: 6px;
    }

    .balance-chip > span {
        display: none;
    }

    .balance-chip strong {
        font-size: 12px;
    }

    .topbar-right .icon-button[title] {
        display: none;
    }

    .top-avatar {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .content {
        padding: 17px 13px 92px;
    }

    .app-footer {
        padding: 12px 14px 78px;
        font-size: 9.5px;
    }

    .app-footer a {
        margin-left: 0;
    }

    .mobile-tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 150;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: stretch;
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(14px);
        box-shadow: 0 -14px 30px -26px rgba(16, 36, 27, 0.4);
    }

    .tab-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-height: 48px;
        padding: 4px 2px;
        border-radius: 10px;
        color: var(--muted);
        font-size: 8.5px;
        font-weight: 600;
        line-height: 1.2;
        text-align: center;
    }

    .tab-item .icon {
        width: 19px;
        height: 19px;
    }

    .tab-item.active {
        background: var(--brand-tint);
        color: var(--brand-dark);
    }

    .tab-item.active .icon {
        color: var(--brand);
    }

    .page-head {
        margin-bottom: 16px;
        gap: 10px;
    }

    .page-head h2 {
        font-size: 20px;
    }

    .page-head p {
        font-size: 11.5px;
    }

    .page-head-actions {
        width: 100%;
        gap: 7px;
    }

    .page-head-actions .btn {
        flex: 1 1 auto;
    }

    .stats-grid {
        gap: 9px;
        margin-bottom: 13px;
    }

    .stat-card {
        padding: 13px;
        border-radius: 14px;
    }

    .stat-label {
        font-size: 10px;
    }

    .stat-icon {
        width: 27px;
        height: 27px;
        border-radius: 8px;
    }

    .stat-value {
        font-size: 19px;
    }

    .stat-meta {
        font-size: 9px;
    }

    .welcome-card {
        padding: 22px 19px;
        border-radius: 18px;
    }

    .welcome-card h2 {
        font-size: 20px;
    }

    .welcome-meta {
        gap: 12px 0;
    }

    .welcome-meta > div {
        width: 50%;
        padding-right: 10px;
        margin-right: 0;
        border-right: 0;
    }

    .welcome-meta strong {
        font-size: 15px;
    }

    .dashboard-grid {
        gap: 12px;
    }

    .chart-bars {
        height: 150px;
        gap: 4px;
    }

    .chart-bar-group {
        height: 120px;
        gap: 3px;
    }

    .chart-bar {
        width: 11px;
    }

    .chart-label {
        font-size: 9px;
    }

    .table th {
        padding: 9px 12px;
    }

    .table td {
        padding: 10px 12px;
    }

    .filter-form,
    .search-form {
        width: 100%;
    }

    .filter-form .search-box,
    .search-form .search-box {
        flex: 1;
        min-width: 0;
    }

    .filter-bar {
        padding: 10px;
    }

    .info-row {
        font-size: 11.5px;
        gap: 10px;
    }

    .service-intro {
        padding: 23px;
    }

    .service-intro h2 {
        font-size: 23px;
    }

    .query-card {
        padding: 18px;
    }

    .recharge-tabs {
        gap: 7px;
        margin-right: -13px;
        padding-right: 13px;
    }

    .recharge-tab {
        flex: 0 0 auto;
        min-width: 176px;
        padding: 10px;
    }

    .recharge-methods {
        grid-template-columns: 1fr;
    }

    .qr-pay-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .qr-pay-image {
        max-width: 240px;
        margin: 0 auto;
    }

    .profile-side {
        grid-template-columns: auto 1fr;
        padding: 19px;
    }

    .profile-avatar {
        width: 58px;
        height: 58px;
        font-size: 22px;
    }

    .modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .modal {
        max-width: none;
        border-radius: 20px 20px 0 0;
        max-height: 88vh;
        animation: sheet-in 0.24s ease;
    }

    @keyframes sheet-in {
        from { transform: translateY(24px); opacity: 0; }
        to { transform: none; opacity: 1; }
    }

    .toast,
    .public-feedback {
        left: 14px;
        right: 14px;
        bottom: 82px;
    }
}

/* --------------------------------------------------------------------------
   Mobile table cards
   ----------------------------------------------------------------------- */

@media (max-width: 720px) {
    .table-stack {
        display: block;
    }

    .table-stack thead {
        display: none;
    }

    .table-stack tbody,
    .table-stack tr,
    .table-stack td {
        display: block;
        width: 100%;
    }

    .table-stack tr {
        padding: 9px 13px;
        border-bottom: 1px solid var(--line-soft);
    }

    .table-stack tr:last-child {
        border-bottom: 0;
    }

    .table-stack td {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        align-items: baseline;
        gap: 3px 12px;
        padding: 6px 0;
        border: 0;
        text-align: right;
        font-size: 11.5px;
    }

    .table-stack td::before {
        content: attr(data-label);
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        color: var(--muted);
        font-size: 9.5px;
        font-weight: 600;
        letter-spacing: 0.04em;
        line-height: 1.7;
        text-align: left;
        text-transform: uppercase;
    }

    .table-stack td > * {
        grid-column: 2;
        min-width: 0;
    }

    .table-stack td > .badge {
        justify-self: end;
    }

    .table-stack td:empty {
        display: none;
    }

    .table-stack td.table-empty {
        display: block;
        padding: 24px 6px !important;
        text-align: center;
    }

    .table-stack td.table-empty::before {
        display: none;
    }

    .table-stack td .d-flex {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .table-stack td form.d-flex .input {
        flex: 1 1 100%;
        width: 100% !important;
    }
}

/* --------------------------------------------------------------------------
   Reduced motion & print
   ----------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

@media print {
    .public-nav-wrap,
    .public-ribbon,
    .public-footer,
    .public-alerts,
    .sidebar,
    .sidebar-backdrop,
    .topbar,
    .app-footer,
    .mobile-tabbar,
    .no-print,
    .alert-close {
        display: none !important;
    }

    body,
    .app-body,
    .public-body {
        background: #fff !important;
    }

    .app-main {
        width: 100% !important;
        margin: 0 !important;
    }

    .content {
        max-width: none !important;
        padding: 0 !important;
    }

    .card,
    .stat-card,
    .welcome-card {
        box-shadow: none !important;
    }
}

/* Payment redirect processing state -------------------------------------- */
.processing-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(4px);
}

.processing-box {
    width: min(360px, 100%);
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 30px 24px;
    border-radius: 20px;
    background: #fff;
    text-align: center;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.processing-box strong {
    color: #0f172a;
    font-size: 15px;
}

.processing-box small {
    color: #64748b;
    font-size: 12px;
}

.processing-spinner {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 4px solid #ccfbf1;
    border-top-color: #0f766e;
    animation: processing-spin .8s linear infinite;
}

@keyframes processing-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .processing-spinner { animation-duration: 2s; }
}

/* Submit lock while a payment redirect is in flight ---------------------- */
.btn.is-submitting {
    pointer-events: none;
    opacity: .65;
}

.processing-box .btn {
    margin-top: 4px;
}

.processing-box a.btn {
    color: #fff;
    text-decoration: none;
}
