/* ─────────────────────────────────────────────────────────────────────────────
   DesignLink · style.css  (v2)
   Sistema único de estilos para todas las páginas.
   ─────────────────────────────────────────────────────────────────────────────
   • Variables CSS (tokens) → fácil de tematizar
   • Tipografía: Plus Jakarta Sans (UI) + DM Serif Display (display)
   • Diseño mobile-first
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  /* Colores */
  --primary:        #3A86FF;
  --primary-dark:   #2667CC;
  --primary-light:  #EEF4FF;
  --secondary:      #8338EC;
  --secondary-dark: #6629BA;
  --accent:         #FF006E;
  --success:        #06D6A0;
  --success-bg:     #ECFDF9;
  --warning:        #FFB547;
  --error:          #EF476F;
  --error-bg:       #FFF0F3;

  /* Neutros */
  --dark:           #0F1723;
  --dark-2:         #1E2A3A;
  --text:           #1B2435;
  --gray:           #64748B;
  --gray-light:     #94A3B8;
  --border:         #E2E8F0;
  --bg:             #F8FAFC;
  --bg-2:           #F1F5F9;
  --white:          #FFFFFF;

  /* Sistema */
  --radius:         14px;
  --radius-sm:      8px;
  --radius-lg:      24px;
  --shadow-sm:      0 1px 3px rgba(15,23,35,.05);
  --shadow:         0 6px 20px rgba(15,23,35,.07);
  --shadow-lg:      0 20px 40px rgba(15,23,35,.10);
  --transition:     all .25s cubic-bezier(.4,0,.2,1);
  --container:      1200px;
  --header-h:       72px;
}

/* ─── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ─── Utilidades ───────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ─── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
}

.site-header .container { display: flex; align-items: center; gap: 24px; width: 100%; }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.35rem; color: var(--dark);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: grid; place-items: center;
  color: white; font-size: 1rem;
  box-shadow: 0 4px 12px rgba(58,134,255,.25);
}
.logo-text span { color: var(--accent); }

.nav { display: flex; gap: 6px; align-items: center; margin-right: auto; margin-left: 24px; }
.nav a {
  color: var(--text); font-weight: 600; font-size: .95rem;
  padding: 8px 14px; border-radius: 8px;
  position: relative;
}
.nav a:hover { background: var(--primary-light); color: var(--primary); }
.nav a.active { color: var(--primary); background: var(--primary-light); }

.nav-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.nav-badge {
  background: var(--accent); color: white;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; font-size: .72rem; font-weight: 800;
  display: inline-grid; place-items: center;
  position: absolute; top: 2px; right: 2px;
}

.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 10px;
  background: white; color: var(--dark);
  font-size: 1.1rem;
  align-items: center; justify-content: center;
}

/* ─── Botones ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border: none; border-radius: 10px;
  font-weight: 700; font-size: .92rem; font-family: inherit;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap; line-height: 1;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 14px rgba(58,134,255,.25);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(58,134,255,.35); }

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: white;
  box-shadow: 0 4px 14px rgba(131,56,236,.25);
}
.btn-secondary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(131,56,236,.35); }

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover:not(:disabled) { background: var(--bg-2); border-color: var(--primary); color: var(--primary); }

.btn-danger { background: var(--error); color: white; }
.btn-danger:hover:not(:disabled) { background: #d33b62; transform: translateY(-2px); }

.btn-sm  { padding: 7px 14px; font-size: .82rem; border-radius: 8px; }

.btn-icon {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer;
  color: var(--gray); transition: var(--transition);
}
.btn-icon:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.btn-lg  { padding: 15px 28px; font-size: 1rem;  border-radius: 12px; }
.btn-block { width: 100%; }

/* ─── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 90px 0 80px;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(131,56,236,.12), transparent 70%),
    radial-gradient(60% 50% at 10% 90%, rgba(58,134,255,.12), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: rgba(255,0,110,.08);
  border: 1px dashed var(--accent);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 700; font-size: .82rem;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1; letter-spacing: -.02em;
  color: var(--dark);
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: var(--primary); }
.hero h1 .pop {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.15rem; color: var(--gray); max-width: 540px;
  margin-bottom: 32px;
}

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

.hero-visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-3deg);
  transition: var(--transition);
}
.hero-visual:hover { transform: perspective(1000px) rotateY(0); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.hero-stats {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  display: flex; justify-content: space-between;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.hero-stats .stat-num { font-size: 1.5rem; font-weight: 800; color: var(--dark); display: block; }
.hero-stats .stat-label { font-size: .72rem; color: var(--gray); text-transform: uppercase; letter-spacing: .06em; }

/* ─── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: 90px 0; }
.section-light { background: var(--white); }
.section-muted { background: var(--bg-2); }

.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark); margin-bottom: 14px; letter-spacing: -.01em;
}
.section-title p { color: var(--gray); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }

/* ─── Grid de pasos / cards ────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card-step .step-num {
  position: absolute; top: -18px; left: 28px;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1rem;
  border: 4px solid var(--bg);
}

.card .icon-circle {
  width: 64px; height: 64px;
  background: var(--primary-light);
  border-radius: 16px;
  display: grid; place-items: center;
  color: var(--primary); font-size: 1.6rem;
  margin-bottom: 22px;
}

.card h3 { font-size: 1.25rem; color: var(--dark); margin-bottom: 12px; font-weight: 700; }
.card p  { color: var(--gray); font-size: .95rem; }

.commission-highlight { color: var(--accent); font-weight: 800; }

/* ─── Commission Section ───────────────────────────────────────────────────── */
.commission-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.commission-visual {
  background: linear-gradient(135deg, var(--white), var(--bg));
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow);
}

