/* ── PROFILE HERO ── */
.profile-hero { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 24px; position: relative; }
.profile-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent); }
.profile-cover { height: 120px; background: linear-gradient(135deg, #0f0f0f 0%, #1a1508 50%, #0f0f0f 100%); position: relative; overflow: hidden; }
.profile-cover::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(212, 175, 55, 0.03) 40px, rgba(212, 175, 55, 0.03) 80px); }
.profile-info-row { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 28px 24px; gap: 20px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .profile-info-row { padding: 0 16px 20px; flex-direction: column; align-items: flex-start; }
  .profile-hero-actions { width: 100%; }
  .profile-hero-actions .btn-primary,
  .profile-hero-actions .btn-outline { flex: 1; justify-content: center; }
  .p-form-grid { grid-template-columns: 1fr; }
}
.profile-av-wrap { margin-top: -40px; position: relative; z-index: 2; }
.profile-av { width: 80px; height: 80px; border-radius: 20px; background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.08)); border: 3px solid #0A0A0A; outline: 2px solid rgba(212, 175, 55, 0.3); display: grid; place-items: center; font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 600; color: var(--gold); cursor: pointer; transition: outline-color 0.2s; }
.profile-av:hover { outline-color: var(--gold); }
.profile-av-edit { position: absolute; bottom: -4px; right: -4px; width: 24px; height: 24px; border-radius: 6px; background: var(--gold); border: 2px solid #0A0A0A; display: grid; place-items: center; cursor: pointer; }
.profile-av-edit svg { width: 11px; height: 11px; stroke: #0A0A0A; fill: none; stroke-width: 2.5; stroke-linecap: round; }
.profile-meta { flex: 1; padding-top: 16px; }
.profile-meta-name { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; margin-bottom: 4px; }
.profile-meta-name em { font-style: italic; color: var(--gold); }
.profile-meta-role { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.profile-meta-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-tag { font-size: 11.5px; padding: 3px 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); color: var(--muted); }
.profile-tag.gold { background: rgba(212, 175, 55, 0.08); border-color: rgba(212, 175, 55, 0.18); color: #C9A227; }
.profile-hero-actions { display: flex; gap: 10px; align-items: center; padding-top: 16px; }

/* ── PROFILE GRID ── */
.profile-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
@media (max-width: 1000px) { .profile-grid { grid-template-columns: 1fr; } }

/* ── FORM ELEMENTS ── */
.p-section-title { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.p-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .p-form-grid { grid-template-columns: 1fr; } }
.p-form-group { display: flex; flex-direction: column; gap: 7px; }
.p-form-group.full { grid-column: 1 / -1; }
.p-label { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.p-input { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 9px; padding: 10px 14px; color: var(--text); font-size: 13.5px; font-family: 'Inter', sans-serif; outline: none; transition: border-color 0.2s; width: 100%; }
.p-input:focus { border-color: rgba(212, 175, 55, 0.4); }
.p-input::placeholder { color: var(--subtle); }
.p-select { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 9px; padding: 10px 14px; color: var(--text); font-size: 13.5px; font-family: 'Inter', sans-serif; outline: none; transition: border-color 0.2s; width: 100%; 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='%23525252' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.p-select:focus { border-color: rgba(212, 175, 55, 0.4); }
.p-select option { background: #111; }
.p-textarea { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 9px; padding: 10px 14px; color: var(--text); font-size: 13.5px; font-family: 'Inter', sans-serif; outline: none; transition: border-color 0.2s; width: 100%; resize: vertical; min-height: 90px; }
.p-textarea:focus { border-color: rgba(212, 175, 55, 0.4); }
.p-textarea::placeholder { color: var(--subtle); }

/* ── SKILLS ── */
.p-skills-wrap { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 9px; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px; cursor: text; min-height: 46px; transition: border-color 0.2s; }
.p-skills-wrap:focus-within { border-color: rgba(212, 175, 55, 0.4); }
.p-chip { display: flex; align-items: center; gap: 6px; background: rgba(212, 175, 55, 0.08); border: 1px solid rgba(212, 175, 55, 0.2); border-radius: 6px; padding: 3px 8px; font-size: 12px; color: #C9A227; }
.p-chip button { background: none; border: none; color: #8B6914; cursor: pointer; font-size: 14px; line-height: 1; padding: 0; transition: color 0.15s; }
.p-chip button:hover { color: var(--gold); }
.p-chip-input { background: none; border: none; outline: none; color: var(--text); font-size: 13px; font-family: 'Inter', sans-serif; min-width: 120px; flex: 1; }
.p-chip-input::placeholder { color: var(--subtle); }

/* ── SAVE BAR ── */
.p-save-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 0; margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.05); flex-wrap: wrap; gap: 12px; }
.p-save-hint { font-size: 12px; color: var(--subtle); }

/* ── STATS ── */
.p-stat-mini { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.p-stat-mini:last-child { border-bottom: none; }
.p-stat-mini-label { font-size: 13px; color: var(--muted); }
.p-stat-mini-val { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 600; color: var(--gold); }

/* ── SOCIAL BUTTONS ── */
.p-social-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 9px; cursor: pointer; font-size: 13px; color: var(--muted); font-family: 'Inter', sans-serif; transition: border-color 0.2s, background 0.2s; margin-bottom: 8px; text-align: left; }
.p-social-btn:hover { border-color: rgba(212, 175, 55, 0.25); background: rgba(212, 175, 55, 0.04); color: var(--text); }
.p-social-btn:last-child { margin-bottom: 0; }
.p-social-icon { width: 30px; height: 30px; border-radius: 7px; flex-shrink: 0; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); display: grid; place-items: center; }
.p-social-icon svg { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.p-social-add { margin-left: auto; font-size: 18px; color: var(--subtle); }
.p-social-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.p-social-row:last-child { margin-bottom: 0; }
.p-social-input-row { display: flex; gap: 8px; align-items: center; padding: 0 4px; }
.p-social-input-row .p-input { flex: 1; }
.p-social-action-row { display: flex; gap: 8px; padding: 4px; flex-wrap: wrap; }
.p-social-action-btn { padding: 7px 14px; border-radius: 7px; font-size: 12px; font-family: 'Inter', sans-serif; cursor: pointer; font-weight: 500; border: 1px solid; transition: background 0.2s; }
.p-social-action-btn.open   { background: rgba(76,175,112,0.08); border-color: rgba(76,175,112,0.25); color: #4CAF70; }
.p-social-action-btn.open:hover { background: rgba(76,175,112,0.18); }
.p-social-action-btn.edit   { background: rgba(212,175,55,0.08); border-color: rgba(212,175,55,0.25); color: #C9A227; }
.p-social-action-btn.edit:hover { background: rgba(212,175,55,0.18); }
.p-social-action-btn.remove { background: rgba(107,44,44,0.08); border-color: rgba(107,44,44,0.25); color: #CF6679; }
.p-social-action-btn.remove:hover { background: rgba(107,44,44,0.2); }

/* ── DANGER ZONE ── */
.danger-zone { background: rgba(107, 44, 44, 0.06); border: 1px solid rgba(107, 44, 44, 0.2); border-radius: 12px; padding: 18px 20px; }
.danger-zone-title { font-size: 13px; font-weight: 600; color: #CF6679; margin-bottom: 6px; }
.danger-zone-sub { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.btn-danger { background: rgba(107, 44, 44, 0.15); border: 1px solid rgba(107, 44, 44, 0.3); color: #CF6679; font-size: 12.5px; font-weight: 500; padding: 8px 16px; border-radius: 7px; cursor: pointer; font-family: 'Inter', sans-serif; transition: background 0.2s; }
.btn-danger:hover { background: rgba(107, 44, 44, 0.25); }
.p-section { margin-bottom: 28px; }

/* ── CONFIRM MODAL ── */
.confirm-modal { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.78); z-index:9999; align-items:center; justify-content:center; backdrop-filter:blur(5px); }
.confirm-modal.open { display:flex !important; }
.confirm-box { background:#111; border:1px solid rgba(107,44,44,0.35); border-radius:14px; padding:28px; width:380px; max-width:92vw; box-shadow:0 24px 80px rgba(0,0,0,0.8); }
.confirm-box::before { content:''; display:block; height:1px; background:linear-gradient(90deg,transparent,rgba(207,102,121,0.4),transparent); margin:-28px -28px 20px; border-radius:14px 14px 0 0; }
.confirm-title { font-size:17px; font-weight:600; color:#CF6679; margin-bottom:10px; }
.confirm-desc  { font-size:13px; color:var(--muted); line-height:1.65; margin-bottom:20px; }
.confirm-label { font-size:12.5px; color:var(--muted); display:block; margin-bottom:7px; }
.confirm-inp   { background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); border-radius:9px; padding:10px 14px; color:var(--text); font-size:14px; font-family:'Inter',sans-serif; outline:none; width:100%; letter-spacing:0.05em; transition:border-color 0.2s; margin-bottom:18px; }
.confirm-inp:focus { border-color:rgba(207,102,121,0.5); }
.confirm-inp.shake { animation:shake 0.3s ease; border-color:rgba(207,102,121,0.7) !important; }
.confirm-actions { display:flex; gap:10px; justify-content:flex-end; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }