/* =========================================================
   BRAVO CRM — PAYMENT FORMS
   (Buy / Sell / Convert / Send / Receive, Op selector)
   ========================================================= */

/* -------------------------------------------------------
   PAYMENT OP SELECTOR PAGE
-------------------------------------------------------- */

.op {
    max-width: 980px;
    margin: 0 auto;
    padding: 10px 12px 40px;
}

.op__head {
    text-align: center;
    margin-bottom: 36px;
}

.op__title {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.op__subtitle {
    font-size: 14px;
    color: #64748b;
}

.op__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.op__card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px 22px;
    border-radius: 18px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(15,23,42,.08), 0 2px 8px rgba(15,23,42,.04);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition:
        transform .35s cubic-bezier(.22,.61,.36,1),
        box-shadow .35s cubic-bezier(.22,.61,.36,1);
}

.op__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,#EDC016 0%,#F28739 100%);
    opacity: 0;
    transition: opacity .38s cubic-bezier(.22,.61,.36,1);
    z-index: 0;
}

.op__card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(242,135,57,.30);
    opacity: 0;
    transition: opacity .38s cubic-bezier(.22,.61,.36,1);
    z-index: 0;
}

.op__card > * {
    position: relative;
    z-index: 1;
}

.op__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15,23,42,.12);
}

.op__card:hover::before { opacity: 1; }
.op__card:hover::after  { opacity: 1; }

.op__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    flex-shrink: 0;
    transition:
        background .35s cubic-bezier(.22,.61,.36,1),
        color .35s cubic-bezier(.22,.61,.36,1);
}

.op__icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.op__name {
    font-weight: 600;
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 4px;
    transition: color .35s cubic-bezier(.22,.61,.36,1);
}

.op__desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    min-height: calc(13px * 1.4 * 2); /* lock to 2-line height so all cards stay equal */
    transition: color .35s cubic-bezier(.22,.61,.36,1);
}

.op__card:hover .op__name,
.op__card:hover .op__desc { color: #1A1E30; }

.op__card:hover .op__icon {
    background: rgba(255,255,255,.28);
    color: #1A1E30;
}

@media (prefers-reduced-motion: reduce) {
    .op__card,
    .op__card::before,
    .op__card::after,
    .op__icon,
    .op__name,
    .op__desc {
        transition: none !important;
    }
}


/* -------------------------------------------------------
   SF__ FORM COMPONENTS — shared across Send/Receive/Buy/
   Sell/Convert/WhitelistAddress and any other sf__ form
-------------------------------------------------------- */

.sf__group { margin-bottom: 16px; }

.sf__label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: .02em;
}

.sf__control {
    width: 100%;
    /* Slightly stronger border so inputs stand out from the white card surface */
    border: 1.5px solid rgba(15,23,42,.18);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    /* Faint inner shadow gives the classic "sunken field" feel */
    box-shadow: inset 0 1px 3px rgba(15,23,42,.06);
    /* Very subtle off-white tint so the field reads as a distinct layer */
    background: #fafbfc;
    color: #0f172a;
    transition:
        box-shadow .25s ease,
        border-color .25s ease,
        background .25s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.sf__control:focus {
    background: #fff;
    border-color: rgba(37,99,235,.55);
    box-shadow:
        inset 0 1px 3px rgba(15,23,42,.04),
        0 0 0 4px rgba(37,99,235,.12);
}

/* select specific arrow */
select.sf__control {
    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='%2364748b' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

.sf__control--mono {
    font-family: ui-monospace, 'Cascadia Code', 'Fira Mono', monospace;
    letter-spacing: .04em;
    font-size: 13px;
}

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

.sf__req { color: #dc2626; font-weight: 900; }

.sf__badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid rgba(15,23,42,.08);
    color: #0f172a;
    font-weight: 700;
    white-space: nowrap;
}

.sf__hint {
    margin-top: 6px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

.sf__err {
    display: none;
    font-size: 12px;
    color: #b91c1c;
    margin-top: 4px;
}
.sf__err.active { display: block; }

/* Field-level error highlight (set by Nette.showFormErrors) */
.sf__control.has-error,
.sf__control.is-invalid {
    border-color: rgba(220,38,38,.55) !important;
    background: rgba(220,38,38,.03) !important;
    box-shadow: inset 0 1px 3px rgba(220,38,38,.06), 0 0 0 3px rgba(220,38,38,.09) !important;
}
:root.theme-dark .sf__control.has-error,
:root.theme-dark .sf__control.is-invalid {
    border-color: rgba(246,70,93,.55) !important;
    background: rgba(246,70,93,.05) !important;
    box-shadow: inset 0 1px 3px rgba(246,70,93,.10), 0 0 0 3px rgba(246,70,93,.10) !important;
}

.sf__actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.sf__btn {
    flex: 1;
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    transition:
        transform .28s cubic-bezier(.22,.61,.36,1),
        box-shadow .28s cubic-bezier(.22,.61,.36,1);
    box-shadow:
        0 6px 18px rgba(15,23,42,.25),
        inset 0 1px 0 rgba(255,255,255,.06);
}

.sf__btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 28px rgba(15,23,42,.35),
        0 0 0 1px rgba(255,255,255,.04) inset;
}

.sf__btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(15,23,42,.25);
}

.sf__btn--full  { width: 100%; flex: none; display: block; }

.sf__btn--light {
    background: #fff;
    color: #0f172a;
    border: 1px solid rgba(15,23,42,.12);
    box-shadow: none;
    flex: 0 0 auto;
}

.sf__btn--light:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15,23,42,.08);
}

