:root,
[data-theme="light"] {
    --bg: #f4f5f9;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-alt: #ecedf3;
    --border: rgba(0, 0, 0, 0.07);
    --border-strong: rgba(0, 0, 0, 0.13);
    --text-primary: #0f0f14;
    --text-secondary: #4a4a5e;
    --text-muted: #9494aa;
    --hover-bg: rgba(254, 80, 6, 0.08);
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.06);

    --brand: #fe5006;
    --brand-dark: #d94004;
    --brand-light: #ff8a4d;
    --brand-contrast: #ffffff;
    --accent: #ffa101;
    --accent-dark: #e08c15;

    --success: #16a34a;
    --success-bg: rgba(22, 163, 74, 0.09);
    --danger: #dc2626;
    --danger-bg: rgba(220, 38, 38, 0.09);
    --warning: #d97706;
    --warning-bg: rgba(217, 119, 6, 0.09);
    --info: #2563eb;
    --info-bg: rgba(37, 99, 235, 0.09);

    --sidebar-bg: #0d1117;
    --sidebar-text: rgba(255, 255, 255, 0.55);
    --sidebar-text-active: #ffffff;
    --sidebar-active-bg: rgba(254, 80, 6, 0.15);
    --sidebar-border: rgba(255, 255, 255, 0.06);

    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #080b10;
    --bg-elevated: #111520;
    --surface: #111520;
    --surface-alt: #161c2c;
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.11);
    --text-primary: #eeeef5;
    --text-secondary: #9494b0;
    --text-muted: #555570;
    --hover-bg: rgba(254, 80, 6, 0.13);
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.3);

    --brand: #ff6a1f;
    --brand-dark: #fe5006;
    --brand-light: #ff9a5c;
    --brand-contrast: #ffffff;
    --accent: #ffb020;
    --accent-dark: #ffa101;

    --success-bg: rgba(22, 163, 74, 0.13);
    --danger-bg: rgba(220, 38, 38, 0.13);
    --warning-bg: rgba(217, 119, 6, 0.13);
    --info-bg: rgba(37, 99, 235, 0.13);

    --sidebar-bg: #060810;
    --sidebar-text: rgba(255, 255, 255, 0.5);
    --sidebar-text-active: #ffffff;
    --sidebar-active-bg: rgba(254, 80, 6, 0.2);
    --sidebar-border: rgba(255, 255, 255, 0.04);

    color-scheme: dark;
}

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&display=swap");

* {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family:
        "DM Sans",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
}
button {
    font-family: inherit;
}

::selection {
    background: var(--brand);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 8px;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Typography helpers ── */
.h1,
.h2,
.h3 {
    font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
    font-weight: 800;
}
.h1 {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    margin: 0;
}
.h2 {
    font-size: 1.375rem;
    letter-spacing: -0.015em;
    margin: 0;
}
.h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}
.text-muted {
    color: var(--text-muted);
}
.text-secondary {
    color: var(--text-secondary);
}
.text-sm {
    font-size: 0.82rem;
}
.text-xs {
    font-size: 0.74rem;
}
.fw-600 {
    font-weight: 600;
}
.fw-700 {
    font-weight: 700;
}

/* ==========================================================================
   Guest layout (auth pages)
   ========================================================================== */
.guest-shell {
    min-height: 100vh;
    display: flex;
}

.guest-visual {
    flex: 1 1 46%;
    position: relative;
    display: none;
    padding: 48px;
    background: linear-gradient(
        135deg,
        var(--brand) 0%,
        #ff7a00 50%,
        var(--accent) 100%
    );
    color: #fff;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.guest-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(255, 255, 255, 0.2),
            transparent 40%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(13, 17, 23, 0.25),
            transparent 45%
        );
    pointer-events: none;
}

@media (min-width: 900px) {
    .guest-visual {
        display: flex;
    }
}

