/* Account Page Styles */

.account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: transparent;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

.account-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.account-section {
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #00d4ff;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.balance-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #00d4ff, #2d1b69);
    border-radius: 12px;
    color: white;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.balance-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.balance-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.balance-amount {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Overview Cards */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.overview-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: rgba(12, 14, 26, 0.4);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-color: #00d4ff;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00d4ff, #2d1b69);
    border-radius: 12px;
    color: white;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    margin: 0 0 0.25rem 0;
}

.card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 0.25rem 0;
}

.card-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

/* Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    padding: 1.5rem;
    background: rgba(12, 14, 26, 0.4);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(12px);
}

.stat-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-title {
    font-size: 1rem;
    font-weight: 500;
    color: #00d4ff;
    margin: 0;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e2e8f0;
}

.stat-chart {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #00d4ff, #2d1b69);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.stat-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

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

.stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
}

.stat-number {
    font-weight: 600;
    color: #e2e8f0;
}

/* Transactions */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(12, 14, 26, 0.4);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 8px;
    transition: all 0.2s ease;
    backdrop-filter: blur(12px);
}

.transaction-item:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.transaction-info {
    flex: 1;
}

.transaction-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #e2e8f0;
    margin: 0 0 0.25rem 0;
}

.transaction-meta {
    font-size: 0.75rem;
    color: #64748b;
}

.transaction-amount {
    font-weight: 600;
    color: #f87171;
}

.transaction-amount.positive {
    color: #4ade80;
}

.loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: #94a3b8;
}

.loading-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-top: 2px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

/* Recharge Modal */
.recharge-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.package-card {
    position: relative;
    padding: 1.5rem;
    border: 2px solid rgba(0, 212, 255, 0.15);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(12, 14, 26, 0.4);
    backdrop-filter: blur(12px);
}

.package-card:hover {
    border-color: #00d4ff;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.package-card.recommended {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.package-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #00d4ff, #2d1b69);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.package-header {
    margin-bottom: 1rem;
}

.package-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 0.5rem 0;
}

.package-price {
    font-size: 2rem;
    font-weight: 700;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.package-details {
    margin-bottom: 1.5rem;
}

.package-credits {
    font-size: 1rem;
    font-weight: 500;
    color: #e2e8f0;
    margin: 0 0 0.25rem 0;
}

.package-unit-price {
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0;
}

.package-btn {
    width: 100%;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(12, 14, 26, 0.4);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 8px;
    font-size: 1rem;
    color: #e2e8f0;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}

.form-group input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    background: rgba(12, 14, 26, 0.6);
}

.form-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .account-container {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .overview-cards {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .balance-badge {
        align-items: center;
    }
    
    .recharge-packages {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Avatar Card Styles */
.avatar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.avatar-hint {
    font-size: 0.875rem;
    color: #94a3b8;
    text-align: center;
    margin: 0;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #2d1b69);
    color: white;
    border: none;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2d1b69, #00d4ff);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
}

.btn-outline {
    background: rgba(0, 212, 255, 0.05);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}
