:root {
    --tv-brand:        #CFFF3D;
    --tv-brand-strong: #BFF21F;
    --tv-brand-hi:     #DFFF7A;
    --tv-brand-soft:   #F0F7D6;
    --tv-brand-soft-2: #E2EFB3;
    --tv-brand-grad:   linear-gradient(135deg, #DFFF7A 0%, #BFF21F 100%);
    --tv-accent:        #4B6A00;
    --tv-accent-strong: #3A5200;
    --tv-on-brand:      #232122;
    --tv-ring:          rgba(110,150,0,.26);

    --tv-bg:         #F4F2EC;
    --tv-surface:    #FFFFFF;
    --tv-surface-2:  #F8F7F3;

    --tv-ink-card:   #232122;
    --tv-ink-card-2: #2E2C2D;
    --tv-ink:        #232122;
    --tv-ink-2:      #3E3B3C;
    --tv-muted:      #6B6862;
    --tv-line:       #E7E4DC;
    --tv-line-strong:#D8D4CA;

    --tv-ok:     #2F7A1F;  --tv-ok-bg:     #EAF5DF;
    --tv-warn:   #8F5400;  --tv-warn-bg:   #FBF1DC;
    --tv-danger: #B42318;  --tv-danger-bg: #FCEBE9;
    --tv-info:   #1F5E8C;  --tv-info-bg:   #E6F0F8;

    --tv-radius:    20px;
    --tv-radius-sm: 14px;
    --tv-radius-lg: 26px;
    --tv-pill:      999px;

    --tv-shadow-sm:    0 1px 2px rgba(35,33,34,.06);
    --tv-shadow:       0 8px 24px rgba(35,33,34,.06);
    --tv-shadow-md:    0 16px 36px rgba(35,33,34,.12);
    --tv-shadow-brand: 0 0 0 transparent;

    --tv-font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
    --tv-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

body {
    margin: 0;
    font-family: var(--tv-font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--tv-ink);
    background: var(--tv-bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

input, button, textarea, select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

#app {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 1rem 1rem 7rem;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto 0;
    height: 260px;
    background:
        radial-gradient(120% 80% at 100% 0%, var(--tv-line), transparent 60%),
        radial-gradient(90% 70% at 0% 0%, var(--tv-line), transparent 55%);
    pointer-events: none;
    z-index: -1;
}

.tv-muted { color: var(--tv-muted) !important; }
.tv-ink   { color: var(--tv-ink) !important; }

.tv-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.appHeader {
    background: transparent;
    padding: 6px 0;
    height: auto;
}
.appHeader .welcome-mesg span.text-muted { font-size: 12px; color: var(--tv-muted); }
.appHeader .welcome-mesg span:last-child { font-size: 15px; font-weight: 700; color: var(--tv-ink); }
.appHeader .avatar { border-radius: 16px; box-shadow: var(--tv-shadow-sm); }

.appHeader .headerButton {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--tv-surface);
    box-shadow: var(--tv-shadow-sm);
    color: var(--tv-ink-2);
}
.appHeader .headerButton:active { transform: scale(.96); }

.appBottomMenu {
    position: fixed;
    z-index: 100;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: 12px;
    width: calc(100% - 24px);
    max-width: 456px;
    height: 68px;
    border: 0;
    border-radius: var(--tv-pill);
    background: var(--tv-surface);
    box-shadow: var(--tv-shadow-md);
}
.appBottomMenu .item { color: var(--tv-muted); }
.appBottomMenu .item strong { font-size: 11px; font-weight: 600; }
.appBottomMenu .item .col { padding: 0; }
.appBottomMenu .item.active { color: var(--tv-accent); }
.appBottomMenu .item.active strong { font-weight: 700; }

.tv-card {
    background: var(--tv-surface);
    border-radius: var(--tv-radius);
    box-shadow: var(--tv-shadow);
    border: 1px solid var(--tv-line);
}
.tv-card-pad { padding: 16px; }

.tv-card-dark {
    background: linear-gradient(150deg, var(--tv-ink-card-2) 0%, var(--tv-ink-card) 70%);
    color: #fff;
    border-radius: var(--tv-radius-lg);
    box-shadow: var(--tv-shadow-md);
    position: relative;
    overflow: hidden;
}
.tv-card-dark::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -90px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 65%, var(--tv-line), transparent 72%);
    filter: blur(12px);
    pointer-events: none;
}

.tv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--tv-radius-sm);
    font-family: var(--tv-font);
    font-size: 15px;
    font-weight: 700;
    color: var(--tv-on-brand);
    background: var(--tv-brand);
    box-shadow: var(--tv-shadow-brand);
    transition: transform .12s ease, background .15s ease;
}
.tv-btn:hover  { color: var(--tv-on-brand); background: var(--tv-brand-strong); }
.tv-btn:active { transform: scale(.985); }
.tv-btn[disabled], .tv-btn.is-loading { opacity: .55; box-shadow: none; pointer-events: none; }

.tv-btn-block { width: 100%; }

.tv-btn-ink { background: var(--tv-ink-card); box-shadow: var(--tv-shadow-md); }
.tv-btn-ink:hover { background: #000; }

.tv-btn-outline {
    background: transparent;
    color: var(--tv-ink);
    border: 1.5px solid var(--tv-line-strong);
    box-shadow: none;
}
.tv-btn-outline:hover { color: var(--tv-ink); border-color: var(--tv-ink-card); }

.tv-btn-danger {
    background: transparent;
    color: var(--tv-danger);
    border: 1.5px solid var(--tv-danger);
    box-shadow: none;
}
.tv-btn-danger:hover { color: #fff; background: var(--tv-danger); }

.tv-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    border-radius: var(--tv-pill);
    font-size: 12px;
    font-weight: 700;
    background: var(--tv-brand-soft);
    color: var(--tv-accent-strong);
}
.tv-pill-ok     { background: var(--tv-ok-bg);     color: var(--tv-ok); }
.tv-pill-warn   { background: var(--tv-warn-bg);   color: var(--tv-warn); }
.tv-pill-danger { background: var(--tv-danger-bg); color: var(--tv-danger); }
.tv-pill-info   { background: var(--tv-info-bg);   color: var(--tv-info); }

.tv-field { margin-bottom: 14px; }
.tv-field-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tv-ink-2);
}
.tv-input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1.5px solid var(--tv-line-strong);
    border-radius: var(--tv-radius-sm);
    background: var(--tv-surface);
    font-family: var(--tv-font);
    font-size: 15px;
    color: var(--tv-ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.tv-input-wrap { position: relative; }
.tv-input-wrap .tv-input { padding-right: 46px; }

.tv-input::placeholder { color: var(--tv-muted); }
.tv-input:focus {
    outline: 0;
    border-color: var(--tv-accent);
    box-shadow: 0 0 0 4px var(--tv-ring);
}
.tv-input.is-invalid { border-color: var(--tv-danger); }
.tv-hint { margin-top: 6px; font-size: 12px; color: var(--tv-muted); }
.tv-hint-error { color: var(--tv-danger); }

.tv-empty { padding: 48px 20px; text-align: center; }
.tv-empty-ic {
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: var(--tv-brand-soft);
    color: var(--tv-accent);
    font-size: 32px;
}
.tv-empty-title { font-size: 16px; font-weight: 700; color: var(--tv-ink); }
.tv-empty-sub   { margin-top: 4px; font-size: 13.5px; color: var(--tv-muted); }

.tv-section-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--tv-ink);
    letter-spacing: -.01em;
}
.tv-divider { height: 1px; background: var(--tv-line); border: 0; margin: 16px 0; }

.tv-fab {
    position: fixed;
    right: 16px;
    bottom: 96px;
    z-index: 99;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--tv-brand);
    color: var(--tv-on-brand);
    font-size: 26px;
    box-shadow: var(--tv-shadow-brand);
    transition: transform .12s ease;
}
.tv-fab:hover  { color: #fff; }
.tv-fab:active { transform: scale(.94); }

.tv-stack > * + * { margin-top: 12px; }
.tv-row { display: flex; align-items: center; gap: 12px; }
.tv-grow { flex: 1 1 auto; min-width: 0; }
.tv-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tv-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.tv-bal { padding: 20px 20px 18px; }
.tv-bal-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255,255,255,.62);
}
.tv-bal-eye { cursor: pointer; font-size: 15px; }
.tv-bal-amt {
    margin: 6px 0 2px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
}
.tv-bal-sub { font-size: 12px; color: rgba(255,255,255,.55); }

.tv-quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 18px;
}
.tv-quick a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    border-radius: var(--tv-radius-sm);
    background: rgba(255,255,255,.09);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease;
}
.tv-quick a:hover { background: rgba(255,255,255,.16); color: #fff; }
.tv-quick i { font-size: 20px; }

.tv-va { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.tv-va-ic {
    flex: none;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--tv-brand-soft);
    color: var(--tv-accent);
    font-size: 20px;
}
.tv-va-num {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--tv-ink);
}
.tv-va-meta { font-size: 12px; color: var(--tv-muted); }
.tv-va-copy {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: var(--tv-brand-soft);
    color: var(--tv-accent);
    font-size: 18px;
    cursor: pointer;
}
.tv-va-copy:hover { background: var(--tv-brand); color: var(--tv-on-brand); }

.tv-tiles {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.tv-tiles::-webkit-scrollbar { display: none; }
.tv-tile {
    flex: none;
    width: 132px;
    padding: 14px;
    border-radius: var(--tv-radius);
    background: var(--tv-surface);
    border: 1px solid var(--tv-line);
    box-shadow: var(--tv-shadow-sm);
    text-decoration: none;
    transition: transform .12s ease, box-shadow .15s ease;
}
.tv-tile:hover { transform: translateY(-2px); box-shadow: var(--tv-shadow); }
.tv-tile-ic {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--tv-brand-soft);
    color: var(--tv-accent);
    font-size: 19px;
    margin-bottom: 10px;
}
.tv-tile-name { font-size: 13.5px; font-weight: 700; color: var(--tv-ink); line-height: 1.25; }
.tv-tile-sub { margin-top: 2px; font-size: 11.5px; color: var(--tv-muted); }

.tv-list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}
.tv-list-row + .tv-list-row { border-top: 1px solid var(--tv-line); }
.tv-list-ic {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--tv-brand-soft);
    color: var(--tv-accent);
    font-size: 18px;
}
.tv-list-title { font-size: 14px; font-weight: 700; color: var(--tv-ink); }
.tv-list-sub { margin-top: 1px; font-size: 11.5px; color: var(--tv-muted); }
.tv-list-amt { font-size: 14px; font-weight: 800; white-space: nowrap; }
.tv-list-amt.is-in  { color: var(--tv-ok); }
.tv-list-amt.is-out { color: var(--tv-ink); }

.tv-head-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 22px 2px 10px;
}
.tv-head-row a { font-size: 12.5px; font-weight: 700; color: var(--tv-accent); text-decoration: none; }

.tv-code {
    font-family: var(--tv-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--tv-ink);
}

.tv-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(35,33,34,.55);
    backdrop-filter: blur(3px);
}
.tv-modal[hidden] { display: none !important; }
.tv-modal-card {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    border-radius: var(--tv-radius-lg);
    background: var(--tv-surface);
    box-shadow: var(--tv-shadow-md);
}

.tv-spin {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,.45);
    border-left-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: tv-spin .7s linear infinite;
}
.tv-spin[hidden] { display: none !important; }
@keyframes tv-spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

.tv-bn-wallet {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.tv-bn-wallet-label { font-size: 11.5px; font-weight: 600; color: var(--tv-muted); }
.tv-bn-wallet-amt { font-size: 20px; font-weight: 800; color: var(--tv-ink); letter-spacing: -.01em; }

.tv-bn-form { padding: 16px; }
.tv-bn-form .tv-field:last-of-type { margin-bottom: 0; }

.nice-select {
    position: relative;
    float: none;
    display: block;
    width: 100%;
    height: auto;
    min-height: 54px;
    line-height: 1.4;
    padding: 15px 44px 15px 16px;
    border: 1.5px solid var(--tv-line-strong);
    border-radius: var(--tv-radius-sm);
    background: var(--tv-surface);
    font-family: var(--tv-font);
    font-size: 15px;
    font-weight: 500;
    color: var(--tv-ink);
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
}
.nice-select:hover { border-color: var(--tv-line-strong); }
.nice-select.open { border-color: var(--tv-accent); box-shadow: 0 0 0 4px var(--tv-ring); }
.nice-select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid var(--tv-muted);
    border-bottom: 2px solid var(--tv-muted);
    transform: rotate(45deg);
    transform-origin: 66% 66%;
    transition: transform .15s ease;
    pointer-events: none;
}
.nice-select.open::after { transform: rotate(-135deg); }
.nice-select .nice-select-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 40;
    margin: 0;
    padding: 6px;
    background: var(--tv-surface);
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius-sm);
    box-shadow: var(--tv-shadow-md);
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease;
}
.nice-select.open .nice-select-dropdown { transform: translateY(0); }
.nice-select .list {
    position: static;
    max-height: 280px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.nice-select .option {
    padding: 11px 12px;
    line-height: 1.35;
    min-height: 0;
    border-radius: 9px;
    font-size: 14.5px;
    color: var(--tv-ink-2);
    cursor: pointer;
    list-style: none;
}
.nice-select.open .nice-select-search-box { pointer-events: auto; }
.nice-select .option:hover,
.nice-select .option.focus,
.nice-select .option.selected.focus { background: var(--tv-brand-soft); color: var(--tv-accent-strong); }
.nice-select .option.selected { font-weight: 700; color: var(--tv-ink); }
.nice-select .option.disabled { color: var(--tv-muted); cursor: default; background: transparent; }
.nice-select .nice-select-search-box { padding: 4px 4px 8px; }
.nice-select .nice-select-search {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1.5px solid var(--tv-line-strong);
    border-radius: 10px;
    font-family: var(--tv-font);
    font-size: 14px;
}
.nice-select .nice-select-search:focus { outline: 0; border-color: var(--tv-accent); }

.tv-bn-loader {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 2px 0;
    font-size: 12.5px;
    color: var(--tv-muted);
}
.tv-bn-loader .tv-spin { border-color: var(--tv-line-strong); border-left-color: var(--tv-brand); }

.tv-warn-strip {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 11px 14px;
    margin: 14px 0;
    border-radius: var(--tv-radius-sm);
    background: var(--tv-warn-bg);
    color: var(--tv-warn);
    font-size: 12.5px;
    font-weight: 600;
}

.tv-num-card {
    background: var(--tv-surface);
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius);
    box-shadow: var(--tv-shadow);
    padding: 14px;
    margin-bottom: 12px;
}
.tv-num-head { display: flex; align-items: center; gap: 11px; }
.tv-num-flag {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    object-fit: cover;
    background: var(--tv-surface-2);
}
.tv-num-digits {
    font-size: 17px;
    font-weight: 800;
    color: var(--tv-ink);
    letter-spacing: .01em;
}
.tv-num-meta { font-size: 12px; color: var(--tv-muted); margin-top: 1px; }
.tv-icon-btn {
    flex: none;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 11px;
    background: var(--tv-brand-soft);
    color: var(--tv-accent);
    font-size: 17px;
    cursor: pointer;
}
.tv-icon-btn:hover { background: var(--tv-brand); color: var(--tv-on-brand); }

.tv-otp-box { position: relative; margin-top: 12px; }
.tv-otp-box textarea {
    width: 100%;
    min-height: 86px;
    padding: 13px 14px 34px;
    border: 1.5px solid var(--tv-line);
    border-radius: var(--tv-radius-sm);
    background: var(--tv-surface-2);
    font-family: var(--tv-mono);
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--tv-ink);
    resize: none;
}
.tv-otp-box textarea:focus { outline: 0; border-color: var(--tv-line-strong); }
.tv-otp-timer {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: var(--tv-pill);
    background: var(--tv-ink-card);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.tv-num-actions { display: flex; gap: 9px; margin-top: 12px; }
.tv-num-actions .tv-btn { flex: 1; height: 44px; font-size: 13.5px; box-shadow: none; }

.tv-loading { padding: 34px; text-align: center; color: var(--tv-muted); font-size: 13px; }
.tv-loading .tv-spin {
    border-color: var(--tv-line-strong);
    border-left-color: var(--tv-brand);
    width: 26px;
    height: 26px;
    border-width: 3px;
    display: block;
    margin: 0 auto 12px;
}

.tv-tabs-row {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 14px;
    scrollbar-width: none;
}
.tv-tabs-row::-webkit-scrollbar { display: none; }
.tv-tab {
    flex: none;
    padding: 9px 16px;
    border-radius: var(--tv-pill);
    background: var(--tv-surface);
    border: 1px solid var(--tv-line);
    font-size: 13px;
    font-weight: 700;
    color: var(--tv-ink-2);
    text-decoration: none;
    white-space: nowrap;
}
.tv-tab:hover { color: var(--tv-ink); border-color: var(--tv-line-strong); }
.tv-tab.is-on {
    background: var(--tv-ink-card);
    border-color: var(--tv-ink-card);
    color: #fff;
}

.tv-price-note {
    margin: 8px 2px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--tv-accent-strong);
}
.tv-price-note:empty { display: none; }

.tv-acct {
    padding: 18px;
    text-align: center;
}
.tv-acct-bank { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.62); letter-spacing: .04em; text-transform: uppercase; }
.tv-acct-num {
    margin: 8px 0 6px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: .06em;
    font-variant-numeric: tabular-nums;
}
.tv-acct-name { font-size: 12.5px; color: rgba(255,255,255,.62); }
.tv-acct-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 11px 22px;
    border: 0;
    border-radius: var(--tv-pill);
    background: rgba(255,255,255,.14);
    color: #fff;
    font-family: var(--tv-font);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}
.tv-acct-copy:hover { background: rgba(255,255,255,.24); }

.tv-method {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: var(--tv-font);
}
.tv-method + .tv-method { border-top: 1px solid var(--tv-line); }
.tv-method[disabled] { opacity: .45; cursor: not-allowed; }
.tv-method-chev { color: var(--tv-muted); font-size: 18px; transition: transform .18s ease; }
.tv-method.is-open .tv-method-chev { transform: rotate(90deg); }

.tv-method-panel {
    padding: 0 16px 16px;
    border-top: 1px solid var(--tv-line);
}
.tv-method-panel[hidden] { display: none !important; }

.tv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tv-chip {
    padding: 8px 14px;
    border: 1.5px solid var(--tv-line-strong);
    border-radius: var(--tv-pill);
    background: var(--tv-surface);
    font-family: var(--tv-font);
    font-size: 13px;
    font-weight: 700;
    color: var(--tv-ink-2);
    cursor: pointer;
}
.tv-chip:hover { border-color: var(--tv-accent); color: var(--tv-accent); }

.tv-search {
    position: relative;
    margin-bottom: 12px;
}
.tv-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tv-muted);
    font-size: 18px;
    pointer-events: none;
}
.tv-search input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 44px;
    border: 1.5px solid var(--tv-line-strong);
    border-radius: var(--tv-pill);
    background: var(--tv-surface);
    font-family: var(--tv-font);
    font-size: 14.5px;
    color: var(--tv-ink);
}
.tv-search input:focus { outline: 0; border-color: var(--tv-accent); box-shadow: 0 0 0 4px var(--tv-ring); }

.tv-hist-card {
    background: var(--tv-surface);
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius);
    box-shadow: var(--tv-shadow-sm);
    padding: 14px;
    margin-bottom: 10px;
}
.tv-hist-top { display: flex; align-items: flex-start; gap: 11px; }
.tv-hist-body { margin-top: 11px; }
.tv-sms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border-radius: var(--tv-radius-sm);
    background: var(--tv-surface-2);
    border: 1px solid var(--tv-line);
    font-family: var(--tv-mono);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--tv-ink-2);
    word-break: break-word;
}
.tv-sms button {
    flex: none;
    border: 0;
    background: transparent;
    color: var(--tv-accent);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
}

.tv-count { font-size: 12px; color: var(--tv-muted); margin: 0 2px 10px; }
.tv-more { display: flex; justify-content: center; margin: 4px 0 8px; }
.tv-more[hidden] { display: none !important; }

.tv-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: var(--tv-brand-grad);
    color: var(--tv-on-brand);
    font-size: 30px;
    font-weight: 800;
    box-shadow: var(--tv-shadow-brand);
}

.tv-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--tv-ink-2);
}
.tv-step + .tv-step { margin-top: 14px; }
.tv-step-n {
    flex: none;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--tv-brand-soft);
    color: var(--tv-accent-strong);
    font-size: 12px;
    font-weight: 800;
}

.tv-endpoint {
    padding: 12px 14px;
    border-radius: var(--tv-radius-sm);
    background: var(--tv-ink-card);
    color: #EDEAE3;
    font-family: var(--tv-mono);
    font-size: 12px;
    line-height: 1.6;
    white-space: nowrap;
}

.tv-doc-h {
    margin: 16px 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--tv-muted);
}
.tv-doc-row {
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-size: 13px;
    color: var(--tv-ink-2);
    line-height: 1.55;
}
.tv-doc-row + .tv-doc-row { margin-top: 7px; }
.tv-tag {
    flex: none;
    padding: 3px 9px;
    border-radius: 7px;
    background: var(--tv-brand-soft);
    color: var(--tv-accent-strong);
    font-family: var(--tv-mono);
    font-size: 11.5px;
    font-weight: 700;
}
.tv-tag-err { background: var(--tv-danger-bg); color: var(--tv-danger); }

.tv-svc { position: relative; }
.tv-svc-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1.5px solid var(--tv-line-strong);
    border-radius: var(--tv-radius-sm);
    background: var(--tv-surface);
    font-family: var(--tv-font);
    font-size: 15px;
    font-weight: 600;
    color: var(--tv-ink);
    text-align: left;
    cursor: pointer;
}
.tv-svc-trigger:disabled { opacity: .55; cursor: not-allowed; }
.tv-svc-trigger.is-open { border-color: var(--tv-accent); box-shadow: 0 0 0 4px var(--tv-ring); }
.tv-svc-trigger .is-placeholder { color: var(--tv-muted); font-weight: 500; }
.tv-svc-chev { color: var(--tv-muted); font-size: 20px; transition: transform .15s ease; }
.tv-svc-trigger.is-open .tv-svc-chev { transform: rotate(180deg); }

.tv-svc-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius-sm);
    background: var(--tv-surface);
    box-shadow: var(--tv-shadow-md);
    overflow: hidden;
}
.tv-svc-panel[hidden] { display: none !important; }
.tv-svc-search { position: relative; padding: 10px; border-bottom: 1px solid var(--tv-line); }
.tv-svc-search i {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tv-muted);
    font-size: 16px;
}
.tv-svc-search input {
    width: 100%;
    height: 42px;
    padding: 0 12px 0 38px;
    border: 1.5px solid var(--tv-line-strong);
    border-radius: 10px;
    font-family: var(--tv-font);
    font-size: 14px;
}
.tv-svc-search input:focus { outline: 0; border-color: var(--tv-accent); }

.tv-svc-list { max-height: 300px; overflow-y: auto; }
.tv-svc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid var(--tv-line);
    background: transparent;
    font-family: var(--tv-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--tv-ink-2);
    text-align: left;
    cursor: pointer;
}
.tv-svc-item:hover { background: var(--tv-brand-soft); color: var(--tv-accent-strong); }
.tv-svc-meta { flex: none; font-size: 11px; font-weight: 500; color: var(--tv-muted); }
.tv-svc-price { flex: none; font-size: 13px; font-weight: 800; color: var(--tv-accent-strong); }
.tv-svc-none { padding: 20px; text-align: center; font-size: 13px; color: var(--tv-muted); }

.tv-price-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 13px 15px;
    border-radius: var(--tv-radius-sm);
    background: var(--tv-brand-soft);
    border: 1px solid var(--tv-brand-soft-2);
}
.tv-price-box[hidden] { display: none !important; }

a { color: var(--tv-accent); }
a:hover, a:active, a:focus { color: var(--tv-accent-strong); }

.btn-primary,
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: var(--tv-brand) !important;
    border-color: var(--tv-accent) !important; color: var(--tv-on-brand); }
.btn-link { color: var(--tv-accent) !important; }

.appBottomMenu .item.active:before { background: var(--tv-brand) !important; color: var(--tv-on-brand); }
.appBottomMenu .item.active .icon,
.appBottomMenu .item.active ion-icon,
.appBottomMenu .item.active strong { color: var(--tv-accent) !important; }
.appBottomMenu .item .icon,
.appBottomMenu .item strong { color: var(--tv-muted); }
.appBottomMenu .item:hover .icon,
.appBottomMenu .item:hover ion-icon,
.appBottomMenu .item:hover strong { color: var(--tv-ink-2) !important; }
.appBottomMenu .item.active:hover .icon,
.appBottomMenu .item.active:hover strong { color: var(--tv-accent) !important; }

.tv-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}
.tv-hdr-id {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
}
.tv-hdr-logo {
    flex: none;
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}
.tv-hdr-greet { font-size: 11.5px; color: var(--tv-muted); line-height: 1.3; }
.tv-hdr-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--tv-ink);
    line-height: 1.25;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tv-hdr-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.appHeader .avatar,
.appHeader .tv-hdr-logo { width: 40px; height: 40px; margin-right: 0; }

.tv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.tv-gtile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 13px 6px;
    border-radius: var(--tv-radius-sm);
    background: var(--tv-surface);
    border: 1px solid var(--tv-line);
    box-shadow: var(--tv-shadow-sm);
    text-decoration: none;
    text-align: center;
    transition: transform .12s ease, box-shadow .15s ease;
}
.tv-gtile:hover { transform: translateY(-2px); box-shadow: var(--tv-shadow); }
.tv-gtile-ic {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--tv-brand-soft);
    color: var(--tv-accent);
    font-size: 20px;
}
.tv-gtile-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--tv-ink-2);
    line-height: 1.25;
}
.tv-gtile.is-soon { opacity: .58; }
.tv-gtile.is-soon .tv-gtile-ic { background: var(--tv-surface-2); color: var(--tv-muted); }
.tv-gtile-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 6px;
    border-radius: var(--tv-pill);
    background: var(--tv-warn-bg);
    color: var(--tv-warn);
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tv-net-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tv-net {
    flex: 1 1 0;
    min-width: 72px;
    padding: 12px 8px;
    border: 1.5px solid var(--tv-line-strong);
    border-radius: var(--tv-radius-sm);
    background: var(--tv-surface);
    font-family: var(--tv-font);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--tv-ink-2);
    cursor: pointer;
}
.tv-net:hover { border-color: var(--tv-accent); color: var(--tv-accent); }
.tv-net.is-on {
    border-color: var(--tv-accent);
    background: var(--tv-brand-soft);
    color: var(--tv-accent-strong);
}

.tv-plan-list { max-height: 320px; overflow-y: auto; }
.tv-plan {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 8px;
    border: 1.5px solid var(--tv-line);
    border-radius: var(--tv-radius-sm);
    background: var(--tv-surface);
    font-family: var(--tv-font);
    text-align: left;
    cursor: pointer;
}
.tv-plan:hover { border-color: var(--tv-line-strong); }
.tv-plan.is-on { border-color: var(--tv-accent); background: var(--tv-brand-soft); }
.tv-plan-name { display: block; font-size: 14px; font-weight: 700; color: var(--tv-ink); }
.tv-plan-meta { display: block; margin-top: 2px; font-size: 11.5px; color: var(--tv-muted); text-transform: capitalize; }
.tv-plan-price { flex: none; font-size: 14px; font-weight: 800; color: var(--tv-accent-strong); }

.tv-token-box {
    margin-top: 14px;
    padding: 14px;
    border-radius: var(--tv-radius-sm);
    background: var(--tv-ok-bg);
    border: 1px solid var(--tv-line);
    text-align: center;
}
.tv-token-box[hidden] { display: none !important; }
.tv-token-label { font-size: 11.5px; font-weight: 700; color: var(--tv-ok); text-transform: uppercase; letter-spacing: .05em; }
.tv-token-value {
    margin-top: 6px;
    font-family: var(--tv-mono);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--tv-ink);
    word-break: break-all;
}

.tv-eye {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--tv-muted);
    cursor: pointer;
    font-size: 19px;
}
.tv-eye:hover { color: var(--tv-ink-2); background: var(--tv-brand-soft); }

.tv-hdr-inner { gap: 10px; }
.tv-hdr-back {
    flex: none;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--tv-surface);
    box-shadow: var(--tv-shadow-sm);
    color: var(--tv-ink);
    font-size: 21px;
}
.tv-hdr-back:hover { color: var(--tv-accent); }
.tv-hdr-back:active { transform: scale(.96); }
.tv-hdr-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--tv-ink);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tv-hdr-spacer { flex: none; width: 42px; }

.appHeader { margin-bottom: 14px; }
.tv-card-dark + .tv-card,
.tv-card + .tv-card { margin-top: 12px; }

.tv-banner {
    position: relative;
    margin: 14px 0 4px;
    border-radius: var(--tv-radius);
    overflow: hidden;
    box-shadow: var(--tv-shadow);
    background: var(--tv-surface-2);
}
.tv-banner-track {
    display: flex;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.tv-banner-slide {
    flex: 0 0 100%;
    display: block;
    line-height: 0;
}
.tv-banner-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 1;
    object-fit: cover;
    display: block;
}
.tv-banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.tv-banner-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}
.tv-banner-dot.is-on { width: 20px; border-radius: 999px; background: #fff; }


.appBottomMenu .item:before,
.appBottomMenu .item.active:before { display: none !important; }
.appBottomMenu .item .icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 30px;
    border-radius: var(--tv-pill);
    transition: background .15s ease, color .15s ease;
}
.appBottomMenu .item.active .icon {
    background: var(--tv-brand-soft);
    color: var(--tv-accent) !important;
}
.appBottomMenu .item.active strong {
    color: var(--tv-ink) !important;
    font-weight: 800;
}

.appBottomMenu .item .icon { margin: 0 auto 3px; }

.tv-sheet {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(35,33,34,0);
    transition: background .2s ease;
}
.tv-sheet[hidden] { display: none !important; }
.tv-sheet.is-open { background: rgba(35,33,34,.55); }
.tv-sheet-panel {
    width: 100%;
    max-width: 480px;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    background: var(--tv-surface);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 40px rgba(35,33,34,.18);
    transform: translateY(100%);
    transition: transform .22s cubic-bezier(.4,0,.2,1);
}
.tv-sheet.is-open .tv-sheet-panel { transform: translateY(0); }
.tv-sheet-handle {
    flex: none;
    width: 42px;
    height: 5px;
    margin: 10px auto 4px;
    border-radius: var(--tv-pill);
    background: var(--tv-line-strong);
    cursor: pointer;
}
.tv-sheet-head { flex: none; padding: 10px 18px 8px; }
.tv-sheet-title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--tv-ink); }
.tv-sheet-sub { margin-top: 3px; font-size: 12.5px; color: var(--tv-muted); }
.tv-sheet-sub:empty { display: none; }
.tv-sheet-body { flex: 1 1 auto; overflow-y: auto; padding: 4px 18px 12px; -webkit-overflow-scrolling: touch; }
.tv-sheet-foot {
    flex: none;
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--tv-line);
    background: var(--tv-surface);
}
.tv-sheet-cancel {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    border: 0;
    border-radius: var(--tv-radius-sm);
    background: var(--tv-brand-soft);
    color: var(--tv-accent-strong);
    font-family: var(--tv-font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
body.tv-sheet-lock { overflow: hidden; }

.tv-summary {
    border: 1px solid var(--tv-line);
    border-radius: 14px;
    padding: 4px 14px;
    background: var(--tv-surface-2);
}
.tv-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--tv-line);
    font-size: 13.5px;
}
.tv-summary-row:last-child { border-bottom: 0; }
.tv-summary-row span:first-child { color: var(--tv-muted); flex: none; }
.tv-summary-row span:last-child { font-weight: 700; color: var(--tv-ink); text-align: right; display: inline-flex; align-items: center; gap: 7px; }
.tv-summary-row img { width: 20px; height: 20px; border-radius: 6px; object-fit: cover; }

.tv-net {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 11px 6px 10px;
}
.tv-net img {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    object-fit: cover;
    background: var(--tv-surface-2);
}
.tv-net.is-on img { box-shadow: 0 0 0 2px var(--tv-accent); }

.tv-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1.5px solid var(--tv-line-strong);
    border-radius: var(--tv-radius-sm);
    background: var(--tv-surface);
    font-family: var(--tv-font);
    font-size: 15px;
    font-weight: 600;
    color: var(--tv-ink);
    text-align: left;
    cursor: pointer;
}
.tv-picker:disabled { opacity: .55; cursor: not-allowed; }
.tv-picker .is-placeholder { color: var(--tv-muted); font-weight: 500; }
.tv-picker i:last-child { color: var(--tv-muted); font-size: 20px; margin-left: auto; }
.tv-picker.has-value { border-color: var(--tv-accent); }

.tv-sheet-body .tv-plan { margin-bottom: 8px; }

.tv-bal-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.tv-bal-label { display: block; }
.tv-bal-eye {
    flex: none;
    width: 44px;
    height: 44px;
    margin-top: 2px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--tv-accent);
    display: grid;
    place-items: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.22);
    transition: transform .12s ease;
}
.tv-bal-eye:active { transform: scale(.94); }

.tv-quick {
    gap: 0;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.12);
}
.tv-quick a {
    gap: 7px;
    padding: 6px 4px 2px;
    border-radius: 0;
    background: transparent;
    font-size: 12px;
}
.tv-quick a + a { border-left: 1px solid rgba(255,255,255,.12); border-radius: 0; }
.tv-quick a:hover { background: rgba(255,255,255,.06); }
.tv-quick i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    font-size: 17px;
}

.tv-card-dark::after { z-index: 0; }
.tv-card-dark > * { position: relative; z-index: 1; }

.tv-quick a {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    padding: 8px 4px;
    font-size: 12.5px;
    font-weight: 700;
}
.tv-quick i {
    width: 30px;
    height: 30px;
    font-size: 16px;
    background: rgba(255,255,255,.16);
}
.tv-quick a:hover i { background: rgba(255,255,255,.26); }

.tv-net > i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--tv-brand-soft);
    color: var(--tv-accent);
    font-size: 19px;
}
.tv-net.is-on > i { background: var(--tv-brand); color: var(--tv-on-brand); }

.tv-initials {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--tv-brand-soft);
    color: var(--tv-accent-strong);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
}
.tv-initials-sm { width: 24px; height: 24px; border-radius: 7px; font-size: 10px; }
.tv-plan-check { color: var(--tv-accent); font-size: 20px; opacity: 0; transition: opacity .12s ease; }
.tv-plan.is-on .tv-plan-check { opacity: 1; }
.tv-summary-row span:last-child i { font-size: 18px; color: var(--tv-accent); }

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(rgba(35,33,34,.07) 1px, transparent 1.2px);
    background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,.3));
    mask-image: linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,.3));
}

.tv-card-dark {
    box-shadow: var(--tv-shadow-md), inset 0 0 0 1px rgba(255,255,255,.07);
}
.tv-card-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(120% 95% at 100% 0%, #000 25%, transparent 72%);
    mask-image: radial-gradient(120% 95% at 100% 0%, #000 25%, transparent 72%);
}
.tv-bal-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.tv-bal-amt::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    margin: 9px 0 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--tv-brand-hi), var(--tv-line));
}
.tv-quick i { box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }

.tv-card, .tv-hist-card, .tv-num-card, .tv-gtile, .tv-tile {
    border: 1px solid transparent;
    background:
        linear-gradient(var(--tv-surface), var(--tv-surface)) padding-box,
        linear-gradient(160deg, var(--tv-line), var(--tv-line) 42%, var(--tv-line)) border-box;
}

.tv-section-title { display: inline-flex; align-items: center; gap: 9px; }
.tv-section-title::before {
    content: "";
    width: 4px;
    height: 15px;
    border-radius: 2px;
    background: var(--tv-brand); color: var(--tv-on-brand); }

.tv-gtile-ic, .tv-list-ic, .tv-va-ic, .tv-empty-ic, .tv-net > i, .tv-initials, .tv-tile-ic {
    background: linear-gradient(145deg, var(--tv-surface-2), var(--tv-surface-2));
    box-shadow: inset 0 0 0 1px var(--tv-line);
}
.tv-net.is-on > i { background: var(--tv-brand); color: var(--tv-on-brand); box-shadow: none; }

.appBottomMenu { box-shadow: var(--tv-shadow-md), inset 0 0 0 1px rgba(35,33,34,.05); }

.tv-bn-form > .tv-btn-block { margin-top: 20px; }
.tv-method-panel > .tv-btn-block { margin-top: 16px; }
.tv-chips { margin-top: 12px; }
.tv-bn-form .tv-hint + .tv-btn-block { margin-top: 18px; }

.tv-svc-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border-radius: 7px;
    background: var(--tv-surface-2);
    box-shadow: inset 0 0 0 1px var(--tv-line);
    color: var(--tv-accent);
    font-size: 14px;
    overflow: hidden;
}
.tv-svc-ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nice-select { display: flex; align-items: center; }
.nice-select .current { flex: 1 1 auto; min-width: 0; }
.nice-select .option { display: flex; align-items: center; }
.tv-card-pad > .tv-btn-block { margin-top: 16px; }
.tv-auth-card form > .tv-btn-block { margin-top: 6px; }

.tv-hdr-id > span { min-width: 0; }
.tv-hdr-name { max-width: none; display: block; white-space: nowrap; }
.tv-cur { position: relative; flex: none; }
.tv-cur-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 42px;
    padding: 0 9px 0 10px;
    border: 0;
    border-radius: 14px;
    background: var(--tv-surface);
    box-shadow: var(--tv-shadow-sm), inset 0 0 0 1px var(--tv-line);
    font-family: var(--tv-font);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--tv-ink);
    cursor: pointer;
}
.tv-cur-pill:active { transform: scale(.96); }
.tv-cur-flag { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; display: block; }
.tv-cur-pill i { font-size: 16px; color: var(--tv-muted); transition: transform .18s ease; }
.tv-cur.is-open .tv-cur-pill i { transform: rotate(180deg); }
.tv-cur-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    min-width: 224px;
    padding: 6px;
    background: var(--tv-surface);
    border: 1px solid transparent;
    background:
        linear-gradient(var(--tv-surface), var(--tv-surface)) padding-box,
        linear-gradient(160deg, var(--tv-line), var(--tv-line) 45%, var(--tv-line)) border-box;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(35,33,34,.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
.tv-cur.is-open .tv-cur-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.tv-cur-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-family: var(--tv-font);
    font-size: 13px;
    color: var(--tv-ink);
    text-align: left;
    cursor: pointer;
}
.tv-cur-opt:hover { background: var(--tv-surface-2); }
.tv-cur-opt.is-active { background: var(--tv-brand-soft); }
.tv-cur-opt:disabled { opacity: .6; cursor: default; }
.tv-cur-opt img { width: 22px; height: 15px; border-radius: 3px; object-fit: cover; flex: none; }
.tv-cur-opt-code { font-weight: 800; letter-spacing: .02em; }
.tv-cur-opt-name { flex: 1; color: var(--tv-muted); font-weight: 500; }
.tv-cur-check { font-size: 17px; color: var(--tv-accent); opacity: 0; }
.tv-cur-opt.is-active .tv-cur-check { opacity: 1; }

.tv-hdr-bell { position: relative; }
.tv-hdr-badge {
    position: absolute;
    top: -5px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--tv-brand);
    color: var(--tv-on-brand);
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 0 0 2px var(--tv-bg);
}
.tv-nt-item { cursor: pointer; }
.tv-nt-item .tv-hist-top { align-items: flex-start; }
.tv-nt-item.is-unread .tv-list-title { font-weight: 800; }
.tv-nt-item.is-unread .tv-list-ic { background: var(--tv-brand-soft); color: var(--tv-accent); }
.tv-nt-time { margin-top: 4px; font-size: 11.5px; color: var(--tv-muted); }
.tv-nt-dot {
    flex: none;
    width: 9px;
    height: 9px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--tv-brand);
    box-shadow: 0 0 0 3px var(--tv-brand-soft); color: var(--tv-on-brand); }
.tv-nt-body { font-size: 14px; line-height: 1.65; color: var(--tv-ink-2); word-break: break-word; }
.tv-nt-body p { margin: 0 0 10px; }
.tv-nt-body p:last-child { margin-bottom: 0; }
.tv-nt-body a { color: var(--tv-accent); }

.tv-skel {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--tv-line);
    border-radius: 10px;
}
.tv-skel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--tv-skel-shine), transparent);
    transform: translateX(-100%);
    animation: tv-shimmer 1.3s ease-in-out infinite;
}
@keyframes tv-shimmer { to { transform: translateX(100%); } }
.tv-skel-list { display: block; }
.tv-skel-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.tv-skel-row + .tv-skel-row { border-top: 1px solid var(--tv-line); }
.tv-skel-ic { width: 40px; height: 40px; border-radius: 13px; flex: none; }
.tv-skel-line { height: 11px; border-radius: 6px; margin: 4px 0; }
.tv-skel-line.is-w60 { width: 60%; }
.tv-skel-line.is-w35 { width: 35%; }
.tv-skel-bar { height: 54px; border-radius: var(--tv-radius-sm); }
.tv-skel-bar + .tv-skel-bar { margin-top: 10px; }
.tv-skel-chips { display: flex; gap: 10px; }
.tv-skel-chip { flex: 1 1 0; height: 68px; border-radius: 14px; }
.tv-skel-list + * { margin-top: 10px; }

.tv-seg {
    display: inline-flex;
    padding: 3px;
    border-radius: 11px;
    background: var(--tv-surface-2);
    box-shadow: inset 0 0 0 1px var(--tv-line);
    flex: none;
}
.tv-seg button {
    border: 0;
    background: transparent;
    padding: 6px 10px;
    border-radius: 8px;
    font-family: var(--tv-font);
    font-size: 12px;
    font-weight: 700;
    color: var(--tv-muted);
    cursor: pointer;
}
.tv-seg button.is-on { background: var(--tv-surface); color: var(--tv-accent); box-shadow: var(--tv-shadow-sm); }

:root { --tv-skel-shine: rgba(255,255,255,.6); }

html[data-theme="dark"] {
    --tv-bg:            #232122;
    --tv-surface:       #2E2C2D;
    --tv-surface-2:     #383637;
    --tv-ink-card:      #2E2C2D;
    --tv-ink-card-2:    #353334;
    --tv-ink:           #F1EFE9;
    --tv-ink-2:         #DAD7D0;
    --tv-muted:         #A3A19A;
    --tv-line:          #3B393A;
    --tv-line-strong:   #4B494A;
    --tv-brand:         #CFFF3D;
    --tv-brand-strong:  #E0FF80;
    --tv-brand-hi:      #DFFF7A;
    --tv-brand-grad:    linear-gradient(135deg, #DFFF7A 0%, #BFF21F 100%);
    --tv-brand-soft:    #353B22;
    --tv-brand-soft-2:  #424B26;
    --tv-accent:        #CFFF3D;
    --tv-accent-strong: #DFFF7A;
    --tv-ring:          rgba(207,255,61,.22);
    --tv-ok:            #93DB80;
    --tv-warn:          #F0B45B;
    --tv-danger:        #FF8A7A;
    --tv-info:          #7CC4F0;
    --tv-ok-bg:         #26321F;
    --tv-warn-bg:       #3A2F1C;
    --tv-danger-bg:     #3D2423;
    --tv-info-bg:       #1F2E3A;
    --tv-shadow-sm:     0 1px 2px rgba(0,0,0,.3);
    --tv-shadow:        0 8px 24px rgba(0,0,0,.28);
    --tv-shadow-md:     0 16px 40px rgba(0,0,0,.42);
    --tv-skel-shine:    rgba(255,255,255,.06);
}
html[data-theme="dark"] body { background: var(--tv-bg); color: var(--tv-ink); }
html[data-theme="dark"] #app,
html[data-theme="dark"] .appCapsule,
html[data-theme="dark"] .appHeader { background: transparent; color: var(--tv-ink); }
html[data-theme="dark"] body::after { background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.2px); }
html[data-theme="dark"] .appHeader .headerButton,
html[data-theme="dark"] .appBottomMenu,
html[data-theme="dark"] .tv-sheet-panel,
html[data-theme="dark"] .tv-auth-card,
html[data-theme="dark"] .tv-card,
html[data-theme="dark"] .tv-hist-card,
html[data-theme="dark"] .tv-num-card,
html[data-theme="dark"] .tv-gtile,
html[data-theme="dark"] .tv-tile,
html[data-theme="dark"] .tv-cur-pill,
html[data-theme="dark"] .tv-cur-menu { background: var(--tv-surface); color: var(--tv-ink); }
html[data-theme="dark"] .tv-card,
html[data-theme="dark"] .tv-hist-card,
html[data-theme="dark"] .tv-num-card,
html[data-theme="dark"] .tv-gtile,
html[data-theme="dark"] .tv-tile {
    background:
        linear-gradient(var(--tv-surface), var(--tv-surface)) padding-box,
        linear-gradient(160deg, var(--tv-line), var(--tv-line) 40%, var(--tv-line)) border-box;
}
html[data-theme="dark"] .tv-cur-menu {
    background:
        linear-gradient(var(--tv-surface), var(--tv-surface)) padding-box,
        linear-gradient(160deg, var(--tv-line), var(--tv-line) 45%, var(--tv-line)) border-box;
}
html[data-theme="dark"] .appBottomMenu { box-shadow: 0 -8px 30px rgba(0,0,0,.5), inset 0 0 0 1px var(--tv-line); }
html[data-theme="dark"] .appBottomMenu .item,
html[data-theme="dark"] .appBottomMenu .item strong { color: var(--tv-muted); }
html[data-theme="dark"] .appBottomMenu .item.active strong { color: var(--tv-ink); }
html[data-theme="dark"] .tv-input,
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .nice-select,
html[data-theme="dark"] .nice-select .nice-select-dropdown,
html[data-theme="dark"] .nice-select .nice-select-search,
html[data-theme="dark"] .tv-picker,
html[data-theme="dark"] .tv-search input,
html[data-theme="dark"] .tv-chip,
html[data-theme="dark"] .tv-net,
html[data-theme="dark"] .tv-plan,
html[data-theme="dark"] .tv-method-panel,
html[data-theme="dark"] .tv-price-box,
html[data-theme="dark"] .tv-otp-box textarea,
html[data-theme="dark"] .tv-sms { background: var(--tv-surface-2); color: var(--tv-ink); border-color: var(--tv-line-strong); }
html[data-theme="dark"] .tv-input::placeholder,
html[data-theme="dark"] .form-control::placeholder { color: var(--tv-muted); }
html[data-theme="dark"] .nice-select .option:hover,
html[data-theme="dark"] .nice-select .option.focus { background: var(--tv-brand-soft); }
html[data-theme="dark"] .tv-svc-ic { background: linear-gradient(145deg, var(--tv-surface-2), var(--tv-brand-soft)); }
html[data-theme="dark"] .tv-list-ic,
html[data-theme="dark"] .tv-va-ic,
html[data-theme="dark"] .tv-gtile-ic,
html[data-theme="dark"] .tv-empty-ic,
html[data-theme="dark"] .tv-auth-head-ic,
html[data-theme="dark"] .tv-initials { background: linear-gradient(145deg, var(--tv-brand-soft), var(--tv-brand-soft-2)); color: var(--tv-accent); box-shadow: inset 0 0 0 1px var(--tv-line); }
html[data-theme="dark"] .tv-tabs-row .tv-tab { background: var(--tv-surface); color: var(--tv-ink-2); }
html[data-theme="dark"] .tv-tabs-row .tv-tab.is-on { background: var(--tv-ink); color: var(--tv-bg); }
html[data-theme="dark"] .tv-pill { background: var(--tv-surface-2); color: var(--tv-ink-2); }
html[data-theme="dark"] .tv-pill-ok { background: var(--tv-ok-bg); color: #5BD38A; }
html[data-theme="dark"] .tv-pill-warn { background: var(--tv-warn-bg); color: #F0B35B; }
html[data-theme="dark"] .tv-pill-danger { background: var(--tv-danger-bg); color: #FF7A7A; }
html[data-theme="dark"] .tv-alert-ok { background: var(--tv-ok-bg); color: #5BD38A; }
html[data-theme="dark"] .tv-list-amt.is-in { color: #5BD38A; }
html[data-theme="dark"] .tv-btn-outline { background: var(--tv-surface); color: var(--tv-ink); border-color: var(--tv-line-strong); }
html[data-theme="dark"] .tv-sheet-cancel { background: var(--tv-surface-2); color: var(--tv-ink); }
html[data-theme="dark"] .tv-hdr-greet { color: var(--tv-muted); }
html[data-theme="dark"] .tv-hdr-logo,
html[data-theme="dark"] .tv-auth-logo { filter: brightness(2.2) saturate(1.15); }
html[data-theme="dark"] .tv-hdr-name,
html[data-theme="dark"] .tv-hdr-title,
html[data-theme="dark"] .tv-section-title,
html[data-theme="dark"] .tv-list-title,
html[data-theme="dark"] .tv-auth-title,
html[data-theme="dark"] .tv-empty-title,
html[data-theme="dark"] .tv-sheet-title,
html[data-theme="dark"] .tv-field-label,
html[data-theme="dark"] .tv-plan-name,
html[data-theme="dark"] .tv-gtile-name { color: var(--tv-ink); }
html[data-theme="dark"] .tv-hdr-back,
html[data-theme="dark"] .tv-icon-btn { background: var(--tv-surface); color: var(--tv-ink); }
html[data-theme="dark"] .tv-hdr-badge { box-shadow: 0 0 0 2px var(--tv-bg); }
html[data-theme="dark"] .tv-card-dark { box-shadow: 0 10px 30px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08); }
html[data-theme="dark"] .tv-bal-eye { background: #fff; color: var(--tv-accent); }
html[data-theme="dark"] .tv-banner { box-shadow: var(--tv-shadow); }
html[data-theme="dark"] .tv-sheet.is-open { background: rgba(0,0,0,.7); }
html[data-theme="dark"] .nice-select::after { border-color: var(--tv-muted); }
html[data-theme="dark"] .tv-trust,
html[data-theme="dark"] .tv-va { color: var(--tv-ink); }
html[data-theme="dark"] a { color: var(--tv-accent); }
html[data-theme="dark"] .tv-btn { color: var(--tv-on-brand); }
html[data-theme="dark"] img.tv-num-flag { filter: brightness(.92); }

.nice-select .nice-select-dropdown { visibility: hidden; pointer-events: none; }
.nice-select.open .nice-select-dropdown { visibility: visible; pointer-events: auto; }
.nice-select .nice-select-search-box { pointer-events: none; }
.nice-select.open .nice-select-search-box { pointer-events: auto; }

.tv-quick a { gap: 6px; padding: 6px 2px 2px; font-size: 11.5px; }
.tv-quick a span { white-space: nowrap; }
.tv-quick i { width: 30px; height: 30px; font-size: 15px; }

.tv-log-tier { margin-top: 12px; }
.tv-log-tier-bar { height: 6px; margin-top: 14px; border-radius: 999px; background: var(--tv-line); overflow: hidden; }
.tv-log-tier-bar span { display: block; height: 100%; border-radius: 999px; background: var(--tv-brand-grad); color: var(--tv-on-brand); }
.tv-log-search { margin-top: 14px; }
.tv-log-search input { padding-right: 48px; }
.tv-log-search input::-webkit-search-cancel-button { display: none; }
.tv-log-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--tv-muted);
    text-decoration: none;
}
.tv-search .tv-log-clear i { position: static; transform: none; font-size: 18px; pointer-events: none; }
.tv-log-clear:hover { background: var(--tv-surface-2); color: var(--tv-ink); }
.tv-log-catbtn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 9px 14px 9px 9px;
    border: 1.5px solid var(--tv-line-strong);
    border-radius: 16px;
    background: var(--tv-surface);
    color: var(--tv-ink);
    font-family: var(--tv-font);
    text-align: left;
    cursor: pointer;
}
.tv-log-catbtn:hover { border-color: var(--tv-accent); }
.tv-log-catbtn > i { flex: none; font-size: 20px; color: var(--tv-muted); }
.tv-log-catbtn-label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tv-muted); }
.tv-log-catbtn-name { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-log-ic.tv-log-ic-sm { width: 36px; height: 36px; border-radius: 11px; font-size: 15px; }
#tv-log-results { scroll-margin-top: 84px; }
.tv-log-group { margin: 18px 4px 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--tv-muted); }
.tv-log-group:first-child { margin-top: 4px; }
.tv-log-row .tv-list-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tv-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 76px; }
.tv-pager-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 42px;
    padding: 0 14px;
    border: 1.5px solid var(--tv-line-strong);
    border-radius: var(--tv-pill);
    background: var(--tv-surface);
    color: var(--tv-ink);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
}
.tv-pager-btn i { font-size: 18px; }
.tv-pager-btn:hover { border-color: var(--tv-accent); color: var(--tv-accent); }
.tv-pager-btn.is-off { opacity: .4; pointer-events: none; }
.tv-pager-info { font-size: 13px; color: var(--tv-muted); text-align: center; }
.tv-pager-info strong { color: var(--tv-ink); }
.tv-log-catitem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 8px;
    border-radius: 12px;
    color: var(--tv-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.tv-log-catitem[hidden] { display: none; }
.tv-log-catitem:hover { background: var(--tv-surface-2); color: var(--tv-ink); }
.tv-log-catitem.is-on { background: var(--tv-brand-soft); color: var(--tv-accent); }
.tv-log-catname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-log-catn { flex: none; font-size: 12px; font-weight: 700; color: var(--tv-muted); }
.tv-log-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.tv-log-row + .tv-log-row { border-top: 1px solid var(--tv-line); }
.tv-log-ic {
    flex: none;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--tv-brand-soft), var(--tv-brand-soft-2));
    color: var(--tv-accent);
    font-weight: 800;
    font-size: 18px;
    box-shadow: inset 0 0 0 1px var(--tv-line);
}
.tv-log-ic img { width: 100%; height: 100%; object-fit: cover; }
.tv-log-desc {
    margin-top: 2px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--tv-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tv-log-meta { display: flex; align-items: center; gap: 8px; margin-top: 7px; flex-wrap: wrap; }
.tv-log-price { font-weight: 800; font-size: 14px; color: var(--tv-ink); }
.tv-log-buy { flex: none; height: 38px; padding: 0 16px; font-size: 13.5px; }
.tv-log-sheet-desc { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; color: var(--tv-ink-2); }
.tv-log-qty { display: flex; align-items: center; gap: 10px; }
.tv-log-qty button {
    flex: none;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: var(--tv-surface-2);
    box-shadow: inset 0 0 0 1px var(--tv-line-strong);
    color: var(--tv-ink);
    font-size: 20px;
    cursor: pointer;
}
.tv-log-qty input {
    flex: 1;
    min-width: 0;
    height: 48px;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    border: 1.5px solid var(--tv-line-strong);
    border-radius: 14px;
    background: var(--tv-surface);
    color: var(--tv-ink);
}
.tv-log-terms { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; color: var(--tv-ink-2); }
.tv-log-terms li + li { margin-top: 8px; }
.tv-log-item { padding: 12px 14px; margin-top: 10px; }
.tv-log-item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tv-log-cred {
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    background: var(--tv-surface-2);
    box-shadow: inset 0 0 0 1px var(--tv-line);
    font-family: var(--tv-mono);
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--tv-ink);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 220px;
    overflow: auto;
}
html[data-theme="dark"] .tv-log-qty input { background: var(--tv-surface-2); }

button.tv-tab { font-family: var(--tv-font); cursor: pointer; }

body { letter-spacing: -.003em; text-rendering: optimizeLegibility; }
body::before { display: none; }
body::after {
    background-image: url(../image/noise.svg);
    background-size: 240px 240px;
    opacity: .05;
    -webkit-mask-image: none;
    mask-image: none;
}
html[data-theme="dark"] body::after { background-image: url(../image/noise.svg); opacity: .07; }

.tv-num, .tv-bal-amt, .tv-bn-wallet-amt, .tv-num-digits, .tv-va-num, .tv-acct-num, .tv-token-value,
.tv-list-amt, .tv-svc-price, .tv-plan-price, .tv-log-price, .tv-otp-timer, .tv-code, .tv-code-input,
.tv-mono { font-family: var(--tv-mono); font-feature-settings: "tnum" 1; }

.tv-section-title, .tv-hdr-title, .tv-sheet-title, .tv-auth-title, .tv-empty-title, .tv-hdr-name {
    font-weight: 600;
    letter-spacing: -.02em;
}
.tv-section-title { font-size: 16px; }
.tv-section-title::before { display: none; }
.tv-list-title, .tv-plan-name, .tv-log-catbtn-name { font-weight: 600; }
.tv-list-amt, .tv-svc-price, .tv-plan-price, .tv-log-price { font-weight: 500; }
.tv-head-row a { font-weight: 500; }
.tv-field-label { font-weight: 500; }

html[data-theme] .tv-card,
html[data-theme] .tv-hist-card,
html[data-theme] .tv-num-card,
html[data-theme] .tv-tile {
    background: var(--tv-surface);
    border: 1px solid var(--tv-line);
}
html[data-theme="dark"] .tv-card,
html[data-theme="dark"] .tv-hist-card,
html[data-theme="dark"] .tv-num-card,
html[data-theme="dark"] .tv-tile { box-shadow: none; }
html[data-theme="light"] .tv-card,
html[data-theme="light"] .tv-hist-card,
html[data-theme="light"] .tv-num-card { box-shadow: var(--tv-shadow-sm); }

html[data-theme] .tv-gtile-ic,
html[data-theme] .tv-list-ic,
html[data-theme] .tv-va-ic,
html[data-theme] .tv-empty-ic,
html[data-theme] .tv-net > i,
html[data-theme] .tv-initials,
html[data-theme] .tv-tile-ic,
html[data-theme] .tv-log-ic,
html[data-theme] .tv-svc-ic,
html[data-theme] .tv-auth-head-ic {
    background: var(--tv-surface-2);
    color: var(--tv-ink);
    box-shadow: inset 0 0 0 1px var(--tv-line);
}
html[data-theme] .tv-net.is-on > i { background: var(--tv-brand); color: var(--tv-on-brand); box-shadow: none; }
html[data-theme] .tv-nt-item.is-unread .tv-list-ic { background: var(--tv-brand); color: var(--tv-on-brand); box-shadow: none; }

html[data-theme] .tv-gtile {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 4px 2px;
    gap: 8px;
}
html[data-theme] .tv-gtile:hover { transform: none; box-shadow: none; }
html[data-theme] .tv-gtile-ic {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    font-size: 22px;
    transition: box-shadow .15s ease, transform .12s ease;
}
html[data-theme] .tv-gtile:hover .tv-gtile-ic { box-shadow: inset 0 0 0 1.5px var(--tv-accent); }
html[data-theme] .tv-gtile:active .tv-gtile-ic { transform: scale(.95); }
html[data-theme] .tv-gtile-name { font-size: 12px; font-weight: 500; color: var(--tv-ink-2); }
.tv-grid { gap: 14px 6px; }

