/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --bg:           #fdf0f5;
  --bg2:          #fce6f0;
  --surface:      #ffffff;
  --surface2:     #fef4f8;
  --border:       #f0c6d8;
  --border2:      #e8a8c4;
  --pink:         #e05585;
  --pink-dark:    #c43d6e;
  --pink-light:   #f5a0c0;
  --pink-pale:    #fde8f1;
  --pink-ultra:   #fff0f6;
  --rose:         #d63065;
  --mauve:        #9b4f72;
  --text:         #2d1a24;
  --text-2:       #6b3f55;
  --text-3:       #9e6b82;
  --text-4:       #c89db0;
  --radius:       14px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --shadow:       0 4px 24px rgba(224, 85, 133, 0.10);
  --shadow-md:    0 8px 40px rgba(224, 85, 133, 0.15);
  --shadow-hover: 0 12px 48px rgba(224, 85, 133, 0.22);
  --transition:   0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(224,85,133,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(247,160,192,0.08) 0%, transparent 60%);
}
a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--pink-dark); text-decoration: underline; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 240, 245, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(224,85,133,0.08);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  text-decoration: none;
  user-select: none;
}
.logo-y  { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; color: var(--pink); }
.logo-a  { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; color: var(--pink-dark); }
.logo-s  { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; color: var(--mauve); }
.logo-s2 { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; color: var(--rose); }
.logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.02em;
  margin-left: 0.5rem;
  display: none;
}
@media (min-width: 640px) { .logo-sub { display: inline; } }

/* Nav */
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--transition);
  text-decoration: none;
}
.nav-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-link:hover { background: var(--pink-pale); color: var(--pink); text-decoration: none; }
.nav-link.active { background: var(--pink-pale); color: var(--pink); }

/* ── MAIN ───────────────────────────────────────────────────── */
.site-main { flex: 1; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem 3rem;
  text-align: center;
  background: linear-gradient(160deg, #fef4f8 0%, #fdf0f5 50%, #fce6f0 100%);
  border-bottom: 1px solid var(--border);
}
.hero-blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}
.blob-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #f5a0c0 0%, transparent 70%);
  top: -120px; right: -80px;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #e8c4d8 0%, transparent 70%);
  bottom: -80px; left: -60px;
  animation: blobFloat 10s ease-in-out infinite reverse;
}
.blob-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, #f9d0e4 0%, transparent 70%);
  top: 20%; left: 40%;
  animation: blobFloat 7s ease-in-out infinite 2s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(20px, -20px) scale(1.05); }
}

.hero-content { position: relative; z-index: 1; }
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1.75rem;
}
.title-yass {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--pink) 0%, var(--rose) 50%, var(--mauve) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.title-sub {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

/* Stats row */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.6rem 1.4rem;
  box-shadow: var(--shadow);
  min-width: 100px;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pink);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── SEARCH SECTION ─────────────────────────────────────────── */
.search-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

/* Mode tabs */
.search-form { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.search-mode-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.mode-tab {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-2);
  transition: all var(--transition);
}
.mode-tab svg { flex-shrink: 0; }
.mode-tab:hover { border-color: var(--pink-light); color: var(--pink); background: var(--pink-ultra); }
.mode-tab.active {
  background: linear-gradient(135deg, var(--pink) 0%, var(--rose) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(224,85,133,0.35);
}

/* Search bar */
.search-bar-wrap { display: flex; gap: 0.75rem; align-items: stretch; }
.search-bar {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.search-bar:focus-within {
  border-color: var(--pink-light);
  box-shadow: 0 0 0 4px rgba(224,85,133,0.12), var(--shadow);
}
.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-4);
  width: 20px; height: 20px;
  pointer-events: none;
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.9rem 1rem 0.9rem 3rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
}
.search-input::placeholder { color: var(--text-4); }
.search-clear {
  background: none;
  border: none;
  color: var(--text-3);
  padding: 0 1rem;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition);
}
.search-clear:hover { color: var(--pink); }
.btn-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.6rem;
  background: linear-gradient(135deg, var(--pink) 0%, var(--rose) 100%);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(224,85,133,0.35);
}
.btn-search:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(224,85,133,0.45);
}
.btn-search:active { transform: translateY(0); }

/* Toggle */
.search-options { display: flex; align-items: center; gap: 1rem; }
.toggle-wrap { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; user-select: none; }
.toggle-wrap input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: relative;
  width: 40px; height: 22px;
  background: var(--border2);
  border-radius: 50px;
  transition: background var(--transition);
  flex-shrink: 0;
}
.toggle-track::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.toggle-wrap input:checked + .toggle-track { background: var(--pink); }
.toggle-wrap input:checked + .toggle-track::after { transform: translateX(18px); }
.toggle-label { font-size: 0.875rem; font-weight: 500; color: var(--text-2); }

/* Results header */
.results-header { margin-bottom: 1.25rem; }
.results-count { font-size: 0.95rem; color: var(--text-2); }
.results-count strong { color: var(--pink); font-weight: 600; }
.results-count em { color: var(--text); font-style: normal; font-weight: 500; }