.sf__alert {
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid rgba(220,38,38,.38);
    background: rgba(220,38,38,.06);
    color: #b91c1c;
}

.sf__alert--danger { color: #b91c1c; }
.sf__alertList { margin: 0; padding-left: 16px; }

.sf__balanceHint {
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.sf__balanceHint span { color: #0f172a; font-weight: 800; }

.sf__maxBtn {
    font-size: 11px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(15,23,42,.10);
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}

.sf__maxBtn:hover {
    background: #f1f5f9;
    border-color: #0f172a;
}

/* -------------------------------------------------------
   SF__ WALLET TYPE — Travel Rule declaration
-------------------------------------------------------- */

.sf__walletTypeOptions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.sf__walletTypeOption {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid rgba(15,23,42,.14);
    border-radius: 12px;
    cursor: pointer;
    background: #fafbfc;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
    user-select: none;
    min-height: 60px;
}

.sf__walletTypeOption:hover {
    border-color: rgba(37,99,235,.35);
    background: #fff;
}

.sf__walletTypeOption input[type="radio"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #1e40af;
    cursor: pointer;
}

.sf__walletTypeOption.is-selected,
.sf__walletTypeOption:has(input:checked) {
    border-color: rgba(37,99,235,.55);
    background: rgba(37,99,235,.04);
    box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}

.sf__walletTypeIcon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(15,23,42,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #475569;
    transition: background .18s ease, color .18s ease;
}

.sf__walletTypeOption:has(input:checked) .sf__walletTypeIcon {
    background: rgba(37,99,235,.10);
    color: #1e40af;
}

.sf__walletTypeOption strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.sf__walletTypeHint {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
    line-height: 1.3;
}

/* ── Checkbox group (self-attestation) ── */

.sf__group--checkbox {
    margin-top: 4px;
    margin-bottom: 16px;
}

.sf__checkboxLabel {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid rgba(15,23,42,.12);
    border-radius: 12px;
    background: rgba(15,23,42,.02);
    cursor: pointer;
    user-select: none;
    transition: border-color .18s ease, background .18s ease;
}

.sf__checkboxLabel:hover {
    border-color: rgba(37,99,235,.30);
    background: rgba(37,99,235,.03);
}

.sf__checkboxLabel:has(.sf__checkbox:checked) {
    border-color: rgba(37,99,235,.45);
    background: rgba(37,99,235,.05);
}

.sf__checkbox {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #1e40af;
    cursor: pointer;
}

.sf__checkboxText {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    font-weight: 500;
}

.sf__checkboxIcon {
    flex-shrink: 0;
    margin-top: 2px;
    color: #64748b;
    transition: color .18s ease;
}

.sf__checkboxLabel:has(.sf__checkbox:checked) .sf__checkboxIcon {
    color: #1e40af;
}

/* ── Dark theme ── */

:root.theme-dark .sf__walletTypeOption {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.12);
}

:root.theme-dark .sf__walletTypeOption:hover {
    border-color: rgba(240,185,11,.35);
    background: rgba(255,255,255,.06);
}

:root.theme-dark .sf__walletTypeOption.is-selected,
:root.theme-dark .sf__walletTypeOption:has(input:checked) {
    border-color: rgba(240,185,11,.55);
    background: rgba(240,185,11,.06);
    box-shadow: 0 0 0 3px rgba(240,185,11,.08);
}

:root.theme-dark .sf__walletTypeOption strong { color: var(--text); }
:root.theme-dark .sf__walletTypeHint          { color: var(--muted); }
:root.theme-dark .sf__checkboxText            { color: var(--text-2, #94a3b8); }
:root.theme-dark .sf__checkbox                { accent-color: #f0b90b; }

:root.theme-dark .sf__checkboxLabel {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.03);
}

:root.theme-dark .sf__checkboxLabel:hover {
    border-color: rgba(240,185,11,.30);
    background: rgba(240,185,11,.04);
}

:root.theme-dark .sf__checkboxLabel:has(.sf__checkbox:checked) {
    border-color: rgba(240,185,11,.45);
    background: rgba(240,185,11,.06);
}

:root.theme-dark .sf__checkboxIcon { color: var(--muted); }
:root.theme-dark .sf__checkboxLabel:has(.sf__checkbox:checked) .sf__checkboxIcon { color: #f0b90b; }

:root.theme-dark .sf__walletTypeIcon {
    background: rgba(255,255,255,.08);
    color: #94a3b8;
}

:root.theme-dark .sf__walletTypeOption:has(input:checked) .sf__walletTypeIcon {
    background: rgba(240,185,11,.12);
    color: #f0b90b;
}

/* ── Responsive — stack columns on small screens ── */
@media (max-width: 480px) {
    .sf__walletTypeOptions {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------
   SF__ DARK THEME
-------------------------------------------------------- */

:root.theme-dark .sf__control {
    background: rgba(255,255,255,.04) !important;
    border-color: rgba(255,255,255,.15) !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.18) !important;
    color: var(--text) !important;
}

:root.theme-dark select.sf__control {
    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='%2394a3b8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-color: rgba(255,255,255,.04) !important;
}

:root.theme-dark .sf__control:focus {
    background: rgba(255,255,255,.07) !important;
    border-color: rgba(240,185,11,.55) !important;
    box-shadow:
        inset 0 1px 3px rgba(0,0,0,.12),
        0 0 0 4px rgba(240,185,11,.12) !important;
}

:root.theme-dark .sf__label    { color: var(--muted) !important; }
:root.theme-dark .sf__hint     { color: var(--muted-2) !important; }
:root.theme-dark .sf__badge    { background: var(--surface-3) !important; border-color: var(--border) !important; color: var(--text) !important; }
:root.theme-dark .sf__maxBtn   { background: var(--surface-2) !important; border-color: var(--border) !important; color: var(--text) !important; }
:root.theme-dark .sf__maxBtn:hover { background: var(--surface-3) !important; border-color: rgba(255,255,255,.30) !important; }

:root.theme-dark .sf__balanceHint       { color: var(--muted) !important; }
:root.theme-dark .sf__balanceHint span,
:root.theme-dark #balanceValue          { color: #f0b90b !important; font-weight: 800 !important; }

:root.theme-dark .sf__btn:not(.sf__btn--light) {
    background: linear-gradient(135deg, #EDC016 0%, #F28739 100%) !important;
    color: #1a1209 !important;
    box-shadow: 0 6px 18px rgba(237,192,22,.30) !important;
}
:root.theme-dark .sf__btn:not(.sf__btn--light):hover {
    filter: brightness(1.08) !important;
    box-shadow: 0 10px 28px rgba(237,192,22,.42) !important;
}

:root.theme-dark .sf__btn--light {
    background: var(--surface-2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}
:root.theme-dark .sf__btn--light:hover { background: var(--surface-3) !important; }

:root.theme-dark .sf__alert {
    background: rgba(246,70,93,.08) !important;
    border-color: rgba(246,70,93,.25) !important;
    color: #f6465d !important;
}

/* -------------------------------------------------------
   PAYMENT FORM PAGES (sfpage / sfcard)
-------------------------------------------------------- */

.sfpage {
    max-width: 980px;
    margin: 0 auto;
    padding: 10px 12px 40px;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.sfpage__top { margin-bottom: 14px; }

.sfwrap {
    max-width: 620px;
    margin: 0 auto;
}

/* Back button */
.sfback {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.sfback svg { width: 16px; height: 16px; }
.sfback:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15,23,42,.08);
    border-color: var(--border);
    color: var(--text);
    text-decoration: none;
}

/* Main form card */
.sfcard {
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: background .25s ease, border-color .25s ease;
}

.sfcard__head { padding: 18px 18px 10px; }

.sfcard__titleRow {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sfcard__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--surface-3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    flex-shrink: 0;
    transition: background .25s ease;
}
.sfcard__icon svg { width: 20px; height: 20px; stroke: currentColor; }

.sfcard__title {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: var(--text);
}

.sfcard__sub {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.sfcard__body { padding: 18px; }


/* -------------------------------------------------------
   CALCULATOR RESULT BLOCK
-------------------------------------------------------- */

.sfcalc {
    margin-top: 16px;
    background: linear-gradient(135deg, #EDC016 0%, #F28739 100%);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 6px 18px rgba(237,192,22,.22);
    color: #1A1E30;
}

.sfcalc__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.sfcalc__label  { font-size: 13px; font-weight: 700; }
.sfcalc__value  { font-size: 18px; font-weight: 900; letter-spacing: .2px; }
.sfcalc__rows   { border-top: 1px solid rgba(26,30,48,.15); padding-top: 10px; }
.sfcalc__row    { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; margin-top: 6px; }
.sfcalc__muted  { opacity: .82; }
.sfcalc__strong { font-weight: 800; }


/* -------------------------------------------------------
   INFO BOX
-------------------------------------------------------- */

.sfinfo {
    margin-top: 16px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
    padding: 16px 18px;
    transition: background .25s ease, border-color .25s ease;
}

.sfinfo__title {
    font-weight: 900;
    color: var(--text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sfinfo__list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 13px;
}

.sfinfo__list li { margin: 6px 0; }


/* -------------------------------------------------------
   PAYMENT METHOD CARDS
-------------------------------------------------------- */

.payment-method-card {
    display: block;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.payment-method-card:hover {
    border-color: var(--brand-2);
    background: var(--surface-2);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}


/* -------------------------------------------------------
   RESULT PAGE ICONS
-------------------------------------------------------- */

.result-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.result-icon--success   { background: rgba(34,197,94,.12);   color: #22c55e; }
.result-icon--pending   { background: rgba(245,158,11,.12);  color: #f59e0b; }
.result-icon--error     { background: rgba(239,68,68,.12);   color: #ef4444; }
.result-icon--cancelled { background: rgba(100,116,139,.10); color: #94a3b8; }
.result-icon--info      { background: rgba(14,165,233,.12);  color: #0ea5e9; }


/* -------------------------------------------------------
   UTILITY COLORS
-------------------------------------------------------- */

.tc-success { color: #22c55e; }
.tc-warning { color: #f59e0b; }
.tc-danger  { color: #ef4444; }
.tc-info    { color: #0ea5e9; }

.font-monospace {
    font-family: 'Courier New', ui-monospace, monospace;
    font-size: 11px;
}


/* -------------------------------------------------------
   DARK THEME — PAYMENT
-------------------------------------------------------- */

:root.theme-dark .payment-method-card {
    background: #1e2329;
    border-color: rgba(255,255,255,.07);
}
:root.theme-dark .payment-method-card:hover {
    border-color: #f0b90b;
    background: rgba(240,185,11,.05);
}

:root.theme-dark .sfcalc {
    background: linear-gradient(135deg, #f0b90b 0%, #fcd535 100%);
    box-shadow: 0 6px 24px rgba(240,185,11,.28), 0 0 40px rgba(240,185,11,.10);
}

:root.theme-dark input:focus,
:root.theme-dark select:focus,
:root.theme-dark textarea:focus {
    border-color: rgba(240,185,11,.5);
    box-shadow: 0 0 0 3px rgba(240,185,11,.10);
}

/* sf__control (payment form inputs) */
:root.theme-dark .sf__control {
    background: rgba(255,255,255,.04) !important;
    color: var(--text) !important;
    border-color: rgba(255,255,255,.15) !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.18) !important;
}
:root.theme-dark .sf__control:focus {
    background: rgba(255,255,255,.07) !important;
    border-color: rgba(240,185,11,.55) !important;
    box-shadow:
        inset 0 1px 3px rgba(0,0,0,.12),
        0 0 0 4px rgba(240,185,11,.12) !important;
}
:root.theme-dark .sf__label { color: var(--muted) !important; }
:root.theme-dark .sf__hint  { color: var(--muted-2) !important; }
:root.theme-dark .sf__badge {
    background: var(--surface-3) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}
:root.theme-dark .sf__balanceHint { color: var(--muted) !important; }
:root.theme-dark .sf__btn--light {
    background: var(--surface-2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}
:root.theme-dark .sf__btn--light:hover { background: var(--surface-3) !important; }

/* Op page dark */
:root.theme-dark .op__card {
    background: #1e2329;
    border-color: rgba(255,255,255,.06);
    box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
:root.theme-dark .op__card::before {
    background: linear-gradient(135deg, #EDC016 0%, #F28739 100%);
}
:root.theme-dark .op__title    { color: var(--text) !important; }
:root.theme-dark .op__subtitle { color: var(--muted) !important; }
:root.theme-dark .op__icon {
    background: var(--surface-3) !important;
    color: var(--text) !important;
}
:root.theme-dark .op__name { color: var(--text) !important; }
:root.theme-dark .op__desc { color: var(--muted) !important; }
:root.theme-dark .op__card:hover .op__name,
:root.theme-dark .op__card:hover .op__desc { color: #0b0e11 !important; }
:root.theme-dark .op__card:hover .op__icon { background: rgba(255,255,255,.22); color: #1a1209; }
:root.theme-dark .op__card:hover .op__icon svg { stroke: #1a1209; }

/* Global dark btn-primary */
:root.theme-dark .btn.btn-primary,
:root.theme-dark button.btn-primary,
:root.theme-dark input[type="submit"].btn-primary,
:root.theme-dark a.btn-primary {
    background: linear-gradient(135deg, #EDC016 0%, #F28739 100%) !important;
    border-color: rgba(240,185,11,.35) !important;
    color: #1a1209 !important;
    box-shadow: 0 4px 18px rgba(240,185,11,.28) !important;
    font-weight: 700 !important;
}
:root.theme-dark .btn.btn-primary:hover,
:root.theme-dark button.btn-primary:hover,
:root.theme-dark input[type="submit"].btn-primary:hover,
:root.theme-dark a.btn-primary:hover {
    filter: brightness(1.08) !important;
    box-shadow: 0 6px 24px rgba(240,185,11,.42) !important;
    transform: translateY(-1px);
    color: #1a1209 !important;
}
:root.theme-dark .btn.btn-primary:active,
:root.theme-dark button.btn-primary:active,
:root.theme-dark input[type="submit"].btn-primary:active {
    filter: brightness(0.96) !important;
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(240,185,11,.22) !important;
}

:root.theme-dark .sf__btn:not(.sf__btn--light) {
    background: linear-gradient(135deg, #EDC016 0%, #F28739 100%) !important;
    color: #1a1209 !important;
    box-shadow: 0 6px 18px rgba(237,192,22,.30) !important;
}
:root.theme-dark .sf__btn:not(.sf__btn--light):hover {
    filter: brightness(1.08) !important;
    box-shadow: 0 10px 28px rgba(237,192,22,.42) !important;
}
:root.theme-dark .sf__btn:not(.sf__btn--light):active {
    filter: brightness(0.96) !important;
    box-shadow: 0 3px 10px rgba(237,192,22,.22) !important;
}

/* ── Disabled banner (kill-switch placeholder) ────────── */
.sf--disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}
.sf__disabled-banner {
    text-align: center;
    padding: 32px 24px;
    max-width: 360px;
}
.sf__disabled-banner svg {
    margin: 0 auto 14px;
    display: block;
    opacity: .85;
}
.sf__disabled-banner p {
    font-size: 15px;
    font-weight: 500;
    color: #92400e;
    margin: 0;
    line-height: 1.5;
}
:root.theme-dark .sf__disabled-banner p {
    color: #fbbf24;
}

