﻿/* =============================================================
   PROFILE SHELL — Premium account settings
   Design: Inter · Blue gradient accent · Soft shadows
   ============================================================= */

/* ── Shell layout ──────────────────────────────────────────── */
.profile-shell {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f1f5f9;
  min-height: calc(100vh - 110px);
  padding: 40px 32px 120px;
  margin-top: 56px;
  box-sizing: border-box;
}

.page-inner {
  max-width: 1360px;
  margin: 0 auto;
}

/* ── Hero card ─────────────────────────────────────────────── */
.hero-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 12px 28px rgba(37,99,235,0.08);
  margin-bottom: 24px;
}

.hero-banner-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-banner-empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 55%, #2563eb 100%);
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.22));
}

.hero-banner-btn {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  background: #ffffff;
  border: 1px solid rgba(148,163,184,0.28);
  border-radius: 24px;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.hero-banner-btn:hover {
  background: #f8fafc;
  transform: translateX(-50%) translateY(-1px);
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}

.hero-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 32px 28px;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-avatar-ring {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  margin-top: -48px;
}

.hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #e2e8f0;
  border: 4px solid #fff;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(37,99,235,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-initials {
  font-size: 2rem;
  font-weight: 800;
  color: #2563eb;
  line-height: 1;
}

.avatar-change-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.avatar-change-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 12px rgba(37,99,235,0.4);
}