.commission-percentage {
  font-family: 'DM Serif Display', serif;
  font-size: 6rem; font-weight: 400; line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.commission-bullets { list-style: none; padding: 0; }
.commission-bullets li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px dashed var(--border);
  font-size: .98rem; color: var(--text);
}
.commission-bullets li:last-child { border-bottom: none; }
.commission-bullets i { color: var(--success); margin-top: 4px; flex-shrink: 0; }

/* ─── CTA Footer banner ────────────────────────────────────────────────────── */
.cta-banner {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgba(255,255,255,.15), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 18px;
}
.cta-banner p { font-size: 1.1rem; opacity: .9; max-width: 640px; margin: 0 auto 40px; }
.cta-banner .btn { background: white; color: var(--primary); }
.cta-banner .btn-secondary { background: var(--dark); color: white; }

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: #aab8c8;
  padding: 70px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 50px; }
.footer-grid h4 { color: white; font-size: 1rem; margin-bottom: 22px; }
.footer-grid p, .footer-grid li { font-size: .9rem; line-height: 1.7; }
.footer-grid ul { list-style: none; }
.footer-grid a { color: #aab8c8; }
.footer-grid a:hover { color: white; padding-left: 4px; }
.footer-grid .logo { color: white; margin-bottom: 18px; }
.footer-grid .logo .logo-text { color: white; }

.footer-copy {
  border-top: 1px solid #2a3950;
  padding-top: 24px;
  text-align: center;
  font-size: .85rem;
  color: #6b7d92;
}

/* ─── Forms ────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block; font-weight: 600; font-size: .88rem;
  color: var(--dark); margin-bottom: 8px;
}

.form-control, .form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem; font-family: inherit;
  color: var(--text); background: var(--white);
  transition: var(--transition); outline: none;
}
.form-control:focus, .form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58,134,255,.12);
}
.form-textarea { min-height: 110px; resize: vertical; }

.input-wrapper { position: relative; }
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gray-light); pointer-events: none;
}
.input-wrapper .form-input { padding-left: 42px; }
.input-wrapper:focus-within .input-icon { color: var(--primary); }

.form-error {
  color: var(--error); font-size: .82rem;
  margin-top: 6px; display: none;
}
.form-error.show { display: block; }

/* ─── Alerts (toasts inline) ───────────────────────────────────────────────── */
.alert {
  display: none; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  margin-bottom: 18px; font-size: .9rem; font-weight: 500;
}
.alert.show { display: flex; animation: slideDown .25s ease; }
.alert-error   { background: var(--error-bg);   color: var(--error);   border: 1px solid rgba(239,71,111,.2); }
.alert-success { background: var(--success-bg); color: #059669;         border: 1px solid rgba(6,214,160,.25); }
.alert-info    { background: var(--primary-light); color: var(--primary); border: 1px solid rgba(58,134,255,.2); }

@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Toast flotante ───────────────────────────────────────────────────────── */
.toast-container {
  position: fixed; top: 88px; right: 20px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 9999;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--white);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  min-width: 280px; max-width: 380px;
  animation: toastIn .3s cubic-bezier(.4,0,.2,1);
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--error); }
.toast.warning { border-left-color: var(--warning); }
.toast i { font-size: 1.1rem; }
.toast.success i { color: var(--success); }
.toast.error i   { color: var(--error); }
.toast.warning i { color: var(--warning); }

