html.modal-open,
body.modal-open {
    overscroll-behavior: none;
    overscroll-behavior-y: none;
}

.table-empty-state {
    text-align: center;
    color: var(--color-text-subtle);
}


.section {
    background: var(--color-surface-1);
    border: var(--border-base);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: border-color 0.2s ease;
    margin-bottom: 24px;
    box-shadow: var(--shadow-float-sm);
  }

.section:hover {
  border-color: var(--color-border-strong);
}

.section h3 {
  color: var(--color-text-base);
  margin-bottom: 24px;
  font-size: 1.25em;
  font-weight: 600;
}

/* Shared studio / dashboard UI */

.tabs {
  background: var(--color-surface-0);
  padding: 4px;
  border-radius: var(--radius-lg);
  border: var(--border-subtle);
  gap: 6px;
  display: flex;
  margin-bottom: 24px;
  box-shadow: var(--shadow-inset-soft);
}

.tab {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  min-height: 46px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
  font-weight: 750;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.tab__label {
  font: inherit;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
}

.nav-icon i {
  display: flex;
  align-items: center;
}

.tab.active {
  background: var(--surface-glass-active);
  color: var(--color-bg-base);
  box-shadow: var(--shadow-float-md), var(--shadow-inset-strong);
}

.tab:not(.active):hover {
  background: var(--surface-glass-soft);
  color: var(--color-text-base);
}

.tab:focus-visible,
.btn:focus-visible,
.history-pagination__button:focus-visible {
  outline: none;
  box-shadow: var(--ds-focus-ring);
}

/* Чекбоксы */

.checkbox-label {
  display: flex;
  align-items: center;
  margin: 20px 0;
  font-size: 0.95em;
  cursor: pointer;
  color: var(--color-text-muted);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  padding: 0;
  cursor: pointer;
  accent-color: var(--color-text-base);
  border: var(--border-base);
  border-radius: var(--radius-xs);
  background: var(--color-text-base);
  appearance: none;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked {
  background: var(--color-text-base);
  border-color: var(--color-text-base);
}

.checkbox-label input[type="checkbox"]:checked::before {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-text-base);
  font-size: 14px;
  font-weight: bold;
}

/* API статус */

.api-status {
  background: var(--color-bg-base);
  border: var(--border-base);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.9em;
  color: var(--color-text-muted);
  display: none;
}

.api-status.visible {
  display: block;
}

.api-status.success {
  border-color: var(--color-success-bg);
  background: var(--color-success-bg);
  color: var(--color-success);
}

.api-status.error {
  border-color: var(--color-danger-bg);
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

/* Загрузчик */

.loader {
  border: 3px solid var(--border-base);
  border-top: 3px solid var(--color-text-base);
  border-radius: var(--radius-pill);
  width: 36px;
  height: 36px;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
  display: none;
}

.loader.active {
  display: block;
}

/* Результат */

.result {
  background: var(--color-bg-base);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: var(--border-base);
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  font-size: 0.85em;
  max-height: 200px;
  overflow-y: auto;
  line-height: 1.6;
  color: var(--color-text-muted);
  scrollbar-width: thin;
scrollbar-color: var(--color-text-muted)transparent;
}

.result::-webkit-scrollbar {
  width: 6px;
}

.result::-webkit-scrollbar-track {
  background: transparent;
}

.result::-webkit-scrollbar-thumb {
background:  var(--surface-glass-hover);
  border-radius: var(--radius-pill);
}

.result::-webkit-scrollbar-thumb:hover {
background:  var(--surface-glass-hover);
}

.modal.is-active {
    visibility: visible;
    opacity: 1;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: var(--color-overlay-backdrop);
}

.modal-content {
    background: var(--color-modal-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--border-base);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 480px;
    box-shadow: var(--shadow-float-lg);
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
}

.modal.is-active .modal-content {
    transform: scale(1) translateY(0);
}

/* Bottom Sheet Handle */

.modal-handle {
    display: none;
    width: 40px;
    height: 5px;
background:  var(--surface-glass-hover);
    border-radius: var(--radius-md);
    margin: 12px auto 0;
}

.modal-header {
    padding: 20px;
    border-bottom: var(--border-strong);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3,
.modal-header .modal-header__title {
    margin: 0;
    color: var(--color-text-base);
}

.modal-header .modal-header__title {
    font-size: 1.25em;
    font-weight: 600;
}

.modal-body {
    padding: 20px;
    color: var(--color-text-muted);
}

#replaceStart,
#replaceEnd {
    padding-right: 30px;
}

.modal-content--voice,
#voiceModal .modal-content {
    width: min(860px, calc(100vw - 32px)) !important;
    max-width: 860px !important;
    max-height: min(90vh, 960px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.share-track__dialog {
    width: min(420px, calc(100vw - 24px));
    max-width: 420px;
}

.share-track__body {
    padding: var(--space-4);
}

.help-sheet-text {
    color: var(--color-text-muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

.payment-options {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.payment-option {
    flex: 1;
    min-width: 100px;
    padding: 20px 15px;
background:  var(--surface-glass-soft);
    border: var(--border-base);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.topup-paywall__lead {
    margin: 0 0 -4px;
color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.45;
}

/* Paywall Tabs */
.paywall-tabs-nav {
    display: flex;
background:  var(--surface-glass-soft);
    border: var(--border-base);
    border-radius: var(--radius-md);
    padding: 4px;
    margin: 16px 0 12px;
    gap: 4px;
}

.paywall-tab {
    flex: 1;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    padding: 10px 8px;
color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.paywall-tab.is-active {
    background: var(--surface-glass-base);
    color: var(--color-text-base);
    box-shadow: var(--shadow-float-sm);
}

.paywall-tab--bonus {
    color: var(--color-premium-gold);
}

.paywall-tab--bonus.is-active {
    background: linear-gradient(180deg, color-mix(in oklch, var(--color-premium-gold) 18%, transparent), color-mix(in oklch, var(--color-premium-gold) 6%, transparent));
    color: var(--color-premium-gold);
    border: 1px solid color-mix(in oklch, var(--color-premium-gold) 25%, transparent);
}

.paywall-tab-content {
    display: none;
}

.paywall-tab-content.is-active {
    display: grid;
}

.topup-paywall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    margin: 12px 0;
}

.topup-paywall__option {
    position: relative;
    display: flex;
    min-height: 112px;
    padding: 14px 10px;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    font: inherit;
    color: inherit;
}

.topup-paywall__label {
    display: block;
    min-height: 24px;
    margin-bottom: 4px;
color: var(--color-text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    line-height: 1.2;
    text-transform: uppercase;
}

.topup-paywall__badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 16px);
    overflow: hidden;
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    background: var(--gradient-bonus-fire);
    color: var(--color-text-inverse);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.025em;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topup-paywall__badge--bonus {
    background: var(--gradient-bonus-green);
    color: var(--color-text-inverse);
}

.topup-paywall__badge--fire {
    background: var(--gradient-bonus-fire);
    color: var(--color-text-base);
}

.topup-paywall__bonus-text {
    color: var(--color-success);
    font-weight: 600;
}

.topup-paywall__bonus-text--gold {
    color: var(--color-premium-gold);
}

.topup-paywall__option--recommended {
    border-color: var(--color-warning);
    background: var(--color-warning-bg);
}

.topup-paywall__option--recommended.selected {
    border-color: var(--color-warning);
    box-shadow: var(--shadow-glow-gold);
}

#balanceModal .modal-body {
    padding-top: 18px;
    padding-bottom: 14px;
}

#balanceModal .modal-tg-bonus {
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 2px;
}

#balanceModal .modal-tg-bonus__title { font-size: 0.85rem; margin-bottom: 1px; }
#balanceModal .modal-tg-bonus__hint { font-size: 0.75rem; line-height: 1.25; }
#balanceModal .modal-divider-or { margin: 2px 0; font-size: 0.7rem; }
#balanceModal .topup-paywall__lead { display: none; }
#balanceModal .payment-option .amount { font-size: 1.18rem; margin-bottom: 2px; }
#balanceModal .payment-option .description { font-size: 0.72rem; line-height: 1.25; }
#balanceModal .payment-method-wrap { margin: 10px 0; }
#balanceModal .payment-method-label { font-size: 0.82rem; }

.topup-custom-amount { margin-top: 12px; }
.topup-custom-amount__head { display:flex; align-items:center; gap:10px; margin-bottom:8px; color:var(--color-text-subtle); font-size:0.7rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }
.topup-custom-amount__head::before,
.topup-custom-amount__head::after { content:''; flex:1; height:1px; background:var(--surface-glass-base); }
.topup-custom-amount__head label { margin:0; color:inherit; font:inherit; white-space:nowrap; cursor:text; }
.topup-custom-amount__head > span { color: var(--color-text-muted); font-size:0.68rem; letter-spacing:.03em; text-transform:none; white-space:nowrap; }
.topup-custom-amount .payment-number-input { margin:0; }

.btn-close-reset {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

.voice-actions-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 0;
}

.voice-actions-row .voice-use-sample-btn {
    flex: 1;
    margin-top: 0;
    min-width: 180px;
}

.voice-cost-hint {
    text-align: center;
    width: 100%;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 10px;
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .topup-paywall { grid-template-columns: 1fr; gap: 10px; }

    #balanceModal .topup-paywall__option {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        column-gap: 14px;
        row-gap: 3px;
        min-height: 0;
        padding: 13px 16px;
        text-align: left;
        align-items: center;
    }

    #balanceModal .topup-paywall__label {
        grid-column: 1;
        grid-row: 1;
        min-height: 0;
        margin: 0;
        font-size: .68rem;
    }

    #balanceModal .topup-paywall__option .amount {
        grid-column: 2;
        grid-row: 1 / span 2;
        margin: 0;
        font-size: 1.25rem;
        white-space: nowrap;
    }

    #balanceModal .topup-paywall__option .description {
        grid-column: 1;
        grid-row: 2;
        font-size: .72rem;
    }

    #balanceModal .topup-paywall__badge {
        top: -9px;
        left: 18px;
        transform: none;
    }

    #balanceModal .topup-paywall__option--recommended {
        margin-top: 1px;
    }
}

