/* ============================================================
   Saylo Web Studio — Components
   ============================================================ */

/* ---- Cards ---- */
.card {
  background: var(--bg-glass-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
}

.card-hover {
  transition: all 0.2s var(--ease);
}
.card-hover:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}

/* ---- Character cards (Explore) ---- */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-5);
}

/* Desktop: bigger character cards */
@media (min-width: 1200px) {
  .char-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sp-6);
  }
  .char-card {
    padding: var(--sp-6);
  }
  .char-avatar {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    font-size: var(--fs-28);
  }
  .char-name {
    font-size: var(--fs-18);
  }
  .char-tagline {
    font-size: var(--fs-13);
  }
  .char-actions .btn {
    padding: 8px 20px;
    font-size: var(--fs-14);
  }
}

.char-card {
  position: relative;
  overflow: hidden;
  padding: var(--sp-5);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.char-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 20% 0%, var(--char-glow, rgba(79,124,255,0.16)), transparent 70%);
  pointer-events: none;
}
.char-card-top {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  position: relative;
}
.char-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: var(--fs-24);
  color: #fff;
  font-weight: 800;
  flex: none;
  box-shadow: var(--shadow-md);
}
.char-name {
  font-weight: 700;
  font-size: var(--fs-16);
}
.char-tagline {
  font-size: var(--fs-12);
  color: var(--text-3);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.char-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}
.char-tag {
  font-size: var(--fs-11);
  color: var(--text-2);
  background: var(--bg-3);
  border: 1px solid var(--line-1);
  padding: 2px 8px;
  border-radius: var(--r-full);
}
.char-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-12);
  color: var(--text-3);
  margin-top: auto;
}
.char-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}
.char-actions {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  position: relative;
}

/* ---- Chat view ---- */
.chat-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-width: var(--content-max-w);
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 1200px) {
  .chat-wrap {
    max-width: var(--content-max-w-wide);
  }
}

.chat-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-6);
  border-bottom: 1px solid var(--line-1);
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  flex: none;
}

@media (min-width: 1200px) {
  .chat-header {
    padding: var(--sp-4) var(--sp-8);
  }
}

.chat-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: var(--fs-18);
  color: #fff;
  font-weight: 800;
  position: relative;
}
.chat-header-avatar .online-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--bg-1);
}
.chat-header-info {
  flex: 1;
  min-width: 0;
}
.chat-header-name {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: var(--fs-15);
}
.chat-header-status {
  font-size: var(--fs-12);
  color: var(--text-3);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-6) var(--sp-6) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  scroll-behavior: smooth;
}

@media (min-width: 1200px) {
  .chat-messages {
    padding: var(--sp-8) var(--sp-8) var(--sp-4);
  }
}

.msg {
  display: flex;
  gap: var(--sp-3);
  max-width: var(--msg-max-w);
  animation: msg-in 0.3s var(--ease) both;
}

@media (min-width: 1200px) {
  .msg {
    max-width: var(--msg-max-w-wide);
  }
}

.msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg-ai {
  align-self: flex-start;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: var(--fs-14);
  color: #fff;
  font-weight: 700;
  flex: none;
  margin-top: 2px;
}
.msg-user .msg-avatar {
  background: var(--accent-grad-cool);
}

.msg-bubble {
  padding: 12px 16px;
  border-radius: var(--r-lg);
  font-size: var(--fs-15);
  line-height: 1.7;
  word-break: break-word;
  white-space: pre-wrap;
}

@media (min-width: 1200px) {
  .msg-bubble {
    padding: 14px 20px;
    font-size: var(--fs-16);
    line-height: 1.75;
  }
}

.msg-user .msg-bubble {
  background: var(--accent-grad);
  color: #fff;
  border-bottom-right-radius: var(--r-sm);
  box-shadow: var(--shadow-accent);
}
.msg-ai .msg-bubble {
  background: var(--bg-glass-2);
  border: 1px solid var(--line-1);
  border-bottom-left-radius: var(--r-sm);
  backdrop-filter: blur(10px);
}
.msg-ai .msg-bubble.typing {
  padding: 14px 18px;
  min-width: 60px;
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: 6px;
  font-size: var(--fs-11);
  color: var(--text-4);
}
.msg-user .msg-meta {
  justify-content: flex-end;
}

