* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Разрешаем выделение текста только в полях ввода и текстовых областях */
input,
textarea,
[contenteditable] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

:root {
    --bg-dark: #2D323E;
    --accent-blue: #00C2FF;
    --text-light: #FFFFFF;
    --text-gray: #B0B0B0;
    --input-bg: #3A3F4B;
    --card-bg: #3A3F4B;
    --border-radius: 12px;
    --sidebar-width: 250px;
    --highlight-red: #FF4444;
    --text-dark: #333333;
    --text-inactive: #999999;
}

/* Экран входа */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.login-container {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: loginSlideIn 0.5s ease;
}

@keyframes loginSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-blue), #6FA3FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 194, 255, 0.3);
}

.login-header h2 {
    color: var(--text-light);
    font-size: 26px;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--text-gray);
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-field {
    position: relative;
    display: flex;
    align-items: center;
}

.login-field i {
    position: absolute;
    left: 18px;
    color: var(--text-gray);
    font-size: 16px;
    pointer-events: none;
}

.login-field input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background-color: var(--input-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--text-light);
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.login-field input::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

.login-field input:focus {
    border-color: var(--accent-blue);
    background-color: #444955;
    box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.1);
}

.login-error {
    color: #FF4444;
    font-size: 13px;
    min-height: 20px;
    text-align: center;
    padding: 0 10px;
    display: none;
}

.login-error.active {
    display: block;
}

.login-btn {
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--accent-blue), #6FA3FF);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 194, 255, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

/* Кнопка выхода */
.exit-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn-exit-confirm {
    padding: 16px 40px;
    background: linear-gradient(135deg, #FF4444, #FF6B6B);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-exit-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 68, 68, 0.4);
}

.btn-exit-confirm:active {
    transform: translateY(0);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Кнопка открытия меню (скрыта на десктопе) */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-blue);
    color: var(--text-light);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 194, 255, 0.4);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.menu-toggle:hover {
    background-color: #00B0E6;
    transform: scale(1.05);
}

.menu-toggle.active {
    background-color: var(--highlight-red);
}

/* Overlay для закрытия меню на мобильных */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Боковая навигация */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #4A9EFF 0%, #0066CC 100%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 0 20px rgba(0, 194, 255, 0.3);
    overflow: visible;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* SVG маска для изогнутой формы */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #4A9EFF 0%, #0066CC 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transition: clip-path 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Изогнутая форма боковой панели - будет обновляться через JS */
/* Более точные кривые для каждого элемента, чтобы панель обводила активный элемент */

/* Элемент 0 (Раб. пространство) - верх */
.sidebar.curve-item-0::before {
    clip-path: polygon(0 0, 100% 0, 100% 3%, 92% 5%, 85% 8%, 92% 12%, 100% 18%, 100% 100%, 0 100%);
}

/* Элемент 1 (Реквизиты) */
.sidebar.curve-item-1::before {
    clip-path: polygon(0 0, 100% 0, 100% 15%, 92% 18%, 85% 22%, 92% 28%, 100% 35%, 100% 100%, 0 100%);
}

/* Элемент 2 (Депозит) */
.sidebar.curve-item-2::before {
    clip-path: polygon(0 0, 100% 0, 100% 25%, 92% 28%, 85% 32%, 92% 38%, 100% 45%, 100% 100%, 0 100%);
}

/* Элемент 3 (Поддержка) */
.sidebar.curve-item-3::before {
    clip-path: polygon(0 0, 100% 0, 100% 35%, 92% 38%, 85% 42%, 92% 48%, 100% 55%, 100% 100%, 0 100%);
}

/* Элемент 4 (Статистика) */
.sidebar.curve-item-4::before {
    clip-path: polygon(0 0, 100% 0, 100% 45%, 92% 48%, 85% 52%, 92% 58%, 100% 65%, 100% 100%, 0 100%);
}

/* Элемент 5 (Выход) - низ */
.sidebar.curve-item-5::before {
    clip-path: polygon(0 0, 100% 0, 100% 55%, 92% 58%, 85% 62%, 92% 68%, 100% 75%, 100% 100%, 0 100%);
}