.generation-price-summary {
    margin: 12px 0 0;
color: var(--color-text-muted);
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.generation-price-summary strong {
    color: var(--color-text-base);
}

.payment-option:hover {
background:  var(--surface-glass-soft);
border-color:  var(--color-border-strong);
    transform: translateY(-2px);
}

.payment-option.selected {
background:  var(--surface-glass-base);
    border-color: var(--color-text-base);
box-shadow:  0 10px 30px -10px var(--surface-glass-hover);
}

.payment-option .amount {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-text-base);
    margin-bottom: 5px;
}

.payment-option .description {
    font-size: 12px;
    color: var(--color-text-muted);
}

@media (max-width: 640px) {
    .topup-paywall {
        gap: 12px;
    }

    .topup-paywall__option {
        flex-basis: 100%;
        min-height: 82px;
        padding: 16px 18px;
    }

    .topup-paywall__label {
        min-height: auto;
        margin-bottom: 4px;
    }
    
    .generation-price-summary {
        font-size: 11px;
        margin-top: 14px;
        line-height: 1.45;
    }
}

/* TG Bonus card inside balance modals */
.modal-tg-bonus {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: var(--radius-lg);
    background: var(--surface-glass-soft);
    border: var(--border-subtle);
    position: relative;
}

.modal-tg-bonus__text {
    min-width: 0;
}

