/* ==================== PROFILE HEADER CARD ==================== */
.profile-header-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.profile-header-bg {
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at 90% 50%, rgba(245, 158, 11, 0.06) 0%, transparent 55%),
            radial-gradient(circle at 10% 50%, rgba(245, 158, 11, 0.03) 0%, transparent 55%);
    pointer-events: none;
}

.profile-header-content {
    padding: 32px;
    position: relative;
    z-index: 1;
}

/* ==================== AVATAR ==================== */
.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: #0a0a0a;
    border: 3px solid rgba(245, 158, 11, 0.3);
    overflow: hidden;
    transition: all 0.35s ease;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-wrap:hover .profile-avatar {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.1);
}

.profile-avatar-edit {
    position: absolute;
    bottom: 2px;
    left: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 2px solid #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-avatar-edit:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.profile-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 700;
}

.profile-header-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.78rem;
    color: #a3a3a3;
    transition: all 0.3s ease;
}

.profile-header-stat:hover {
    border-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

/* ==================== COMPLETION BAR ==================== */
.profile-completion {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px 20px;
}

.profile-completion-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
}

.profile-completion-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, #d97706, #f59e0b, #fcd34d);
    transition: width 1.2s ease;
}

/* ==================== PROFILE TABS ==================== */
.profile-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 5px;
    margin: 20px 0;
    overflow-x: auto;
    position: relative;
}

.profile-tabs::-webkit-scrollbar { display: none; }

.profile-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: #737373;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'AzarMehr', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.profile-tab:hover {
    color: #d4d4d4;
    background: rgba(255, 255, 255, 0.03);
}

.profile-tab.active {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ==================== TAB CONTENT ==================== */
.profile-tab-content {
    display: none;
    animation: tabFadeIn 0.35s ease;
}

.profile-tab-content.active {
    display: block;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==================== PROFILE CARD ==================== */
.profile-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    padding: 28px;
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==================== PROFILE FORM ==================== */
.pf-form-group {
    display: flex;
    flex-direction: column;
}

.pf-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #d4d4d4;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pf-required { color: #f59e0b; }

.pf-input-wrap { position: relative; }

.pf-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    padding: 12px 15px;
    padding-left: 42px;
    color: #ffffff;
    font-size: 0.875rem;
    font-family: 'AzarMehr', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.pf-input:focus {
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.03);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.07);
}

.pf-input::placeholder { color: #3a3a3a; }
.pf-input.has-error { border-color: rgba(239, 68, 68, 0.5); }
.pf-input.is-valid  { border-color: rgba(16, 185, 129, 0.4); }

.pf-textarea {
    resize: vertical;
    min-height: 70px;
    padding-top: 12px;
}

.ltr-pf {
    direction: ltr;
    text-align: right;
}

.pf-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #404040;
    pointer-events: none;
    transition: color 0.3s ease;
}

.pf-input:focus ~ .pf-input-icon { color: #f59e0b; }

.pf-verified-icon {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.pf-pass-toggle {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #525252;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.pf-pass-toggle:hover { color: #f59e0b; }

.pf-hint {
    font-size: 0.73rem;
    color: #525252;
    margin-top: 5px;
}

.pf-error {
    font-size: 0.76rem;
    color: #ef4444;
    margin-top: 5px;
    min-height: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

.pf-error.show {
    opacity: 1;
    transform: translateY(0);
}

/* SELECT */
.pf-select-wrap { position: relative; }

.pf-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    padding: 12px 15px;
    color: #ffffff;
    font-size: 0.875rem;
    font-family: 'AzarMehr', sans-serif;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    transition: border-color 0.3s ease;
}

.pf-select:focus { border-color: rgba(245, 158, 11, 0.4); }
.pf-select option { background: #1a1a1a; }

/* ==================== FORM BUTTONS ==================== */
.pf-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0a0a0a;
    font-weight: 800;
    font-size: 0.875rem;
    font-family: 'AzarMehr', sans-serif;
    border: none;
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.25);
    position: relative;
    overflow: hidden;
}

.pf-save-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pf-save-btn:hover::before { opacity: 1; }
.pf-save-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(245, 158, 11, 0.35); }
.pf-save-btn > * { position: relative; z-index: 1; }

.pf-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    color: #737373;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'AzarMehr', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pf-reset-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.pf-btn-spinner { display: flex; align-items: center; }

.pf-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #0a0a0a;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== STATUS BADGES ==================== */
.pf-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pf-status-row:last-child { border-bottom: none; }

.pf-status-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 100px;
}