html[data-theme] .tv-card-dark {
    background: var(--tv-ink-card);
    color: #F1EFE9;
    border: 1px solid transparent;
    border-radius: var(--tv-radius-lg);
    box-shadow: var(--tv-shadow-md);
}
html[data-theme="dark"] .tv-card-dark { border-color: var(--tv-line); box-shadow: none; }
.tv-card-dark::after { display: none; }
.tv-card-dark::before {
    content: "";
    position: absolute;
    inset: -36px -54px auto auto;
    width: 176px;
    height: 172px;
    background: url(../image/mark-grain.svg) no-repeat center / contain;
    opacity: .028;
    -webkit-mask-image: none;
    mask-image: none;
    border-radius: 0;
}
.tv-bal-label {
    font-family: var(--tv-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    color: rgba(241,239,233,.62);
}
.tv-bal-amt {
    font-size: 38px;
    font-weight: 500;
    letter-spacing: -.03em;
    color: #F1EFE9;
}
.tv-bal-amt::after { display: none; }
.tv-bal-sub { color: rgba(241,239,233,.55); }
html[data-theme] .tv-bal-eye {
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    background: transparent;
    color: rgba(241,239,233,.75);
    box-shadow: inset 0 0 0 1px rgba(241,239,233,.16);
    font-size: 19px;
}
html[data-theme] .tv-bal-eye:hover { color: #F1EFE9; box-shadow: inset 0 0 0 1px rgba(241,239,233,.32); }

.tv-quick {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
    padding-top: 0;
    border-top: 0;
}
.tv-quick a,
.tv-quick a + a {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    height: 64px;
    padding: 0 4px;
    border: 0;
    border-radius: 15px;
    background: #3A3839;
    color: #F1EFE9;
    font-size: 12.5px;
    font-weight: 500;
}
.tv-quick a:hover { background: #454344; color: #F1EFE9; }
.tv-quick a:first-child { background: var(--tv-brand); color: var(--tv-on-brand); font-weight: 600; }
.tv-quick a:first-child:hover { background: var(--tv-brand-hi); color: var(--tv-on-brand); }
.tv-quick i,
.tv-quick a:hover i {
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    border-radius: 0;
    font-size: 20px;
}

html[data-theme] .tv-btn { border-radius: var(--tv-radius-sm); font-weight: 600; letter-spacing: -.005em; }
html[data-theme] .tv-btn:hover { background: var(--tv-brand-hi); color: var(--tv-on-brand); }
html[data-theme="light"] .tv-btn:not(.tv-btn-outline):not(.tv-btn-danger):not(.tv-btn-ink) { box-shadow: inset 0 0 0 1px rgba(35,33,34,.10); }
html[data-theme] .tv-btn-ink { background: var(--tv-ink); color: var(--tv-bg); box-shadow: none; }
html[data-theme] .tv-btn-ink:hover { background: var(--tv-ink-2); color: var(--tv-bg); }
html[data-theme] .tv-btn-outline { background: transparent; color: var(--tv-ink); border: 1px solid var(--tv-line-strong); box-shadow: none; }
html[data-theme] .tv-btn-outline:hover { background: var(--tv-surface-2); color: var(--tv-ink); border-color: var(--tv-ink-2); }
html[data-theme] .tv-btn-danger { background: transparent; color: var(--tv-danger); border: 1px solid var(--tv-danger); }
html[data-theme] .tv-btn-danger:hover { background: var(--tv-danger); color: var(--tv-bg); }

html[data-theme] .tv-tab,
html[data-theme] .tv-tabs-row .tv-tab {
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--tv-line-strong);
    color: var(--tv-muted);
    font-weight: 500;
}
html[data-theme] .tv-tab:hover { color: var(--tv-ink); border-color: var(--tv-ink-2); }
html[data-theme] .tv-tab.is-on,
html[data-theme] .tv-tabs-row .tv-tab.is-on {
    background: var(--tv-ink);
    border-color: var(--tv-ink);
    color: var(--tv-bg);
    font-weight: 600;
}

html[data-theme] .appHeader .headerButton,
html[data-theme] .tv-hdr-back,
html[data-theme] .tv-cur-pill {
    background: var(--tv-surface);
    box-shadow: inset 0 0 0 1px var(--tv-line);
    color: var(--tv-ink);
}
html[data-theme] .tv-hdr-back:hover { color: var(--tv-ink); box-shadow: inset 0 0 0 1px var(--tv-line-strong); }
.tv-hdr-mark { flex: none; width: 34px; height: 33px; display: block; color: var(--tv-ink); }
.tv-hdr-greet { font-size: 12px; }
.tv-hdr-name { font-size: 16px; }
html[data-theme] .tv-hdr-badge { background: var(--tv-brand); color: var(--tv-on-brand); font-family: var(--tv-mono); font-weight: 600; }
html[data-theme] .tv-cur-menu { background: var(--tv-surface); border: 1px solid var(--tv-line); box-shadow: var(--tv-shadow-md); }
html[data-theme] .tv-cur-opt.is-active { background: var(--tv-surface-2); }
html[data-theme] .tv-cur-check { color: var(--tv-accent); }

html[data-theme] .appBottomMenu {
    height: 70px;
    border-radius: 24px;
    background: var(--tv-surface);
    box-shadow: var(--tv-shadow-md), inset 0 0 0 1px var(--tv-line);
}
html[data-theme="dark"] .appBottomMenu { background: rgba(46,44,45,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
html[data-theme="light"] .appBottomMenu { background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
html[data-theme] .appBottomMenu .item .icon { width: 48px; height: 30px; border-radius: 11px; }
html[data-theme] .appBottomMenu .item.active .icon { background: var(--tv-brand); color: var(--tv-on-brand) !important; }
html[data-theme] .appBottomMenu .item strong { font-size: 11px; font-weight: 500; color: var(--tv-muted); }
html[data-theme] .appBottomMenu .item.active strong { color: var(--tv-ink) !important; font-weight: 600; }
html[data-theme] .appBottomMenu .item:hover .icon,
html[data-theme] .appBottomMenu .item:hover strong { color: var(--tv-ink) !important; }
html[data-theme] .appBottomMenu .item.active:hover .icon { color: var(--tv-on-brand) !important; }

html[data-theme] .tv-pill { background: var(--tv-surface-2); color: var(--tv-ink-2); font-weight: 600; box-shadow: inset 0 0 0 1px var(--tv-line); }
html[data-theme] .tv-pill-ok { background: var(--tv-ok-bg); color: var(--tv-ok); box-shadow: none; }
html[data-theme] .tv-pill-warn { background: var(--tv-warn-bg); color: var(--tv-warn); box-shadow: none; }
html[data-theme] .tv-pill-danger { background: var(--tv-danger-bg); color: var(--tv-danger); box-shadow: none; }
html[data-theme] .tv-pill-info { background: var(--tv-info-bg); color: var(--tv-info); box-shadow: none; }
html[data-theme] .tv-pill-live { background: var(--tv-brand-soft); color: var(--tv-accent-strong); box-shadow: none; }
.tv-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tv-accent);
    box-shadow: 0 0 0 0 var(--tv-ring);
    animation: sg-pulse 1.8s ease-out infinite;
}
@keyframes sg-pulse { 0% { box-shadow: 0 0 0 0 var(--tv-ring); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

html[data-theme] .tv-otp-timer { background: var(--tv-ink); color: var(--tv-bg); font-weight: 500; }
html[data-theme] .tv-endpoint { background: #1B1A1B; color: #EDEAE3; }
html[data-theme] .tv-icon-btn,
html[data-theme] .tv-va-copy { background: var(--tv-surface-2); color: var(--tv-ink); box-shadow: inset 0 0 0 1px var(--tv-line); }
html[data-theme] .tv-icon-btn:hover,
html[data-theme] .tv-va-copy:hover { background: var(--tv-brand); color: var(--tv-on-brand); box-shadow: none; }
html[data-theme] .tv-sheet-cancel { background: var(--tv-surface-2); color: var(--tv-ink); }
html[data-theme] .tv-eye:hover { background: var(--tv-surface-2); }
html[data-theme] .tv-hdr-logo,
html[data-theme] .tv-auth-logo { filter: none; }
html[data-theme] .tv-avatar { background: var(--tv-ink); color: var(--tv-bg); box-shadow: none; font-weight: 600; }
html[data-theme] .tv-step-n { background: var(--tv-ink); color: var(--tv-bg); font-family: var(--tv-mono); font-weight: 500; }
html[data-theme] .tv-tag { background: var(--tv-surface-2); color: var(--tv-ink-2); box-shadow: inset 0 0 0 1px var(--tv-line); }
html[data-theme] .tv-tag-err { background: var(--tv-danger-bg); color: var(--tv-danger); box-shadow: none; }
html[data-theme] .tv-price-box { background: var(--tv-surface-2); border-color: var(--tv-line); }
html[data-theme] .tv-svc-item:hover,
html[data-theme] .nice-select .option:hover,
html[data-theme] .nice-select .option.focus { background: var(--tv-surface-2); color: var(--tv-ink); }
html[data-theme] .tv-plan.is-on,
html[data-theme] .tv-net.is-on { border-color: var(--tv-accent); background: var(--tv-brand-soft); color: var(--tv-ink); }
html[data-theme] .tv-log-catitem.is-on { background: var(--tv-brand-soft); color: var(--tv-ink); }
html[data-theme] .tv-seg button.is-on { background: var(--tv-ink); color: var(--tv-bg); box-shadow: none; }
html[data-theme] .tv-warn-strip { background: var(--tv-warn-bg); color: var(--tv-warn); }
html[data-theme] .tv-banner { box-shadow: none; border: 1px solid var(--tv-line); }
html[data-theme] .tv-chip:hover { border-color: var(--tv-ink-2); color: var(--tv-ink); }
html[data-theme] .tv-fab { background: var(--tv-brand); color: var(--tv-on-brand); box-shadow: var(--tv-shadow-md); }

.tv-code-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 14px 14px 14px 18px;
    border-radius: 16px;
    background: var(--tv-bg);
    border: 1px dashed var(--tv-line-strong);
}
.tv-code-value {
    font-family: var(--tv-mono);
    font-size: 36px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .08em;
    color: var(--tv-ink);
}
html[data-theme="dark"] .tv-code-value { color: var(--tv-accent); }
html[data-theme="light"] .tv-code-panel { background: var(--tv-surface-2); }
.tv-code-msg {
    margin-top: 10px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--tv-muted);
    word-break: break-word;
}

.notyf__toast { border-radius: 14px; font-family: var(--tv-font); box-shadow: var(--tv-shadow-md); }
.notyf__message { font-weight: 500; }
.sg-toast-ok, .sg-toast-ok .notyf__message, .sg-toast-ok .notyf__dismiss-btn { color: #232122 !important; font-weight: 600; }

.sg-btn-sm { height: 42px !important; padding: 0 16px !important; font-size: 13.5px !important; }
.sg-seg4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 16px;
    background: var(--tv-surface);
    box-shadow: inset 0 0 0 1px var(--tv-line);
}
.sg-seg4-btn {
    height: 42px;
    padding: 0 4px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--tv-muted);
    font-family: var(--tv-font);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -.01em;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.sg-seg4-btn:hover { color: var(--tv-ink); }
.sg-seg4-btn.is-on { background: var(--tv-ink); color: var(--tv-bg); font-weight: 600; }
.sg-tab-hint { margin: 10px 4px 14px; font-size: 12.5px; line-height: 1.5; color: var(--tv-muted); }

.sg-buy { padding: 6px; }
.sg-pick {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 12px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: var(--tv-ink);
    font-family: var(--tv-font);
    text-align: left;
    cursor: pointer;
    transition: background .15s ease;
}
.sg-pick + .sg-pick { border-top: 1px solid var(--tv-line); border-radius: 0 0 15px 15px; }
.sg-pick:first-child { border-radius: 15px 15px 0 0; }
.sg-pick:hover:not(:disabled) { background: var(--tv-surface-2); }
.sg-pick:disabled { cursor: default; }
.sg-pick:disabled .sg-pick-chev { opacity: .3; }
.sg-pick.is-fixed .sg-pick-chev { display: none; }
.sg-pick-ic, .sg-row-ic {
    flex: none;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--tv-surface-2);
    box-shadow: inset 0 0 0 1px var(--tv-line);
    color: var(--tv-ink);
    font-size: 20px;
}
.sg-iso-code, .sg-letter { font-family: var(--tv-mono); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--tv-ink); }
.sg-letter { font-size: 16px; }
.sg-pick-label { display: block; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--tv-muted); font-family: var(--tv-mono); }
.sg-pick-value { display: block; margin-top: 2px; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-pick-value.is-placeholder { color: var(--tv-muted); font-weight: 500; }
.sg-pick-chev { flex: none; font-size: 22px; color: var(--tv-muted); }
.sg-buy-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 6px 0 0;
    padding: 14px 10px 8px 14px;
    border-top: 1px dashed var(--tv-line-strong);
}
.sg-buy-label { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--tv-muted); font-family: var(--tv-mono); }
.sg-buy-price { font-size: 24px; font-weight: 500; letter-spacing: -.02em; color: var(--tv-ink); }
.sg-buy-btn { flex: none; min-width: 152px; }
.sg-buy-btn .tv-spin { border-color: rgba(35,33,34,.3); border-left-color: #232122; }
.sg-live-note { display: flex; gap: 8px; margin: 4px 8px 8px; font-size: 12px; line-height: 1.5; color: var(--tv-muted); }
.sg-live-note i { font-size: 15px; color: var(--tv-ink-2); }

.sg-sheet-search { position: relative; margin-top: 12px; }
.sg-sheet-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--tv-muted); font-size: 18px; pointer-events: none; }
.sg-sheet-search input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    border: 1px solid var(--tv-line-strong);
    border-radius: 14px;
    background: var(--tv-surface-2);
    color: var(--tv-ink);
    font-family: var(--tv-font);
    font-size: 15px;
}
.sg-sheet-search input:focus { outline: 0; border-color: var(--tv-accent); box-shadow: 0 0 0 4px var(--tv-ring); }
.sg-list { display: flex; flex-direction: column; padding-bottom: 8px; }
.sg-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 60px;
    padding: 8px 6px;
    border: 0;
    border-bottom: 1px solid var(--tv-line);
    background: transparent;
    color: var(--tv-ink);
    font-family: var(--tv-font);
    text-align: left;
    cursor: pointer;
}
.sg-row:hover { background: var(--tv-surface-2); }
.sg-row:disabled { opacity: .45; cursor: not-allowed; }
.sg-row.is-on .sg-row-ic { background: var(--tv-brand); color: var(--tv-on-brand); box-shadow: none; }
.sg-row.is-on .sg-row-ic .sg-iso-code, .sg-row.is-on .sg-row-ic .sg-letter { color: var(--tv-on-brand); }
.sg-row-name { font-size: 15px; font-weight: 500; }
.sg-row-sub { display: block; margin-top: 1px; font-size: 12px; font-weight: 400; color: var(--tv-muted); }
.sg-row-price { flex: none; font-size: 14.5px; font-weight: 500; }
.sg-row-check { flex: none; font-size: 20px; color: var(--tv-accent); }
.sg-none { padding: 28px 10px; text-align: center; color: var(--tv-muted); font-size: 14px; }