.msg-actions {
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s var(--ease);
}
.msg:hover .msg-actions {
  opacity: 1;
}
.msg-action {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--text-3);
}
.msg-action:hover {
  background: var(--bg-4);
  color: var(--text-1);
}

/* Memory chips above input */
.memory-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-6);
  overflow-x: auto;
  flex: none;
}

@media (min-width: 1200px) {
  .memory-bar {
    padding: var(--sp-2) var(--sp-8);
  }
}

.memory-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: var(--love-soft);
  border: 1px solid rgba(255, 95, 158, 0.25);
  color: var(--text-2);
  font-size: var(--fs-12);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.memory-chip:hover {
  border-color: var(--love-1);
  color: var(--text-1);
}

/* Input composer */
.composer-wrap {
  flex: none;
  padding: var(--sp-3) var(--sp-6) var(--sp-5);
}

@media (min-width: 1200px) {
  .composer-wrap {
    padding: var(--sp-4) var(--sp-8) var(--sp-6);
  }
}

.composer {
  max-width: var(--input-max-w);
  margin: 0 auto;
  background: var(--bg-glass);
  border: 1px solid var(--line-1);
  border-radius: var(--r-xl);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

@media (min-width: 1200px) {
  .composer {
    max-width: var(--input-max-w-wide);
  }
}

.composer:focus-within {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: var(--shadow-md), 0 0 0 3px var(--accent-soft-2);
}
.composer-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: var(--sp-2) var(--sp-3) 0;
}
.composer-tool {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  color: var(--text-3);
  transition: all 0.15s var(--ease);
}
.composer-tool:hover {
  background: var(--bg-3);
  color: var(--text-1);
}
.composer-tool.active {
  color: var(--love-1);
  background: var(--love-soft);
}
.composer-main {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
}
.composer-textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  min-height: 40px;
  max-height: 160px;
  padding: 10px 4px;
  font-size: var(--fs-15);
  line-height: 1.5;
  color: var(--text-1);
}
.composer-textarea::placeholder {
  color: var(--text-3);
}
.composer-send {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--shadow-love);
  transition: all 0.18s var(--ease);
  flex: none;
}
.composer-send:hover {
  transform: scale(1.06);
  filter: brightness(1.08);
}
.composer-send:disabled {
  opacity: 0.5;
  transform: scale(1);
  cursor: not-allowed;
}
.composer-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: 0 var(--sp-3) var(--sp-2);
  font-size: var(--fs-11);
  color: var(--text-4);
}

/* Model switcher */
.model-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--bg-3);
  border: 1px solid var(--line-1);
  font-size: var(--fs-12);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.model-switch:hover {
  border-color: var(--line-2);
  color: var(--text-1);
}
.model-switch.pro {
  background: var(--accent-soft);
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--text-1);
}

/* ---- Empty / welcome state ---- */
.welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  text-align: center;
  padding: var(--sp-8);
  min-height: 60%;
}
.welcome-logo {
  width: 84px;
  height: 84px;
  border-radius: 26px;
  background: var(--brand-gradient);
  display: grid;
  place-items: center;
  font-size: var(--fs-40);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-lg), var(--glow-love);
  animation: float-y 4s var(--ease-inout) infinite;
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.welcome h1 {
  font-size: var(--fs-28);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.welcome p {
  color: var(--text-3);
  max-width: 460px;
  font-size: var(--fs-15);
}
.welcome-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  max-width: 560px;
}
.suggest-chip {
  padding: 9px 16px;
  border-radius: var(--r-full);
  background: var(--bg-glass-2);
  border: 1px solid var(--line-1);
  color: var(--text-2);
  font-size: var(--fs-13);
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.suggest-chip:hover {
  background: var(--accent-soft);
  border-color: rgba(79, 124, 255, 0.4);
  color: var(--text-1);
  transform: translateY(-2px);
}

/* ---- Modal ---- */
.modal-scrim {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.7);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--sp-6);
  animation: fade-in 0.2s var(--ease) both;
}
.modal {
  width: min(560px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-6);
  animation: pop-in 0.3s var(--ease-bounce) both;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-5);
}
.modal-title {
  font-size: var(--fs-20);
  font-weight: 800;
}
.modal-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  color: var(--text-3);
}
.modal-close:hover {
  background: var(--bg-4);
  color: var(--text-1);
}

