/* ==========================================================================
   VANTRO Panel — corporate interface skin
   Loaded after dashboard.html inline styles. Visual overrides only.
   ========================================================================== */

:root {
    --font-sans: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-brand: 'Orbitron', 'Manrope', sans-serif;

    --blue: #4f6bff;
    --blue-soft: #6d8bff;
    --violet: #8b5cf6;
    --violet-soft: #a78bfa;
    --brand-grad: linear-gradient(120deg, #4f6bff 0%, #6f5cff 48%, #8b5cf6 100%);
    --brand-grad-text: linear-gradient(100deg, #6d8bff 0%, #a78bfa 45%, #6d8bff 90%);

    --bg-main: #06070d;
    --bg-surface: rgba(255, 255, 255, 0.038);
    --bg-elevated: #0e1020;
    --bg-hover: rgba(255, 255, 255, 0.055);
    --bg-active: rgba(255, 255, 255, 0.085);
    --border: rgba(255, 255, 255, 0.085);
    --border-hover: rgba(255, 255, 255, 0.16);
    --border-focus: rgba(109, 139, 255, 0.62);
    --text-main: #f3f5ff;
    --text-secondary: #c5c9dd;
    --text-muted: #969bb4;
    --text-dim: #737892;
    --accent: #6d8bff;
    --accent-bright: #a9b8ff;
    --accent-dim: #4f6bff;
    --accent-glow: rgba(109, 139, 255, 0.35);
    --accent-subtle: rgba(109, 139, 255, 0.12);
    --accent-gradient: var(--brand-grad);
    --success: #35e0a1;
    --success-glow: rgba(53, 224, 161, 0.25);
    --warning: #ffc65c;
    --warning-glow: rgba(255, 198, 92, 0.24);
    --danger: #ff8394;
    --danger-glow: rgba(255, 131, 148, 0.24);

    --sidebar-w: 264px;
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.28);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.44);
    --shadow-xl: 0 34px 80px rgba(0, 0, 0, 0.55);
    --transition: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-slow: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    background: var(--bg-main);
}

body {
    font-family: var(--font-sans);
    background:
        radial-gradient(ellipse 900px 600px at 8% -10%, rgba(79, 107, 255, 0.13), transparent 62%),
        radial-gradient(ellipse 800px 700px at 96% 105%, rgba(139, 92, 246, 0.12), transparent 62%),
        var(--bg-main);
    color: var(--text-main);
    letter-spacing: -0.005em;
}

body::before {
    background:
        radial-gradient(ellipse 720px 540px at 50% -20%, rgba(111, 92, 255, 0.09), transparent 70%),
        radial-gradient(ellipse 540px 480px at 100% 40%, rgba(79, 107, 255, 0.06), transparent 70%);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 0%, transparent 74%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 0%, transparent 74%);
}

::selection {
    background: rgba(109, 139, 255, 0.38);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.13);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ─── Sidebar ─────────────────────────────────────────────────────────── */

.sidebar {
    top: 16px;
    left: 16px;
    bottom: 16px;
    width: var(--sidebar-w);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        radial-gradient(ellipse 280px 220px at 12% -8%, rgba(79, 107, 255, 0.17), transparent 70%),
        linear-gradient(180deg, rgba(16, 18, 33, 0.97) 0%, rgba(7, 8, 15, 0.965) 100%);
    box-shadow:
        0 28px 70px -26px rgba(0, 0, 0, 0.82),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(26px) saturate(135%);
    backdrop-filter: blur(26px) saturate(135%);
}

.brand {
    position: relative;
    padding: 26px 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand::after {
    content: '';
    position: absolute;
    inset: auto 20px 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(109, 139, 255, 0.48), transparent);
    opacity: 0.55;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
    filter: drop-shadow(0 8px 22px rgba(79, 107, 255, 0.18));
}

.brand-logo img {
    display: block;
    width: auto;
    height: 22px;
}

.brand-title {
    display: none;
}

.brand-sub {
    display: block;
    margin-top: 9px;
    color: #7f849f;
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.project-selector {
    margin-top: 18px;
    gap: 7px;
}

.project-selector select {
    min-width: 0;
    height: 40px;
    padding: 0 34px 0 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background-color: rgba(255, 255, 255, 0.045);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.project-selector select:hover {
    background-color: rgba(255, 255, 255, 0.065);
    border-color: var(--border-hover);
}

.project-selector select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(79, 107, 255, 0.13);
}

.brand .btn-secondary {
    min-height: 40px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-secondary);
}

.current-company {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 7px;
    row-gap: 3px;
    margin-top: 11px;
    color: #858aa5;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.current-company svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    align-self: center;
    color: #8f9fff;
    opacity: 0.8;
}