/* ── AVATAR GRID ────────────────────────────────────────────── */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* ── AVATAR CARD ────────────────────────────────────────────── */
.avatar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.avatar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--pink-light);
}
.card-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg2);
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.avatar-card:hover .card-thumb img { transform: scale(1.06); }
.card-badges {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  display: flex; gap: 0.3rem; flex-wrap: wrap;
}
.badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.badge-public  { background: rgba(34,197,94,0.85);  color: #fff; }
.badge-private { background: rgba(239,68,68,0.85);  color: #fff; }
.badge-other   { background: rgba(107,114,128,0.85); color: #fff; }
.badge-quest   { background: rgba(139,92,246,0.85);  color: #fff; }

/* Favourite button on card */
.fav-btn {
  position: absolute;
  bottom: 0.5rem; right: 0.5rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: var(--border2);
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.fav-btn svg { width: 16px; height: 16px; }
.fav-btn:hover { color: var(--pink); transform: scale(1.12); }
.fav-btn.is-faved { color: var(--pink); background: rgba(255,255,255,0.95); }
.fav-btn.is-faved:hover { color: var(--pink-dark); }

/* Card body */
.card-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.card-author {
  font-size: 0.78rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.card-author svg { flex-shrink: 0; }
.card-desc {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}
.meta-chip {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  background: var(--pink-ultra);
  color: var(--mauve);
  border-radius: 50px;
  border: 1px solid var(--border);
}
.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
  gap: 0.5rem;
}
.card-date { font-size: 0.72rem; color: var(--text-4); }
.btn-copy-id {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-2);
  transition: all var(--transition);
}
.btn-copy-id:hover { background: var(--pink-pale); border-color: var(--pink-light); color: var(--pink); }

/* Card remove animation */
.card-removing {
  animation: cardPop 0.3s ease forwards;
}
@keyframes cardPop {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.05); }
  100% { transform: scale(0.85); opacity: 0; }
}

/* ── PAGINATION ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-2);
  transition: all var(--transition);
  text-decoration: none;
}
.page-btn:hover { border-color: var(--pink-light); color: var(--pink); background: var(--pink-ultra); text-decoration: none; }
.page-btn.active {
  background: linear-gradient(135deg, var(--pink) 0%, var(--rose) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(224,85,133,0.35);
}
.page-ellipsis { color: var(--text-4); padding: 0 0.25rem; }

/* ── EMPTY STATE ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
}
.empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.empty-sub { color: var(--text-3); font-size: 0.95rem; }
.empty-sub a { color: var(--pink); }

/* ── AUTH / LOGIN ───────────────────────────────────────────── */
.auth-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px);
  padding: 3rem 1.5rem;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
}
.auth-icon {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--pink);
  line-height: 1;
}
.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.auth-sub {
  text-align: center;
  color: var(--text-3);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}
.auth-tabs {
  display: flex;
  background: var(--bg2);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 1.75rem;
  gap: 3px;
}
.auth-tab {
  flex: 1;
  padding: 0.5rem;
  border-radius: calc(var(--radius-sm) - 2px);
  font-size: 0.9rem;
  font-weight: 500;
  background: transparent;
  color: var(--text-3);
  transition: all var(--transition);
}
.auth-tab.active { background: var(--surface); color: var(--pink); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-form.hidden { display: none; }
.auth-note {
  font-size: 0.78rem;
  color: var(--text-3);
  background: var(--pink-ultra);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  line-height: 1.5;
}

/* Fields */
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.field input, .field textarea {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.field input:focus, .field textarea:focus {
  border-color: var(--pink-light);
  box-shadow: 0 0 0 3px rgba(224,85,133,0.10);
}
.field-error { font-size: 0.78rem; color: #e74c3c; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--pink) 0%, var(--rose) 100%);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(224,85,133,0.30);
  text-decoration: none;
  border: none;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(224,85,133,0.42); color: #fff; text-decoration: none; }
.btn-primary:active { transform: translateY(0); }
.btn-full { width: 100%; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: var(--surface);
  color: var(--text-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-secondary:hover { border-color: var(--pink-light); color: var(--pink); }

/* Alerts */
.alert {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.5;
}
.alert:empty { display: none; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }

/* ── FAVOURITES PAGE ────────────────────────────────────────── */
.favs-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}
.favs-header { margin-bottom: 2rem; }
.favs-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.favs-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.favs-title svg { color: var(--pink); }
.favs-count-badge {
  background: var(--pink-pale);
  color: var(--pink);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.2rem 0.8rem;
}
.favs-sub { font-size: 0.9rem; color: var(--text-3); }

/* Notes */
.note-wrap { margin: 0.2rem 0; }
.note-add-btn {
  background: none;
  color: var(--text-4);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0;
  transition: color var(--transition);
}
.note-add-btn:hover { color: var(--pink); }
.note-text {
  font-size: 0.78rem;
  color: var(--text-2);
  cursor: pointer;
  background: var(--pink-ultra);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: background var(--transition);
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.note-text:hover { background: var(--pink-pale); }

/* ── MODAL ──────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(45, 26, 36, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.modal-backdrop.hidden { display: none; }
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-md);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from { transform: scale(0.95) translateY(8px); opacity: 0; }
  to   { transform: scale(1) translateY(0);      opacity: 1; }
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}
.note-textarea {
  width: 100%;
  height: 120px;
  resize: vertical;
  padding: 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.note-textarea:focus { border-color: var(--pink-light); box-shadow: 0 0 0 3px rgba(224,85,133,0.10); }
.note-char-count { font-size: 0.75rem; color: var(--text-4); text-align: right; margin: 0.3rem 0 1rem; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ── TOAST ──────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
}
.toast {
  background: var(--text);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  animation: toastIn 0.25s ease, toastOut 0.3s 2.5s ease forwards;
  max-width: 320px;
  word-break: break-word;
}
.toast-error {
  background: #be123c;
}
@keyframes toastIn  { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(6px); } }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-4);
  background: var(--surface2);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .header-inner { padding: 0 1rem; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .search-section, .favs-section { padding: 1.5rem 1rem 3rem; }
  .search-bar-wrap { flex-direction: column; }
  .btn-search { justify-content: center; padding: 0.8rem; }
  .avatar-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
  .auth-card { padding: 1.75rem 1.25rem; }
}
@media (max-width: 400px) {
  .avatar-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
}