@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }
.toast.out { animation: toastOut .25s forwards; }

/* ─── Modal ────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,23,35,.6); backdrop-filter: blur(4px);
  z-index: 1001;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop.show { display: flex; animation: fadeIn .2s ease; }

.modal {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%; max-width: 560px;
  max-height: 92vh; overflow-y: auto;
  position: relative; padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  animation: modalIn .3s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(-20px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.modal h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.7rem; color: var(--dark); margin-bottom: 24px;
  padding-right: 40px;
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px;
  background: var(--bg-2); border: none;
  border-radius: 50%; font-size: 1.2rem;
  color: var(--gray);
  display: grid; place-items: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--error-bg); color: var(--error); }

/* User type selector (within forms) */
.type-selector {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 24px;
}
.type-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: white;
}
.type-option:hover { border-color: var(--primary); }
.type-option.active {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(58,134,255,.15);
}
.type-option i { font-size: 1.8rem; color: var(--primary); margin-bottom: 8px; }
.type-option p { font-weight: 700; color: var(--dark); margin: 0; }
.type-option small { color: var(--gray); display: block; margin-top: 2px; font-size: .78rem; }

.commission-box {
  background: rgba(255,0,110,.06);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 20px 0;
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .88rem; color: var(--text);
}
.commission-box input[type="checkbox"] {
  margin-top: 3px; min-width: 18px; min-height: 18px;
  accent-color: var(--accent); cursor: pointer;
}

/* ─── Pick Me grid + cards ─────────────────────────────────────────────────── */
.pickme-toolbar {
  background: white;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin: -40px auto 32px;
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 14px; align-items: end;
}

.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.user-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.user-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.user-card-cover {
  height: 110px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  position: relative;
}

.user-card-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 5px solid white;
  background: white;
  object-fit: cover;
  position: absolute; bottom: -48px; left: 50%; transform: translateX(-50%);
}

.user-card-body { padding: 60px 22px 22px; flex: 1; text-align: center; display: flex; flex-direction: column; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .75rem; font-weight: 700;
  margin-bottom: 12px;
}
.badge-designer { background: rgba(58,134,255,.1);  color: var(--primary); }
.badge-empresa  { background: rgba(131,56,236,.1); color: var(--secondary); }

.user-card h3 { font-size: 1.15rem; color: var(--dark); margin-bottom: 6px; }
.user-card .user-desc {
  color: var(--gray); font-size: .9rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 16px; flex: 1;
}
.user-card-actions {
  display: flex; gap: 8px; margin-top: auto;
  border-top: 1px solid var(--border); padding-top: 16px;
}
.user-card-actions .btn { flex: 1; }
.fav-btn {
  background: white; border: 1.5px solid var(--border);
  width: 42px; height: 42px;
  border-radius: 10px;
  color: var(--gray-light);
  display: grid; place-items: center;
  transition: var(--transition);
  flex: 0 0 42px !important;
}
.fav-btn:hover { color: var(--accent); border-color: var(--accent); }
.fav-btn.active { color: var(--accent); border-color: var(--accent); background: rgba(255,0,110,.08); }

/* Skeletons */
.skeleton {
  background: linear-gradient(90deg, var(--bg-2) 25%, #e5ebf3 50%, var(--bg-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.skeleton-card { height: 320px; }

/* Empty/error states */
.empty-state {
  text-align: center; padding: 70px 20px;
  grid-column: 1 / -1;
}
.empty-state i { font-size: 3.5rem; color: var(--gray-light); margin-bottom: 18px; }
.empty-state h3 { color: var(--dark); margin-bottom: 8px; }
.empty-state p  { color: var(--gray); }

/* Pagination */
.pagination {
  display: flex; gap: 6px; justify-content: center; align-items: center;
  margin-top: 30px; flex-wrap: wrap;
}
.pagination button {
  min-width: 40px; height: 40px;
  background: white; border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  padding: 0 12px;
}
.pagination button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary); border-color: var(--primary); color: white; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* ─── Profile page ─────────────────────────────────────────────────────────── */
.profile-hero {
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(131,56,236,.12), transparent 70%),
    linear-gradient(135deg, var(--primary-light), rgba(131,56,236,.06));
  padding: 60px 0 100px;
}
.profile-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px;
  margin-top: -60px;
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 36px;
  align-items: start;
}
.profile-avatar-wrap { position: relative; }
.profile-avatar {
  width: 200px; height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid white;
  box-shadow: var(--shadow);
  background: var(--bg-2);
}
.avatar-upload {
  position: absolute; bottom: 8px; right: 8px;
  width: 44px; height: 44px;
  background: var(--primary); color: white;
  border-radius: 50%; border: 4px solid white;
  display: grid; place-items: center;
  cursor: pointer; transition: var(--transition);
}
.avatar-upload:hover { background: var(--primary-dark); transform: scale(1.1); }
.avatar-upload input { display: none; }