.modal-tg-bonus__title {
    color: var(--color-text-base);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 2px;
}

.modal-tg-bonus__hint {
    color: var(--color-text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.modal-tg-bonus__action {
    display: flex;
    gap: 8px;
    width: 100%;
}

.modal-tg-bonus__action .bonus-option {
    position: relative;
    flex: 1;
    min-width: 0;
    display: block;
}

@media (max-width: 480px) {
    .modal-tg-bonus__action {
        flex-direction: column;
    }

    .modal-tg-bonus__action .bonus-option {
        width: 100%;
    }
}

.modal-tg-bonus__qr {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 188px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: var(--color-modal-bg);
    border: var(--border-base);
    box-shadow: var(--shadow-float-lg);
    z-index: 200;
}

.modal-tg-bonus__qr::after {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 18px;
    border: 10px solid transparent;
    border-bottom-color: var(--color-modal-bg);
}

.modal-tg-bonus__action .bonus-option:hover .modal-tg-bonus__qr {
    display: block;
}

.modal-tg-bonus__qr img {
    width: 150px;
    height: 150px;
    background: var(--color-text-base);
    padding: 5px;
    border-radius: var(--radius-md);
    margin: 0 auto 8px;
    display: block;
}

.modal-tg-bonus__qr span {
    display: block;
    color: var(--color-text-base);
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: center;
}

.modal-divider-or {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 4px 0 2px;
    color: var(--color-text-subtle);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.modal-divider-or::before,
.modal-divider-or::after {
    content: '';
    flex: 1;
    height: 1px;
background:  var(--surface-glass-base);
}

@media (max-width: 768px) {
    .modal-tg-bonus__qr {
        display: none !important;
    }

    #balanceModal .modal-tg-bonus {
        display: flex;
        flex-direction: column;
        gap: 9px;
        padding: 9px 10px;
    }

    #balanceModal .modal-tg-bonus__title {
        margin: 0;
        font-size: 0.82rem;
        line-height: 1.2;
    }

    #balanceModal .modal-tg-bonus__hint {
        display: -webkit-box;
        overflow: hidden;
        margin-top: 2px;
        color: var(--color-text-muted);
        font-size: 0.7rem;
        line-height: 1.2;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    #balanceModal .modal-tg-bonus__action {
        width: 100%;
    }
}

