:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --success-color: #4cc9f0;
    --warning-color: #f72585;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 500px;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.profile-title {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 24px;
}

.profile-header {
    margin-bottom: 30px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
}

.user-name {
    color: var(--text-color);
    font-size: 20px;
    margin-bottom: 5px;
}

.user-grade {
    color: var(--secondary-color);
    font-size: 16px;
}

.profile-details {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 25px 0;
    text-align: right;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--medium-gray);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-color);
    font-weight: 500;
}

.detail-value {
    color: var(--secondary-color);
    font-weight: 600;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.active {
    background: #e8f5e8;
    color: #2e7d32;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 25px 0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--medium-gray);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #dee2e6;
    transform: translateY(-2px);
}

.profile-footer {
    margin-top: 20px;
}

.dev-notice {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.loader {
    font-size: 18px;
    color: var(--primary-color);
    padding: 40px 0;
}

.error-message {
    text-align: center;
    padding: 20px;
}

.error-message p {
    color: var(--warning-color);
    margin-bottom: 15px;
    font-size: 16px;
}

.hidden {
    display: none;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* رسپانسیو */
@media (max-width: 576px) {
    .container {
        max-width: 100%;
    }
    
    .card {
        padding: 20px;
        margin: 10px;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}