/* ==========================================================================
   DASHBOARD SPECIFIC STYLES
   ========================================================================== */

.dashboard-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dashboard-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-welcome h1 {
    color: #1F2937;
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #4F46E5, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-welcome p {
    color: #6B7280;
    font-size: 1.1rem;
}

.user-badge {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.badge-free {
    background: linear-gradient(135deg, #9CA3AF, #6B7280);
    color: white;
}

.badge-basic {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.badge-pro {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
}

.badge-business {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
}

.badge-lifetime {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.dashboard-left,
.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-title {
    font-size: 1.5rem;
    color: #1F2937;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #E5E7EB;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title:before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: #4F46E5;
    border-radius: 50%;
}

.membership-info {
    background: #F9FAFB;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #E5E7EB;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-row:first-child {
    padding-top: 0;
}

.info-label {
    color: #6B7280;
    font-weight: 500;
    font-size: 0.95rem;
}

.info-value {
    font-weight: 700;
    color: #1F2937;
    font-size: 1.1rem;
}

.plan-basic { color: #10B981; }
.plan-pro { color: #3B82F6; }
.plan-business { color: #8B5CF6; }
.plan-lifetime { color: #F59E0B; }

.status-active { color: #10B981; }
.status-inactive { color: #EF4444; }
.status-pending { color: #F59E0B; }

.expiring-soon {
    color: #F59E0B;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.membership-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.membership-actions .btn {
    flex: 1;
    padding: 15px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-renew {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
    border: none;
}

.btn-renew:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.btn-upgrade {
    background: transparent;
    color: #4F46E5;
    border: 2px solid #4F46E5;
}

.btn-upgrade:hover {
    background: #4F46E5;
    color: white;
    transform: translateY(-2px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #F9FAFB;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: #F3F4F6;
    transform: translateY(-3px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #4F46E5;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.telegram-card {
    background: linear-gradient(135deg, #0088cc, #00aced);
    color: white;
}

.telegram-card .card-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.telegram-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-telegram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    color: #0088cc;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
}

.btn-telegram:hover {
    background: #F3F4F6;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.request-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #F9FAFB;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4F46E5;
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-request {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-request:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.downloads-list {
    min-height: 200px;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #F9FAFB;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.download-item:hover {
    background: #F3F4F6;
    transform: translateX(5px);
}

.download-item:last-child {
    margin-bottom: 0;
}

.download-name {
    font-weight: 600;
    color: #1F2937;
}

.download-date {
    font-size: 0.9rem;
    color: #6B7280;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6B7280;
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.btn-browse {
    display: inline-block;
    background: #4F46E5;
    color: white;
    padding: 12px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-browse:hover {
    background: #4338CA;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setting-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #F9FAFB;
    border-radius: 15px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
}

.setting-item:hover {
    background: #4F46E5;
    color: white;
    transform: translateX(10px);
}

.setting-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: #4F46E5;
}

.setting-item:hover .setting-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.setting-text {
    flex: 1;
    font-weight: 600;
}

.setting-arrow {
    color: #9CA3AF;
    font-size: 1.2rem;
}

.setting-item:hover .setting-arrow {
    color: white;
}

.dashboard-alert {
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    font-weight: 600;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success {
    background: #D1FAE5;
    color: #065F46;
    border: 2px solid #A7F3D0;
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 20px;
    }
    
    .user-welcome h1 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .membership-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .dashboard-card {
        padding: 20px;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}