.modal-actions {
    padding: 20px;
    border-top: var(--border-base);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 
 * 2026 Premium Button Architecture
 * Focuses on fluid motion, refined glassmorphism, and calm AI aesthetics
 */
.btn {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px; /* Снизили базовую высоту, чтобы кнопки не казались громоздкими */
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill); /* 2026 GenAI standard: Pills for actions, boxes for inputs */
    cursor: pointer;
    isolation: isolate;
    color: var(--color-text-base);
    font-size: var(--text-sm);
    font-weight: 600; /* Cleaner, premium typography instead of heavy 750 */
    letter-spacing: -0.01em;
    line-height: 1;
    text-decoration: none;
    background: transparent;
    /* Ultra-smooth organic transition for 2026 feel */
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.1, 1), 
                box-shadow 0.3s ease, 
                background 0.3s ease, 
                border-color 0.3s ease, 
                color 0.3s ease, 
                filter 0.3s ease;
}

.btn:hover:not(:disabled) {
    /* Subtler scale, no aggressive popping */
    transform: scale(1.015);
}

.btn:active:not(:disabled) {
    /* Precise tactile scale on press */
    transform: scale(0.96);
}

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

.btn:focus-visible {
    outline: none;
    /* WCAG 2026 standard offset focus ring */
    box-shadow: 0 0 0 2px var(--color-bg-base), 0 0 0 4px color-mix(in oklch, var(--color-brand-primary) 60%, transparent);
}

/* Modifiers */

/* Sizes */

@keyframes magicFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Centralized button system aliases (Legacy support) */

/* Explicit UI button API */

.btn-ui-chip.is-active,
.landing-mode-btn.is-active {
    background: var(--surface-glass-active);
    color: var(--color-bg-base);
    border-color: color-mix(in oklch, var(--color-text-base) 28%, transparent);
    box-shadow: var(--shadow-float-md), var(--shadow-inset-strong);
    filter: none;
}

.btn-ui-chip.is-active:hover:not(:disabled),
.btn-ui-chip.is-active:focus-visible,
.landing-mode-btn.is-active:hover:not(:disabled),
.landing-mode-btn.is-active:focus-visible {
    background: linear-gradient(180deg, var(--color-text-base) 0%, color-mix(in oklch, var(--color-text-base) 90%, black) 100%);
    color: var(--color-bg-base);
    border-color: color-mix(in oklch, var(--color-text-base) 28%, transparent);
    box-shadow: var(--shadow-float-lg), inset 0 1px 0 color-mix(in oklch, var(--color-bg-base) 20%, transparent);
    transform: translateY(-1px);
    filter: none;
}

