/* Account Page Styles */

.account-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    padding: 20px;
    position: relative;
}

.account-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.account-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.back-btn {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.account-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #dc2626 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.account-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* User Info Card */
.user-info-card {
    background: rgba(20, 20, 30, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.user-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #dc2626;
    position: relative;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.user-avatar img[src]:not([src=""]) {
    display: block;
}

.avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dc2626, #ff6b6b);
    color: #fff;
    font-size: 36px;
    font-weight: 700;
}

.user-info-card h2 {
    font-size: 24px;
    color: #fff;
    margin: 0 0 8px 0;
}

.user-email {
    color: #888;
    font-size: 14px;
}

/* Subscription Card */
.subscription-card {
    background: rgba(20, 20, 30, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
}

.subscription-status {
    margin-bottom: 20px;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.status-badge.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.status-badge.free {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    border: 1px solid #9ca3af;
}

.subscription-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    color: #888;
    font-size: 14px;
}

.info-value {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.info-value.highlight {
    color: #dc2626;
    font-size: 20px;
}

.btn-subscribe {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #dc2626 0%, #ff6b6b 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

.btn-subscribe.renew {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-card {
    background: rgba(20, 20, 30, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.stat-icon {
    font-size: 40px;
}

.stat-info h3 {
    font-size: 28px;
    color: #dc2626;
    margin: 0 0 4px 0;
}

.stat-info p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* Actions */
.account-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.action-btn {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.action-btn.secondary {
    border-color: rgba(156, 163, 175, 0.3);
}

.action-btn.danger {
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Responsive */
@media (max-width: 600px) {
    .account-page {
        padding: 10px;
    }

    .account-header h1 {
        font-size: 24px;
    }

    .user-avatar {
        width: 80px;
        height: 80px;
    }

    .avatar-initials {
        font-size: 28px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
