/* ===== Profile Page Styles ===== */
.profile-page {
    background: var(--white-soft);
}

.profile-content {
    padding: 2rem 0 4rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Profile Card */
.profile-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 2rem;
    grid-row: span 2;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar span {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.avatar-edit-btn:hover {
    border-color: #2563eb;
    background: #2563eb;
}

.avatar-edit-btn:hover svg {
    color: #fff;
}

.avatar-edit-btn svg {
    width: 14px;
    height: 14px;
    color: #6b7280;
}

.profile-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
}

.profile-header p {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.profile-stat {
    text-align: center;
}

.profile-stat .stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #2563eb;
}

.profile-stat .stat-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Form Cards */
.profile-form-card,
.password-card,
.danger-card,
.wishlist-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 1.5rem;
}

.profile-form-card h3,
.password-card h3,
.danger-card h3,
.wishlist-card h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: #1f2937;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
}

.form-group input:disabled {
    background: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Buttons */
.btn-secondary {
    background: #fff;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-danger {
    background: #fff;
    color: #dc2626;
    border: 2px solid #fecaca;
}

.btn-danger:hover {
    background: #fef2f2;
    border-color: #dc2626;
}

/* Danger Card */
.danger-card p {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 1rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        grid-row: auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Verification Card */
.verification-card {
    grid-row: span 1 !important;
}

.verification-status-area {
    text-align: center;
    padding: 1rem 0;
}

.status-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.status-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.id-upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
}

.id-upload-box:hover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

.mt-1 { margin-top: 1rem; }

.status-verified { color: #059669; }
.status-pending { color: #d97706; }
.status-rejected { color: #dc2626; }

/* Sessions Card */
.sessions-card {
    grid-row: span 1 !important;
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.session-item.current {
    border-color: #2563eb;
    background: #eff6ff;
}

.session-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.session-device {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9375rem;
}

.current-label {
    background: #2563eb;
    color: white;
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.session-meta {
    font-size: 0.75rem;
    color: #64748b;
}

.btn-close-session {
    color: #64748b;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-close-session:hover {
    color: #ef4444;
    background: #fee2e2;
}