.guest-visual .brand-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
}
.guest-visual .brand-mark .logo-dot {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}
.guest-visual .pitch {
    position: relative;
    z-index: 1;
    max-width: 420px;
}
.guest-visual .pitch h2 {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}
.guest-visual .pitch p {
    opacity: 0.92;
    line-height: 1.6;
    margin: 0;
}
.guest-visual .feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
    position: relative;
    z-index: 1;
}
.guest-visual .feature-pills span {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.guest-form-side {
    flex: 1 1 54%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    position: relative;
}

.guest-card {
    width: 100%;
    max-width: 400px;
}
.guest-card .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}
.guest-card .mobile-brand .logo-dot {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 4px 16px rgba(254, 80, 6, 0.4);
}
.guest-card .mobile-brand strong {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

@media (min-width: 900px) {
    .guest-card .mobile-brand {
        display: none;
    }
}

.guest-theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

.guest-card h1 {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}
.guest-card .sub {
    color: var(--text-muted);
    margin: 0 0 26px;
    font-size: 0.92rem;
}

/* ==========================================================================
   Buttons — pill-shaped, matching the admin panel's button language
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease,
        opacity 0.15s ease;
    line-height: 1.1;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.btn:active {
    transform: scale(0.98);
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none !important;
}
.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-block {
    width: 100%;
}
.btn-sm {
    padding: 8px 14px;
    font-size: 0.8rem;
}
.btn-lg {
    padding: 14px 24px;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    color: #fff;
    box-shadow:
        0 4px 14px rgba(254, 80, 6, 0.32),
        0 1px 3px rgba(254, 80, 6, 0.2);
}
.btn-primary:hover:not(:disabled) {
    box-shadow:
        0 8px 24px rgba(254, 80, 6, 0.45),
        0 2px 6px rgba(254, 80, 6, 0.25);
    transform: translateY(-1px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #241300;
    box-shadow: 0 8px 20px -6px rgba(255, 161, 1, 0.5);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover:not(:disabled) {
    background: var(--surface-alt);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--brand);
    border-color: var(--brand);
}
.btn-outline:hover:not(:disabled) {
    background: var(--hover-bg);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover:not(:disabled) {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.18);
}
.btn-danger:hover:not(:disabled) {
    background: var(--danger);
    color: #fff;
}

.btn-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.18);
}
.btn-success:hover:not(:disabled) {
    background: var(--success);
    color: #fff;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.icon-btn:hover {
    background: var(--surface-alt);
    color: var(--text-primary);
}
.icon-btn svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.field {
    margin-bottom: 16px;
}
.field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 7px;
}
.field-hint {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 6px;
}
.field-error {
    font-size: 0.76rem;
    color: var(--danger);
    margin-top: 6px;
    font-weight: 600;
}

.input,
select.input,
textarea.input {
    width: 100%;
    background: var(--surface);
    border: 1.5px solid var(--border-strong);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.9rem;
    color: var(--text-primary);
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
    font-family: inherit;
    box-shadow: var(--shadow-sm);
}
.input::placeholder {
    color: var(--text-muted);
}
.input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(254, 80, 6, 0.18);
}
.input:disabled {
    opacity: 0.6;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}
.input-group .input {
    padding-right: 42px;
}
.input-group .input-suffix-btn {
    position: absolute;
    right: 6px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.input-group .input-suffix-btn:hover {
    background: var(--hover-bg);
    color: var(--brand);
}
.input-group .input-suffix-btn svg {
    width: 18px;
    height: 18px;
}

.input-prefixed {
    position: relative;
}
.input-prefixed .prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
}
.input-prefixed .input {
    padding-left: 30px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.84rem;
    color: var(--text-secondary);
}
.checkbox-row input {
    width: 17px;
    height: 17px;
    accent-color: var(--brand);
}

.pin-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.pin-boxes input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    border-radius: 12px;
    border: 1.5px solid var(--border-strong);
    background: var(--surface);
    color: var(--text-primary);
    outline: none;
}
.pin-boxes input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(254, 80, 6, 0.18);
}

/* ==========================================================================
   Cards / surfaces
   ========================================================================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 10px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}
.stat-card .icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-card .icon svg {
    width: 19px;
    height: 19px;
}
.stat-card .value {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.stat-card .label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Balance / hero card */
.balance-card {
    position: relative;
    border-radius: 22px;
    padding: 26px 24px;
    background: linear-gradient(
        135deg,
        var(--brand-dark) 0%,
        var(--brand) 50%,
        var(--accent) 130%
    );
    color: #fff;
    overflow: hidden;
    box-shadow: 0 20px 40px -14px rgba(254, 80, 6, 0.5);
}
.balance-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 88% -10%,
            rgba(255, 255, 255, 0.28),
            transparent 45%
        ),
        radial-gradient(
            circle at -10% 120%,
            rgba(13, 17, 23, 0.3),
            transparent 40%
        );
}
.balance-card > * {
    position: relative;
    z-index: 1;
}
.balance-card .label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.balance-card .label {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 600;
}
.balance-card .amount {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 8px 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.balance-card .eye-btn {
    background: rgba(255, 255, 255, 0.18);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
}
.balance-card .eye-btn svg {
    width: 16px;
    height: 16px;
}
.balance-card .actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.balance-card .actions .btn {
    flex: 1 1 auto;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    backdrop-filter: blur(4px);
    box-shadow: none;
}
.balance-card .actions .btn:hover {
    background: rgba(255, 255, 255, 0.28);
}
.balance-card .sub-balances {
    display: flex;
    gap: 20px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.balance-card .sub-balances div span {
    display: block;
}
.balance-card .sub-balances .v {
    font-weight: 800;
    font-size: 1rem;
}
.balance-card .sub-balances .l {
    font-size: 0.72rem;
    opacity: 0.85;
    margin-top: 2px;
}

/* ==========================================================================
   Grids: quick actions + service selection
   ========================================================================== */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
@media (min-width: 640px) {
    .quick-actions-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 14px 6px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition:
        transform 0.12s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
    box-shadow: var(--shadow-sm);
}
.quick-action:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.quick-action .icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quick-action .icon-wrap svg {
    width: 20px;
    height: 20px;
}
.quick-action span.label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.tint-indigo {
    background: rgba(37, 99, 235, 0.12);
    color: var(--info);
}
.tint-amber {
    background: rgba(255, 161, 1, 0.16);
    color: var(--accent-dark);
}
.tint-green {
    background: var(--success-bg);
    color: var(--success);
}
.tint-red {
    background: var(--danger-bg);
    color: var(--danger);
}
.tint-blue {
    background: rgba(37, 99, 235, 0.12);
    color: var(--info);
}
.tint-purple {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
}
.tint-brand {
    background: rgba(254, 80, 6, 0.12);
    color: var(--brand);
}

.provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 10px;
}
.provider-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}
.provider-tile.active {
    border-color: var(--brand);
    background: var(--hover-bg);
}
.provider-tile .logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}
.provider-tile span {
    font-size: 0.74rem;
    font-weight: 700;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.plan-tile {
    text-align: left;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    padding: 13px;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}
.plan-tile.active {
    border-color: var(--brand);
    background: var(--hover-bg);
    box-shadow: 0 0 0 3px rgba(254, 80, 6, 0.12);
}
.plan-tile .size {
    font-weight: 800;
    font-size: 0.98rem;
}
.plan-tile .validity {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 3px 0 8px;
}
.plan-tile .price {
    font-weight: 800;
    color: var(--brand);
    font-size: 0.88rem;
}
.plan-tile .cashback {
    font-size: 0.68rem;
    color: var(--success);
    font-weight: 700;
    margin-top: 3px;
}

/* ==========================================================================
   Layout: sidebar + topbar (authenticated app shell)
   ========================================================================== */
.app-layout {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

.sf-sidebar {
    flex: 0 0 250px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 250px;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--sidebar-border);
}
.sf-sidebar.open {
    transform: translateX(0);
}

@media (min-width: 960px) {
    .sf-sidebar {
        transform: none;
    }
    .sf-main {
        margin-left: 250px;
    }
}

.sf-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 18px;
    border-bottom: 1px solid var(--sidebar-border);
}
.sf-sidebar-logo .logo-dot {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(254, 80, 6, 0.45);
}
.sf-sidebar-logo strong {
    font-family: "Bricolage Grotesque", sans-serif;
    color: #fff;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
}
.sf-sidebar-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--sidebar-text);
    cursor: pointer;
    display: flex;
}

