:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --secondary-text: #a0a0a5;
    --item-bg: #141416;
    --accent-gradient: linear-gradient(135deg, #FF0080 0%, #7928CA 100%);
    --danger-color: #ff3b30;
    --success-color: #34c759;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif;
    margin: 0;
    padding: 15px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.container { max-width: 420px; margin: 0 auto; padding-bottom: 30px; }

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 5px;
}
.header-left { display: flex; align-items: center; gap: 10px; }
.header-right { display: flex; align-items: center; gap: 15px; }

.logo-small { width: 32px; height: 32px; border-radius: 8px; }
.logo-big { width: 80px; height: 80px; margin-bottom: 10px; }

.user-info { font-size: 18px; font-weight: 600; }

.header-icon { font-size: 22px; color: var(--text-color); cursor: pointer; padding: 5px; }
#admin-badge { display: none; color: var(--danger-color); font-size: 18px; }

/* Card */
.card {
    position: relative;
    background: var(--item-bg);
    border-radius: 24px;
    padding: 25px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid #2c2c2e;
    margin-bottom: 30px;
}

.card-bg-effect {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(121, 40, 202, 0.2) 0%, rgba(0,0,0,0) 60%);
    pointer-events: none;
}

.card-top, .card-bottom { display: flex; justify-content: space-between; font-size: 14px; color: var(--secondary-text); z-index: 2;}
.balance-block { text-align: center; z-index: 2; }
.balance { font-size: 36px; font-weight: 800; letter-spacing: -0.5px; }
.sub-balance { font-size: 15px; color: var(--secondary-text); margin-top: 5px; }
#acc-id { font-family: monospace; letter-spacing: 1px; cursor: pointer; display: flex; align-items: center; gap: 8px;}

/* Actions */
.actions { display: flex; justify-content: center; gap: 25px; margin-bottom: 35px; }
.actions button {
    background: none; border: none; color: var(--secondary-text);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    cursor: pointer; font-size: 13px; font-weight: 500;
    transition: transform 0.1s;
}
.actions button:active { transform: scale(0.95); }
.icon-wrapper {
    background: var(--item-bg);
    width: 56px; height: 56px; border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--text-color);
    border: 1px solid #2c2c2e;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.admin-icon { color: var(--danger-color); }

/* Transactions */
.transactions h3 { font-size: 17px; margin-bottom: 15px; color: var(--secondary-text); font-weight: 600;}
.transaction-item {
    background: var(--item-bg); padding: 16px; border-radius: 18px;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px; border: 1px solid #2c2c2e;
}
.t-info { display: flex; flex-direction: column; }
.t-title { font-weight: 600; font-size: 15px; }
.t-date { font-size: 12px; color: var(--secondary-text); margin-top: 4px; }
.t-amount { font-weight: 700; font-size: 15px; }
.positive { color: var(--success-color); }
.negative { color: var(--text-color); }

/* Modals */
.modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    display: none; align-items: center; justify-content: center; z-index: 100;
    opacity: 0; transition: opacity 0.2s ease;
}
.modal.active { display: flex; opacity: 1; }
.modal-content {
    background: #1c1c1e; padding: 25px; border-radius: 24px;
    width: 85%; max-width: 320px; text-align: center;
    border: 1px solid #2c2c2e;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transform: scale(0.95); transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal.active .modal-content { transform: scale(1); }

input {
    width: 100%; padding: 14px; margin: 12px 0; border-radius: 14px;
    border: 1px solid #2c2c2e; background: #0f0f11; color: white;
    box-sizing: border-box; font-size: 17px; text-align: center; outline: none;
    transition: border-color 0.2s;
}
input:focus { border-color: #7928CA; }

.btn-primary {
    background: var(--accent-gradient); color: white; border: none;
    padding: 14px; border-radius: 14px; width: 100%; font-size: 17px;
    font-weight: 600; cursor: pointer; margin-top: 10px;
}
.btn-sec { background: transparent; color: var(--secondary-text); border: none; padding: 10px; cursor: pointer; font-size: 15px;}
.modal-btns { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; }

/* Switch Toggle */
.setting-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 0; border-bottom: 1px solid #2c2c2e; margin-bottom: 15px;
    font-size: 16px;
}
.switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #2c2c2e; transition: .4s; border-radius: 34px;
}
.slider:before {
    position: absolute; content: ""; height: 24px; width: 24px; left: 2px; bottom: 2px;
    background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background: var(--accent-gradient); }
input:checked + .slider:before { transform: translateX(22px); }

/* Стили для админ-панели */
.admin-tabs {
    display: flex;
    border-bottom: 1px solid #2c2c2e;
    margin-bottom: 20px;
}

.admin-tab-btn {
    background: none;
    border: none;
    color: var(--secondary-text);
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
    border-bottom: 3px solid transparent;
}