.current-company__name {
    min-width: 0;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* Баланс всегда на отдельной строке под названием компании */
.current-company__balance {
    grid-column: 2;
    color: var(--success);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.current-company__balance.is-positive {
    color: var(--success);
}

.current-company__balance.is-negative {
    color: var(--danger);
}

/* Баланс слева, статус компании справа — одной строкой */
.current-company__row {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.current-company__status.deal-stage {
    flex-shrink: 0;
    padding: 2px 6px;
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.current-company__status.is-hidden {
    display: none;
}

.nav {
    padding: 16px 12px;
    gap: 3px;
}

.nav-group-title {
    padding: 20px 12px 8px;
    color: #686d87;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.nav-item {
    gap: 11px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #9da2ba;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.nav-item svg {
    width: 17px;
    height: 17px;
    min-width: 17px;
    min-height: 17px;
    opacity: 0.72;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.06);
    color: #f0f2ff;
}

.nav-item.active {
    border-color: rgba(109, 139, 255, 0.22);
    background:
        radial-gradient(ellipse 180px 70px at 0% 50%, rgba(79, 107, 255, 0.28), transparent 75%),
        linear-gradient(100deg, rgba(79, 107, 255, 0.2), rgba(139, 92, 246, 0.11));
    color: #fff;
    font-weight: 700;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        0 12px 28px -20px rgba(79, 107, 255, 0.85);
}

.nav-item.active::before {
    left: 0;
    width: 2px;
    height: 18px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #7e98ff, #a78bfa);
    box-shadow: 0 0 14px rgba(109, 139, 255, 0.72);
}

.nav-item.active svg {
    color: #b9c5ff;
    opacity: 1;
}

/* Support unread lamp */
.support-lamp {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    margin-left: -3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.support-lamp.is-on {
    background: radial-gradient(circle at 35% 30%, #fff 0 12%, #ffb3bd 32%, #ff6b80 72%);
    box-shadow:
        0 0 0 2px rgba(255, 107, 128, 0.16),
        0 0 8px rgba(255, 107, 128, 0.95),
        0 0 16px rgba(255, 107, 128, 0.55),
        0 0 26px rgba(255, 107, 128, 0.28);
    animation: support-lamp-pulse 1.8s ease-in-out infinite;
}

@keyframes support-lamp-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 2px rgba(255, 131, 148, 0.12),
            0 0 8px rgba(255, 131, 148, 0.8),
            0 0 16px rgba(255, 131, 148, 0.35);
    }
    50% {
        box-shadow:
            0 0 0 3px rgba(255, 131, 148, 0.2),
            0 0 12px rgba(255, 131, 148, 1),
            0 0 22px rgba(255, 131, 148, 0.55);
    }
}

@media (prefers-reduced-motion: reduce) {
    .support-lamp.is-on { animation: none; }
}

.sidebar-footer {
    gap: 13px;
    padding: 14px 16px 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
    background: rgba(255, 255, 255, 0.014);
}

.test-toggle-wrapper {
    height: 40px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.075);
}

.test-toggle-wrapper:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: var(--border-hover);
}

.toggle-text {
    font-size: 12px;
    font-weight: 700;
    color: #9da2ba;
}

.toggle-switch {
    width: 34px;
    height: 18px;
    background: rgba(255, 255, 255, 0.16);
}

.toggle-switch::after {
    width: 14px;
    height: 14px;
}

.test-toggle-wrapper.active {
    background: rgba(255, 198, 92, 0.08);
    border-color: rgba(255, 198, 92, 0.28);
}

.test-toggle-wrapper.active .toggle-text {
    color: #ffd384;
}

.test-toggle-wrapper.active .toggle-switch {
    background: linear-gradient(120deg, #ff9f5a, #ff6f91);
    box-shadow: 0 0 16px rgba(255, 139, 92, 0.35);
}

.user-profile {
    gap: 10px;
    padding-top: 13px;
    border-top-color: rgba(255, 255, 255, 0.06);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--brand-grad);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 22px -10px rgba(79, 107, 255, 0.8);
}

.user-email {
    font-size: 11.5px;
    font-weight: 600;
    color: #c8cce0;
}

.logout-btn {
    margin-top: 2px;
    color: #7f849e;
    font-size: 11px;
    font-weight: 600;
}

.logout-btn:hover {
    color: #ff9baa;
}

/* ─── Main canvas ─────────────────────────────────────────────────────── */

.main-content {
    margin-left: calc(var(--sidebar-w) + 32px);
}

.page-container {
    width: 100%;
    max-width: 1260px;
    padding: 36px 40px 148px;
}

.page-title {
    margin-bottom: 9px;
    color: #f8f9ff;
    font-family: var(--font-sans);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.08;
}

.page-subtitle {
    margin-bottom: 30px;
    color: #8d92ac;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.005em;
}

.section-title {
    color: #f1f3ff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ─── Glass cards ─────────────────────────────────────────────────────── */

.card {
    border: 1px solid var(--border);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.022) 100%),
        rgba(9, 10, 18, 0.52);
    box-shadow:
        0 24px 60px -38px rgba(0, 0, 0, 0.92),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px) saturate(125%);
    backdrop-filter: blur(20px) saturate(125%);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.13);
    box-shadow:
        0 28px 64px -36px rgba(0, 0, 0, 0.95),
        inset 0 1px 0 rgba(255, 255, 255, 0.065);
}

.card-header {
    padding: 17px 22px;
    border-bottom-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.018);
}

.card-body {
    padding: 22px;
}

/* ─── KPI cards ───────────────────────────────────────────────────────── */

.stats-grid {
    gap: 12px;
    margin-bottom: 26px;
}

.stat-card {
    min-height: 112px;
    padding: 17px 17px 18px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 18px;
    background:
        radial-gradient(ellipse 150px 100px at 100% 100%, rgba(79, 107, 255, 0.14), transparent 72%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.057), rgba(255, 255, 255, 0.023));
    box-shadow:
        0 22px 50px -38px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.stat-card::before {
    top: 0;
    height: 1px;
    opacity: 0.55;
    background: linear-gradient(90deg, transparent, rgba(157, 172, 255, 0.8), rgba(167, 139, 250, 0.55), transparent);
}

.stat-card::after {
    content: '';
    position: absolute;
    right: -38px;
    bottom: -58px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109, 139, 255, 0.2), transparent 68%);
    pointer-events: none;
}

.stat-card:nth-child(2)::after {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.21), transparent 68%);
}

.stat-card:nth-child(3)::after {
    background: radial-gradient(circle, rgba(53, 224, 161, 0.14), transparent 68%);
}

.stat-card:nth-child(4)::after {
    background: radial-gradient(circle, rgba(255, 198, 92, 0.13), transparent 68%);
}

.stat-label {
    margin-bottom: 13px;
    color: #999eb8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.stat-icon {
    width: 29px;
    height: 29px;
    border: 1px solid rgba(109, 139, 255, 0.16);
    border-radius: 9px;
    background: rgba(109, 139, 255, 0.1);
    color: #a8b7ff;
}

.stat-value {
    position: relative;
    z-index: 1;
    color: #f6f7ff;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.stat-value.balance {
    color: #5ce7b0;
    text-shadow: 0 0 28px rgba(53, 224, 161, 0.22);
}

/* ─── Typography inside panels ───────────────────────────────────────── */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
}

label {
    margin-bottom: 8px;
    color: #bfc4d9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.005em;
}

.field-hint,
.hint {
    color: #777c96;
    font-size: 11.5px;
    line-height: 1.5;
}

/* ─── Forms ───────────────────────────────────────────────────────────── */

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="time"],
input[type="date"],
input[type="tel"],
input[type="url"],
select,
textarea {
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.095);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    color: #eef0fb;
    font-family: var(--font-sans);
    font-size: 13.5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

input::placeholder,
textarea::placeholder {
    color: #62677f;
}

input:hover:not(:disabled),
select:hover:not(:disabled),
textarea:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.055);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(109, 139, 255, 0.66);
    background: rgba(255, 255, 255, 0.065);
    box-shadow:
        0 0 0 3px rgba(79, 107, 255, 0.14),
        0 10px 28px -22px rgba(79, 107, 255, 0.6);
}

input:disabled,
select:disabled,
textarea:disabled {
    background: rgba(255, 255, 255, 0.025);
    color: #6f748d;
}