/* Admin/system variants built on the same button language */

/* Utility / micro button family */

.history-task-action-btn {
    background: linear-gradient(180deg, var(--border-subtle) 0%, var(--surface-glass-soft) 100%);
    border: var(--border-base);
    color: var(--ds-text-strong);
    box-shadow: var(--shadow-inset-soft), var(--shadow-float-sm);
}

.history-task-action-btn:hover {
background:  linear-gradient(180deg, var(--surface-glass-hover) 0%, var(--surface-glass-soft) 100%);
border-color:  var(--color-border-strong);
    color: var(--color-text-base);
}

/* Navigation / pager controls */

.scroll-btn,
.history-page-size__option {
    background: linear-gradient(180deg, var(--border-subtle) 0%, var(--surface-glass-soft) 100%);
    border: var(--border-base);
    color: var(--ds-text-muted);
    box-shadow: inset 0 1px 0 var(--surface-glass-soft), var(--shadow-float-sm);
}

.scroll-btn:hover:not(:disabled),
.history-page-size__option:hover {
background:  linear-gradient(180deg, var(--surface-glass-hover) 0%, var(--surface-glass-soft) 100%);
border-color:  var(--color-border-strong);
    color: var(--color-text-base);
}

.history-page-size__option.is-active,
.page-btn.active,
.mobile-studio-link.is-active {
    background: linear-gradient(180deg, var(--color-text-base) 0%, color-mix(in oklch, var(--color-text-base) 90%, black) 100%);
    color: var(--color-bg-base);
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-float-sm), inset 0 1px 0 var(--surface-glass-hover);
}

/* Menu / sheet action family */

.share-track-sheet__action {
background:  var(--surface-glass-soft);
    border: var(--border-subtle);
    color: var(--ds-text-strong);
    box-shadow: inset 0 1px 0 var(--surface-glass-soft);
}

.share-track-sheet__action:hover:not(:disabled) {
    background: var(--border-subtle);
border-color:  var(--color-border-strong);
    color: var(--color-text-base);
}

/* Provider buttons */

.oauth-btn {
    border: var(--border-base);
    box-shadow: inset 0 1px 0 var(--surface-glass-soft), var(--shadow-float-sm);
}

.oauth-btn--google {
    background: linear-gradient(180deg, var(--color-text-base) 0%, color-mix(in oklch, var(--color-text-base) 90%, black) 100%);
    color: var(--color-bg-base);
    border-color: var(--color-border-strong);
}

.oauth-btn--google:hover {
    background: linear-gradient(180deg, color-mix(in oklch, var(--color-text-base) 95%, black) 0%, color-mix(in oklch, var(--color-text-base) 85%, black) 100%);
}

.oauth-btn--vk {
    background: linear-gradient(180deg, color-mix(in oklch, var(--color-brand-primary) 90%, black) 0%, color-mix(in oklch, var(--color-brand-primary) 80%, black) 100%);
    color: var(--color-text-base);
    border-color: color-mix(in oklch, var(--color-brand-primary) 40%, transparent);
}

.oauth-btn--vk:hover {
    background: linear-gradient(180deg, var(--color-brand-primary) 0%, color-mix(in oklch, var(--color-brand-primary) 85%, black) 100%);
}

.auth-btn,
.profile-btn,
.hero-primary-btn {
    border: var(--border-base);
    border-color: color-mix(in oklch, var(--color-text-base) 28%, transparent);
    background: var(--surface-glass-active);
    color: var(--color-bg-base);
    font-weight: 750;
    letter-spacing: -0.02em;
    box-shadow: var(--shadow-float-md), var(--shadow-inset-strong);
}

.auth-btn:hover:not(:disabled),
.profile-btn:hover,
.hero-primary-btn:hover {
    background: linear-gradient(180deg, var(--color-text-base) 0%, color-mix(in oklch, var(--color-text-base) 90%, black) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-float-lg), inset 0 1px 0 color-mix(in oklch, var(--color-bg-base) 20%, transparent);
}

