* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 100%;
    padding: 20px;
}

/* ШАПКА */
.header {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.header h1 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 24px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
}

.user-info h2 {
    font-size: 20px;
    color: #333;
}

#user-id {
    color: #666;
    font-size: 14px;
}

/* КАРТОЧКИ */
.card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.card h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* БАЛАНС */
.balance-amount {
    font-size: 48px;
    font-weight: bold;
    color: #10b981;
    text-align: center;
    margin: 20px 0;
}

/* КНОПКИ */
.btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.add-money {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.add-money:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.extend-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.extend-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* ПОДПИСКА */
.subscription-info {
    background: #f8fafc;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444; /* красный по умолчанию */
}

.status-dot.active {
    background: #10b981; /* зеленый если активна */
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.details p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
}

/* СТАТИСТИКА */
.stats {
    background: #f8fafc;
    padding: 20px;
    border-radius: 15px;
}

.stat {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.stat:last-child {
    border-bottom: none;
}

/* КНОПКИ ДЕЙСТВИЙ */
.buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.action-btn {
    padding: 18px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.action-btn:hover {
    border-color: #667eea;
    transform: translateY(-3px);
}

/* ПОДВАЛ */
.footer {
    text-align: center;
    color: white;
    padding: 20px;
    margin-top: 20px;
}

.version {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 5px;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 480px) {
    .buttons {
        grid-template-columns: 1fr;
    }

    .balance-amount {
        font-size: 36px;
    }
}