/* ============================================================
   SatoshiEX Admin – Partners Dashboard
   ============================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a2e 40%, #16213e 100%);
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: #5eead4;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ---------- Container ---------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 2rem 3rem;
}

/* ---------- Header ---------- */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.header-content h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.header-subtitle {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* ---------- Stats Cards ---------- */
.stats-cards {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1 1 220px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: border-color 0.25s ease, transform 0.15s ease;
}

.stat-card:hover {
    border-color: rgba(94, 234, 212, 0.3);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #5eead4;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.2rem;
}

/* ---------- Table Section ---------- */
.table-section {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
}

.table-header {
    padding: 1.1rem 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

/* ---------- Table Container (горизонтальный скролл) ---------- */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ---------- Table ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

thead {
    background: rgba(255, 255, 255, 0.06);
}

th {
    padding: 0.85rem 1.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    text-align: left;
    white-space: nowrap;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

td {
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
    white-space: nowrap;
}

tbody tr {
    transition: background 0.15s ease;
}

tbody tr:hover {
    background: rgba(94, 234, 212, 0.05);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ---------- Cell‑specific styles ---------- */
.cell-number {
    color: #64748b;
    font-size: 0.82rem;
    width: 3rem;
    text-align: center;
}

.cell-id {
    font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;
    font-size: 0.85rem;
    color: #cbd5e1;
    letter-spacing: 0.02em;
}

.cell-name {
    font-weight: 500;
    color: #f1f5f9;
}

.cell-username {
    /* контейнер для бейджа */
}

.username-badge {
    display: inline-block;
    background: rgba(94, 234, 212, 0.08);
    color: #5eead4;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    letter-spacing: 0.01em;
}

.cell-code {
    /* контейнер для ref-code */
}

.ref-code {
    display: inline-block;
    background: rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
    font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;
    font-size: 0.82rem;
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cell-referrals {
    text-align: center;
}

.cell-earned {
    text-align: center;
}

.cell-date {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 6px;
    min-width: 2rem;
    text-align: center;
}

.badge-active {
    background: rgba(94, 234, 212, 0.14);
    color: #5eead4;
}

.badge-inactive {
    background: rgba(255, 255, 255, 0.04);
    color: #4a5568;
}

/* ---------- Earned Highlight ---------- */
.earned-positive {
    color: #34d399;
    font-weight: 600;
    font-size: 0.92rem;
}

/* ---------- Muted text ---------- */
.text-muted {
    color: #4a5568;
}

/* ---------- Empty State ---------- */
.empty-state {
    padding: 3.5rem 1.5rem;
    text-align: center;
    color: #64748b;
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.empty-text {
    font-size: 0.95rem;
}

/* ---------- Error Block ---------- */
.error-block {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.error-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.error-text {
    color: #fca5a5;
    font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .container {
        padding: 1.25rem 1rem 2rem;
    }

    .header-content h1 {
        font-size: 1.35rem;
    }

    .stats-cards {
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1.1rem 1rem;
        border-radius: 10px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .table-section {
        border-radius: 10px;
    }

    .table-header {
        padding: 0.9rem 1.25rem;
    }

    th {
        padding: 0.7rem 1rem;
    }

    td {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .stats-cards {
        flex-direction: column;
    }

    .stat-card {
        flex: 1 1 auto;
    }
}

/* ============================================================
   Login Page
   ============================================================ */

/* ---------- Login Wrapper ---------- */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

/* ---------- Login Card ---------- */
.login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(12px);
}

/* ---------- Login Header ---------- */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.login-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.login-subtitle {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ---------- Login Error ---------- */
.login-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.login-error-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.login-error-text {
    color: #fca5a5;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ---------- Login Form ---------- */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
    color: #4a5568;
}

.form-input:focus {
    border-color: rgba(94, 234, 212, 0.5);
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.1);
}

/* ---------- Login Button ---------- */
.login-button {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f0c29;
    background: linear-gradient(135deg, #5eead4 0%, #34d399 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.login-button:hover {
    opacity: 0.9;
}

.login-button:active {
    transform: scale(0.98);
}

/* ---------- Login Responsive ---------- */
@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }

    .login-title {
        font-size: 1.35rem;
    }
}

/* ============================================================
   Clickable Partner Rows — кликабельные строки партнёров
   ============================================================ */

/* ---------- Кликабельная строка партнёра ---------- */
.partner-row {
    cursor: pointer;
    user-select: none;
}

.partner-row:hover {
    background: rgba(94, 234, 212, 0.07);
}

/* ============================================================
   Partner Detail Page — страница детализации партнёра
   ============================================================ */

/* ---------- Breadcrumb (навигация) ---------- */
.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #5eead4;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.breadcrumb-link:hover {
    background: rgba(94, 234, 212, 0.08);
    text-decoration: none;
}

/* ---------- Partner Card (карточка партнёра) ---------- */
.partner-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.partner-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.partner-card-avatar {
    font-size: 2.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.partner-card-info {
    flex: 1;
    min-width: 0;
}

.partner-card-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
}

.partner-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 2rem;
}

.partner-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.partner-meta-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.partner-meta-value {
    font-size: 0.9rem;
    color: #cbd5e1;
}

/* ---------- Partner Orders Total (итого по заказам) ---------- */
.partner-orders-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.partner-orders-total-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.partner-orders-total-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #5eead4;
}

/* ---------- Partner Detail Responsive ---------- */
@media (max-width: 768px) {
    .partner-card {
        padding: 1.25rem 1.25rem;
        border-radius: 10px;
    }

    .partner-card-header {
        gap: 1rem;
    }

    .partner-card-avatar {
        font-size: 2.2rem;
    }

    .partner-card-name {
        font-size: 1.15rem;
    }

    .partner-card-meta {
        gap: 0.4rem 1.25rem;
    }

    .partner-orders-total {
        padding: 0.85rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .partner-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .partner-card-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
    }
}

/* ============================================================
   Column Filter — фильтр по столбцу таблицы (лупа + поле ввода)
   ============================================================ */

/* ---------- Обёртка заголовка с фильтром ---------- */
.th-filterable {
    position: relative;
}

.th-filterable-content {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

/* ---------- Кнопка-лупа ---------- */
.filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.filter-toggle:hover {
    background: rgba(94, 234, 212, 0.12);
    border-color: rgba(94, 234, 212, 0.3);
}

.filter-toggle.active {
    background: rgba(94, 234, 212, 0.15);
    border-color: rgba(94, 234, 212, 0.4);
}

.filter-toggle-icon {
    width: 0.7rem;
    height: 0.7rem;
    fill: #94a3b8;
    transition: fill 0.15s ease;
}

.filter-toggle:hover .filter-toggle-icon,
.filter-toggle.active .filter-toggle-icon {
    fill: #5eead4;
}

/* ---------- Выпадающее поле поиска ---------- */
.filter-dropdown {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 50;
    display: none;
    align-items: center;
    gap: 0.3rem;
    background: rgba(22, 33, 62, 0.95);
    border: 1px solid rgba(94, 234, 212, 0.25);
    border-radius: 8px;
    padding: 0.35rem 0.45rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    min-width: 200px;
}

.filter-dropdown.visible {
    display: flex;
}

/* ---------- Поле ввода в фильтре ---------- */
.filter-input {
    flex: 1;
    min-width: 0;
    padding: 0.35rem 0.6rem;
    font-family: "JetBrains Mono", "Fira Code", monospace;
    font-size: 0.8rem;
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-input::placeholder {
    color: #4a5568;
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
}

.filter-input:focus {
    border-color: rgba(94, 234, 212, 0.5);
    box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.1);
}

/* ---------- Кнопка сброса (крестик) ---------- */
.filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-clear:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* ---------- Индикатор активного фильтра ---------- */
.filter-active-badge {
    display: none;
    font-size: 0.65rem;
    font-weight: 600;
    color: #0f0c29;
    background: #5eead4;
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    line-height: 1.3;
    white-space: nowrap;
}

.filter-active-badge.visible {
    display: inline-block;
}

/* ---------- Filter Responsive ---------- */
@media (max-width: 768px) {
    .filter-dropdown {
        min-width: 170px;
    }

    .filter-input {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
}

/* ============================================================
   Column Sort — кнопка сортировки по столбцу (⇅ / ↑ / ↓)
   ============================================================ */

/* ---------- Обёртка заголовка с сортировкой ---------- */
.th-sortable {
    /* Позиционирование не требуется — нет выпадающего элемента */
}

.th-sortable-content {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

/* ---------- Кнопка сортировки ---------- */
.sort-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.7rem;
    color: #94a3b8;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sort-toggle:hover {
    background: rgba(94, 234, 212, 0.12);
    border-color: rgba(94, 234, 212, 0.3);
    color: #5eead4;
}

.sort-toggle.active {
    background: rgba(94, 234, 212, 0.15);
    border-color: rgba(94, 234, 212, 0.4);
    color: #5eead4;
}

/* ============================================================
   Payout Modal — модальное окно выплаты партнёру
   ============================================================ */

/* ---------- Кнопка выплаты в карточке статистики ---------- */
.payout-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.6rem;
    padding: 0.4rem 0.9rem;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f0c29;
    background: linear-gradient(135deg, #5eead4 0%, #34d399 100%);
    border: none;
    border-radius: 7px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.payout-btn:hover {
    opacity: 0.88;
}

.payout-btn:active {
    transform: scale(0.97);
}

.payout-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Затемнение фона ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-overlay.visible {
    display: flex;
}

/* ---------- Карточка модального окна ---------- */
.modal-card {
    width: 100%;
    max-width: 400px;
    background: rgba(22, 33, 62, 0.97);
    border: 1px solid rgba(94, 234, 212, 0.2);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---------- Заголовок модального окна ---------- */
.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.modal-subtitle {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

/* ---------- Поле ввода суммы ---------- */
.modal-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.modal-input-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-input {
    width: 100%;
    padding: 0.7rem 1rem;
    font-family: "JetBrains Mono", "Fira Code", monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    outline: none;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-input::placeholder {
    color: #4a5568;
    font-weight: 400;
    font-size: 0.9rem;
}

.modal-input:focus {
    border-color: rgba(94, 234, 212, 0.5);
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.1);
}

/* ---------- Сообщение об ошибке в модальном окне ---------- */
.modal-error {
    display: none;
    font-size: 0.82rem;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    text-align: center;
}

.modal-error.visible {
    display: block;
}

/* ---------- Сообщение об успехе в модальном окне ---------- */
.modal-success {
    display: none;
    font-size: 0.85rem;
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.modal-success.visible {
    display: block;
}

/* ---------- Кнопки модального окна ---------- */
.modal-actions {
    display: flex;
    gap: 0.75rem;
}

.modal-btn {
    flex: 1;
    padding: 0.7rem 1rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.modal-btn:active {
    transform: scale(0.97);
}

.modal-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.modal-btn-confirm {
    color: #0f0c29;
    background: linear-gradient(135deg, #5eead4 0%, #34d399 100%);
}

.modal-btn-confirm:hover:not(:disabled) {
    opacity: 0.88;
}

.modal-btn-cancel {
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-btn-cancel:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
}

/* ---------- Payout Modal Responsive ---------- */
@media (max-width: 480px) {
    .modal-card {
        margin: 0 1rem;
        padding: 1.5rem;
        border-radius: 12px;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }
}

/* ============================================================
   Navigation Tabs — навигация между разделами
   ============================================================ */

/* ---------- Панель навигации ---------- */
.nav-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0;
}

.nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.25rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
    margin-bottom: -1px;
}

.nav-tab:hover {
    color: #e0e0e0;
    text-decoration: none;
}

.nav-tab.active {
    color: #5eead4;
    border-bottom-color: #5eead4;
}

/* ---------- Nav Tabs Responsive ---------- */
@media (max-width: 480px) {
    .nav-tabs {
        gap: 0.25rem;
    }

    .nav-tab {
        padding: 0.6rem 0.9rem;
        font-size: 0.8rem;
    }
}