.hero-secondary-btn,
.clear-history,
.track-card__pill--private,
.landing-mode-btn {
    background: var(--surface-glass-soft);
    border: var(--border-subtle);
    color: var(--color-text-strong);
    font-weight: 750;
    letter-spacing: -0.01em;
    box-shadow: var(--shadow-inset-soft), var(--shadow-float-sm);
}

.hero-secondary-btn:hover,
.clear-history:hover,
.track-card__pill--private:hover:not(:disabled),
.landing-mode-btn:hover {
    background: var(--surface-glass-base);
    border-color: color-mix(in oklch, var(--color-text-base) 16%, transparent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-inset-strong), var(--shadow-float-md);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-success);
    color: var(--color-text-base);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-float-lg);
    z-index: 100000;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.notification.show {
    opacity: 1;
    pointer-events: auto;
}

.notification.error {
    background: var(--color-danger);
}

.result-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.result-section__title {
    margin-bottom: 24px;
}

.result-box {
    background: var(--color-bg-base);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: var(--border-base);
    margin-bottom: 20px;
    color: var(--color-text-muted);
    font-size: 0.95em;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
}

.result-note {
    margin-top: 15px;
    color: var(--color-text-muted);
    font-size: 0.9em;
    line-height: 1.4;
}

/* Окно после оплаты. Раньше значком тут стояла эмодзи 🎉 — единственная на
   весь сайт, остальные значки рисованные. Размеры и цвета взяты из токенов,
   как у прочих окон uikit. */
.payment-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-2);
}

.payment-success__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-2);
    border-radius: var(--radius-pill);
    color: var(--color-success);
    background: var(--color-success-bg);
}

.payment-success__icon svg {
    width: 30px;
    height: 30px;
}

.payment-success__amount {
    margin: 0;
    color: var(--color-text-base);
    font-size: var(--text-2xl);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.payment-success__bonus {
    margin: 0;
    color: var(--color-success);
    font-size: var(--text-sm);
    font-weight: 700;
}

.payment-success__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
    margin-top: var(--space-6);
}

.global-player-cover-play {
    opacity: 1;
    background: transparent;
}

.history-pagination-arrow-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.svg-block-full {
    display: block;
    width: 100%;
    height: 100%;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-4 {
    margin-bottom: 16px;
}

.track-menu-danger-label {
    color: color-mix(in oklch, var(--color-danger) 65%, transparent);
}

.track-menu-danger-item {
    color: var(--color-danger);
}

.w-full {
    width: 100%;
}

.flex-between-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.track-card-heading-mb8 {
    margin-top: 0;
    margin-bottom: 8px;
    width: 100%;
}

/* History action modals: stem separation and Persona creation. */

.stem-modal .modal-body {
    display: grid;
    gap: 12px;
}

.stem-modal .modal-body > p {
    margin: 0 0 4px;
}

/* Бонус за подписку на ВКонтакте: два шага, между которыми человек уходит
   в сообщество. Поэтому окно и остаётся открытым при отказе. */
.vk-bonus__steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin: 0;
    padding: 0 0 0 20px;
}

.vk-bonus__step {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.vk-bonus__step-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--color-text-base);
}

.vk-bonus__qr {
    width: 132px;
    height: 132px;
    align-self: center;
    border-radius: var(--radius-md);
    background: #fff;
    padding: 6px;
}

.vk-bonus__status {
    margin: var(--space-4) 0 0;
    padding: 10px 12px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    line-height: 1.45;
}

.vk-bonus__status--warn {
    border: 1px solid color-mix(in oklch, var(--color-premium-gold) 55%, transparent);
    background: color-mix(in oklch, var(--color-premium-gold) 10%, transparent);
    color: var(--color-text-base);
}

.vk-bonus__status--ok {
    border: 1px solid color-mix(in oklch, var(--color-success) 55%, transparent);
    background: color-mix(in oklch, var(--color-success) 10%, transparent);
    color: var(--color-text-base);
}
