/**
 * ElevateCV AI — Profile Center Styles
 * Premium glassmorphic multi-section profile modal
 */

/* ═══════════════════════════════════════════════════════════════════
   ROOT VARS (extends existing design tokens)
═══════════════════════════════════════════════════════════════════ */
:root {
    --profile-bg:           rgba(15, 16, 25, 0.96);
    --profile-glass:        rgba(255, 255, 255, 0.04);
    --profile-glass-hover:  rgba(255, 255, 255, 0.07);
    --profile-border:       rgba(255, 255, 255, 0.08);
    --profile-border-hover: rgba(99, 102, 241, 0.4);
    --profile-accent:       #6366f1;
    --profile-accent-2:     #8b5cf6;
    --profile-accent-3:     #06b6d4;
    --profile-success:      #10b981;
    --profile-warning:      #f59e0b;
    --profile-danger:       #ef4444;
    --profile-text:         #e2e8f0;
    --profile-text-muted:   #94a3b8;
    --profile-text-dim:     #64748b;
    --profile-radius:       16px;
    --profile-radius-sm:    10px;
    --profile-shadow:       0 25px 80px rgba(0, 0, 0, 0.6), 0 8px 32px rgba(0, 0, 0, 0.4);
    --avatar-gradient:      linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
}

/* ═══════════════════════════════════════════════════════════════════
   OVERLAY & MODAL SHELL
═══════════════════════════════════════════════════════════════════ */
.profile-overlay {
    position: fixed;
    inset: 0;
    z-index: 9100;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.profile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.profile-modal {
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--profile-bg);
    border: 1px solid var(--profile-border);
    border-radius: 24px;
    box-shadow: var(--profile-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-overlay.active .profile-modal {
    transform: scale(1) translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════
   MODAL HEADER
═══════════════════════════════════════════════════════════════════ */
.profile-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px 0;
    flex-shrink: 0;
}

.profile-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--profile-text);
    letter-spacing: -0.01em;
}

.profile-modal-title svg {
    color: var(--profile-accent);
}

.profile-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--profile-border);
    background: var(--profile-glass);
    color: var(--profile-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.profile-modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--profile-danger);
}

/* ═══════════════════════════════════════════════════════════════════
   TAB NAV
═══════════════════════════════════════════════════════════════════ */
.profile-tabs {
    display: flex;
    gap: 4px;
    padding: 16px 28px 0;
    border-bottom: 1px solid var(--profile-border);
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
}

.profile-tabs::-webkit-scrollbar { display: none; }

.profile-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: var(--profile-radius-sm) var(--profile-radius-sm) 0 0;
    border: 1px solid transparent;
    border-bottom: none;
    background: transparent;
    color: var(--profile-text-muted);
    font-size: 0.83rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    position: relative;
    bottom: -1px;
}

.profile-tab:hover {
    color: var(--profile-text);
    background: var(--profile-glass);
}

.profile-tab.active {
    color: var(--profile-accent);
    background: var(--profile-bg);
    border-color: var(--profile-border);
    border-bottom-color: var(--profile-bg);
}

.profile-tab svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   MODAL BODY SCROLL AREA
═══════════════════════════════════════════════════════════════════ */
.profile-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
    scrollbar-width: thin;
    scrollbar-color: rgba(99,102,241,0.3) transparent;
}

.profile-modal-body::-webkit-scrollbar { width: 5px; }
.profile-modal-body::-webkit-scrollbar-track { background: transparent; }
.profile-modal-body::-webkit-scrollbar-thumb {
    background: rgba(99,102,241,0.3);
    border-radius: 10px;
}

.profile-panel { display: none; }
.profile-panel.active { display: block; }

/* ═══════════════════════════════════════════════════════════════════
   OVERVIEW PANEL — HERO HEADER
═══════════════════════════════════════════════════════════════════ */
.profile-hero {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 28px;
    background: var(--profile-glass);
    border: 1px solid var(--profile-border);
    border-radius: var(--profile-radius);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* Avatar */
.avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.avatar-ring {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    padding: 3px;
    background: var(--avatar-gradient);
    position: relative;
}

.avatar-ring.avatar-ring-lg {
    width: 108px;
    height: 108px;
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #1a1b2e;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 2rem;
    font-weight: 700;
    color: var(--profile-accent);
    letter-spacing: -0.02em;
}

.avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--profile-accent);
    border: 2px solid var(--profile-bg);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.avatar-upload-btn:hover {
    background: var(--profile-accent-2);
    transform: scale(1.1);
}