@media (min-width: 960px) {
    .sf-sidebar-close {
        display: none;
    }
}

.sf-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sf-nav-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.25);
    padding: 14px 10px 6px;
}
.sf-nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--sidebar-text);
    font-size: 0.86rem;
    font-weight: 500;
    transition:
        background 0.15s ease,
        color 0.15s ease;
    position: relative;
}
.sf-nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.85;
}
.sf-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
}
.sf-nav-item.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-text-active);
    font-weight: 600;
}
.sf-nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 2.5px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border-radius: 999px;
}
.sf-nav-item.active svg {
    opacity: 1;
    color: var(--brand-light);
}

.sf-sidebar-footer {
    padding: 14px;
    border-top: 1px solid var(--sidebar-border);
}
.sf-sidebar-footer .sf-nav-item {
    color: rgba(220, 38, 38, 0.8);
}
.sf-sidebar-footer .sf-nav-item:hover {
    background: rgba(220, 38, 38, 0.13);
    color: #f87171;
}

.sf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.sf-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
@media (min-width: 960px) {
    .sf-overlay {
        display: none;
    }
}

.sf-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sf-topbar {
    height: 66px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 18px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 40;
    position: relative;
}
.sf-topbar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    opacity: 0.7;
}
.sf-topbar-hamburger {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
}
@media (min-width: 960px) {
    .sf-topbar-hamburger {
        display: none;
    }
}
.sf-topbar-title {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}
.sf-topbar-spacer {
    flex: 1;
}
.sf-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sf-mini-balance {
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}
@media (min-width: 620px) {
    .sf-mini-balance {
        display: flex;
    }
}