/* ---- Membership page ---- */
.member-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  margin-bottom: var(--sp-6);
  background: linear-gradient(135deg, rgba(255, 95, 158, 0.16), rgba(139, 92, 246, 0.16), rgba(79, 124, 255, 0.12));
  border: 1px solid var(--line-1);
}
.member-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 300px at 80% 20%, rgba(255, 95, 158, 0.18), transparent 60%);
  pointer-events: none;
}
.member-hero h1 {
  font-size: var(--fs-34);
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
}
.member-hero p {
  color: var(--text-2);
  margin-top: var(--sp-2);
  position: relative;
}
.member-status {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  padding: 8px 18px;
  border-radius: var(--r-full);
  background: var(--accent-grad);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-accent);
  position: relative;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--sp-4);
}
.benefit-card {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.benefit-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-1);
}
.benefit-title {
  font-weight: 700;
  font-size: var(--fs-15);
}
.benefit-desc {
  font-size: var(--fs-13);
  color: var(--text-3);
  line-height: 1.5;
}

/* ---- Moments feed ---- */
.moment-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-width: 680px;
  margin: 0 auto;
}
.moment-card {
  padding: var(--sp-5);
}
.moment-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.moment-author {
  font-weight: 600;
  font-size: var(--fs-14);
}
.moment-time {
  font-size: var(--fs-12);
  color: var(--text-4);
}
.moment-body {
  font-size: var(--fs-14);
  color: var(--text-2);
  line-height: 1.7;
}
.moment-actions {
  display: flex;
  gap: var(--sp-4);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line-1);
}
.moment-action {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-size: var(--fs-13);
  cursor: pointer;
  transition: color 0.15s var(--ease);
}
.moment-action:hover {
  color: var(--love-1);
}
.moment-action.liked {
  color: var(--love-1);
}

/* ---- Voice call panel ---- */
.call-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: radial-gradient(800px 500px at 50% 30%, rgba(139, 92, 246, 0.22), transparent 65%),
    rgba(5, 7, 13, 0.88);
  backdrop-filter: blur(20px);
  animation: fade-in 0.3s var(--ease) both;
}
.call-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  text-align: center;
}
.call-avatar {
  width: 130px;
  height: 130px;
  border-radius: 40px;
  display: grid;
  place-items: center;
  font-size: var(--fs-56);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(139, 92, 246, 0.4);
  animation: pulse-glow 2.4s var(--ease-inout) infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--shadow-lg), 0 0 40px rgba(139, 92, 246, 0.35); }
  50% { box-shadow: var(--shadow-lg), 0 0 80px rgba(255, 95, 158, 0.45); }
}
.call-name {
  font-size: var(--fs-24);
  font-weight: 800;
}
.call-status {
  color: var(--text-3);
  font-size: var(--fs-14);
}
.call-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
}
.call-wave i {
  width: 4px;
  height: 12px;
  border-radius: 4px;
  background: var(--accent-grad-warm);
  animation: wave 0.9s var(--ease-inout) infinite;
}
.call-wave i:nth-child(2) { animation-delay: 0.1s; }
.call-wave i:nth-child(3) { animation-delay: 0.2s; }
.call-wave i:nth-child(4) { animation-delay: 0.3s; }
.call-wave i:nth-child(5) { animation-delay: 0.4s; }
.call-wave i:nth-child(6) { animation-delay: 0.5s; }
.call-wave i:nth-child(7) { animation-delay: 0.35s; }
.call-wave i:nth-child(8) { animation-delay: 0.25s; }
.call-wave i:nth-child(9) { animation-delay: 0.15s; }
@keyframes wave {
  0%, 100% { height: 8px; opacity: 0.5; }
  50% { height: 34px; opacity: 1; }
}
.call-timer {
  font-family: var(--font-mono);
  font-size: var(--fs-20);
  color: var(--text-2);
  letter-spacing: 1px;
}
.call-actions {
  display: flex;
  gap: var(--sp-4);
}
.call-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  color: var(--text-1);
  transition: all 0.18s var(--ease);
}
.call-btn:hover {
  transform: scale(1.08);
  background: var(--bg-4);
}
.call-btn.mute.active {
  background: var(--warning);
  color: #3a2600;
}
.call-btn.end {
  background: var(--danger);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(248, 113, 113, 0.4);
}

