/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* Экраны */
.screen {
    display: none;
    min-height: 100vh;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Заголовок */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-details p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.menu-btn {
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-btn span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* Карточка баланса */
.balance-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.balance-header {
    text-align: center;
    margin-bottom: 20px;
}

.balance-header h2 {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.balance-amount {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.balance-stats {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.stat {
    flex: 1;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Быстрые действия */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.action-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.action-btn span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Последние операции */
.recent-activity {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recent-activity h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.activity-details {
    flex: 1;
}

.activity-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.activity-time {
    font-size: 12px;
    color: #666;
}

.activity-amount {
    font-size: 16px;
    font-weight: 600;
    color: #28a745;
}

/* Заголовки экранов */
.screen-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.back-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.back-btn:hover {
    background: white;
    transform: scale(1.1);
}

.screen-header h2 {
    color: white;
    font-size: 24px;
    font-weight: 600;
}

/* Криптовалюты */
.crypto-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.crypto-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.crypto-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.crypto-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.crypto-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.crypto-address {
    font-size: 12px;
    color: #666;
    word-break: break-all;
    font-family: monospace;
}

/* Информация о пополнении */
.deposit-info {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
}

.deposit-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.deposit-info ul {
    list-style: none;
}

.deposit-info li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.deposit-info li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Форма вывода */
.withdraw-form {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 14px;
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* Кнопки */
.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: white;
    border-color: #667eea;
}

/* Тарифные планы */
.tariffs-grid {
    display: grid;
    gap: 20px;
}

.tariff-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tariff-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tariff-card.premium {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
}

.tariff-card.vip {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
}

.tariff-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.tariff-profit {
    font-size: 24px;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 15px;
}

.tariff-details {
    margin-bottom: 20px;
}

.tariff-range {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.tariff-duration {
    font-size: 12px;
    color: #999;
}

/* Реферальная система */
.referral-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

.referral-link {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.referral-link h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.link-container {
    display: flex;
    gap: 10px;
}

.link-container input {
    flex: 1;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 12px;
    background: #f9f9f9;
}

.btn-copy {
    padding: 12px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-copy:hover {
    background: #5a6fd8;
}

.referral-rewards {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
}

.referral-rewards h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.reward-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.reward-item:last-child {
    border-bottom: none;
}

/* Боковое меню */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    z-index: 1000;
}

.side-menu.active {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.menu-header h3 {
    font-size: 18px;
    color: #333;
}

.close-menu {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.menu-items {
    padding: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: 0.3s;
}

.menu-item:hover {
    background: #f8f9fa;
}

.menu-item span:first-child {
    font-size: 20px;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 14px;
    transform: translateX(400px);
    transition: 0.3s;
    z-index: 1001;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: #dc3545;
}

/* Адаптивность */
@media (max-width: 480px) {
    .screen {
        padding: 15px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .referral-stats {
        grid-template-columns: 1fr;
    }
    
    .balance-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .side-menu {
        width: 100%;
        right: -100%;
    }
}

/* Анимации */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.balance-amount {
    animation: pulse 2s infinite;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