.avatar-upload-btn svg {
    width: 13px;
    height: 13px;
}

.avatar-upload-input {
    display: none;
}

/* Hero info */
.profile-hero-info {
    flex: 1;
    min-width: 0;
}

.profile-hero-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--profile-text);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-hero-role {
    font-size: 0.88rem;
    color: var(--profile-accent);
    font-weight: 500;
    margin-bottom: 8px;
}

.profile-hero-email {
    font-size: 0.83rem;
    color: var(--profile-text-muted);
    margin-bottom: 14px;
}

.profile-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
}

.profile-badge.green {
    background: rgba(16,185,129,0.12);
    color: var(--profile-success);
    border-color: rgba(16,185,129,0.25);
}

.profile-badge.blue {
    background: rgba(99,102,241,0.12);
    color: var(--profile-accent);
    border-color: rgba(99,102,241,0.25);
}

.profile-badge.purple {
    background: rgba(139,92,246,0.12);
    color: var(--profile-accent-2);
    border-color: rgba(139,92,246,0.25);
}

.profile-badge.cyan {
    background: rgba(6,182,212,0.12);
    color: var(--profile-accent-3);
    border-color: rgba(6,182,212,0.25);
}

.profile-badge.yellow {
    background: rgba(245,158,11,0.12);
    color: var(--profile-warning);
    border-color: rgba(245,158,11,0.25);
}

/* Hero actions */
.profile-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   QUICK STATS ROW
═══════════════════════════════════════════════════════════════════ */
.profile-quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.profile-stat-card {
    background: var(--profile-glass);
    border: 1px solid var(--profile-border);
    border-radius: var(--profile-radius-sm);
    padding: 16px 18px;
    text-align: center;
    transition: all 0.2s;
    cursor: default;
}

.profile-stat-card:hover {
    border-color: var(--profile-border-hover);
    background: var(--profile-glass-hover);
    transform: translateY(-2px);
}

.profile-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    background: var(--avatar-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.profile-stat-label {
    font-size: 0.72rem;
    color: var(--profile-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION HEADINGS
═══════════════════════════════════════════════════════════════════ */
.profile-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.profile-section-heading h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--profile-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-section-heading h3 svg {
    color: var(--profile-accent);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   RECENT ACTIVITY TIMELINE
═══════════════════════════════════════════════════════════════════ */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--profile-glass);
    border: 1px solid var(--profile-border);
    border-radius: var(--profile-radius);
    overflow: hidden;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--profile-border);
    transition: background 0.2s;
}

.activity-item:last-child { border-bottom: none; }

.activity-item:hover {
    background: var(--profile-glass-hover);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.activity-icon.purple {
    background: rgba(139,92,246,0.15);
    color: var(--profile-accent-2);
}

.activity-icon.blue {
    background: rgba(99,102,241,0.15);
    color: var(--profile-accent);
}

.activity-icon.cyan {
    background: rgba(6,182,212,0.15);
    color: var(--profile-accent-3);
}

.activity-icon.green {
    background: rgba(16,185,129,0.15);
    color: var(--profile-success);
}

.activity-icon.yellow {
    background: rgba(245,158,11,0.15);
    color: var(--profile-warning);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--profile-text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-time {
    font-size: 0.73rem;
    color: var(--profile-text-dim);
}

/* ═══════════════════════════════════════════════════════════════════
   PERSONAL INFO FORM
═══════════════════════════════════════════════════════════════════ */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.profile-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.profile-form-group.full-width {
    grid-column: 1 / -1;
}

.profile-form-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--profile-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-form-label svg {
    color: var(--profile-accent);
    flex-shrink: 0;
}

.profile-input,
.profile-textarea,
.profile-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--profile-glass);
    border: 1px solid var(--profile-border);
    border-radius: var(--profile-radius-sm);
    color: var(--profile-text);
    font-size: 0.87rem;
    font-family: inherit;
    transition: all 0.2s;
    outline: none;
    box-sizing: border-box;
}

.profile-input:focus,
.profile-textarea:focus,
.profile-select:focus {
    border-color: var(--profile-accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
    background: var(--profile-glass-hover);
}

.profile-input::placeholder,
.profile-textarea::placeholder {
    color: var(--profile-text-dim);
}

.profile-textarea {
    resize: vertical;
    min-height: 90px;
}

.profile-select {
    appearance: none;
    cursor: pointer;
}

.profile-select option {
    background: #1a1b2e;
    color: var(--profile-text);
}

/* Input with icon prefix */
.profile-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-input-prefix {
    position: absolute;
    left: 12px;
    color: var(--profile-text-dim);
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 1;
}

.profile-input-prefix svg {
    width: 15px;
    height: 15px;
}

.profile-input-wrap .profile-input {
    padding-left: 36px;
}

/* Chips input (skills, languages) */
.chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    background: var(--profile-glass);
    border: 1px solid var(--profile-border);
    border-radius: var(--profile-radius-sm);
    min-height: 46px;
    align-items: flex-start;
    cursor: text;
    transition: all 0.2s;
}

.chips-wrap:focus-within {
    border-color: var(--profile-accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px 3px 12px;
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 20px;
    color: var(--profile-accent);
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
}

.chip-remove {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    color: var(--profile-text-dim);
    transition: all 0.15s;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1;
}

.chip-remove:hover {
    background: rgba(239,68,68,0.2);
    color: var(--profile-danger);
}

.chip-input {
    flex: 1;
    min-width: 80px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--profile-text);
    font-size: 0.85rem;
    font-family: inherit;
    padding: 2px 4px;
}

.chip-input::placeholder {
    color: var(--profile-text-dim);
}

/* Save bar */
.profile-save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--profile-border);
    margin-top: 4px;
}