/* ---- Toast ---- */
.toast-wrap {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: center;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px 18px;
  border-radius: var(--r-md);
  background: var(--bg-3);
  border: 1px solid var(--line-1);
  box-shadow: var(--shadow-md);
  font-size: var(--fs-13);
  color: var(--text-1);
  animation: toast-in 0.3s var(--ease-bounce) both;
}
.toast.success {
  border-color: rgba(52, 211, 153, 0.4);
}
.toast.error {
  border-color: rgba(248, 113, 113, 0.4);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Empty state ---- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-12) var(--sp-6);
  color: var(--text-3);
  text-align: center;
}
.empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--bg-3);
  display: grid;
  place-items: center;
  color: var(--text-3);
}

/* ---- Wallet ---- */
.wallet-hero {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-6);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(139, 92, 246, 0.12));
  border: 1px solid var(--line-1);
  margin-bottom: var(--sp-6);
}
.wallet-balance {
  flex: 1;
}
.wallet-label {
  font-size: var(--fs-12);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.wallet-amount {
  font-size: var(--fs-34);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.diamond {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  clip-path: polygon(50% 0%, 100% 30%, 50% 100%, 0% 30%);
  display: inline-block;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-4);
}
.pack-card {
  padding: var(--sp-5);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}
.pack-count {
  font-size: var(--fs-28);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.pack-price {
  font-size: var(--fs-14);
  color: var(--text-2);
}
.pack-bonus {
  font-size: var(--fs-12);
  color: var(--success);
}

/* ---- Settings ---- */
.settings-section {
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line-1);
}
.settings-row:last-child {
  border-bottom: none;
}
.settings-label {
  font-weight: 500;
}
.settings-desc {
  font-size: var(--fs-12);
  color: var(--text-3);
}

/* Toggle */
.toggle {
  width: 46px;
  height: 26px;
  border-radius: var(--r-full);
  background: var(--bg-4);
  position: relative;
  cursor: pointer;
  transition: background 0.2s var(--ease);
  flex: none;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s var(--ease);
}
.toggle.on {
  background: var(--accent-grad);
}
.toggle.on::after {
  transform: translateX(20px);
}

/* ---- Select ---- */
.select {
  padding: 7px 12px;
  border-radius: var(--r-md);
  background: var(--bg-3);
  border: 1px solid var(--line-1);
  color: var(--text-1);
  outline: none;
  cursor: pointer;
}
.select:focus {
  border-color: rgba(139, 92, 246, 0.5);
}

/* ---- Page header ---- */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.page-title {
  font-size: var(--fs-28);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.page-sub {
  color: var(--text-3);
  font-size: var(--fs-14);
  margin-top: 2px;
}

/* ---- Search ---- */
.search-box {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 9px 14px;
  border-radius: var(--r-md);
  background: var(--bg-3);
  border: 1px solid var(--line-1);
  min-width: 220px;
}
.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-1);
  font-size: var(--fs-13);
}
.search-box:focus-within {
  border-color: rgba(139, 92, 246, 0.5);
}

/* ---- Section head ---- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.section-title {
  font-size: var(--fs-18);
  font-weight: 700;
}