.hero-left {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.hero-info {
  flex: 1;
  min-width: 0;
  padding-bottom: 4px;
}

.hero-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.hero-name {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 50px;
  font-size: 0.71rem;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-tagline {
  margin: 4px 0 6px;
  color: #475569;
  font-size: 0.91rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.79rem;
  color: #64748b;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  flex-shrink: 0;
  min-width: 220px;
  padding-top: 14px;
}

.hero-completion { width: 100%; }

.completion-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}

.completion-lbl { font-size: 0.78rem; color: #64748b; font-weight: 500; }
.completion-pct { font-size: 0.78rem; font-weight: 700; color: #2563eb; }

.completion-track {
  width: 100%;
  height: 5px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}

.completion-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.34,1.56,0.64,1);
}

.hero-ctas { display: flex; gap: 10px; align-items: center; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: transparent;
  border: 1.5px solid #cbd5e1;
  border-radius: 50px;
  font: 600 0.82rem/1 'Inter', sans-serif;
  color: #334155;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.btn-ghost:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; }

.btn-hero-save {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 50px;
  font: 700 0.82rem/1 'Inter', sans-serif;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(37,99,235,0.32);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero-save:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,0.42); }

/* ── Stat strip ────────────────────────────────────────────── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-pill {
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-pill:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,0.05), 0 8px 20px rgba(37,99,235,0.1); }

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

.si-blue   { background: #eff6ff; color: #2563eb; }
.si-green  { background: #f0fdf4; color: #16a34a; }
.si-amber  { background: #fffbeb; color: #d97706; }
.si-purple { background: #faf5ff; color: #7c3aed; }

.stat-val { font-size: 1.35rem; font-weight: 800; color: #0f172a; line-height: 1; }
.stat-key { font-size: 0.75rem; color: #64748b; font-weight: 500; margin-top: 3px; }

/* ── Settings grid ─────────────────────────────────────────── */
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.settings-main,
.settings-aside { display: grid; gap: 20px; }

/* ── Section card ──────────────────────────────────────────── */
.sc {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 6px 18px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.sc:hover { box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 10px 28px rgba(37,99,235,0.08); }

.sc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.sc-ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.sc-ic-blue   { background: #eff6ff; color: #2563eb; }
.sc-ic-green  { background: #f0fdf4; color: #16a34a; }
.sc-ic-purple { background: #faf5ff; color: #7c3aed; }
.sc-ic-amber  { background: #fffbeb; color: #d97706; }
.sc-ic-red    { background: #fef2f2; color: #dc2626; }

.sc-title { margin: 0 0 2px; font-size: 0.96rem; font-weight: 700; color: #0f172a; }
.sc-desc  { margin: 0; font-size: 0.79rem; color: #94a3b8; }

.sc-body { padding: 24px; display: grid; gap: 18px; }
.sc-footer { display: flex; justify-content: flex-end; padding-top: 4px; }

/* ── Field grid ────────────────────────────────────────────── */
.fg { display: grid; gap: 18px; }
.fg.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fw { display: flex; flex-direction: column; gap: 7px; }
.fw.full { grid-column: 1 / -1; }
.fw.half { max-width: 50%; }

.fl {
  font-size: 0.81rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.char-trail { font-weight: 400; font-size: 0.75rem; color: #94a3b8; }
.hint       { font-weight: 400; font-size: 0.73rem; color: #94a3b8; font-style: italic; }

.iw { position: relative; display: flex; align-items: center; }
.ii { position: absolute; left: 14px; pointer-events: none; color: #94a3b8; flex-shrink: 0; }

/* ── Field inputs ──────────────────────────────────────────── */
.fi {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px !important;
  padding: 10px 33px !important;
  font: 0.875rem/1.35 'Inter', sans-serif;
  color: #0f172a;
  background: #fafbfc;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  outline: none;
  box-sizing: border-box;
}

.iw .fi { padding-left: 40px; }

.fi:focus { border-color: #2563eb; background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.fi:hover:not(:focus) { border-color: #cbd5e1; }

.fi-ta { min-height: 120px; resize: vertical; line-height: 1.7; }

select.fi {
  appearance: none;
  -webkit-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='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

/* ── Password fields ───────────────────────────────────────── */
.pw-iw .fi { padding-right: 44px; }

.pw-eye {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.pw-eye:hover { color: #2563eb; }
.d-none { display: none !important; }

.strength-wrap { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.strength-bars { display: flex; gap: 4px; flex: 1; }

.sbar {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: #e2e8f0;
  transition: background 0.2s;
}

.sbar.weak   { background: #ef4444; }
.sbar.fair   { background: #f97316; }
.sbar.good   { background: #eab308; }
.sbar.strong { background: #22c55e; }

.strength-lbl { font-size: 0.73rem; font-weight: 600; white-space: nowrap; color: #64748b; min-width: 44px; }

.btn-sec-action {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 50px;
  font: 700 0.82rem/1 'Inter', sans-serif;
  color: #0f172a;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.btn-sec-action:hover { background: #e2e8f0; border-color: #cbd5e1; }

/* ── Upload zones ──────────────────────────────────────────── */
.uzone {
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: #fafbfc;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.uzone:hover,
.uzone.drag-over { border-color: #2563eb; background: #f0f7ff; }

.uzone-preview.uzone-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #e2e8f0;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: #94a3b8;
}

.uzone-preview.uzone-circle img { width: 100%; height: 100%; object-fit: cover; }

.uzone-preview.uzone-banner {
  width: 100%; height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
}

.uzone-preview.uzone-banner img { width: 100%; height: 100%; object-fit: cover; }

.uzone-info { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.uzone-icon { color: #2563eb; margin-bottom: 2px; }
.uzone-title { font-size: 0.84rem; font-weight: 700; color: #334155; }
.uzone-hint  { font-size: 0.73rem; color: #94a3b8; }

.uzone-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 50px;
  font-size: 0.77rem;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  margin-top: 4px;
}

.uzone-btn:hover { background: #dbeafe; border-color: #93c5fd; }

.hidden-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* ── Sticky save bar ───────────────────────────────────────── */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}

.sticky-bar.visible { transform: translateY(0); pointer-events: all; }

.sticky-bar-in {
  max-width: 900px;
  margin: 0 auto 16px;
  padding: 14px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.14);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.unsaved-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 600; color: #334155; }

.unsaved-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  flex-shrink: 0;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.sticky-bar-btns { display: flex; gap: 10px; align-items: center; }

.btn-discard {
  padding: 9px 18px;
  background: transparent;
  border: 1.5px solid #e2e8f0;
  border-radius: 50px;
  font: 600 0.82rem/1 'Inter', sans-serif;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-discard:hover { background: #f8fafc; border-color: #cbd5e1; }

.btn-save-sticky {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 50px;
  font: 700 0.82rem/1 'Inter', sans-serif;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(37,99,235,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-save-sticky:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(37,99,235,0.42); }

/* ── Success toast ─────────────────────────────────────────── */
.success-toast {
  position: fixed;
  top: 80px; right: 24px;
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #0f172a;
  border-radius: 12px;
  font: 600 0.82rem/1 'Inter', sans-serif;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.25s, transform 0.25s;
}

.success-toast.show { opacity: 1; transform: translateY(0) scale(1); }
.success-toast svg  { color: #22c55e; }

/* ── Select2 overrides ─────────────────────────────────────── */
.select2-container .select2-selection--multiple {
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #fafbfc !important;
  min-height: 40px;
  padding: 3px 5px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 50px !important;
  color: #2563eb !important;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 8px 2px 6px;
  margin: 2px 3px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #93c5fd;
  margin-right: 4px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #2563eb;
  background: transparent;
}

.select2-dropdown {
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
  overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted { background: #eff6ff !important; color: #2563eb !important; }
.select2-container--default .select2-results__option[aria-selected=true] { background: #dbeafe !important; color: #1d4ed8 !important; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .settings-grid { grid-template-columns: 1fr; }
  .settings-aside { order: -1; }
}

@media (max-width: 860px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-body  { flex-direction: column; align-items: flex-start; padding: 0 20px 22px; }
  .hero-right { align-items: flex-start; min-width: 0; width: 100%; }
  .hero-ctas  { width: 100%; }
  .hero-banner-wrap { height: 130px; }
}

@media (max-width: 640px) {
  .profile-shell { padding: 20px 14px 100px; }
  .fg.two-col    { grid-template-columns: 1fr; }
  .fw.half       { max-width: 100%; }
  .hero-name     { font-size: 1.25rem; }
  .stat-strip    { grid-template-columns: repeat(2, 1fr); }
}