.profile-save-hint {
    font-size: 0.78rem;
    color: var(--profile-text-dim);
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════════ */
.btn-profile-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--profile-accent), var(--profile-accent-2));
    color: white;
    border: none;
    border-radius: var(--profile-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-profile-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.35);
}

.btn-profile-primary:active {
    transform: none;
}

.btn-profile-primary svg {
    width: 15px;
    height: 15px;
}

.btn-profile-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--profile-glass);
    color: var(--profile-text);
    border: 1px solid var(--profile-border);
    border-radius: var(--profile-radius-sm);
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-profile-secondary:hover {
    background: var(--profile-glass-hover);
    border-color: var(--profile-border-hover);
}

.btn-profile-danger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: rgba(239,68,68,0.1);
    color: var(--profile-danger);
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: var(--profile-radius-sm);
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-profile-danger:hover {
    background: rgba(239,68,68,0.2);
    border-color: rgba(239,68,68,0.45);
}

.btn-profile-sm {
    padding: 6px 14px;
    font-size: 0.78rem;
}

/* ═══════════════════════════════════════════════════════════════════
   CAREER STATS PANEL
═══════════════════════════════════════════════════════════════════ */
.career-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.career-stat-card {
    background: var(--profile-glass);
    border: 1px solid var(--profile-border);
    border-radius: var(--profile-radius);
    padding: 20px;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.career-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--avatar-gradient);
    opacity: 0;
    transition: opacity 0.25s;
}