.sf-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow:
        0 2px 10px rgba(254, 80, 6, 0.35),
        0 0 0 2px rgba(254, 80, 6, 0.15);
}

.sf-page {
    padding: 20px 18px 96px;
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}
@media (min-width: 960px) {
    .sf-page {
        padding-bottom: 40px;
    }
}

/* Mobile bottom nav */
.sf-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 45;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    display: flex;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
}
@media (min-width: 960px) {
    .sf-bottom-nav {
        display: none;
    }
}
.sf-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.64rem;
    font-weight: 700;
}
.sf-bottom-nav a svg {
    width: 20px;
    height: 20px;
}
.sf-bottom-nav a.active {
    color: var(--brand);
}
.sf-bottom-nav a.fab {
    position: relative;
}
.sf-bottom-nav a.fab .fab-circle {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-top: -18px;
    box-shadow: 0 10px 20px -6px rgba(254, 80, 6, 0.6);
}

/* ==========================================================================
   Dropdown menu (avatar / actions)
   ========================================================================== */
.dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 210px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.15s ease;
    z-index: 70;
    overflow: hidden;
}
.dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.dropdown-item:hover {
    background: var(--hover-bg);
}
.dropdown-item svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}
.dropdown-item.danger {
    color: var(--danger);
}
.dropdown-item.danger svg {
    color: var(--danger);
}
.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* ==========================================================================
   Tabs
   ========================================================================== */
.sf-tabs {
    display: flex;
    gap: 6px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    padding: 4px;
    border-radius: 13px;
    overflow-x: auto;
}
.sf-tab {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
}
.sf-tab.active {
    background: var(--surface);
    color: var(--brand);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Lists / transaction rows
   ========================================================================== */
.list-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 4px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    row-gap: 6px;
}
.list-row:last-child {
    border-bottom: none;
}
.list-row .row-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.list-row .row-icon svg {
    width: 19px;
    height: 19px;
}
.list-row .row-main {
    flex: 1 1 0;
    min-width: 0;
}
.list-row .row-title {
    font-weight: 700;
    font-size: 0.87rem;
}
.list-row .row-sub {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 2px;
    overflow-wrap: anywhere;
}
.list-row .row-end {
    text-align: right;
    flex-shrink: 0;
}
.list-row .row-amount {
    font-weight: 800;
    font-size: 0.87rem;
}
.list-row .row-amount.negative {
    color: var(--danger);
}
.list-row .row-amount.positive {
    color: var(--success);
}

@media (max-width: 480px) {
    .list-row .row-main {
        flex-basis: calc(100% - 55px);
    }
    .list-row .row-end {
        flex-basis: 85%;
        margin-left: 40px; /* icon width (42px) + gap (13px) */
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

   
}

/* ==========================================================================
   Badges / status pills
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}
.badge::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}
.badge-success {
    background: var(--success-bg);
    color: var(--success);
}
.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
}
.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
}
.badge-info {
    background: var(--info-bg);
    color: var(--info);
}
.badge-muted {
    background: var(--surface-alt);
    color: var(--text-muted);
}

/* ==========================================================================
   Alerts / banners
   ========================================================================== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 0.84rem;
    font-weight: 500;
    border: 1px solid transparent;
}
.alert svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    margin-top: 1px;
}
.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: rgba(22, 163, 74, 0.2);
}
.alert-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: rgba(220, 38, 38, 0.2);
}
.alert-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border-color: rgba(217, 119, 6, 0.2);
}
.alert-info {
    background: var(--info-bg);
    color: var(--info);
    border-color: rgba(37, 99, 235, 0.2);
}

/* ==========================================================================
   Modal
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 100;
}
.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}
.modal {
    background: var(--surface);
    border-radius: 22px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    max-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
}
.modal-backdrop.open .modal {
    transform: translateY(0) scale(1);
}
.modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.modal-header h3 {
    font-family: "Bricolage Grotesque", sans-serif;
    margin: 0;
}
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
}
.modal-body {
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.modal-footer .btn {
    flex: 1;
}

@media (max-width: 480px) {
    .modal-backdrop {
        padding: 10px;
        align-items: flex-end;
    }
    .modal {
        max-width: 100%;
        max-height: calc(100vh - 20px);
        border-radius: 20px 20px 0 0;
    }
}

.confirm-modal-body {
    padding: 32px 24px 6px;
    text-align: center;
}
.confirm-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.confirm-icon svg {
    width: 26px;
    height: 26px;
}
.confirm-icon.variant-warning {
    background: var(--warning-bg);
    color: var(--warning);
}
.confirm-icon.variant-danger {
    background: var(--danger-bg);
    color: var(--danger);
}
.confirm-icon.variant-success {
    background: var(--success-bg);
    color: var(--success);
}
.confirm-modal-title {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.confirm-modal-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0 0 20px;
}
.confirm-modal-footer {
    padding: 16px 24px 26px;
    display: flex;
    gap: 10px;
}
.confirm-modal-footer .btn {
    flex: 1;
}

/* Reference / value row inside the transaction detail modal, with a
   truncating value and a dedicated copy button. */
.detail-copy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.detail-copy-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.detail-copy-value {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 68%;
}
.detail-copy-value .value-text {
    font-weight: 700;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.detail-copy-value .copy-icon-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-alt);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}
.detail-copy-value .copy-icon-btn:hover {
    background: var(--hover-bg);
    color: var(--brand);
}
.detail-copy-value .copy-icon-btn svg {
    width: 14px;
    height: 14px;
}
.detail-copy-value .copy-icon-btn.copied {
    color: var(--success);
    border-color: rgba(22, 163, 74, 0.3);
    background: var(--success-bg);
}

/* ==========================================================================
   Toasts
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    left: 16px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    pointer-events: none;
}
@media (min-width: 620px) {
    .toast-container {
        left: auto;
        width: 340px;
    }
}
.toast {
    pointer-events: auto;
    width: 100%;
    max-width: 340px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    font-size: 0.83rem;
    font-weight: 600;
    animation: toast-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}
@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Skeleton loaders
   ========================================================================== */
.skel {
    background: linear-gradient(
        90deg,
        var(--surface-alt) 25%,
        var(--border) 37%,
        var(--surface-alt) 63%
    );
    background-size: 400% 100%;
    animation: skel 1.4s ease infinite;
    border-radius: 8px;
}
@keyframes skel {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

/* ==========================================================================
   Misc utilities
   ========================================================================== */
.flex {
    display: flex;
}
.flex-col {
    display: flex;
    flex-direction: column;
}
.items-center {
    align-items: center;
}
.justify-between {
    justify-content: space-between;
}
.gap-8 {
    gap: 8px;
}
.gap-10 {
    gap: 10px;
}
.gap-14 {
    gap: 14px;
}
.mt-8 {
    margin-top: 8px;
}
.mt-14 {
    margin-top: 14px;
}
.mt-20 {
    margin-top: 20px;
}
.mb-14 {
    margin-bottom: 14px;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 560px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}
.grid-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 720px) {
    .grid-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}