select {
    color-scheme: dark;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23969bb4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

select option,
select optgroup {
    background-color: #101221;
    color: #eef0fb;
}

select option:checked,
select option:hover {
    background-color: #2b3158;
    color: #ffffff;
}

select option:disabled {
    color: #70758e;
}

textarea {
    line-height: 1.6;
}

input[type="checkbox"] {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

input[type="checkbox"]:hover {
    border-color: rgba(109, 139, 255, 0.6);
}

input[type="checkbox"]:checked {
    border-color: transparent;
    background: var(--brand-grad);
    box-shadow: 0 0 0 3px rgba(79, 107, 255, 0.12);
}

input[type="checkbox"]:checked::after {
    color: #fff;
}

input[type="range"] {
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
}

input[type="range"]::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    background: var(--brand-grad);
    box-shadow: 0 0 0 4px rgba(79, 107, 255, 0.13), 0 4px 12px rgba(79, 107, 255, 0.45);
}

/* ─── Buttons ─────────────────────────────────────────────────────────── */

.btn {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1;
}

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--brand-grad);
    color: #fff;
    box-shadow:
        0 14px 32px -16px rgba(79, 107, 255, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow:
        0 18px 38px -16px rgba(79, 107, 255, 0.95),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0) scale(0.99);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.055);
    color: #e6e9f7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.btn-secondary:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.085);
    color: #fff;
}

.btn-ghost {
    border-radius: 10px;
    color: #9298b2;
}

.btn-ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
}

.btn-sm {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 11.5px;
}

.actions-cell .btn-ghost {
    border-radius: 9px;
}

/* ─── Tabs ────────────────────────────────────────────────────────────── */

.sub-tabs {
    display: inline-flex;
    max-width: 100%;
    margin-bottom: 24px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.032);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sub-tab {
    padding: 8px 13px;
    border: none;
    border-radius: 10px;
    color: #8e93ad;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.sub-tab:hover {
    background: rgba(255, 255, 255, 0.045);
    color: #e9ecfb;
}

.sub-tab.active {
    border: none;
    background:
        linear-gradient(120deg, rgba(79, 107, 255, 0.28), rgba(139, 92, 246, 0.18));
    color: #fff;
    text-shadow: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 8px 20px -16px rgba(79, 107, 255, 0.9);
}

.segmented {
    padding: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.seg-btn {
    min-height: 30px;
    padding: 0 14px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
}

.seg-btn.active {
    background: var(--brand-grad);
    box-shadow:
        0 8px 20px -12px rgba(79, 107, 255, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.deals-stage-tab {
    height: 36px;
    padding: 0 14px;
    border-color: rgba(255, 255, 255, 0.085);
    background: rgba(255, 255, 255, 0.025);
    color: #969bb4;
    font-size: 12px;
    font-weight: 700;
}

.deals-stage-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
}

.deals-stage-tab.active {
    background: var(--brand-grad);
    box-shadow: 0 10px 24px -16px rgba(79, 107, 255, 0.9);
}

/* ─── Switches, status ───────────────────────────────────────────────── */

.switch {
    width: 40px;
    height: 22px;
    background: rgba(255, 255, 255, 0.16);
}

.switch.on {
    background: var(--brand-grad) !important;
    box-shadow: 0 0 18px rgba(79, 107, 255, 0.38);
}

.switch-row {
    border-bottom-color: rgba(255, 255, 255, 0.065);
}

.switch-row-title {
    color: #eef0fc;
    font-size: 13.5px;
    font-weight: 700;
}

.switch-row-desc {
    color: #858aa5;
    font-size: 11.5px;
    line-height: 1.55;
}

.status-list-item {
    border-bottom-color: rgba(255, 255, 255, 0.065);
}

.status-list-label {
    font-size: 13px;
    font-weight: 600;
}

.ai-update-box {
    border: 1px solid rgba(109, 139, 255, 0.18);
    border-radius: 16px;
    background:
        radial-gradient(ellipse 280px 120px at 0% 0%, rgba(79, 107, 255, 0.15), transparent 70%),
        rgba(255, 255, 255, 0.025);
}

/* ─── Tables ──────────────────────────────────────────────────────────── */

.data-table {
    font-size: 12.5px;
}

.data-table th,
.deals-table th {
    padding: 12px 10px;
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: transparent;
    color: #727792;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.data-table td,
.deals-table td {
    padding: 12px 10px;
    border-bottom-color: rgba(255, 255, 255, 0.055);
    color: #b6bbd1;
    font-size: 12.5px;
}

.data-table tbody tr:hover {
    background: rgba(109, 139, 255, 0.055);
}

.deals-table-wrapper {
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
        rgba(9, 10, 18, 0.55);
    box-shadow: 0 24px 60px -40px rgba(0, 0, 0, 0.9);
}

.deals-table th {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.022);
}

.deals-table td {
    padding: 13px 16px;
}

.deals-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(79, 107, 255, 0.075), rgba(139, 92, 246, 0.025));
}