.profile-info h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem; color: var(--dark); margin-bottom: 6px;
}
.profile-info .badge { margin-bottom: 14px; }
.profile-info p { color: var(--gray); margin-bottom: 12px; max-width: 600px; }
.profile-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.profile-meta-item { display: inline-flex; align-items: center; gap: 6px; color: var(--gray); font-size: .9rem; }
.profile-meta-item i { color: var(--primary); }

.profile-actions { display: flex; flex-direction: column; gap: 10px; }

.tabs {
  display: flex; gap: 4px; margin: 30px 0 24px;
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  background: none; border: none;
  padding: 12px 18px;
  font-weight: 600; color: var(--gray);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
}
.tag.removable { padding-right: 28px; position: relative; }
.tag-remove {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  background: none; border: none; color: var(--primary); cursor: pointer;
  font-size: .9rem;
}

.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.portfolio-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  cursor: pointer;
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item .remove-img {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px;
  background: rgba(239,71,111,.9); color: white;
  border-radius: 50%; border: none;
  display: none; place-items: center;
  cursor: pointer;
}
.portfolio-item:hover .remove-img.editable { display: grid; }
.portfolio-empty {
  grid-column: 1 / -1;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center; color: var(--gray);
}

/* ─── Messages ─────────────────────────────────────────────────────────────── */
.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-height: 70vh;
  overflow: hidden;
}
.chat-sidebar {
  border-right: 1px solid var(--border);
  overflow-y: auto;
  background: var(--bg);
}
.chat-sidebar-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  background: white;
  position: sticky; top: 0;
}
.convo-item {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 18px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
  text-decoration: none; color: inherit;
}
.convo-item:hover  { background: var(--bg-2); color: inherit; }
.convo-item.active { background: var(--primary-light); }
.convo-item img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.convo-info { flex: 1; min-width: 0; }
.convo-name { font-weight: 600; color: var(--dark); font-size: .92rem; }
.convo-last { color: var(--gray); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-unread {
  background: var(--accent); color: white;
  min-width: 22px; height: 22px; padding: 0 7px;
  font-size: .72rem; font-weight: 800;
  border-radius: 999px; display: grid; place-items: center;
}

.chat-main {
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.chat-header {
  padding: 16px 22px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; background: white;
}
.chat-header img { width: 40px; height: 40px; border-radius: 50%; }
.chat-empty {
  display: grid; place-items: center;
  padding: 60px 20px; color: var(--gray); text-align: center;
}
.chat-messages {
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto;
  background: var(--bg);
  max-height: 60vh;
}
.bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: .95rem;
  line-height: 1.4;
  word-wrap: break-word;
}
.bubble.mine { background: var(--primary); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.theirs { background: white; border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble small { display: block; opacity: .65; font-size: .7rem; margin-top: 4px; }

.chat-input {
  display: flex; gap: 8px;
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  background: white;
}
.chat-input input {
  flex: 1; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: .95rem;
}
.chat-input input:focus { border-color: var(--primary); outline: none; }

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid, .commission-wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .profile-card { grid-template-columns: 1fr; text-align: center; }
  .profile-actions { flex-direction: row; justify-content: center; }
  .pickme-toolbar { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; min-height: 80vh; }
  .chat-sidebar { max-height: 280px; }
}

@media (max-width: 768px) {
  .nav, .nav-actions .btn { display: none; }
  .mobile-toggle { display: inline-flex; }
  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: white; padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin: 0; gap: 4px;
  }
  .nav.open a { width: 100%; padding: 12px; }
  .section { padding: 60px 0; }
  .hero { padding: 60px 0; }
  .toast-container { left: 16px; right: 16px; top: 78px; }
  .toast { min-width: 0; max-width: none; }
}

@media (max-width: 480px) {
  .modal { padding: 28px 22px; }
  .type-selector { grid-template-columns: 1fr; }
  .profile-card { padding: 24px 20px; }
  .profile-avatar { width: 150px; height: 150px; }
  .users-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
