/* Profile Page Styles - Antigravity Dark Theme */

.profile-container {
    max-width: 900px;
    margin: 90px auto 50px;
    padding: 20px;
}

/* Profile Header */
.profile-header {
    background: var(--bg-card, rgba(255, 255, 255, 0.04));
    border-radius: var(--radius, 12px);
    padding: 40px;
    margin-bottom: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-icon {
    width: 96px;
    height: 96px;
    background: var(--accent, #4dabf7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #0a0a0a;
    margin: 0 auto 16px;
    box-shadow: 0 0 20px rgba(77, 171, 247, 0.35);
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 1.75rem;
    font-weight: 400;
    margin: 0 0 8px;
    color: #e8eaed;
}

.user-email {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.user-status {
    display: inline-flex;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 16px;
    font-weight: 500;
    font-size: 0.85rem;
}

.status-badge.status-free {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.55);
}

.status-badge.status-standard {
    background: rgba(105, 219, 124, 0.12);
    color: #69db7c;
}

.status-badge.status-instant {
    background: rgba(255, 214, 102, 0.12);
    color: #ffd666;
}

.status-badge.status-premium {
    background: rgba(77, 171, 247, 0.12);
    color: #4dabf7;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card, rgba(255, 255, 255, 0.04));
    border-radius: var(--radius, 12px);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s;
}

.stat-card:hover {
    box-shadow: 0 0 15px rgba(77, 171, 247, 0.15);
    border-color: rgba(77, 171, 247, 0.2);
}

.stat-icon {
    font-size: 2rem;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(77, 171, 247, 0.12);
    border-radius: var(--radius, 12px);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e8eaed;
    margin-bottom: 2px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

/* Orders Section */
.orders-section {
    margin-top: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.4rem;
    color: #e8eaed;
    margin: 0;
}

.btn-new-order {
    background: var(--accent, #4dabf7);
    color: #0a0a0a;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius, 12px);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-new-order:hover {
    box-shadow: 0 0 20px rgba(77, 171, 247, 0.35);
}

/* Orders Filter */
.orders-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    font-weight: 500;
}

.filter-btn:hover {
    background: rgba(77, 171, 247, 0.1);
    border-color: rgba(77, 171, 247, 0.2);
}

.filter-btn.active {
    background: var(--accent, #4dabf7);
    border-color: var(--accent, #4dabf7);
    color: #0a0a0a;
}

/* Orders List */
.orders-list {
    display: grid;
    gap: 16px;
}

.order-card {
    background: var(--bg-card, rgba(255, 255, 255, 0.04));
    border-radius: var(--radius, 12px);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s;
    cursor: pointer;
}

.order-card:hover {
    box-shadow: 0 0 15px rgba(77, 171, 247, 0.15);
    border-color: rgba(77, 171, 247, 0.2);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.order-id {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e8eaed;
    font-family: 'Courier New', monospace;
}

.promo-tag {
    background: rgba(255, 214, 102, 0.12);
    color: #ffd666;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.order-status-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.order-status-badge.status-pending {
    background: rgba(255, 214, 102, 0.12);
    color: #ffd666;
}

.order-status-badge.status-processing {
    background: rgba(77, 171, 247, 0.12);
    color: #4dabf7;
}

.order-status-badge.status-completed {
    background: rgba(105, 219, 124, 0.12);
    color: #69db7c;
}

.order-status-badge.status-cancelled {
    background: rgba(255, 107, 107, 0.12);
    color: #ff6b6b;
}

.order-body {
    margin-bottom: 16px;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #e8eaed;
    font-weight: 500;
    font-size: 0.95rem;
}

.order-description {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.order-description p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    margin: 0;
}

.order-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-view-order {
    background: var(--accent, #4dabf7);
    color: #0a0a0a;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius, 12px);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-view-order:hover {
    box-shadow: 0 0 20px rgba(77, 171, 247, 0.35);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    background: var(--bg-card, rgba(255, 255, 255, 0.04));
    border-radius: var(--radius, 12px);
    border: 2px dashed rgba(255, 255, 255, 0.08);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    color: #e8eaed;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 20px;
}

.btn-primary {
    background: var(--accent, #4dabf7);
    color: #0a0a0a;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius, 12px);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(77, 171, 247, 0.35);
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: #4dabf7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: rgba(255, 255, 255, 0.55);
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.error-state p {
    color: #ff6b6b;
    margin-bottom: 16px;
    font-size: 1rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #e8eaed;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius, 12px);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .orders-filter {
        justify-content: center;
    }
    
    .order-info-grid {
        grid-template-columns: 1fr;
    }
}