.career-stat-card:hover {
    border-color: var(--profile-border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.career-stat-card:hover::before {
    opacity: 1;
}

.career-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.career-stat-number {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 4px;
}

.career-stat-name {
    font-size: 0.78rem;
    color: var(--profile-text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.career-stat-bar {
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}

.career-stat-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══════════════════════════════════════════════════════════════════
   ACHIEVEMENTS PANEL
═══════════════════════════════════════════════════════════════════ */
.profile-complete-ring {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--profile-glass);
    border: 1px solid var(--profile-border);
    border-radius: var(--profile-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.ring-container {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.ring-svg {
    width: 100px;
    height: 100px;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.06);
    stroke-width: 8;
}

.ring-fill {
    fill: none;
    stroke: url(#ringGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--profile-text);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.ring-label span {
    font-size: 0.65rem;
    color: var(--profile-text-dim);
    font-weight: 400;
    letter-spacing: 0;
}

.profile-complete-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--profile-text);
    margin-bottom: 6px;
}

.profile-complete-info p {
    font-size: 0.82rem;
    color: var(--profile-text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
}

.complete-steps {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.complete-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--profile-text-muted);
}

.complete-step.done { color: var(--profile-success); }

.complete-step-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    flex-shrink: 0;
}

.complete-step.done .complete-step-dot {
    background: rgba(16,185,129,0.2);
    color: var(--profile-success);
}

.complete-step:not(.done) .complete-step-dot {
    background: rgba(255,255,255,0.06);
    color: var(--profile-text-dim);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Achievement badges grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.achievement-card {
    background: var(--profile-glass);
    border: 1px solid var(--profile-border);
    border-radius: var(--profile-radius);
    padding: 20px;
    text-align: center;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.achievement-card.unlocked {
    border-color: rgba(99,102,241,0.3);
}

.achievement-card.unlocked::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(99,102,241,0.08) 0%, transparent 60%);
}

.achievement-card.locked {
    opacity: 0.5;
    filter: grayscale(0.7);
}

.achievement-card:hover {
    transform: translateY(-3px);
    border-color: var(--profile-border-hover);
}

.achievement-emoji {
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: block;
    filter: drop-shadow(0 0 12px rgba(99,102,241,0.4));
}

.achievement-card.locked .achievement-emoji {
    filter: grayscale(1);
}

.achievement-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--profile-text);
    margin-bottom: 4px;
}

.achievement-desc {
    font-size: 0.72rem;
    color: var(--profile-text-dim);
    line-height: 1.4;
}

.achievement-unlocked-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: rgba(16,185,129,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--profile-success);
    font-size: 0.65rem;
}

/* ═══════════════════════════════════════════════════════════════════
   SECURITY PANEL
═══════════════════════════════════════════════════════════════════ */
.security-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.security-card {
    background: var(--profile-glass);
    border: 1px solid var(--profile-border);
    border-radius: var(--profile-radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.security-card:hover {
    border-color: var(--profile-border-hover);
    background: var(--profile-glass-hover);
}

.security-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-info {
    flex: 1;
    min-width: 0;
}

.security-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--profile-text);
    margin-bottom: 3px;
}

.security-subtitle {
    font-size: 0.78rem;
    color: var(--profile-text-muted);
}

.security-action {
    flex-shrink: 0;
}

/* Password Change Form (hidden by default) */
.password-form {
    margin-top: 16px;
    padding: 20px;
    background: var(--profile-glass);
    border: 1px solid var(--profile-border);
    border-radius: var(--profile-radius);
    display: none;
    flex-direction: column;
    gap: 14px;
}

.password-form.visible {
    display: flex;
}

/* ═══════════════════════════════════════════════════════════════════
   STATUS ALERTS IN MODAL
═══════════════════════════════════════════════════════════════════ */
.profile-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(15,16,25,0.95);
    border: 1px solid var(--profile-border);
    border-radius: var(--profile-radius-sm);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    font-size: 0.84rem;
    color: var(--profile-text);
    transform: translateX(calc(100% + 32px));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 340px;
}

.profile-toast.show {
    transform: translateX(0);
}

.profile-toast.success {
    border-color: rgba(16,185,129,0.4);
    background: rgba(16,185,129,0.08);
}

.profile-toast.error {
    border-color: rgba(239,68,68,0.4);
    background: rgba(239,68,68,0.08);
}

.profile-toast-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════
   SKELETON LOADERS
═══════════════════════════════════════════════════════════════════ */
@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.skeleton {
    background: rgba(255,255,255,0.07);
    border-radius: 6px;
    animation: skeleton-pulse 1.4s ease infinite;
}

.skeleton-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
}

.skeleton-text { height: 14px; }
.skeleton-text-sm { height: 11px; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
    .profile-modal {
        max-height: 95vh;
        border-radius: 16px;
    }

    .profile-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-hero-badges {
        justify-content: center;
    }

    .profile-hero-actions {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }

    .profile-quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .career-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-complete-ring {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .profile-modal-body { padding: 16px; }
    .profile-tabs { padding: 12px 16px 0; }
    .profile-modal-header { padding: 16px 16px 0; }

    .career-stats-grid {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }
}