.empty-state {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-muted);
}
.empty-state svg {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    opacity: 0.4;
}
.divider {
    height: 1px;
    background: var(--border);
    border: none;
    margin: 18px 0;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.link-btn {
    color: var(--brand);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    background: none;
    border: none;
}
.copy-field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-alt);
    border: 1px dashed var(--border-strong);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.84rem;
    font-weight: 700;
}
.copy-field button {
    margin-left: auto;
}

/* ==========================================================================
   Filters bar (search + selects) — used on transactions/beneficiaries/etc.
   ========================================================================== */
.filters-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
}
.search-input-wrap {
    position: relative;
    flex: 1 1 220px;
    min-width: 0;
}
.search-input-wrap svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--text-muted);
    pointer-events: none;
}
.search-input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    background: var(--surface);
    border: 1.5px solid var(--border-strong);
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-sm);
}
.search-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(254, 80, 6, 0.18);
}
.search-input::placeholder {
    color: var(--text-muted);
}
.filter-select {
    padding: 10px 30px 10px 14px;
    background: var(--surface);
    border: 1.5px solid var(--border-strong);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
    appearance: none;
    box-shadow: var(--shadow-sm);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239494aa' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.filter-select:focus {
    border-color: var(--brand);
}

/* ==========================================================================
   Pagination (mirrors the admin panel's page-btn language)
   ========================================================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    padding-top: 16px;
    margin-top: 6px;
    border-top: 1px solid var(--border);
}
.pagination:empty {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
.page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-sm);
}
.page-btn:hover:not(:disabled) {
    background: var(--surface-alt);
    border-color: var(--border-strong);
}
.page-btn.active {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(254, 80, 6, 0.3);
}
.page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.page-ellipsis {
    color: var(--text-muted);
    padding: 0 4px;
    font-size: 0.8rem;
}

/* ==========================================================================
   Rich text (announcements / notification bodies authored in the admin CMS)
   ========================================================================== */
.rich-text {
    font-size: 0.87rem;
    line-height: 1.6;
    color: inherit;
}
.rich-text p {
    margin: 0 0 8px;
}
.rich-text p:last-child {
    margin-bottom: 0;
}
.rich-text strong,
.rich-text b {
    font-weight: 800;
}
.rich-text a {
    color: var(--brand);
    text-decoration: underline;
}
.rich-text ul,
.rich-text ol {
    margin: 0 0 8px;
    padding-left: 20px;
}

.announcement-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 15px 16px;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        rgba(254, 80, 6, 0.1),
        rgba(255, 161, 1, 0.08)
    );
    border: 1px solid rgba(254, 80, 6, 0.2);
}
.announcement-card .icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(254, 80, 6, 0.35);
}
.announcement-card .icon-wrap svg {
    width: 18px;
    height: 18px;
    color: #fff;
}
.announcement-card .rich-text {
    color: var(--text-primary);
}

/* ==========================================================================
   Brand logos (provider / network tiles) — served locally from
   /assets/images/providers, no third-party CDN calls.
   ========================================================================== */
.logo.brand-logo {
    background: #fff;
    padding: 6px;
}
.logo.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.logo.logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--brand);
    background: var(--hover-bg);
}

/* Toast type accents */
.toast-success {
    border-left: 3px solid var(--success);
}
.toast-error {
    border-left: 3px solid var(--danger);
}
.toast-info {
    border-left: 3px solid var(--info);
}

/* ==========================================================================
   Buy Data Bundle — two-screen flow (choose plan → enter details)
   ========================================================================== */
.data-flow-screen {
    display: none;
}
.data-flow-screen.active {
    display: block;
    animation: df-fade 0.18s ease;
}
@keyframes df-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.data-flow-back {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}
.data-flow-back button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 4px;
    border-radius: 8px;
}
.data-flow-back button svg {
    width: 16px;
    height: 16px;
}
.data-flow-back button:hover {
    color: var(--brand);
    background: var(--hover-bg);
}

.selected-plan-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--hover-bg);
    border: 1px solid rgba(254, 80, 6, 0.2);
    margin-bottom: 18px;
}
.selected-plan-summary .sps-info .sps-size {
    font-weight: 800;
    font-size: 1rem;
}
.selected-plan-summary .sps-info .sps-meta {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.selected-plan-summary .sps-price {
    font-weight: 800;
    color: var(--brand);
    font-size: 0.95rem;
    white-space: nowrap;
}