.deal-stage {
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* ─── Modals, drawers, toasts ─────────────────────────────────────────── */

.modal-overlay {
    background: rgba(3, 4, 9, 0.76);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.modal-content {
    max-width: 560px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 24px;
    background:
        radial-gradient(ellipse 420px 220px at 50% -10%, rgba(79, 107, 255, 0.13), transparent 70%),
        linear-gradient(180deg, #111324 0%, #0a0b15 100%);
    box-shadow:
        0 40px 100px -30px rgba(0, 0, 0, 0.86),
        inset 0 1px 0 rgba(255, 255, 255, 0.065);
    padding: 28px;
}

.modal-header {
    margin-bottom: 22px;
}

.modal-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.drawer,
#chat-panel {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(ellipse 380px 260px at 100% 0%, rgba(139, 92, 246, 0.13), transparent 68%),
        linear-gradient(180deg, #111324 0%, #080910 100%);
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.65);
}

.drawer-header,
.chat-header {
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

.drawer-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.chat-header h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.chat-header h3 svg {
    width: 18px;
    height: 18px;
    color: #a9b8ff;
}

.chat-msg.assistant {
    border-color: rgba(255, 255, 255, 0.075);
    background: rgba(255, 255, 255, 0.055);
}

.chat-msg.user {
    background: var(--brand-grad);
    box-shadow: 0 8px 24px -14px rgba(79, 107, 255, 0.9);
}

.chat-input-row {
    border-top-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
}

.chat-fab {
    background: var(--brand-grad);
    color: #fff;
    box-shadow:
        0 18px 40px -18px rgba(79, 107, 255, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.chat-fab svg {
    width: 24px;
    height: 24px;
    display: block;
}

.toast {
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px;
    background: rgba(15, 17, 31, 0.94);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 48px -22px rgba(0, 0, 0, 0.85);
    font-size: 12.5px;
}

.save-bar {
    left: calc(var(--sidebar-w) + 32px);
    right: 24px;
    bottom: 18px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(12, 14, 25, 0.93);
    box-shadow:
        0 24px 60px -24px rgba(0, 0, 0, 0.86),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

.bulk-actions-bar {
    border: 1px solid rgba(109, 139, 255, 0.35);
    border-radius: 14px;
    background: rgba(79, 107, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(79, 107, 255, 0.07);
}

.bulk-actions-info {
    color: #b9c6ff;
}

.empty-state-icon {
    opacity: 0.7;
}

.empty-state h3 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.timeline {
    border-left-color: rgba(255, 255, 255, 0.1);
}

.timeline-content {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.log-details-inner-table {
    background: rgba(255, 255, 255, 0.04);
}

.log-json-view {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: #05060b;
    color: #8ef0c3;
}

/* ─── Mobile header ──────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .page-container {
        padding: 30px 26px 142px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        background:
            radial-gradient(ellipse 600px 440px at 10% -10%, rgba(79, 107, 255, 0.13), transparent 65%),
            radial-gradient(ellipse 500px 450px at 100% 100%, rgba(139, 92, 246, 0.1), transparent 65%),
            var(--bg-main);
    }

    body::after {
        background-size: 48px 48px;
    }

    .sidebar {
        top: 12px;
        left: 12px;
        bottom: 12px;
        width: min(300px, calc(100vw - 24px));
        border-radius: 22px;
        transform: translateX(calc(-100% - 26px));
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.72);
    }

    .sidebar.open {
        transform: none;
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-header {
        height: 64px;
        padding: 0 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.075);
        background: rgba(6, 7, 13, 0.72);
        box-shadow: none;
        -webkit-backdrop-filter: blur(22px) saturate(140%);
        backdrop-filter: blur(22px) saturate(140%);
    }

    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.045);
        color: #dfe3f7;
    }

    .mobile-menu-btn:active {
        background: rgba(255, 255, 255, 0.09);
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        line-height: 0;
        background: none;
        -webkit-text-fill-color: initial;
    }

    .mobile-brand img {
        display: block;
        width: auto;
        height: 17px;
    }

    .mobile-header-spacer {
        width: 40px;
    }

    .mobile-overlay {
        background: rgba(3, 4, 9, 0.72);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }

    .page-container {
        padding: 22px 16px 126px;
    }

    .page-title {
        font-size: 28px;
        letter-spacing: -0.045em;
    }

    .page-subtitle {
        margin-bottom: 22px;
        font-size: 12.5px;
    }

    .card {
        border-radius: 16px;
    }

    .card-header {
        padding: 15px 16px;
    }

    .card-body {
        padding: 16px;
    }

    .stat-card {
        min-height: 98px;
        padding: 14px;
        border-radius: 15px;
    }

    .stat-label {
        margin-bottom: 9px;
        font-size: 9px;
        letter-spacing: 0.08em;
    }

    .stat-icon {
        width: 24px;
        height: 24px;
        border-radius: 7px;
    }

    .stat-value {
        font-size: 22px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }

    .stats-grid .stat-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .sub-tabs {
        display: flex;
        width: 100%;
        margin-bottom: 18px;
        padding: 4px;
    }

    .sub-tab {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 12px;
    }

    .btn {
        min-height: 40px;
        padding: 0 15px;
    }

    .save-bar {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 12px 14px;
        border-radius: 16px;
    }

    .modal-content {
        padding: 22px;
        border-radius: 20px;
    }

    .drawer,
    #chat-panel {
        top: 0;
        bottom: 0;
        width: 100%;
        border-radius: 0;
    }

    .toast-container {
        top: 12px;
        left: 12px;
        right: 12px;
    }

    .toast {
        border-radius: 12px;
    }

    .chat-fab {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 380px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: 0;
    }
}

/* ==========================================================================
   Theme switch
   ========================================================================== */

.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--bg-hover);
    color: var(--text-muted);
    cursor: pointer;
    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.theme-toggle:hover {
    border-color: var(--border-hover);
    background: var(--bg-active);
    color: var(--text-main);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.theme-toggle svg {
    display: block;
    width: 17px;
    height: 17px;
}

.theme-toggle .theme-toggle__icon--moon {
    display: none;
}

html[data-theme="light"] .theme-toggle .theme-toggle__icon--sun {
    display: none;
}

html[data-theme="light"] .theme-toggle .theme-toggle__icon--moon {
    display: block;
}

.theme-toggle--sidebar {
    position: absolute;
    top: 22px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
}

.theme-toggle--mobile {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

/* ==========================================================================
   Light theme — corporate website palette
   ========================================================================== */

html[data-theme="light"] {
    color-scheme: light;

    --bg-main: #f5f6fc;
    --bg-surface: rgba(255, 255, 255, 0.72);
    --bg-elevated: #ffffff;
    --bg-hover: rgba(19, 27, 70, 0.045);
    --bg-active: rgba(19, 27, 70, 0.08);
    --border: rgba(19, 27, 70, 0.10);
    --border-hover: rgba(19, 27, 70, 0.18);
    --border-focus: rgba(79, 107, 255, 0.55);
    --text-main: #0b1026;
    --text-secondary: #4d5677;
    --text-muted: #626a88;
    --text-dim: #7b829d;
    --accent: #4058e6;
    --accent-bright: #2f45cf;
    --accent-dim: #4f6bff;
    --accent-glow: rgba(79, 107, 255, 0.20);
    --accent-subtle: rgba(79, 107, 255, 0.09);
    --success: #087a54;
    --success-glow: rgba(8, 122, 84, 0.16);
    --warning: #a45c00;
    --warning-glow: rgba(164, 92, 0, 0.15);
    --danger: #c92a45;
    --danger-glow: rgba(201, 42, 69, 0.14);
    --brand-grad-text: linear-gradient(100deg, #4058e6 0%, #7c4dff 50%, #4058e6 100%);
    --shadow-xs: 0 1px 2px rgba(22, 32, 80, 0.06);
    --shadow-sm: 0 4px 14px rgba(22, 32, 80, 0.07);
    --shadow-md: 0 14px 34px rgba(22, 32, 80, 0.09);
    --shadow-lg: 0 24px 56px rgba(22, 32, 80, 0.12);
    --shadow-xl: 0 34px 80px rgba(22, 32, 80, 0.15);
}

html[data-theme="light"] body {
    background:
        radial-gradient(ellipse 900px 600px at 8% -10%, rgba(79, 107, 255, 0.13), transparent 62%),
        radial-gradient(ellipse 800px 700px at 96% 105%, rgba(139, 92, 246, 0.10), transparent 62%),
        var(--bg-main);
    color: var(--text-main);
}

html[data-theme="light"] body::before {
    background:
        radial-gradient(ellipse 720px 540px at 50% -20%, rgba(111, 92, 255, 0.08), transparent 70%),
        radial-gradient(ellipse 540px 480px at 100% 40%, rgba(79, 107, 255, 0.05), transparent 70%);
}

html[data-theme="light"] body::after {
    background-image:
        linear-gradient(rgba(19, 27, 70, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(19, 27, 70, 0.045) 1px, transparent 1px);
}

html[data-theme="light"] ::selection {
    background: rgba(79, 107, 255, 0.22);
    color: #0b1026;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(19, 27, 70, 0.16);
}

html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(19, 27, 70, 0.26);
}

/* Sidebar */

html[data-theme="light"] .sidebar {
    border-color: rgba(19, 27, 70, 0.10);
    background:
        radial-gradient(ellipse 280px 220px at 12% -8%, rgba(79, 107, 255, 0.10), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 249, 255, 0.97) 100%);
    box-shadow:
        0 28px 70px -34px rgba(22, 32, 80, 0.28),
        inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .brand {
    border-bottom-color: rgba(19, 27, 70, 0.08);
}

html[data-theme="light"] .brand::after {
    background: linear-gradient(90deg, transparent, rgba(79, 107, 255, 0.36), transparent);
}

html[data-theme="light"] .brand-logo {
    filter: none;
}

html[data-theme="light"] .brand-logo img,
html[data-theme="light"] .mobile-brand img {
    filter: invert(1) brightness(0.72) contrast(1.2) drop-shadow(0 4px 12px rgba(24, 34, 90, 0.14));
}

html[data-theme="light"] .brand-sub {
    color: #7b829d;
}

html[data-theme="light"] .theme-toggle--sidebar {
    border-color: rgba(19, 27, 70, 0.12);
    background: rgba(255, 255, 255, 0.82);
    color: #5e6688;
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .theme-toggle--sidebar:hover {
    border-color: rgba(19, 27, 70, 0.20);
    background: #ffffff;
    color: #2f45cf;
}

html[data-theme="light"] .project-selector select {
    border-color: rgba(19, 27, 70, 0.14);
    background-color: #f7f8fd;
    color: #0b1026;
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .project-selector select:hover {
    border-color: rgba(19, 27, 70, 0.24);
    background-color: #ffffff;
}

html[data-theme="light"] .brand .btn-secondary {
    border-color: rgba(19, 27, 70, 0.12);
    background: #ffffff;
    color: #4d5677;
    box-shadow: 0 2px 6px rgba(22, 32, 80, 0.05);
}

html[data-theme="light"] .brand .btn-secondary:hover {
    border-color: rgba(19, 27, 70, 0.20);
    background: #f7f8fd;
    color: #0b1026;
}

html[data-theme="light"] .current-company {
    color: #7b829d;
}

html[data-theme="light"] .current-company__name {
    color: #0b1026;
}

html[data-theme="light"] .current-company svg {
    color: #4058e6;
    opacity: 1;
}

html[data-theme="light"] .nav-group-title {
    color: #8a91a9;
}

html[data-theme="light"] .nav-item {
    color: #4d5677;
}

html[data-theme="light"] .nav-item:hover {
    border-color: rgba(19, 27, 70, 0.06);
    background: rgba(19, 27, 70, 0.045);
    color: #0b1026;
}

html[data-theme="light"] .nav-item.active {
    border-color: rgba(79, 107, 255, 0.18);
    background:
        radial-gradient(ellipse 180px 70px at 0% 50%, rgba(79, 107, 255, 0.15), transparent 75%),
        linear-gradient(100deg, rgba(79, 107, 255, 0.12), rgba(139, 92, 246, 0.08));
    color: #1f2f9e;
    box-shadow:
        inset 0 1px 0 #ffffff,
        0 12px 28px -24px rgba(79, 107, 255, 0.55);
}

html[data-theme="light"] .nav-item.active::before {
    background: linear-gradient(180deg, #4f6bff, #8b5cf6);
    box-shadow: 0 0 12px rgba(79, 107, 255, 0.38);
}

html[data-theme="light"] .nav-item.active svg {
    color: #4058e6;
}

html[data-theme="light"] .support-lamp {
    background: rgba(19, 27, 70, 0.12);
    box-shadow: inset 0 0 0 1px rgba(19, 27, 70, 0.10);
}

html[data-theme="light"] .support-lamp.is-on {
    background: radial-gradient(circle at 35% 30%, #fff 0 12%, #ff9aa8 32%, #d93a56 72%);
    box-shadow:
        0 0 0 2px rgba(217, 58, 86, 0.12),
        0 0 8px rgba(217, 58, 86, 0.55),
        0 0 16px rgba(217, 58, 86, 0.28);
}

html[data-theme="light"] .sidebar-footer {
    border-top-color: rgba(19, 27, 70, 0.08);
    background: rgba(255, 255, 255, 0.48);
}

html[data-theme="light"] .test-toggle-wrapper {
    border-color: rgba(19, 27, 70, 0.12);
    background: rgba(255, 255, 255, 0.80);
}

html[data-theme="light"] .test-toggle-wrapper:hover {
    border-color: rgba(19, 27, 70, 0.20);
    background: #ffffff;
}

html[data-theme="light"] .toggle-text {
    color: #4d5677;
}

html[data-theme="light"] .toggle-switch {
    background: rgba(19, 27, 70, 0.18);
}

html[data-theme="light"] .test-toggle-wrapper.active {
    border-color: rgba(255, 107, 53, 0.28);
    background: rgba(255, 107, 53, 0.07);
}

html[data-theme="light"] .test-toggle-wrapper.active .toggle-text {
    color: #a44c16;
}

html[data-theme="light"] .user-profile {
    border-top-color: rgba(19, 27, 70, 0.08);
}

html[data-theme="light"] .user-email {
    color: #4d5677;
}

html[data-theme="light"] .logout-btn {
    color: #7b829d;
}

html[data-theme="light"] .logout-btn:hover {
    color: #c92a45;
}

/* Main canvas */

html[data-theme="light"] .page-title {
    color: #0b1026;
}

html[data-theme="light"] .page-subtitle {
    color: #626a88;
}

html[data-theme="light"] .section-title {
    color: #0b1026;
}

html[data-theme="light"] .label {
    color: #4d5677;
}

html[data-theme="light"] label {
    color: #4d5677;
}

html[data-theme="light"] .field-hint,
html[data-theme="light"] .hint {
    color: #7b829d;
}

/* Cards and KPI */

html[data-theme="light"] .card {
    border-color: rgba(19, 27, 70, 0.10);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.82) 100%),
        #ffffff;
    box-shadow:
        0 24px 60px -42px rgba(22, 32, 80, 0.30),
        inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .card:hover {
    border-color: rgba(19, 27, 70, 0.16);
    box-shadow:
        0 28px 64px -40px rgba(22, 32, 80, 0.34),
        inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .card-header {
    border-bottom-color: rgba(19, 27, 70, 0.08);
    background: rgba(255, 255, 255, 0.46);
}

html[data-theme="light"] .stat-card {
    border-color: rgba(19, 27, 70, 0.09);
    background:
        radial-gradient(ellipse 150px 100px at 100% 100%, rgba(79, 107, 255, 0.10), transparent 72%),
        linear-gradient(145deg, #ffffff, #f7f9ff);
    box-shadow:
        0 22px 50px -40px rgba(22, 32, 80, 0.24),
        inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .stat-card::before {
    background: linear-gradient(90deg, transparent, rgba(79, 107, 255, 0.55), rgba(139, 92, 246, 0.38), transparent);
    opacity: 0.65;
}

html[data-theme="light"] .stat-card::after {
    background: radial-gradient(circle, rgba(79, 107, 255, 0.13), transparent 68%);
}

html[data-theme="light"] .stat-card:nth-child(2)::after {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.13), transparent 68%);
}

html[data-theme="light"] .stat-card:nth-child(3)::after {
    background: radial-gradient(circle, rgba(8, 122, 84, 0.10), transparent 68%);
}

html[data-theme="light"] .stat-card:nth-child(4)::after {
    background: radial-gradient(circle, rgba(164, 92, 0, 0.09), transparent 68%);
}

html[data-theme="light"] .stat-label {
    color: #626a88;
}

html[data-theme="light"] .stat-icon {
    border-color: rgba(79, 107, 255, 0.14);
    background: rgba(79, 107, 255, 0.08);
    color: #4058e6;
}

html[data-theme="light"] .stat-value {
    color: #0b1026;
}

html[data-theme="light"] .stat-value.balance {
    color: #087a54;
    text-shadow: none;
}

/* Forms */

html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="number"],
html[data-theme="light"] input[type="email"],
html[data-theme="light"] input[type="password"],
html[data-theme="light"] input[type="time"],
html[data-theme="light"] input[type="date"],
html[data-theme="light"] input[type="tel"],
html[data-theme="light"] input[type="url"],
html[data-theme="light"] select,
html[data-theme="light"] textarea {
    border-color: rgba(19, 27, 70, 0.14);
    background: #f7f8fd;
    color: #0b1026;
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
    color: #9aa0b5;
}

html[data-theme="light"] input:hover:not(:disabled),
html[data-theme="light"] select:hover:not(:disabled),
html[data-theme="light"] textarea:hover:not(:disabled) {
    border-color: rgba(19, 27, 70, 0.24);
    background: #ffffff;
}

html[data-theme="light"] input:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus {
    border-color: rgba(79, 107, 255, 0.62);
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(79, 107, 255, 0.13),
        0 10px 28px -24px rgba(79, 107, 255, 0.45);
}

html[data-theme="light"] input:disabled,
html[data-theme="light"] select:disabled,
html[data-theme="light"] textarea:disabled {
    background: #f1f3fa;
    color: #9aa0b5;
}

html[data-theme="light"] select {
    color-scheme: light;
}

html[data-theme="light"] select option,
html[data-theme="light"] select optgroup {
    background-color: #ffffff;
    color: #0b1026;
}

html[data-theme="light"] select option:checked,
html[data-theme="light"] select option:hover {
    background-color: #e8ecff;
    color: #2f45cf;
}

html[data-theme="light"] select option:disabled {
    color: #aaafc0;
}

html[data-theme="light"] input[type="checkbox"] {
    border-color: rgba(19, 27, 70, 0.18);
    background: #ffffff;
}

html[data-theme="light"] input[type="checkbox"]:hover {
    border-color: rgba(79, 107, 255, 0.55);
}

html[data-theme="light"] input[type="checkbox"]:checked {
    border-color: transparent;
    background: var(--brand-grad);
    box-shadow: 0 0 0 3px rgba(79, 107, 255, 0.11);
}

html[data-theme="light"] input[type="range"] {
    background: rgba(19, 27, 70, 0.12);
}

/* Buttons */

html[data-theme="light"] .btn-secondary {
    border-color: rgba(19, 27, 70, 0.13);
    background: #ffffff;
    color: #243052;
    box-shadow:
        0 2px 8px rgba(22, 32, 80, 0.06),
        inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .btn-secondary:hover:not(:disabled) {
    border-color: rgba(19, 27, 70, 0.22);
    background: #f7f8fd;
    color: #0b1026;
}

html[data-theme="light"] .btn-ghost {
    color: #626a88;
}

html[data-theme="light"] .btn-ghost:hover:not(:disabled) {
    background: rgba(19, 27, 70, 0.055);
    color: #0b1026;
}

/* Tabs and segmented controls */

html[data-theme="light"] .sub-tabs {
    border-color: rgba(19, 27, 70, 0.10);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .sub-tab {
    color: #626a88;
}

html[data-theme="light"] .sub-tab:hover {
    background: rgba(79, 107, 255, 0.06);
    color: #0b1026;
}

html[data-theme="light"] .sub-tab.active {
    background: linear-gradient(120deg, rgba(79, 107, 255, 0.14), rgba(139, 92, 246, 0.10));
    color: #2f45cf;
    box-shadow:
        inset 0 1px 0 #ffffff,
        0 8px 20px -18px rgba(79, 107, 255, 0.55);
}

html[data-theme="light"] .segmented {
    background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .seg-btn {
    color: #626a88;
}

html[data-theme="light"] .seg-btn.active {
    color: #ffffff;
}

html[data-theme="light"] .deals-stage-tab {
    border-color: rgba(19, 27, 70, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: #626a88;
}

html[data-theme="light"] .deals-stage-tab:hover:not(.active) {
    border-color: rgba(19, 27, 70, 0.20);
    background: #ffffff;
    color: #0b1026;
}

/* Settings and status blocks */

html[data-theme="light"] .switch {
    background: rgba(19, 27, 70, 0.18);
}

html[data-theme="light"] .switch-row {
    border-bottom-color: rgba(19, 27, 70, 0.08);
}

html[data-theme="light"] .switch-row-title {
    color: #0b1026;
}

html[data-theme="light"] .switch-row-desc {
    color: #626a88;
}

html[data-theme="light"] .status-list-item {
    border-bottom-color: rgba(19, 27, 70, 0.08);
}

html[data-theme="light"] .ai-update-box {
    border-color: rgba(79, 107, 255, 0.16);
    background:
        radial-gradient(ellipse 280px 120px at 0% 0%, rgba(79, 107, 255, 0.10), transparent 70%),
        rgba(255, 255, 255, 0.82);
}

/* Tables */

html[data-theme="light"] .data-table th,
html[data-theme="light"] .deals-table th {
    border-bottom-color: rgba(19, 27, 70, 0.10);
    color: #727a98;
}

html[data-theme="light"] .data-table td,
html[data-theme="light"] .deals-table td {
    border-bottom-color: rgba(19, 27, 70, 0.07);
    color: #3d4666;
}

html[data-theme="light"] .data-table tbody tr:hover {
    background: rgba(79, 107, 255, 0.055);
}

html[data-theme="light"] .deals-table-wrapper {
    border-color: rgba(19, 27, 70, 0.10);
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 24px 60px -44px rgba(22, 32, 80, 0.28);
}

html[data-theme="light"] .deals-table th {
    background: #f7f8fd;
}

html[data-theme="light"] .deals-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(79, 107, 255, 0.075), rgba(139, 92, 246, 0.025));
}

html[data-theme="light"] .deals-table-wrapper.drag-over {
    background: rgba(79, 107, 255, 0.04);
    box-shadow: 0 0 0 4px rgba(79, 107, 255, 0.08);
}

html[data-theme="light"] .deals-table-wrapper.drag-over::after {
    background: rgba(255, 255, 255, 0.91);
    color: #4058e6;
}

html[data-theme="light"] .stage-new,
html[data-theme="light"] .stage-dialing {
    border-color: rgba(3, 105, 161, 0.20);
    background: rgba(56, 189, 248, 0.11);
    color: #0369a1;
}

html[data-theme="light"] .stage-thinking {
    border-color: rgba(164, 92, 0, 0.20);
    background: rgba(251, 191, 36, 0.13);
    color: #a45c00;
}

html[data-theme="light"] .stage-operator {
    border-color: rgba(47, 69, 207, 0.20);
    background: rgba(139, 92, 246, 0.10);
    color: #2f45cf;
}

html[data-theme="light"] .stage-success {
    border-color: rgba(8, 122, 84, 0.20);
    background: rgba(8, 122, 84, 0.09);
    color: #087a54;
}

html[data-theme="light"] .stage-refusal {
    border-color: rgba(201, 42, 69, 0.20);
    background: rgba(201, 42, 69, 0.08);
    color: #c92a45;
}

html[data-theme="light"] .stage-closed {
    border-color: rgba(19, 27, 70, 0.10);
    background: rgba(19, 27, 70, 0.045);
    color: #626a88;
}

/* Bulk actions, timeline, logs */

html[data-theme="light"] .bulk-actions-bar {
    border-color: rgba(79, 107, 255, 0.30);
    background: rgba(79, 107, 255, 0.075);
    box-shadow: 0 0 0 4px rgba(79, 107, 255, 0.055);
}

html[data-theme="light"] .bulk-actions-info {
    color: #2f45cf;
}

html[data-theme="light"] .timeline {
    border-left-color: rgba(19, 27, 70, 0.12);
}

html[data-theme="light"] .timeline-content {
    border-color: rgba(19, 27, 70, 0.08);
    background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .log-details-row {
    background: #f7f8fd;
}

html[data-theme="light"] .log-details-inner-table {
    background: rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] .log-json-view {
    border-color: rgba(19, 27, 70, 0.10);
    background: #f7f8fd;
    color: #087a54;
}

html[data-theme="light"] .proxy-pool-table tr.current-row {
    background: linear-gradient(90deg, rgba(8, 122, 84, 0.08), transparent);
}

html[data-theme="light"] .badge-current {
    color: #ffffff;
}

/* Modals, drawers, chat */

html[data-theme="light"] .modal-overlay,
html[data-theme="light"] .drawer-overlay {
    background: rgba(24, 32, 66, 0.34);
}

html[data-theme="light"] .modal-content {
    border-color: rgba(19, 27, 70, 0.12);
    background:
        radial-gradient(ellipse 420px 220px at 50% -10%, rgba(79, 107, 255, 0.09), transparent 70%),
        linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
    box-shadow:
        0 40px 100px -38px rgba(22, 32, 80, 0.40),
        inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .drawer,
html[data-theme="light"] #chat-panel {
    border-left-color: rgba(19, 27, 70, 0.12);
    background:
        radial-gradient(ellipse 380px 260px at 100% 0%, rgba(139, 92, 246, 0.08), transparent 68%),
        linear-gradient(180deg, #ffffff 0%, #f5f7fd 100%);
    box-shadow: -30px 0 80px rgba(22, 32, 80, 0.18);
}

html[data-theme="light"] .drawer-header,
html[data-theme="light"] .chat-header {
    border-bottom-color: rgba(19, 27, 70, 0.08);
}

html[data-theme="light"] .chat-header h3 svg {
    color: #4058e6;
}

html[data-theme="light"] .chat-msg.assistant {
    border-color: rgba(19, 27, 70, 0.09);
    background: #f2f4fc;
    color: #243052;
}

html[data-theme="light"] .chat-input-row {
    border-top-color: rgba(19, 27, 70, 0.08);
    background: rgba(255, 255, 255, 0.76);
}

html[data-theme="light"] .toast {
    border-color: rgba(19, 27, 70, 0.12);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 48px -26px rgba(22, 32, 80, 0.30);
    color: #243052;
}

html[data-theme="light"] .save-bar {
    border-color: rgba(19, 27, 70, 0.12);
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 24px 60px -30px rgba(22, 32, 80, 0.30),
        inset 0 1px 0 #ffffff;
}

/* Mobile chrome */

html[data-theme="light"] .mobile-header {
    border-bottom-color: rgba(19, 27, 70, 0.10);
    background: rgba(255, 255, 255, 0.80);
}

html[data-theme="light"] .mobile-menu-btn {
    border-color: rgba(19, 27, 70, 0.12);
    background: rgba(255, 255, 255, 0.84);
    color: #243052;
}

html[data-theme="light"] .mobile-menu-btn:active {
    background: #eef1fa;
}

html[data-theme="light"] .theme-toggle--mobile {
    border-color: rgba(19, 27, 70, 0.12);
    background: rgba(255, 255, 255, 0.84);
    color: #5e6688;
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .theme-toggle--mobile:hover {
    border-color: rgba(19, 27, 70, 0.20);
    background: #ffffff;
    color: #2f45cf;
}

html[data-theme="light"] .mobile-overlay {
    background: rgba(24, 32, 66, 0.30);
}


/* ─── Purchase / top-up page ──────────────────────────────────────────── */

.purchase-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.purchase-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
    padding: 22px 24px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 420px 180px at 100% 0%, rgba(53, 224, 161, 0.09), transparent 68%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.022) 100%),
        rgba(9, 10, 18, 0.52);
}

.purchase-balance__label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.purchase-balance__value {
    display: block;
    color: var(--success);
    font-size: 33px;
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.purchase-balance__value.is-negative {
    color: var(--danger);
}

.purchase-balance__note {
    max-width: 390px;
    color: var(--text-secondary);
    font-size: 12.5px;
    line-height: 1.65;
}

.purchase-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.purchase-section-head h2 {
    margin: 0;
    color: var(--text-main);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.purchase-section-head p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 12px;
}

.purchase-plans {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.purchase-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px 18px 18px;
    overflow: visible;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.purchase-plan:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
}

.purchase-plan--featured {
    border-color: rgba(109, 139, 255, 0.42);
    box-shadow:
        0 26px 60px -34px rgba(79, 107, 255, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.purchase-plan--premium {
    border-color: rgba(240, 179, 90, 0.34);
}

.purchase-plan__badge {
    position: absolute;
    top: -10px;
    left: 16px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--brand-grad);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px -10px rgba(79, 107, 255, 0.85);
}

.purchase-plan--premium .purchase-plan__badge {
    background: linear-gradient(120deg, #d99a37, #f0b35a);
    box-shadow: 0 8px 20px -10px rgba(240, 179, 90, 0.7);
}

.purchase-plan__head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
}

.purchase-plan__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.purchase-plan__dot--start { background: #35e0a1; }
.purchase-plan__dot--pro { background: var(--blue); box-shadow: 0 0 0 4px rgba(79, 107, 255, 0.14); }
.purchase-plan__dot--business { background: var(--violet); }
.purchase-plan__dot--businessplus { background: #f0b35a; box-shadow: 0 0 0 4px rgba(240, 179, 90, 0.14); }

.purchase-plan__name {
    color: var(--text-main);
    font-family: var(--font-brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.purchase-plan__desc {
    min-height: 32px;
    margin: 0 0 14px;
    color: var(--text-secondary);
    font-size: 11.5px;
    line-height: 1.5;
}

.purchase-plan__price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    min-height: 38px;
}

.purchase-plan__amount {
    color: var(--text-main);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.purchase-plan__period {
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 700;
}

.purchase-plan__rate {
    align-self: flex-start;
    margin-top: 9px;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
}

.purchase-plan__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    margin: 16px 0 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    list-style: none;
}

.purchase-plan__list li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.45;
}

.purchase-plan__list li::before {
    content: '✓';
    color: var(--accent-bright);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
}

.purchase-plan .btn {
    width: 100%;
    min-height: 38px;
    margin-top: auto;
    border-radius: 10px;
    font-size: 11.5px;
}

.purchase-topup .card-body {
    padding: 24px;
}

.purchase-topup__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
    gap: 28px;
    align-items: start;
}

.purchase-topup__field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

.purchase-amount-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.purchase-amount-row input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.purchase-amount-row input::placeholder {
    color: var(--text-dim);
    font-weight: 500;
}

.purchase-amount-row input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(79, 107, 255, 0.13);
}

.purchase-amount-row .btn {
    min-width: 130px;
    height: 46px;
    border-radius: 11px;
}

.purchase-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.purchase-chip {
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.purchase-chip:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-main);
}

.purchase-hint {
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 11.5px;
    line-height: 1.6;
}

.purchase-topup__aside {
    padding: 18px;
    border: 1px solid rgba(53, 224, 161, 0.18);
    border-radius: 14px;
    background: rgba(53, 224, 161, 0.045);
}

.purchase-topup__aside strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 800;
}

.purchase-topup__aside p {
    margin: 0 0 10px;
    color: var(--text-secondary);
    font-size: 11.5px;
    line-height: 1.6;
}

.purchase-topup__aside ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.purchase-topup__aside li {
    display: flex;
    gap: 7px;
    color: var(--text-secondary);
    font-size: 11.5px;
    line-height: 1.5;
}

.purchase-topup__aside li::before {
    content: '•';
    color: var(--success);
    font-weight: 800;
}

.purchase-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.6;
}

.purchase-note svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--accent-bright);
}

/* ─── Purchase: способы оплаты ─── */
.purchase-pay__label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

.purchase-pay__methods {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.purchase-pay__method {
    padding: 8px 16px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.purchase-pay__method:hover {
    color: var(--text-main);
}

.purchase-pay__method.is-active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--violet) 100%);
    color: #ffffff;
    box-shadow: 0 8px 22px -12px var(--accent-glow);
}

.purchase-pay__logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
}

.purchase-pay__logos img {
    display: block;
    box-sizing: content-box;
    width: auto;
    height: 20px;
    padding: 3px 6px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 4px 12px -8px rgba(0, 0, 0, 0.8);
}

.purchase-pay__logos.is-hidden {
    display: none;
}

/* ─── Модалка «Выставить счет» ─── */
.invoice-modal.modal-overlay {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.invoice-modal__subtitle {
    margin: -10px 0 20px;
    color: var(--text-secondary);
    font-size: 12.5px;
    line-height: 1.6;
}

.invoice-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.invoice-form__amount {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 600;
}

.invoice-form__amount strong {
    color: var(--text-main);
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

html[data-theme="light"] .purchase-pay__methods,
html[data-theme="light"] .invoice-form__amount {
    background: rgba(19, 27, 70, 0.035);
}

@media (max-width: 640px) {
    .purchase-pay__methods { width: 100%; }
    .purchase-pay__method { flex: 1; }
    .invoice-form__row { grid-template-columns: 1fr; }
}

html[data-theme="light"] .purchase-balance {
    background:
        radial-gradient(ellipse 420px 180px at 100% 0%, rgba(8, 122, 84, 0.08), transparent 68%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 100%),
        #ffffff;
}

html[data-theme="light"] .purchase-plan__rate,
html[data-theme="light"] .purchase-chip {
    background: rgba(19, 27, 70, 0.035);
}

html[data-theme="light"] .purchase-amount-row input {
    background: #ffffff;
}

html[data-theme="light"] .purchase-topup__aside {
    border-color: rgba(8, 122, 84, 0.18);
    background: rgba(8, 122, 84, 0.045);
}

@media (max-width: 1280px) {
    .purchase-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .purchase-topup__grid { grid-template-columns: 1fr; }
    .purchase-balance { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 640px) {
    .purchase-page-head { flex-direction: column; align-items: flex-start; }
    .purchase-plans { grid-template-columns: 1fr; }
    .purchase-amount-row { flex-direction: column; }
    .purchase-amount-row .btn { width: 100%; }
}