.sg-ord {
    position: relative;
    margin-bottom: 12px;
    padding: 16px;
    border-radius: var(--tv-radius);
    background: var(--tv-surface);
    border: 1px solid var(--tv-line);
    overflow: hidden;
}
html[data-theme="light"] .sg-ord { box-shadow: var(--tv-shadow-sm); }
.sg-ord.is-waiting { border-color: var(--tv-line-strong); }
html[data-theme="dark"] .sg-ord.is-received { border-color: #4A5A1C; }
.sg-ord.is-cancelled, .sg-ord.is-expired, .sg-ord.is-closed { opacity: .72; }
.sg-ord-top { display: flex; align-items: center; gap: 12px; }
.sg-ord-top .tv-pill { flex: none; height: 26px; padding: 0 10px; font-size: 11.5px; }
.sg-ord-svc { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.sg-ord-meta { margin-top: 1px; font-size: 12.5px; color: var(--tv-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-ord-num {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding: 6px 6px 6px 14px;
    border-radius: 14px;
    background: var(--tv-surface-2);
}
.sg-ord-digits { font-size: 19px; font-weight: 500; letter-spacing: .01em; color: var(--tv-ink); }
.sg-ord-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.sg-ord-timer { font-size: 12.5px; color: var(--tv-muted); }
.sg-ord-timer b { color: var(--tv-ink); font-weight: 500; }
.sg-ord-foot .tv-btn[disabled] { opacity: .6; }
.sg-ord-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--tv-line); }
.sg-ord-bar span { display: block; height: 100%; background: var(--tv-brand); transition: width 1s linear; }
html[data-theme="light"] .sg-ord-bar span { background: var(--tv-accent); }
.tv-icon-btn.is-done { background: var(--tv-brand) !important; color: var(--tv-on-brand) !important; }
.sg-ord .tv-code-panel { margin-top: 12px; }
.sg-live-note[hidden] { display: none; }
html[data-theme] .tv-btn[disabled] { opacity: 1; background: var(--tv-surface-2); color: var(--tv-muted); box-shadow: inset 0 0 0 1px var(--tv-line); }
.sg-ord-top { align-items: flex-start; }
.sg-ord-top .tv-pill { margin-top: 2px; }
.sg-ord-meta { white-space: normal; }
.sg-ord-paid { margin-top: 10px; font-size: 12.5px; color: var(--tv-muted); }
.sg-ord-paid .tv-mono { color: var(--tv-ink-2); }
.sg-ord-paid.is-back { display: flex; align-items: center; gap: 6px; }
.sg-ord-paid.is-back i { font-size: 15px; color: var(--tv-ok); }

.tv-alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--tv-radius-sm); font-size: 13.5px; line-height: 1.45; margin-bottom: 16px; }
.tv-alert i { font-size: 17px; line-height: 1.1; }
.tv-alert-error { background: var(--tv-danger-bg); color: var(--tv-danger); }
.tv-alert-ok { background: var(--tv-ok-bg); color: var(--tv-ok); }
.sg-form-alert[hidden] { display: none; }
.sg-spin-ink { width: 15px; height: 15px; margin-right: 9px; vertical-align: -2px; border-color: currentColor; border-left-color: transparent; opacity: .85; }
.tv-btn[aria-busy="true"] { opacity: .8; }
.sg-err:empty { display: none; }
html[data-theme] .tv-input.is-invalid, html[data-theme] .tv-input.is-invalid:focus { border-color: var(--tv-danger); }
html[data-theme] .tv-input.is-invalid:focus { box-shadow: 0 0 0 4px var(--tv-danger-bg); }
html[data-theme] .sg-legal a { color: var(--tv-muted); }

.tv-pill { white-space: nowrap; }
.sg-pill-mute { background: var(--tv-surface-2); color: var(--tv-muted); }
html[data-theme] .sg-pill-mute { background: var(--tv-surface-2); color: var(--tv-muted); box-shadow: inset 0 0 0 1px var(--tv-line); }
.sg-seg-block { display: flex; width: 100%; margin: 0 0 12px; }
.sg-seg-block button { flex: 1 1 0; padding: 8px 6px; font-size: 12.5px; }
.sg-hist-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.sg-void { color: var(--tv-muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.sg-code-big { font-size: 17px; letter-spacing: .08em; }
.sg-hist-msg { margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--tv-muted); word-break: break-word; }
.sg-hist-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 11px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--tv-surface-2);
    font-size: 12.5px;
    color: var(--tv-ink-2);
    text-decoration: none;
}
.sg-hist-note i { font-size: 17px; color: var(--tv-muted); flex: none; }
.sg-hist-note.is-link { color: var(--tv-ink); }
.sg-hist-note.is-link:hover { color: var(--tv-ink); box-shadow: inset 0 0 0 1px var(--tv-accent); }
.sg-hist-note.is-link i:first-child { color: var(--tv-warn); }
.sg-fund-soon .tv-list-sub { line-height: 1.55; margin-top: 3px; }
.sg-fund-soon .tv-list-sub a { color: var(--tv-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--tv-accent); text-underline-offset: 3px; }
.sg-recent .tv-list-row + .tv-list-row { border-top: 1px solid var(--tv-line); }
.tv-chips .tv-chip { flex: 1 1 0; min-width: 0; padding: 9px 4px; text-align: center; white-space: nowrap; }
a.tv-btn, a.tv-btn:hover, a.tv-btn:focus { text-decoration: none; }