.pf-status-badge.verified {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pf-status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.pf-status-badge.gold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.15));
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ==================== STAT ITEMS ==================== */
.pf-stat-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pf-stat-item:last-child { border-bottom: none; }

/* ==================== DANGER ZONE ==================== */
.danger-zone {
    border-color: rgba(239, 68, 68, 0.12);
    background: rgba(239, 68, 68, 0.02);
}

.danger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 12px;
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'AzarMehr', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.danger-btn:hover {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

.danger-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ==================== PASSWORD STRENGTH ==================== */
.pf-strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
}

.pf-strength-fill {
    height: 100%;
    border-radius: 100px;
    width: 0;
    transition: width 0.4s ease, background 0.4s ease;
}

.pf-strength-fill.weak   { width: 25%; background: #ef4444; }
.pf-strength-fill.fair   { width: 50%; background: #f97316; }
.pf-strength-fill.good   { width: 75%; background: #f59e0b; }
.pf-strength-fill.strong { width: 100%; background: #10b981; }

.pf-strength-label {
    font-size: 0.72rem;
    margin-top: 5px;
    font-weight: 600;
}

/* ==================== 2FA TOGGLE ==================== */
.tfa-grid { display: flex; flex-direction: column; gap: 12px; }

.tfa-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.tfa-option:hover {
    border-color: rgba(245, 158, 11, 0.15);
    background: rgba(245, 158, 11, 0.02);
}

.tfa-option-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pf-toggle {
    width: 44px;
    height: 24px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
    transition: all 0.35s ease;
    flex-shrink: 0;
}

.pf-toggle.active {
    background: rgba(245, 158, 11, 0.8);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.pf-toggle-thumb {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    transition: all 0.35s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.pf-toggle.active .pf-toggle-thumb {
    right: auto;
    left: 3px;
}

/* ==================== SECURITY TIPS ==================== */
.security-tip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.security-tip:last-child { border-bottom: none; }

.security-tip-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-tip-icon.good {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.security-tip-icon.warn {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.security-tip-icon.bad {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ==================== NOTIFICATION SETTINGS ==================== */
.notif-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.notif-setting-row:last-child { border-bottom: none; }

.notif-channel-btn {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #525252;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.notif-channel-btn.active {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
    color: #f59e0b;
}

/* ==================== PRICE ALERTS ==================== */
.price-alert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.price-alert-item:hover {
    border-color: rgba(245, 158, 11, 0.15);
}

.price-alert-active-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 100px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.price-alert-del {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.price-alert-del:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: scale(1.1);
}

/* ==================== SESSIONS ==================== */
.sessions-list { display: flex; flex-direction: column; gap: 8px; }

.session-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.session-item.current {
    background: rgba(245, 158, 11, 0.03);
    border-color: rgba(245, 158, 11, 0.15);
}

.session-item:hover { border-color: rgba(255, 255, 255, 0.1); }

.session-device-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.session-current .session-device-icon {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.15);
}

.session-current-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 100px;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.session-end-btn {
    padding: 6px 14px;
    border-radius: 9px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'AzarMehr', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.session-end-btn:hover {
    background: rgba(239, 68, 68, 0.14);
    transform: translateY(-1px);
}

/* ==================== MODAL (reuse from dashboard) ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalBgIn 0.3s ease;
}

@keyframes modalBgIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-box {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    width: 100%;
    overflow: hidden;
    animation: modalBoxIn 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes modalBoxIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #737373;
    cursor: pointer;
    transition: all 0.25s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.modal-body { padding: 24px; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 640px) {
    .profile-header-content { padding: 20px; }
    .profile-avatar-section { gap: 16px; }
    .profile-avatar { width: 72px; height: 72px; font-size: 1.6rem; }
    .profile-card { padding: 20px; }
    .profile-tabs { gap: 2px; }
    .profile-tab { padding: 9px 12px; font-size: 0.78rem; }
    .profile-tab svg { display: none; }
}