/* Общие классы для совместимости */
.sidebar.curve-top::before {
    clip-path: polygon(0 0, 100% 0, 100% 8%, 92% 12%, 85% 18%, 92% 25%, 100% 32%, 100% 100%, 0 100%);
}

.sidebar.curve-middle::before {
    clip-path: polygon(0 0, 100% 0, 100% 28%, 92% 32%, 85% 38%, 92% 45%, 100% 52%, 100% 100%, 0 100%);
}

.sidebar.curve-bottom::before {
    clip-path: polygon(0 0, 100% 0, 100% 48%, 92% 52%, 85% 58%, 92% 65%, 100% 72%, 100% 100%, 0 100%);
}

.sidebar-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 20px 15px;
}

.nav-icon {
    width: auto;
    min-width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    padding: 0 15px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    width: 100%;
}

.nav-icon i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    transition: font-size 0.3s ease;
}

.nav-text {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-icon.active {
    background-color: var(--text-light);
    color: var(--accent-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
    transform: translateX(15px);
}

.nav-icon.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background-color: var(--text-light);
    z-index: -1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    left: 0;
    top: 0;
}

.nav-icon.active i {
    color: var(--accent-blue);
}

.nav-icon.active .nav-text {
    color: var(--accent-blue);
    font-weight: 600;
}

/* Красное выделение для уведомлений */
.nav-icon.highlight-red.active {
    color: var(--highlight-red);
}

.nav-icon.highlight-red.active i {
    color: var(--highlight-red);
}

.nav-icon.highlight-red.active .nav-text {
    color: var(--highlight-red);
}

/* Неактивные элементы */
.nav-icon.inactive {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-icon.inactive i,
.nav-icon.inactive .nav-text {
    color: var(--text-inactive);
}

.nav-icon.inactive:hover {
    background-color: transparent;
}

/* Основной контент */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 30px 40px;
    max-width: calc(100% - var(--sidebar-width));
    background-color: var(--bg-dark);
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

.app-header {
    margin-bottom: 30px;
}

.app-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-gray);
    letter-spacing: 1px;
}

/* Страницы */
.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-description {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Форма регистрации */
.signup-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-gray);
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--input-bg);
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    background-color: #444955;
    box-shadow: 0 0 0 2px var(--accent-blue);
}

.form-group input::placeholder {
    color: var(--text-gray);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--accent-blue);
}

.checkbox-group label {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
    cursor: pointer;
}

.btn-primary {
    width: 100%;
    padding: 18px;
    background-color: var(--accent-blue);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
    user-select: none;
    outline: none;
}

.btn-primary:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.btn-primary:hover {
    background-color: #00B0E6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 194, 255, 0.4);
}

/* Панель управления */
.control-panel {
    max-width: 600px;
    margin-bottom: 30px;
}

.control-item {
    margin-bottom: 40px;
}

.control-item label {
    display: block;
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-light);
    font-weight: 500;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider {
    flex: 1;
    height: 8px;
    border-radius: 5px;
    background: var(--input-bg);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 194, 255, 0.5);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 194, 255, 0.5);
}

.slider-value {
    min-width: 60px;
    padding: 10px 15px;
    background-color: var(--accent-blue);
    color: var(--text-light);
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.btn-confirm {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    color: var(--text-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(0, 194, 255, 0.4);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
    user-select: none;
    outline: none;
}

.btn-confirm:active {
    transform: scale(0.9);
    box-shadow: 0 2px 10px rgba(0, 194, 255, 0.3);
}

.btn-confirm:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 194, 255, 0.6);
}

/* Список устройств */
.devices-list {
    max-width: 600px;
    margin-bottom: 30px;
}

.device-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

.device-item:hover {
    background-color: #444955;
    transform: translateX(5px);
}

.device-icon {
    font-size: 24px;
    color: var(--accent-blue);
}

.device-name {
    flex: 1;
    font-size: 16px;
    color: var(--text-light);
}

.device-menu {
    font-size: 20px;
    color: var(--text-gray);
    cursor: pointer;
    padding: 5px;
}

.device-menu:hover {
    color: var(--text-light);
}

/* Список будильников */
.alarms-list {
    max-width: 600px;
    margin-bottom: 30px;
}