.admin-tab-btn.active {
    color: var(--text-color);
    border-bottom-color: #7928CA;
}

.admin-tab {
    display: none;
}

.admin-tab.active {
    display: block;
}

/* Карточки статистики */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--item-bg);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #2c2c2e;
}

.stat-card div:first-child {
    font-size: 14px;
    color: var(--secondary-text);
    margin-bottom: 8px;
}

.stat-card div:last-child {
    font-size: 32px;
    font-weight: 800;
}

/* Список пользователей */
.user-list-item {
    background: var(--item-bg);
    padding: 15px;
    border-radius: 14px;
    margin-bottom: 10px;
    border: 1px solid #2c2c2e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 15px;
}

.user-details {
    font-size: 13px;
    color: var(--secondary-text);
    margin-top: 4px;
}

.user-actions {
    display: flex;
    gap: 8px;
}

.user-action-btn {
    background: none;
    border: none;
    color: var(--secondary-text);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-add {
    color: var(--success-color);
}

.btn-remove {
    color: var(--danger-color);
}

.btn-info {
    color: var(--text-color);
}

/* Поиск */
#admin-user-search {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #2c2c2e;
    background: #0f0f11;
    color: white;
    margin-bottom: 15px;
    box-sizing: border-box;
}

/* Анимации */
@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: fa-spin 1s linear infinite;
}

/* Дополнительные стили */
#admin-panel-modal .modal-content {
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

#admin-users-list {
    max-height: 400px;
    overflow-y: auto;
}

#login-error {
    text-align: center;
    margin-top: 15px;
    color: var(--danger-color);
    font-size: 14px;
}

#adjust-user-info {
    font-size: 14px;
    color: var(--secondary-text);
    margin-bottom: 15px;
}

#user-details {
    text-align: left;
    line-height: 1.6;
    font-size: 14px;
}
/* Добавить в style.css */
/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    font-weight: 600;
    max-width: 90%;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #667eea;
}

.notification-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-left-color: #38ef7d;
}

.notification-error {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    border-left-color: #ff416c;
}

.notification-warning {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    border-left-color: #f7971e;
}

.notification-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-left-color: #667eea;
}

/* Анимации */
@keyframes slideIn {
    from { 
        transform: translateX(-50%) translateY(-20px); 
        opacity: 0; 
    }
    to { 
        transform: translateX(-50%) translateY(0); 
        opacity: 1; 
    }
}

@keyframes fadeOut {
    from { 
        opacity: 1; 
    }
    to { 
        opacity: 0; 
    }
}

/* Стили для подтверждения операций */
.confirm-text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: left;
}

.confirm-details {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    font-size: 14px;
    border-left: 3px solid #667eea;
}

.confirm-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.confirm-user i {
    font-size: 18px;
    color: #667eea;
}

.confirm-amount {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
    color: #38ef7d;
}

.confirm-reason {
    background: rgba(247, 151, 30, 0.1);
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
    font-size: 13px;
    color: #f7971e;
}
/* Стили для настроек банка */
.settings-category {
    background: var(--item-bg);
    padding: 15px;
    border-radius: 14px;
    margin-bottom: 15px;
    border: 1px solid #2c2c2e;
}

.settings-category h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}
/* Стили для модалки с информацией о пользователе */
#admin-user-info-modal .modal-content {
    max-width: 500px;
}

#user-details-content {
    background: var(--item-bg);
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}

#user-details-content h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 16px;
}

#user-details-content p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Стили для массовой раздачи */
#mass-distribution-container {
    background: rgba(56, 239, 125, 0.1);
    border-radius: 12px;
    padding: 12px;
    margin: 10px 0;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}
/* Улучшенные поля ввода для настроек */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item span {
    font-size: 15px;
    color: var(--text-color);
}

.setting-item input[type="number"] {
    width: 120px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #2c2c2e;
    background: #0f0f11;
    color: white;
    text-align: center;
    font-size: 15px;
}

.setting-item input[type="number"]:disabled {
    background: #1a1a1a;
    color: #666;
}

/* Анимации для уведомлений */
@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FF0080 0%, #7928CA 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    font-weight: 600;
}

/* Стили для подтверждения перевода */
.confirm-modal .modal-content {
    max-width: 350px;
}

.confirm-text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
}

.commission-info {
    background: rgba(255, 0, 128, 0.1);
    border: 1px solid rgba(255, 0, 128, 0.3);
    border-radius: 10px;
    padding: 12px;
    margin: 15px 0;
    font-size: 14px;
    color: #ff3b8d;
}

.limits-info {
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
    border-radius: 10px;
    padding: 10px;
    margin: 10px 0;
    font-size: 13px;
    color: #34c759;
}