.alarm-item {
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    min-height: 70px;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

.alarm-item.empty {
    border: 2px dashed var(--text-gray);
    background-color: transparent;
    justify-content: center;
}

.alarm-date {
    font-size: 16px;
    color: var(--text-light);
}

.alarm-placeholder {
    font-size: 14px;
    color: var(--text-gray);
}

.btn-add {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    color: var(--text-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(0, 194, 255, 0.4);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
    user-select: none;
    outline: none;
}

.btn-add:active {
    transform: scale(0.9);
    box-shadow: 0 2px 10px rgba(0, 194, 255, 0.3);
}

.btn-add:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 194, 255, 0.6);
}

/* Настройки */
.settings-content {
    max-width: 600px;
}

.percentage-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.circle-progress {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-blue) 0% 52%, var(--input-bg) 52% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circle-progress::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--bg-dark);
}

.percentage-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-light);
    z-index: 1;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.setting-card {
    aspect-ratio: 1;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    outline: none;
}

.setting-card i {
    font-size: 36px;
    color: var(--text-light);
}

.setting-card:hover {
    background-color: #444955;
    transform: scale(1.05);
}

.setting-card.active {
    background-color: var(--accent-blue);
}

.setting-card.active i {
    color: var(--text-light);
}

/* Адаптивность */
@media (max-width: 768px) {
    /* Показываем кнопку меню */
    .menu-toggle {
        display: flex;
    }

    /* Скрываем панель по умолчанию на мобильных */
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    /* Показываем overlay когда меню открыто */
    .sidebar-overlay {
        display: block;
    }

    /* Основной контент занимает всю ширину */
    .main-content {
        margin-left: 0;
        padding: 15px;
        padding-top: 80px;
        width: 100%;
        max-width: 100%;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .page-description {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .nav-text {
        font-size: 13px;
    }

    .btn-confirm,
    .btn-add {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 260px;
    }

    .main-content {
        padding: 10px;
        padding-top: 70px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .page-description {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .nav-icon {
        height: 45px;
        padding: 0 12px;
    }

    .nav-icon i {
        font-size: 18px;
    }

    .nav-text {
        font-size: 12px;
    }

    .menu-toggle {
        width: 45px;
        height: 45px;
        font-size: 18px;
        top: 15px;
        left: 15px;
    }
}

/* Рабочее пространство */
.workspace-container {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    box-sizing: border-box;
}

/* Переключатель PayIN */
.payin-toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 15px 20px;
    background-color: var(--input-bg);
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    transition: opacity 0.3s ease;
}

.payin-toggle-container.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CCCCCC;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent-blue);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.toggle-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
}

/* Карточки с информацией */
.info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background-color: var(--input-bg);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

.info-card:hover {
    background-color: #444955;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.info-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.rate-icon {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    color: white;
}

.deposit-icon {
    background: linear-gradient(135deg, #FFD93D 0%, #FFE66D 100%);
    color: white;
}

.frozen-icon {
    background: linear-gradient(135deg, #6BCFFF 0%, #8DD5FF 100%);
    color: white;
}

.profit-icon {
    background: linear-gradient(135deg, #51CF66 0%, #69DB7C 100%);
    color: white;
}

.card-content {
    flex: 1;
}

.card-label {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 5px;
    font-weight: 500;
}

.card-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
}

/* Таблица */
.workspace-table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--input-bg);
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-overflow-scrolling: touch;
}

.workspace-table {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent;
}

.workspace-table thead {
    background-color: var(--card-bg);
}

.workspace-table th {
    padding: 15px 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.workspace-table td {
    padding: 15px 12px;
    font-size: 14px;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.workspace-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.workspace-table tbody tr:active {
    background-color: rgba(255, 255, 255, 0.08);
}

.workspace-table tbody tr:last-child td {
    border-bottom: none;
}

/* Адаптивность для рабочего пространства */
@media (max-width: 1200px) {
    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .workspace-container {
        padding: 15px;
        width: 100%;
        margin: 0;
        border-radius: 12px;
    }

    .payin-toggle-container {
        padding: 12px 15px;
        margin-bottom: 20px;
    }

    .toggle-label {
        font-size: 14px;
    }

    .info-cards {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .info-card {
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .card-label {
        font-size: 12px;
    }

    .card-value {
        font-size: 18px;
    }

    .workspace-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .workspace-table {
        min-width: 800px;
        font-size: 12px;
    }

    .workspace-table th,
    .workspace-table td {
        padding: 10px 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .workspace-container {
        padding: 12px;
        border-radius: 8px;
    }

    .payin-toggle-container {
        padding: 10px 12px;
        margin-bottom: 15px;
        gap: 12px;
    }

    .toggle-switch {
        width: 45px;
        height: 24px;
    }

    .toggle-slider:before {
        height: 18px;
        width: 18px;
    }

    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(21px);
    }

    .toggle-label {
        font-size: 13px;
    }

    .info-cards {
        gap: 10px;
        margin-bottom: 15px;
    }

    .info-card {
        padding: 12px;
    }

    .card-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .card-label {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .card-value {
        font-size: 16px;
    }

    .workspace-table {
        min-width: 700px;
    }

    .workspace-table th,
    .workspace-table td {
        padding: 8px 6px;
        font-size: 10px;
    }
}

/* Модальное окно */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background-color: var(--card-bg);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    outline: none;
}

.modal-close:hover {
    color: var(--text-light);
    transform: rotate(90deg);
}

.modal-warning {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background-color: rgba(255, 193, 7, 0.15);
    border-left: 4px solid #FFC107;
    margin: 0;
}

.modal-warning i {
    color: #FFC107;
    font-size: 20px;
    flex-shrink: 0;
}

.modal-warning span {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

.requisite-form {
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.select-wrapper,
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.select-wrapper i,
.input-wrapper i {
    position: absolute;
    left: 15px;
    color: var(--text-gray);
    z-index: 1;
    pointer-events: none;
}

.select-wrapper select {
    width: 100%;
    padding: 15px 20px;
    padding-left: 45px;
    background-color: var(--input-bg);
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23B0B0B0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
    font-weight: 500;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 20px;
    padding-left: 45px;
    background-color: var(--input-bg);
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.input-wrapper input::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

.country-select select {
    font-size: 17px;
    padding-left: 50px;
}

/* Поиск банка */
.bank-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.bank-search-wrapper .fa-university {
    position: absolute;
    left: 15px;
    color: var(--text-gray);
    z-index: 1;
    pointer-events: none;
}

.bank-search-wrapper .bank-search-icon {
    position: absolute;
    right: 15px;
    color: var(--text-gray);
    z-index: 1;
    pointer-events: none;
}

.bank-search-wrapper input {
    width: 100%;
    padding: 15px 45px;
    padding-left: 50px;
    background-color: var(--input-bg);
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 17px;
    outline: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.bank-search-wrapper input::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

.bank-search-wrapper input:focus {
    background-color: #444955;
    box-shadow: 0 0 0 2px var(--accent-blue);
}

.bank-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background-color: var(--input-bg);
    border-radius: var(--border-radius);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bank-dropdown.active {
    display: block;
}

.bank-dropdown-item {
    padding: 12px 20px;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bank-dropdown-item:last-child {
    border-bottom: none;
}

.bank-dropdown-item:hover {
    background-color: rgba(85, 156, 255, 0.1);
    color: var(--accent-blue);
}

.bank-dropdown-item.selected {
    background-color: rgba(85, 156, 255, 0.15);
    color: var(--accent-blue);
}

.bank-dropdown-empty {
    padding: 12px 20px;
    color: var(--text-gray);
    text-align: center;
    font-size: 14px;
}

.bank-dropdown::-webkit-scrollbar {
    width: 6px;
}

.bank-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.bank-dropdown::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 3px;
}

.bank-dropdown::-webkit-scrollbar-thumb:hover {
    background: #6FA3FF;
}

/* Адаптивность для поиска банков */
@media (max-width: 768px) {
    .bank-dropdown {
        max-height: 200px;
    }
    
    .bank-search-wrapper input {
        font-size: 16px;
        padding: 12px 40px;
        padding-left: 45px;
    }
    
    .bank-dropdown-item {
        padding: 10px 15px;
        font-size: 15px;
    }
}

/* Чат поддержки */
.chat-container {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    max-height: 700px;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #6FA3FF;
}

.chat-message {
    display: flex;
    gap: 12px;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.chat-message.support .message-avatar {
    background: linear-gradient(135deg, var(--accent-blue), #6FA3FF);
    color: white;
}

.chat-message.user .message-avatar {
    background: linear-gradient(135deg, #667EEA, #764BA2);
    color: white;
}

.message-content {
    flex: 1;
    max-width: 70%;
}

.chat-message.user .message-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.chat-message.user .message-header {
    flex-direction: row-reverse;
}

.message-author {
    font-weight: 600;
    color: var(--text-light);
    font-size: 14px;
}

.message-time {
    font-size: 12px;
    color: var(--text-gray);
}

.message-text {
    background-color: var(--input-bg);
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-light);
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-message.support .message-text {
    border-top-left-radius: 4px;
}

.chat-message.user .message-text {
    background: linear-gradient(135deg, var(--accent-blue), #6FA3FF);
    color: white;
    border-top-right-radius: 4px;
}

.chat-input-wrapper {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-form input {
    flex: 1;
    padding: 12px 20px;
    background-color: var(--input-bg);
    border: none;
    border-radius: 25px;
    color: var(--text-light);
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.chat-form input::placeholder {
    color: var(--text-gray);
}

.chat-form input:focus {
    background-color: #444955;
    box-shadow: 0 0 0 2px var(--accent-blue);
}

.chat-send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), #6FA3FF);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(85, 156, 255, 0.4);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.chat-send-btn i {
    font-size: 16px;
}

/* Адаптивность чата */
@media (max-width: 768px) {
    .chat-container {
        height: calc(100vh - 180px);
        max-height: none;
    }
    
    .chat-messages {
        padding: 15px;
        gap: 12px;
    }
    
    .message-content {
        max-width: 80%;
    }
    
    .message-avatar {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .message-text {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .chat-input-wrapper {
        padding: 15px;
    }
    
    .chat-form input {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .chat-send-btn {
        width: 40px;
        height: 40px;
    }
}

.country-select select option {
    padding: 10px;
    font-size: 16px;
}

.select-wrapper select:focus,
.input-wrapper input:focus {
    background-color: #444955;
    box-shadow: 0 0 0 2px var(--accent-blue);
}

.type-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.type-option {
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

.type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.type-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background-color: var(--input-bg);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.type-option-content i {
    font-size: 28px;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.type-option-content span {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
    transition: all 0.3s ease;
}

.type-option input[type="radio"]:checked + .type-option-content {
    background-color: rgba(0, 194, 255, 0.2);
    border-color: var(--accent-blue);
}

.type-option input[type="radio"]:checked + .type-option-content i,
.type-option input[type="radio"]:checked + .type-option-content span {
    color: var(--accent-blue);
}

.type-option:hover .type-option-content {
    background-color: #444955;
}

textarea {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--input-bg);
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 16px;
    font-family: inherit;
    outline: none;
    resize: vertical;
    transition: all 0.3s ease;
    min-height: 100px;
}

textarea:focus {
    background-color: #444955;
    box-shadow: 0 0 0 2px var(--accent-blue);
}

textarea::placeholder {
    color: var(--text-gray);
}

.badge-new {
    display: inline-block;
    padding: 2px 6px;
    background-color: var(--accent-blue);
    color: var(--text-light);
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cancel {
    padding: 12px 24px;
    background-color: var(--input-bg);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    outline: none;
}

.btn-cancel:hover {
    background-color: #444955;
}

.btn-cancel:active {
    transform: scale(0.98);
}

.btn-submit {
    padding: 12px 24px;
    background-color: var(--accent-blue);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    outline: none;
}

.btn-submit:hover {
    background-color: #00B0E6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 194, 255, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Адаптивность модального окна */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
        border-radius: 12px;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-warning {
        padding: 12px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .modal-warning span {
        font-size: 13px;
    }

    .requisite-form {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .type-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .modal-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}

/* Страница реквизитов */
.requisites-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
}

.btn-add-requisite {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: var(--input-bg);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    outline: none;
}

.btn-add-requisite:hover {
    background-color: #444955;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-add-requisite:active {
    transform: scale(0.98);
}

.requisites-count {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    margin-left: auto;
}


.requisites-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.requisite-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.requisite-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.requisite-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.requisite-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00C2FF 0%, #0099CC 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.requisite-number {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
}

.requisite-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 14px;
}

.requisite-volume i {
    color: var(--accent-blue);
}

.requisite-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background-color: transparent;
    color: #FF4444;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    outline: none !important;
    z-index: 10;
}

.requisite-close:hover {
    background-color: rgba(255, 68, 68, 0.3);
}

.requisite-close:active {
    transform: scale(0.9);
}

.requisite-close:focus {
    outline: none !important;
    box-shadow: none !important;
}

.requisite-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.requisite-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.requisite-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.requisite-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.requisite-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--input-bg);
    transition: 0.3s;
    border-radius: 28px;
}

.requisite-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.requisite-toggle input:checked + .requisite-toggle-slider {
    background-color: var(--accent-blue);
}

.requisite-toggle input:checked + .requisite-toggle-slider:before {
    transform: translateX(22px);
}

.btn-rules {
    padding: 8px 16px;
    background-color: var(--input-bg);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    outline: none;
}

.btn-rules:hover {
    background-color: #444955;
    border-color: rgba(255, 255, 255, 0.3);
}

.requisite-limits {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: auto;
    align-items: flex-end;
}

.limit-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-gray);
}

.limit-item i {
    font-size: 12px;
}

.limit-min {
    color: #51CF66;
}

.limit-max {
    color: #FF6B6B;
}

.requisite-progress {
    width: 100%;
    height: 8px;
    background-color: var(--input-bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.requisite-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue) 0%, #0099CC 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.requisite-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.requisite-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
}

.requisite-flag {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    background: linear-gradient(180deg, #0039A6 0%, #D52B1E 50%, #FFFFFF 50%, #D52B1E 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.requisite-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
}

.stat-value.positive {
    color: #51CF66;
}

.stat-value.warning {
    color: #FFC107;
}

.stat-label {
    font-size: 12px;
    color: var(--text-gray);
}

/* Модальное окно правил */
.modal-rules {
    max-width: 500px;
}

.rules-form {
    padding: 30px;
}

.slider-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.limit-input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--input-bg);
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
}

.limit-input:focus {
    background-color: #444955;
    box-shadow: 0 0 0 2px var(--accent-blue);
}

.slider-wrapper {
    position: relative;
    width: 100%;
}

.limit-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--input-bg);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.limit-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 194, 255, 0.5);
    transition: all 0.3s ease;
}

.limit-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(0, 194, 255, 0.7);
}

.limit-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 194, 255, 0.5);
    transition: all 0.3s ease;
}

.limit-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(0, 194, 255, 0.7);
}

.range-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.range-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.range-item label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

/* Адаптивность для реквизитов */
@media (max-width: 768px) {
    .requisites-header {
        flex-wrap: wrap;
        padding: 15px;
    }

    .btn-add-requisite {
        flex: 1;
        min-width: 200px;
    }

    .requisites-count {
        margin-left: 0;
    }

    .range-group {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-rules {
        max-width: 95%;
    }

    .rules-form {
        padding: 20px;
    }

    .requisite-header {
        flex-wrap: wrap;
    }
}

/* Кнопка пополнения депозита */
.btn-deposit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: var(--accent-blue);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    outline: none;
    margin-top: 20px;
}

.btn-deposit:hover {
    background-color: #00B0E6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 194, 255, 0.4);
}

.btn-deposit:active {
    transform: translateY(0);
}

.btn-deposit i {
    font-size: 18px;
}

/* Модальное окно пополнения депозита */
.modal-deposit {
    max-width: 600px;
}

.deposit-step {
    display: none;
}

.deposit-step.active {
    display: block;
}

.deposit-form {
    padding: 30px;
}

.deposit-payment-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-amount-display {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 5px;
}

.payment-amount-fiat {
    font-size: 18px;
    color: var(--text-gray);
}

.payment-section {
    padding: 20px 30px;
}

.payment-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 15px;
}

.payment-info-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: rgba(0, 194, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

.payment-info-box i {
    color: var(--accent-blue);
    font-size: 16px;
}

.payment-info-box span {
    color: var(--text-light);
    font-size: 14px;
}

.network-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.network-info span {
    color: var(--text-light);
    font-size: 16px;
}

.network-info strong {
    color: var(--accent-blue);
}

.btn-contract {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: var(--input-bg);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-contract:hover {
    background-color: #444955;
}

.btn-contract i {
    font-size: 12px;
}

.qr-instruction {
    font-size: 14px;
    color: var(--text-gray);
    text-align: center;
    margin: 20px 0;
}

.qr-payment-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.payment-address-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.address-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-field label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.address-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.address-input-group .readonly-input {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.btn-copy {
    padding: 10px 14px;
    background-color: var(--input-bg);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-copy:hover {
    background-color: #444955;
    color: var(--accent-blue);
}

.readonly-input {
    background-color: var(--input-bg) !important;
    color: var(--text-light) !important;
    cursor: not-allowed;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    padding: 12px 15px;
}

.readonly-input:focus {
    background-color: var(--input-bg) !important;
    box-shadow: none !important;
}

.deposit-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
    background-color: rgba(255, 247, 230, 0.9);
    border: 1px solid #FFC107;
    padding: 15px 20px;
    border-radius: 8px;
}

.payment-warning {
    background-color: rgba(255, 193, 7, 0.15);
}

.deposit-warning i {
    color: #FFC107;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.deposit-warning span {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.payment-warning span {
    color: var(--text-light);
}

.payment-timer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.timer-label {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #51CF66;
}

.timer-display i {
    color: #51CF66;
}

.btn-deposit-submit {
    width: 100%;
    padding: 15px 24px;
    background-color: var(--accent-blue);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    outline: none;
    margin-top: 10px;
}

.btn-deposit-submit:hover:not(:disabled) {
    background-color: #00B0E6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 194, 255, 0.4);
}

.btn-deposit-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-deposit-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-deposit-back {
    width: 100%;
    padding: 15px 24px;
    background-color: var(--input-bg);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.btn-deposit-back:hover {
    background-color: #444955;
}

.deposit-form .form-group select {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--input-bg);
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23B0B0B0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

.deposit-form .form-group select:focus {
    background-color: #444955;
    box-shadow: 0 0 0 2px var(--accent-blue);
}

.deposit-payment-details {
    padding: 20px 30px;
}

/* Адаптивность для модального окна депозита */
@media (max-width: 768px) {
    .modal-deposit {
        max-width: 95%;
    }

    .deposit-form,
    .deposit-payment-header,
    .payment-section,
    .deposit-payment-details {
        padding: 20px;
    }

    .btn-deposit {
        width: 100%;
    }

    .deposit-warning {
        padding: 12px 15px;
    }

    .deposit-warning span {
        font-size: 13px;
    }

    .qr-payment-container {
        flex-direction: column;
    }

    .payment-amount-display {
        font-size: 24px;
    }

    .payment-amount-fiat {
        font-size: 16px;
    }

    .timer-display {
        font-size: 20px;
    }
}

/* Модальные окна уведомлений */
.modal-alert {
    max-width: 400px;
}

.modal-body {
    padding: 20px 30px;
}

.modal-body p {
    margin: 0;
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

.prompt-input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--input-bg);
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.prompt-input:focus {
    background-color: #444955;
    box-shadow: 0 0 0 2px var(--accent-blue);
}

.prompt-input::placeholder {
    color: var(--text-gray);
}

.modal-alert .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-alert .modal-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    padding: 0 30px 20px 30px;
}

@media (max-width: 768px) {
    .modal-alert {
        max-width: 90%;
    }

    .modal-body {
        padding: 15px 20px;
    }

    .modal-alert .modal-actions {
        padding: 0 20px 15px 20px;
    }

    .requisite-controls {
        flex-wrap: wrap;
        width: 100%;
    }

    .requisite-limits {
        margin-left: 0;
        align-items: flex-start;
        width: 100%;
    }

    .requisite-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

