/* ==============================
   CSS Variables — BuddySearch Theme
   ============================== */
:root {
  --color-carnation: #F96566;
  --color-sea-pink: #EE9CA0;
  --color-wewak: #F0AAB4;
  --color-vista-white: #F9EFEF;
  --color-white: #ffffff;
  --color-dark: #3D4550;
  --color-dark-alt: #2e3540;
  --color-text: #3D4550;
  --color-text-muted: #7a8494;
  --color-border: #f0e0e0;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(249, 101, 102, 0.1);
  --shadow-md: 0 8px 32px rgba(249, 101, 102, 0.15);
  --shadow-lg: 0 20px 60px rgba(249, 101, 102, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==============================
   Reset & Base
   ============================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Disable double-tap zoom on iOS without removing pinch-to-zoom */
  touch-action: manipulation;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ==============================
   iOS Anti-Zoom Fix
   iOS auto-zooms when focused input font-size < 16px.
   We force 16px using font-size in px (not em/rem) so it
   stays at 16px even when html font-size scales down on mobile.
   ============================== */
input,
textarea,
select {
  font-size: 16px !important;
  -webkit-text-size-adjust: 100%;
}

/* ==============================
   Utility Classes
   ============================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 18px;
  }

  .section-tag {
    font-size: 0.72rem;
    padding: 5px 14px;
  }

  .section-title {
    font-size: clamp(28px, 6vw, 40px);
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .btn-primary,
  .btn-secondary,
  .btn-white,
  .btn-outline-white {
    font-size: 0.875rem;
    padding: 12px 24px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 14px;
  }

  .section-tag {
    font-size: 0.68rem;
    padding: 4px 12px;
  }

  .section-title {
    font-size: clamp(26px, 7vw, 36px);
  }

  .section-subtitle {
    font-size: 0.875rem;
    line-height: 1.65;
  }

  /* Landing page CTA buttons only — keep full width on small screens */
  .hero .btn-primary,
  .hero .btn-secondary,
  .hero .btn-white,
  .hero .btn-outline-white,
  .cta-section .btn-primary,
  .cta-section .btn-secondary,
  .cta-section .btn-white,
  .cta-section .btn-outline-white {
    width: 100%;
    justify-content: center;
    font-size: 0.85rem;
    padding: 11px 20px;
  }

  /* Dashboard buttons — compact but NOT full-width by default */
  .btn-primary,
  .btn-secondary,
  .btn-white,
  .btn-outline-white {
    font-size: 0.85rem;
    padding: 10px 20px;
  }
}

.section-tag {
  display: inline-block;
  background: var(--color-vista-white);
  color: var(--color-carnation);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-title span {
  color: var(--color-carnation);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 540px;
  line-height: 1.7;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-carnation);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(249, 101, 102, 0.35);
}

.btn-primary:hover {
  background: #e8555b;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(249, 101, 102, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-carnation);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 50px;
  border: 2px solid var(--color-carnation);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--color-vista-white);
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--color-carnation);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.6);
  transition: var(--transition);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  transform: translateY(-2px);
}
/* ============================================================
   Toast Notifications — Modern PWA Style
   ============================================================ */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 48px);
}

@media (max-width: 480px) {
  .toast-container {
    bottom: 80px; /* above mobile nav bar */
    right: 12px;
    left: 12px;
    max-width: 100%;
  }
}

/* ── Base toast ── */
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-family);
  min-width: 280px;
  max-width: 380px;
  pointer-events: all;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.07),
    0 10px 30px -5px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255,255,255,0.6) inset;
  animation: toast-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  will-change: transform, opacity;
}

@media (max-width: 480px) {
  .toast {
    min-width: 0;
    max-width: 100%;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 0.8rem;
    gap: 9px;
  }

  .toast__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .toast__icon svg {
    width: 14px;
    height: 14px;
  }

  .toast__msg {
    line-height: 1.4;
  }

  .toast__close {
    padding: 2px;
  }
}

/* Slide-in from right on desktop, up on mobile */
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (max-width: 480px) {
  @keyframes toast-in {
    from {
      opacity: 0;
      transform: translateY(16px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

/* ── Progress bar ── */
.toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 16px 16px;
  animation: toast-progress linear both;
  transform-origin: left;
}

@keyframes toast-progress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ── Icon container ── */
.toast__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
}

/* ── Message ── */
.toast__msg {
  flex: 1;
  line-height: 1.45;
  color: inherit;
}

/* ── Close button ── */
.toast__close {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.45;
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
  transition: opacity 0.15s, background 0.15s;
  font-family: inherit;
  color: inherit;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toast__close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}

/* ── Variants ── */
.toast--success {
  background: rgba(240, 253, 244, 0.95);
  color: #166534;
  border: 1px solid rgba(187, 247, 208, 0.8);
}
.toast--success .toast__icon {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}
.toast--success .toast__progress {
  background: #22c55e;
}

.toast--error {
  background: rgba(255, 241, 242, 0.95);
  color: #9f1239;
  border: 1px solid rgba(254, 205, 211, 0.8);
}
.toast--error .toast__icon {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}
.toast--error .toast__progress {
  background: #f43f5e;
}

.toast--info {
  background: rgba(240, 253, 244, 0.97);
  color: #166534;
  border: 1px solid rgba(187, 247, 208, 0.8);
}
.toast--info .toast__icon {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}
.toast--info .toast__progress {
  background: #22c55e;
}

.toast--warning {
  background: rgba(255, 251, 235, 0.95);
  color: #92400e;
  border: 1px solid rgba(253, 230, 138, 0.8);
}
.toast--warning .toast__icon {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}
.toast--warning .toast__progress {
  background: #f59e0b;
}
.spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spinner__ring {
  border-radius: 50%;
  border-style: solid;
  animation: spin 0.75s linear infinite;
}

.spinner--sm .spinner__ring { width: 18px; height: 18px; border-width: 2px; }
.spinner--md .spinner__ring { width: 32px; height: 32px; border-width: 3px; }
.spinner--lg .spinner__ring { width: 48px; height: 48px; border-width: 4px; }

.spinner--carnation .spinner__ring {
  border-color: rgba(249,101,102,0.2);
  border-top-color: #F96566;
}
.spinner--white .spinner__ring {
  border-color: rgba(255,255,255,0.25);
  border-top-color: white;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
/* ═══════════════════════════════════════════════════════════
   MembershipRequiredCard  — two-zone paywall card
   ═══════════════════════════════════════════════════════════ */

.mrc {
  width: 100%;
  max-width: 400px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-family);
}

@media (max-width: 480px) {
  .mrc {
    width: calc(100% - 32px);
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── Top gradient zone ── */
.mrc__header {
  background: linear-gradient(160deg, var(--color-carnation) 0%, #e84d6a 55%, #d63660 100%);
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  position: relative;
  /* subtle circles for depth */
  overflow: hidden;
}

.mrc__header::before,
.mrc__header::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.mrc__header::before {
  width: 200px;
  height: 200px;
  top: -60px;
  left: -60px;
}
.mrc__header::after {
  width: 160px;
  height: 160px;
  bottom: -50px;
  right: -40px;
}

.mrc__lock-bubble {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  margin-bottom: 0;
}

.mrc__tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}

.mrc__title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.mrc__subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  line-height: 1.45;
  max-width: 260px;
}

/* ── Bottom white zone ── */
.mrc__body {
  background: #ffffff;
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Benefits list */
.mrc__benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  width: 100%;
}

.mrc__benefit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f5e8e8;
}

.mrc__benefit-row:last-child {
  border-bottom: none;
}

.mrc__benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #fff0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.mrc__benefit-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.3;
}

/* Social proof row */
.mrc__social-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff5f5;
  border: 1px solid #f5dede;
  border-radius: 50px;
  padding: 8px 16px;
  margin-bottom: 18px;
  width: fit-content;
  align-self: center;
}

.mrc__avatars {
  display: flex;
  align-items: center;
}

.mrc__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff5f5;
  margin-left: -8px;
  flex-shrink: 0;
}

.mrc__avatars .mrc__avatar:first-child {
  margin-left: 0;
}

.mrc__social-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-dark);
}

/* CTA button */
.mrc__btn {
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--color-carnation) 0%, #e84d6a 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 20px rgba(249, 101, 102, 0.45);
  transition: var(--transition);
  font-family: var(--font-family);
  margin-bottom: 10px;
}

.mrc__btn:hover {
  box-shadow: 0 8px 28px rgba(249, 101, 102, 0.55);
  transform: translateY(-1px);
}

.mrc__btn:active {
  transform: translateY(0);
}

/* Pricing note */
.mrc__pricing {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0 0 10px;
  text-align: center;
}

.mrc__pricing strong {
  color: var(--color-dark);
}

/* Maybe later link */
.mrc__btn-later {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 4px 0;
  font-family: var(--font-family);
  transition: color 0.15s;
}

.mrc__btn-later:hover {
  color: var(--color-dark);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .mrc__header {
    padding: 18px 16px 20px;
    gap: 6px;
  }

  .mrc__lock-bubble {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .mrc__lock-bubble svg {
    width: 20px;
    height: 20px;
  }

  .mrc__tag {
    font-size: 10px;
  }

  .mrc__title {
    font-size: 17px;
  }

  .mrc__subtitle {
    font-size: 13px;
    max-width: 240px;
  }

  .mrc__body {
    padding: 14px 16px 14px;
  }

  .mrc__benefits {
    margin-bottom: 12px;
  }

  .mrc__benefit-row {
    padding: 7px 0;
    gap: 10px;
  }

  .mrc__benefit-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 14px;
  }

  .mrc__benefit-icon svg {
    width: 15px;
    height: 15px;
  }

  .mrc__benefit-text {
    font-size: 13px;
  }

  .mrc__social-proof {
    padding: 6px 12px;
    margin-bottom: 12px;
  }

  .mrc__social-text {
    font-size: 11.5px;
  }

  .mrc__btn {
    font-size: 14px;
    padding: 12px 20px;
    margin-bottom: 8px;
  }

  .mrc__pricing {
    font-size: 11px;
    margin-bottom: 0;
  }
}
/* ═══════════════════════════════════════════════════════════
   MembershipGate — blur wrapper + centered overlay
   ═══════════════════════════════════════════════════════════ */

.mg-wrapper {
  position: relative;
  height: calc(100vh - 80px);
  overflow: hidden;
}

.mg-blur {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
  height: 100%;
  overflow: hidden;
}

.mg-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 239, 239, 0.75);
  backdrop-filter: blur(2px);
  z-index: 10;
  padding: 16px;
}

/* On mobile: fix the card to viewport so it's never cut off */
@media (max-width: 768px) {
  .mg-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    padding: 16px;
    align-items: flex-start;
    padding-top: 24px;
    overflow-y: auto;
  }

  .mg-overlay .mrc {
    width: calc(100vw - 32px);
    max-width: 400px;
  }
}

/* ═══════════════════════════════════════════════════════════
   mg-overlay__stack — vertical stack: star banner + paywall
   ═══════════════════════════════════════════════════════════ */

.mg-overlay__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
}

/* ═══════════════════════════════════════════════════════════
   StarOfferBanner — compact purple banner above the paywall
   ═══════════════════════════════════════════════════════════ */

.mg-star-banner {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #8b5cf6 100%);
  color: #fff;
  border-radius: 16px;
  padding: 16px 42px 16px 16px; /* right padding for close button */
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(109, 40, 217, 0.45);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mg-star-banner__glow {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 110px;
  height: 110px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.mg-star-banner__icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
  filter: drop-shadow(0 2px 6px rgba(255, 200, 0, 0.5));
}

.mg-star-banner__content {
  flex: 1;
  min-width: 0;
}

.mg-star-banner__title {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 4px;
}

.mg-star-banner__body {
  font-size: 0.76rem;
  opacity: 0.88;
  line-height: 1.5;
  margin-bottom: 10px;
}

.mg-star-banner__expiry {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 3px 10px;
  margin-bottom: 10px;
  display: inline-block;
}

.mg-star-banner__btn {
  background: #fff;
  color: #6d28d9;
  border: none;
  border-radius: 50px;
  padding: 9px 20px;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s;
  font-family: var(--font-family);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.mg-star-banner__btn:hover { opacity: 0.9; }
.mg-star-banner__btn:disabled { opacity: 0.65; cursor: not-allowed; }

.mg-star-banner__error {
  font-size: 0.72rem;
  color: #fca5a5;
  font-weight: 600;
  margin: 6px 0 0;
}

.mg-star-banner__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: rgba(255, 255, 255, 0.85);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}

.mg-star-banner__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 480px) {
  .mg-overlay__stack {
    gap: 10px;
  }

  .mg-star-banner {
    border-radius: 14px;
    padding: 14px 38px 14px 14px;
  }

  .mg-star-banner__title {
    font-size: 0.83rem;
  }

  .mg-star-banner__body {
    font-size: 0.72rem;
  }
}
.cs-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-vista-white) 0%, #fff 55%, #fff5f5 100%);
  font-family: var(--font-family);
  position: relative;
  overflow: hidden;
  padding: 48px 24px;
}

/* Blobs */
.cs-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.cs-blob--1 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, var(--color-wewak), transparent);
  top: -160px;
  right: -120px;
  opacity: 0.5;
}

.cs-blob--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-sea-pink), transparent);
  bottom: -100px;
  left: -100px;
  opacity: 0.35;
}

.cs-blob--3 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--color-carnation), transparent);
  top: 45%;
  left: 30%;
  opacity: 0.1;
}

/* Inner */
.cs-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  max-width: 680px;
  width: 100%;
}

/* Logo */
.cs-logo {
  height: 120px;
  width: auto;
  border-radius: 20px;
  object-fit: contain;
  animation: cs-float 6s ease-in-out infinite;
}

@keyframes cs-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Badge */
.cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(249,101,102,0.1);
}

.cs-badge__dot {
  width: 8px;
  height: 8px;
  background: var(--color-carnation);
  border-radius: 50%;
  animation: cs-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes cs-pulse {
  0%, 100% { opacity: 1; transform: scale(1);   }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

/* Heading */
.cs-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

.cs-title__accent {
  background: linear-gradient(135deg, var(--color-carnation), var(--color-sea-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cs-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 500px;
  margin: 0;
}

/* Launch date label */
.cs-launch-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  background: white;
  border: 1px solid var(--color-border);
  padding: 8px 20px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(249,101,102,0.08);
  margin: -8px 0;
}

.cs-launch-label strong {
  color: var(--color-carnation);
  font-weight: 700;
}

/* Countdown */
.cs-countdown {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.cs-countdown__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 20px 24px;
  min-width: 90px;
  box-shadow: 0 4px 16px rgba(249,101,102,0.08);
  transition: transform 0.15s ease;
}

.cs-countdown__block:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(249,101,102,0.14);
}

.cs-countdown__value {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--color-carnation);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.cs-countdown__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

/* Notify form */
.cs-notify {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 460px;
}

.cs-notify__input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: var(--font-family);
  color: var(--color-dark);
  background: white;
  outline: none;
  transition: all 0.2s ease;
}

.cs-notify__input:focus {
  border-color: var(--color-carnation);
  box-shadow: 0 0 0 3px rgba(249,101,102,0.12);
}

.cs-notify__input::placeholder { color: #bbb; }

.cs-notify__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-carnation);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-family);
  padding: 14px 24px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(249,101,102,0.35);
  flex-shrink: 0;
}

.cs-notify__btn:hover {
  background: #e8555b;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,101,102,0.45);
}

/* Success state */
.cs-notify__success {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Service pills */
.cs-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 600px;
}

.cs-service-pill {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.2s ease;
  cursor: default;
}

.cs-service-pill:hover {
  border-color: var(--color-sea-pink);
  background: var(--color-vista-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249,101,102,0.1);
}

/* Footer */
.cs-footer {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 480px) {
  .cs-countdown {
    gap: 10px;
  }

  .cs-countdown__block {
    min-width: 70px;
    padding: 16px 14px;
  }

  .cs-countdown__value { font-size: 1.8rem; }

  .cs-notify {
    flex-direction: column;
  }

  .cs-notify__btn {
    justify-content: center;
  }
}
/* ── Modal Backdrop ─────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: backdrop-in 0.18s ease;
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Modal Panel ────────────────────────────────────────── */
.modal-panel {
  background: white;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  outline: none;
  animation: modal-in 0.22s cubic-bezier(0.34, 1.3, 0.64, 1);
  overflow: hidden;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Header ─────────────────────────────────────────────── */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-dark, #1c1c1c);
  margin: 0;
  letter-spacing: -0.02em;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f4f5f7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.modal-close:hover {
  background: #ffe4e4;
  color: var(--color-carnation, #f96566);
}

/* ── Body ───────────────────────────────────────────────── */
.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* When hideHeader is used — body fills the panel edge-to-edge */
.modal-body--no-header {
  padding: 0;
}

.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 2px; }

/* ── Mobile: slide up from bottom ──────────────────────── */
@media (max-width: 600px) {
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-panel {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    animation: modal-slide-up 0.28s cubic-bezier(0.34, 1.1, 0.64, 1);
  }

  @keyframes modal-slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .modal-body {
    padding: 20px 16px;
  }

  .modal-header {
    padding: 18px 16px 14px;
  }
}
/* ── ImageCropModal ──────────────────────────────────────── */
.image-crop-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Crop canvas container — needs a fixed height for react-easy-crop */
.image-crop-modal__canvas {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  background: #1c1c1c;
}

/* Zoom controls row */
.image-crop-modal__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}

.image-crop-modal__zoom-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted, #888);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Range slider — styled to match the app theme */
.image-crop-modal__slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: #eee;
  outline: none;
  cursor: pointer;
}

.image-crop-modal__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-carnation, #f96566), var(--color-sea-pink, #f9a8a8));
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(249, 101, 102, 0.35);
  cursor: pointer;
  transition: transform 0.15s;
}

.image-crop-modal__slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.image-crop-modal__slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-carnation, #f96566), var(--color-sea-pink, #f9a8a8));
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(249, 101, 102, 0.35);
  cursor: pointer;
}

/* Hint text */
.image-crop-modal__hint {
  font-size: 0.76rem;
  color: var(--color-text-muted, #999);
  text-align: center;
  margin: 0;
}

/* Action buttons */
.image-crop-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 4px;
}

.image-crop-modal__btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.15s;
}

.image-crop-modal__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.image-crop-modal__btn:not(:disabled):active {
  transform: scale(0.97);
}

.image-crop-modal__btn--cancel {
  background: white;
  color: var(--color-text-muted, #666);
  border: 1.5px solid var(--color-border, #e5e5e5);
}

.image-crop-modal__btn--cancel:hover:not(:disabled) {
  background: #f9f9f9;
}

.image-crop-modal__btn--save {
  background: linear-gradient(135deg, var(--color-carnation, #f96566), var(--color-sea-pink, #f9a8a8));
  color: white;
  box-shadow: 0 4px 12px rgba(249, 101, 102, 0.3);
}

.image-crop-modal__btn--save:hover:not(:disabled) {
  box-shadow: 0 6px 16px rgba(249, 101, 102, 0.4);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .image-crop-modal__canvas {
    height: 280px;
    border-radius: 12px;
  }

  .image-crop-modal__actions {
    flex-direction: column-reverse;
  }

  .image-crop-modal__btn {
    width: 100%;
    text-align: center;
  }
}
.onboarding {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 50%, #fff1f2 100%);
}

.onboarding__container {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: var(--border-radius-lg, 20px);
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 40px rgba(249, 101, 102, 0.08);
}

.onboarding__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.onboarding__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-dark, #3D4550);
  margin: 0 0 0.5rem;
}

.onboarding__subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
}

/* Progress */
.onboarding__progress {
  margin-bottom: 2rem;
}

.onboarding__progress-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.onboarding__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-carnation, #F96566), var(--color-sea-pink, #EE9CA0));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.onboarding__progress-text {
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 500;
}

/* Content */
.onboarding__content {
  min-height: 320px;
}

.onboarding__step {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Fields */
.onboarding__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.onboarding__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}

.onboarding__hint {
  font-size: 0.82rem;
  color: #9ca3af;
  margin: 0;
}

.onboarding__input {
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.onboarding__input:focus {
  border-color: var(--color-carnation, #F96566);
  box-shadow: 0 0 0 3px rgba(249, 101, 102, 0.08);
}

.onboarding__textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.2s;
}

.onboarding__textarea:focus {
  border-color: var(--color-carnation, #F96566);
  box-shadow: 0 0 0 3px rgba(249, 101, 102, 0.08);
}

.onboarding__char-count {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: right;
}

/* Gender Grid */
.onboarding__gender-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.onboarding__gender-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s;
}

.onboarding__gender-btn:hover {
  border-color: var(--color-wewak, #F0AAB4);
  background: var(--color-vista-white, #F9EFEF);
}

.onboarding__gender-btn--active {
  border-color: var(--color-carnation, #F96566);
  background: #fff1f2;
  color: var(--color-carnation, #F96566);
  box-shadow: 0 0 0 3px rgba(249, 101, 102, 0.1);
}

.onboarding__gender-icon {
  display: flex;
  align-items: center;
  color: var(--color-text-muted, #7a8494);
}

.onboarding__gender-btn--active .onboarding__gender-icon {
  color: var(--color-carnation, #F96566);
}

/* Dropdown */
.onboarding__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 50;
  margin-top: 4px;
}

.onboarding__dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 1rem;
  border: none;
  background: none;
  font-size: 0.9rem;
  cursor: pointer;
  color: #374151;
  transition: background 0.15s;
}

.onboarding__dropdown-item:hover,
.onboarding__dropdown-item.active {
  background: var(--color-vista-white, #F9EFEF);
  color: var(--color-carnation, #F96566);
}

/* Avatar */
.onboarding__avatar-section {
  align-items: center;
}

.onboarding__avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.onboarding__avatar-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e5e7eb;
}

.onboarding__avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-carnation, #F96566), var(--color-sea-pink, #EE9CA0));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
}

.onboarding__avatar-upload-btn {
  padding: 0.6rem 1.2rem;
  background: var(--color-vista-white, #F9EFEF);
  border: 1.5px solid var(--color-wewak, #F0AAB4);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-carnation, #F96566);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.onboarding__avatar-upload-btn:hover {
  background: #fff1f2;
  border-color: var(--color-carnation, #F96566);
}

/* Services Grid */
.onboarding__services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.onboarding__service-chip {
  padding: 0.6rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.onboarding__service-chip:hover {
  border-color: var(--color-wewak, #F0AAB4);
  background: var(--color-vista-white, #F9EFEF);
}

.onboarding__service-chip--active {
  border-color: var(--color-carnation, #F96566);
  background: #fff1f2;
  color: var(--color-carnation, #F96566);
}

.onboarding__check {
  flex-shrink: 0;
}

/* Social Links */
.onboarding__social-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.onboarding__social-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.onboarding__social-icon {
  flex-shrink: 0;
  width: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted, #7a8494);
}

.onboarding__social-row .onboarding__input {
  flex: 1;
}

/* Actions */
.onboarding__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f3f4f6;
}

.onboarding__actions-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.onboarding__btn {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.onboarding__btn--primary {
  background: var(--color-carnation, #F96566);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249, 101, 102, 0.3);
}

.onboarding__btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #e8555b;
  box-shadow: 0 6px 20px rgba(249, 101, 102, 0.4);
}

.onboarding__btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.onboarding__btn--secondary {
  background: #f3f4f6;
  color: #4b5563;
}

.onboarding__btn--secondary:hover:not(:disabled) {
  background: #e5e7eb;
}

/* Mobile */
@media (max-width: 600px) {
  .onboarding__container {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
  }

  .onboarding__title {
    font-size: 1.4rem;
  }

  .onboarding__gender-grid {
    grid-template-columns: 1fr 1fr;
  }

  .onboarding__btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}

.navbar--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(249, 101, 102, 0.1);
  padding: 12px 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__logo {
  flex-shrink: 0;
}

.navbar__logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.navbar__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}

.navbar__link:hover {
  color: var(--color-carnation);
  background: var(--color-vista-white);
}

.navbar__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.navbar__login {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
}

.navbar__login:hover {
  color: var(--color-carnation);
}

.navbar__signup {
  font-size: 0.875rem;
  padding: 10px 22px;
}

/* ── User Avatar & Dropdown ──────────────────────────────────────── */
.navbar__user {
  position: relative;
  flex-shrink: 0;
}

.navbar__avatar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 50px;
  transition: var(--transition);
}

.navbar__avatar:hover {
  background: var(--color-vista-white);
}

.navbar__avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-carnation);
}

.navbar__avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-carnation);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.navbar__avatar-chevron {
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

.navbar__avatar-chevron.open {
  transform: rotate(180deg);
}

/* Dropdown panel */
.navbar__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--color-border);
  overflow: hidden;
  z-index: 1100;
  animation: dropdownFadeIn 0.15s ease;
}

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

.navbar__dropdown-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--color-border);
}

.navbar__dropdown-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar__dropdown-role {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: capitalize;
  margin-top: 2px;
}

.navbar__dropdown-list {
  padding: 6px 0;
}

.navbar__dropdown-item {
  display: block;
  padding: 9px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  transition: var(--transition);
}

.navbar__dropdown-item:hover {
  background: var(--color-vista-white);
  color: var(--color-carnation);
}

.navbar__dropdown-divider {
  height: 1px;
  background: var(--color-border);
  margin: 4px 0;
}

.navbar__dropdown-logout {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e53e3e;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.navbar__dropdown-logout:hover {
  background: #fff5f5;
}

/* ── Mobile logged-in user section ───────────────────────────────── */
.navbar__mobile-user {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.navbar__mobile-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.navbar__mobile-avatar {
  flex-shrink: 0;
}

.navbar__mobile-user-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
}

.navbar__mobile-user-role {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: capitalize;
  margin-top: 2px;
}

.navbar__mobile-user-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.navbar__mobile-logout {
  width: 100%;
  padding: 12px 0;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e53e3e;
  background: none;
  border: none;
  border-top: 1px solid var(--color-border);
  cursor: pointer;
  margin-top: 4px;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}

.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.navbar__mobile {
  display: none;
  position: fixed;
  inset: 0;
  height: 100dvh;
  background: white;
  padding: 80px 24px 40px;
  flex-direction: column;
  gap: 24px;
  transform: translateY(-100%);
  opacity: 0;
  transition: var(--transition);
  z-index: 1001;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Close button inside mobile menu */
.navbar__mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-vista-white);
  color: var(--color-dark);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.navbar__mobile-close:hover {
  background: var(--color-carnation);
  color: white;
}

.navbar__mobile--open {
  transform: translateY(0);
  opacity: 1;
}

.navbar__mobile ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.navbar__mobile-link {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-dark);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.navbar__mobile-link:hover {
  color: var(--color-carnation);
}

.navbar__mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .navbar {
    padding: 14px 0;
  }

  .navbar--scrolled {
    padding: 10px 0;
  }

  .navbar__logo-img {
    height: 32px;
  }

  .navbar__links,
  .navbar__cta,
  .navbar__user {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__mobile {
    display: flex;
  }

  .navbar__mobile-link {
    font-size: 0.95rem;
    padding: 10px 0;
  }

  .navbar__mobile-cta .btn-primary,
  .navbar__mobile-cta .btn-secondary {
    font-size: 0.85rem;
    padding: 11px 20px;
  }
}

@media (max-width: 480px) {
  .navbar__mobile {
    padding: 72px 16px 24px;
    gap: 18px;
  }

  .navbar__mobile-link {
    font-size: 0.875rem;
    padding: 9px 0;
  }

  .navbar__mobile-cta .btn-primary,
  .navbar__mobile-cta .btn-secondary {
    font-size: 0.8rem;
    padding: 10px 18px;
  }
}
/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-vista-white) 0%, #fff 60%, #fff5f5 100%);
}

/* Blobs */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
}
.hero__blob--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--color-wewak), transparent);
  top: -120px; right: -100px;
}
.hero__blob--2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, var(--color-sea-pink), transparent);
  bottom: 0; left: -80px;
  opacity: 0.3;
}
.hero__blob--3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--color-carnation), transparent);
  top: 50%; left: 40%;
  opacity: 0.1;
}

/* Inner Layout */
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

/* ===== LEFT ===== */
.hero__content {
  display: flex;
  flex-direction: column;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  width: fit-content;
}

.hero__badge-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.2); }
}

/* Title — stacked large */
.hero__title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: var(--color-dark);
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--color-carnation), var(--color-sea-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* "Hire One" gets an underline decoration */
.hero__title-accent--underline {
  position: relative;
  display: inline-block;
}
.hero__title-accent--underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--color-carnation), var(--color-sea-pink));
  border-radius: 2px;
}

/* Feature pills row */
.hero__features {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  margin-bottom: 20px;
}

.hero__feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 4px 0;
}

.hero__feature:first-of-type {
  padding-left: 0;
}

.hero__feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.hero__feature-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
  white-space: nowrap;
}

.hero__feature-divider {
  width: 1px;
  height: 24px;
  background: var(--color-border);
  margin: 0 16px 0 0;
  flex-shrink: 0;
}

/* Subtitle */
.hero__subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}

/* CTA buttons */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero__cta-main {
  font-size: 1rem;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__cta-hire {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  padding: 15px 30px;
}

/* Italic tagline */
.hero__tagline {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-carnation);
  font-weight: 500;
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}

/* Stats */
.hero__stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.hero__stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-carnation), var(--color-sea-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* ===== RIGHT — Image ===== */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: visible;
}

/* Sparkle decorations */
.hero__sparkle {
  position: absolute;
  font-size: 1.4rem;
  color: var(--color-carnation);
  opacity: 0.55;
  animation: sparkle-float 3s ease-in-out infinite;
  pointer-events: none;
}
.hero__sparkle--1 { top: 10%; left: 5%; animation-delay: 0s; }
.hero__sparkle--2 { top: 25%; left: 2%; animation-delay: 1.2s; font-size: 0.9rem; }

@keyframes sparkle-float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.55; }
  50%       { transform: translateY(-8px) rotate(15deg); opacity: 0.9; }
}

.hero__img-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  animation: float-img 6s ease-in-out infinite;
}

.hero__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@keyframes float-img {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero__img-wrap {
    max-width: 460px;
  }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__visual {
    order: -1;
  }

  .hero__img-wrap {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 90px 0 60px;
  }

  .hero__title {
    font-size: clamp(2rem, 6.5vw, 2.8rem);
    margin-bottom: 18px;
  }

  .hero__features {
    gap: 0;
    flex-wrap: wrap;
    row-gap: 10px;
    margin-bottom: 16px;
  }

  .hero__feature {
    font-size: 0.78rem;
  }

  .hero__feature-divider {
    display: none;
  }

  .hero__subtitle {
    font-size: 0.92rem;
    margin-bottom: 20px;
    line-height: 1.65;
  }

  .hero__stat-value { font-size: 1.2rem; }
  .hero__stat-label { font-size: 0.7rem; }

  .hero__img-wrap {
    max-width: 360px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 80px 0 48px;
  }

  .hero__badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    margin-bottom: 16px;
  }

  .hero__title {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
    line-height: 1.1;
    margin-bottom: 14px;
  }

  .hero__features {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
  }

  .hero__feature {
    padding: 0;
  }

  .hero__feature-divider {
    display: none;
  }

  .hero__subtitle {
    font-size: 0.88rem;
    margin-bottom: 20px;
    max-width: 100%;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero__cta-main,
  .hero__cta-hire {
    font-size: 0.9rem;
    padding: 13px 20px;
    width: 100%;
    justify-content: center;
  }

  .hero__stats {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
    margin-top: 20px;
  }

  .hero__stat {
    align-items: center;
    gap: 1px;
    flex: 1;
    min-width: 0;
  }

  .hero__stat-value { font-size: 1rem; }
  .hero__stat-label {
    font-size: 0.58rem;
    white-space: normal;
    text-align: center;
  }

  .hero__img-wrap {
    max-width: 100%;
    padding: 0 8px;
  }

  .hero__sparkle {
    display: none;
  }
}
/* ==============================
   Active Buddies — Dissolve Grid
   ============================== */
.active-buddies {
  padding: 100px 0 80px;
  background: var(--color-dark);
  overflow: hidden;
}

/* ── Header ── */
.active-buddies__header {
  text-align: center;
  margin-bottom: 56px;
}

.active-buddies .section-title {
  color: white;
}
.active-buddies .section-title span {
  color: var(--color-sea-pink);
}
.active-buddies .section-subtitle {
  color: rgba(255, 255, 255, 0.55);
  margin: 0 auto;
  font-size: large;
}

/* Live badge */
.active-buddies__live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 101, 102, 0.12);
  border: 1px solid rgba(249, 101, 102, 0.25);
  color: var(--color-sea-pink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.ab-pulse {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: ab-pulse 2s ease-in-out infinite;
}

@keyframes ab-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%       { opacity: 0.8; transform: scale(1.15); box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* ── Dissolve Row — full viewport width ── */
.ab-dissolve-row {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Soft fade on left/right edges */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 4%,
    black 96%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 4%,
    black 96%,
    transparent 100%
  );
  margin-bottom: 12px;
}

/* On mobile, allow horizontal scrolling instead of clipping */
@media (max-width: 600px) {
  .ab-dissolve-row {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .ab-dissolve-row::-webkit-scrollbar {
    display: none;
  }
}

.ab-dissolve-track {
  display: flex;
  gap: 16px;
  padding: 16px 24px;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
}

/* ── Card ── */
.ab-card {
  position: relative;
  /* Each card takes exactly 1/8 of the track, minus gap share */
  flex: 0 0 calc((100% - 7 * 16px) / 8);
  /* Portrait ratio */
  aspect-ratio: 3 / 4;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: default;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.ab-card:hover {
  border-color: rgba(249, 101, 102, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px) scale(1.02);
}

/* ── Layers (stacked on top of each other) ── */
.ab-card__layer {
  position: absolute;
  inset: 0;
  transition: opacity 2s ease;
  will-change: opacity;
}

/* Visible layer */
.ab-card__layer--in {
  opacity: 1;
  z-index: 2;
}

/* Hidden layer */
.ab-card__layer--out {
  opacity: 0;
  z-index: 1;
}

/* Image fills the layer */
.ab-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Gradient overlay */
.ab-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 20, 0.85) 0%, transparent 55%);
  pointer-events: none;
}

/* Live pill */
.ab-card__live {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ab-card__live-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: ab-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Info */
.ab-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 14px 16px;
}

.ab-card__name {
  font-size: 0.88rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.ab-card__city {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* ── Hint text ── */
.ab-dissolve-hint {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  font-style: italic;
  margin: 0 0 0;
  letter-spacing: 0.02em;
}

/* ── Footer CTA ── */
.active-buddies__footer {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ab-dissolve-track {
    gap: 10px;
    padding: 12px 16px;
  }
  .ab-card {
    flex: 0 0 calc((100% - 7 * 10px) / 8);
  }
}

@media (max-width: 600px) {
  .active-buddies {
    padding: 80px 0 60px;
  }

  .active-buddies__header {
    margin-bottom: 40px;
  }

  /* Disable edge fade mask on mobile so cards aren't clipped */
  .ab-dissolve-row {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .ab-dissolve-track {
    gap: 10px;
    padding: 10px 12px;
    /* Allow horizontal scroll so all 8 cards are reachable */
    overflow-x: auto;
    /* Hide scrollbar visually but keep scroll functional */
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Don't shrink the track — let it grow to fit all cards */
    width: max-content;
    min-width: 100%;
  }

  .ab-dissolve-track::-webkit-scrollbar {
    display: none;
  }

  /* Show ~2.3 cards at a time so user knows it's scrollable */
  .ab-card {
    flex: 0 0 38vw;
    aspect-ratio: 2 / 3;
  }

  .ab-card__name {
    font-size: 0.78rem;
  }

  .ab-card__city {
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-card__layer {
    transition: none !important;
  }
}
/* ═══════════════════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════════════════ */
.hiw {
  padding: 100px 0;
  background: white;
}

/* ── header ── */
.hiw__header {
  text-align: center;
  margin-bottom: 64px;
}
.hiw__header .section-subtitle {
  margin: 0 auto;
}

/* ── two-column grid ── */
.hiw__tabs-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
}

/* ── flow column label pill ── */
.hiw__flow-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}
.hiw__flow-label--client {
  background: var(--color-vista-white);
  color: var(--color-carnation);
  border: 1px solid var(--color-wewak);
}
.hiw__flow-label--buddy {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

/* ── step list ── */
.hiw__steps {
  display: flex;
  flex-direction: column;
}

.hiw__step {
  position: relative;
  display: flex;
  gap: 18px;
}

/* ── numbered circle ── */
.hiw__step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hiw__step-num--client {
  background: linear-gradient(135deg, var(--color-carnation), var(--color-sea-pink));
  box-shadow: 0 4px 14px rgba(249, 101, 102, 0.35);
}
.hiw__step-num--buddy {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

/* ── vertical connector line ── */
.hiw__step-connector {
  position: absolute;
  left: 22px;
  top: 44px;
  width: 2px;
  height: calc(100% - 16px);
}
.hiw__step-connector--client {
  background: linear-gradient(to bottom, rgba(249, 101, 102, 0.35), transparent);
}
.hiw__step-connector--buddy {
  background: linear-gradient(to bottom, rgba(251, 191, 36, 0.45), transparent);
}

/* ── card ── */
.hiw__step-card {
  flex: 1;
  border-radius: 14px;
  padding: 20px 22px 22px;
  margin-bottom: 18px;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}
.hiw__step-card--client {
  background: #fdf6f6;
  border-color: rgba(249, 101, 102, 0.1);
}
.hiw__step-card--buddy {
  background: #fffdf5;
  border-color: rgba(245, 158, 11, 0.12);
}
.hiw__step-card:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  background: white;
}

/* ── card top row: icon left, stat right ── */
.hiw__step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

/* ── icon box ── */
.hiw__step-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.hiw__step-icon--client {
  background: rgba(249, 101, 102, 0.1);
  color: var(--color-carnation);
}
.hiw__step-icon--buddy {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}
.hiw__step-card:hover .hiw__step-icon--client {
  background: var(--color-carnation);
  color: white;
}
.hiw__step-card:hover .hiw__step-icon--buddy {
  background: #f59e0b;
  color: white;
}

/* ── stat pill ── */
.hiw__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 12px;
  min-width: 80px;
  text-align: center;
  flex-shrink: 0;
}
.hiw__stat--client {
  background: rgba(249, 101, 102, 0.07);
  border: 1px solid rgba(249, 101, 102, 0.18);
}
.hiw__stat--buddy {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.hiw__stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hiw__stat--client .hiw__stat-num {
  color: var(--color-carnation);
}
.hiw__stat--buddy .hiw__stat-num {
  color: #d97706;
}

.hiw__stat-lbl {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-top: 2px;
  white-space: nowrap;
}

/* ── skeleton shimmer while loading ── */
.hiw__stat-skeleton {
  width: 56px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: hiw-shimmer 1.4s infinite;
}
@keyframes hiw-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── text ── */
.hiw__step-title {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
}
.hiw__step-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ── "or" divider ── */
.hiw__divider {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 60px;
}
.hiw__divider span {
  width: 40px;
  height: 40px;
  background: var(--color-vista-white);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* ── earning highlight step (last buddy step) ── */
.hiw__step-card--buddy-earn {
  background: linear-gradient(135deg, #fffdf5 60%, #fef3c7 100%);
  border-color: rgba(245, 158, 11, 0.25);
}
.hiw__step-card--buddy-earn .hiw__step-icon--buddy {
  background: rgba(245, 158, 11, 0.18);
}
.hiw__step-card--buddy-earn:hover .hiw__step-icon--buddy {
  background: #f59e0b;
  color: white;
}
.hiw__stat--buddy-earn {
  background: rgba(245, 158, 11, 0.13);
  border: 1px solid rgba(245, 158, 11, 0.32);
}
.hiw__stat--buddy-earn .hiw__stat-num {
  color: #b45309;
  font-size: 1.35rem;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hiw__tabs-wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hiw__divider {
    padding-top: 0;
    border-top: 1px dashed var(--color-border);
  }
}

@media (max-width: 768px) {
  .hiw { padding: 64px 0; }
  .hiw__header { margin-bottom: 40px; }

  .hiw__flow-label { font-size: 0.84rem; padding: 9px 18px; margin-bottom: 22px; }

  .hiw__step { gap: 14px; }
  .hiw__step-num { width: 42px; height: 42px; font-size: 0.68rem; }
  .hiw__step-connector { left: 21px; top: 42px; }

  .hiw__step-card { padding: 16px 18px 18px; margin-bottom: 14px; }
  .hiw__step-card:hover { transform: none; }

  .hiw__step-icon { width: 38px; height: 38px; border-radius: 10px; }

  .hiw__stat { padding: 7px 12px; min-width: 72px; }
  .hiw__stat-num { font-size: 1.1rem; }

  .hiw__step-title { font-size: 1rem; }
  .hiw__step-desc  { font-size: 0.84rem; }
}

@media (max-width: 480px) {
  .hiw { padding: 52px 0; }
  .hiw__header { margin-bottom: 32px; }

  .hiw__step { gap: 12px; }
  .hiw__step-num { width: 40px; height: 40px; }
  .hiw__step-connector { left: 20px; top: 40px; }

  .hiw__step-card { padding: 14px 16px 16px; margin-bottom: 12px; }
  .hiw__step-head { margin-bottom: 12px; }

  .hiw__step-icon { width: 36px; height: 36px; border-radius: 9px; }

  .hiw__stat { padding: 6px 10px; min-width: 64px; }
  .hiw__stat-num { font-size: 1rem; }
  .hiw__stat-lbl { font-size: 0.6rem; }

  .hiw__step-title { font-size: 0.95rem; }
  .hiw__step-desc  { font-size: 0.82rem; }

  .hiw__divider span { width: 36px; height: 36px; font-size: 0.75rem; }
}
/* ==============================
   Services Section
   ============================== */
.services {
  padding: 100px 0;
  background: white;
}

/* ── Header ── */
.services__header {
  text-align: center;
  margin-bottom: 64px;
}

.services__header .section-subtitle {
  margin: 0 auto;
  max-width: 760px;
}

/* ── Grid ── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 64px;
}

/* ── Card ── */
.services__card {
  background: var(--color-vista-white);
  border-radius: var(--border-radius-lg);
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* Top accent bar — revealed on hover */
.services__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-carnation), var(--color-sea-pink));
  opacity: 0;
  transition: var(--transition);
}

.services__card:hover {
  border-color: rgba(249, 101, 102, 0.15);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background: white;
}

.services__card:hover::before {
  opacity: 1;
}

/* ── Card Top (icon + rate) ── */
.services__card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* Icon wrap — app-icon style: solid gradient square, white icon inside */
.services__card-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  /* gradient set via inline style per card */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.services__card:hover .services__card-icon-wrap {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

/* Rate badge */
.services__card-rate-badge {
  display: flex;
  align-items: baseline;
  gap: 2px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  padding: 4px 10px;
  white-space: nowrap;
  line-height: 1;
  transition: var(--transition);
}

.services__card:hover .services__card-rate-badge {
  border-color: rgba(249, 101, 102, 0.3);
  background: var(--color-vista-white);
}

.services__card-rate-amount {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-carnation);
  letter-spacing: -0.01em;
}

.services__card-rate-period {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* ── Card Body ── */
.services__card-body {
  flex: 1;
  margin-bottom: 22px;
}

.services__card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.services__card-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── Card Action ── */
.services__card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-carnation);
  border: 1.5px solid rgba(249, 101, 102, 0.3);
  background: transparent;
  border-radius: 50px;
  padding: 7px 14px;
  transition: var(--transition);
  align-self: flex-start;
  text-decoration: none;
}

.services__card-action:hover,
.services__card:hover .services__card-action {
  background: var(--color-carnation);
  border-color: var(--color-carnation);
  color: white;
  transform: translateX(2px);
}

/* ── Footer ── */
.services__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  flex-wrap: wrap;
}

.services__footer-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  max-width: 460px;
  line-height: 1.6;
}

/* ==============================
   Responsive
   ============================== */

/* 4 columns default — large desktop */
@media (max-width: 1200px) {
  .services__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 3 columns — tablet landscape */
@media (max-width: 960px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* 2 columns — tablet portrait / large mobile */
@media (max-width: 768px) {
  .services {
    padding: 64px 0;
  }

  .services__header {
    margin-bottom: 40px;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 40px;
  }

  .services__card {
    padding: 20px 16px 18px;
    border-radius: 16px;
  }

  /* Disable lift animation on touch */
  .services__card:hover {
    transform: none;
  }

  .services__card-top {
    margin-bottom: 14px;
    align-items: center;
  }

  .services__card-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .services__card-icon-wrap svg {
    width: 22px;
    height: 22px;
  }

  .services__card:hover .services__card-icon-wrap {
    transform: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  }

  .services__card-rate-badge {
    padding: 3px 8px;
  }

  .services__card-rate-amount {
    font-size: 0.75rem;
  }

  .services__card-rate-period {
    font-size: 0.62rem;
  }

  .services__card-body {
    margin-bottom: 16px;
  }

  .services__card-name {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }

  .services__card-desc {
    font-size: 0.78rem;
    line-height: 1.55;
  }

  .services__card-action {
    font-size: 0.74rem;
    padding: 6px 12px;
    gap: 5px;
  }

  .services__card-action svg {
    width: 12px;
    height: 12px;
  }

  .services__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .services__footer .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .services__footer-note {
    font-size: 0.8rem;
    text-align: center;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .services {
    padding: 52px 0;
  }

  .services__header {
    margin-bottom: 32px;
  }

  .services__grid {
    gap: 12px;
    margin-bottom: 32px;
  }

  .services__card {
    padding: 16px 14px 16px;
  }

  .services__card-top {
    margin-bottom: 12px;
  }

  .services__card-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .services__card-icon-wrap svg {
    width: 20px;
    height: 20px;
  }

  .services__card-rate-badge {
    padding: 3px 7px;
  }

  .services__card-rate-amount {
    font-size: 0.72rem;
  }

  .services__card-rate-period {
    font-size: 0.6rem;
  }

  .services__card-body {
    margin-bottom: 14px;
  }

  .services__card-name {
    font-size: 0.85rem;
  }

  .services__card-desc {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .services__card-action {
    font-size: 0.72rem;
    padding: 5px 11px;
  }

  .services__footer-note {
    font-size: 0.78rem;
  }
}

/* 1 column — very small mobile */
@media (max-width: 360px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .services__card {
    padding: 18px 16px;
  }
}
.features {
  padding: 100px 0;
  background: white;
}

.features__header {
  text-align: center;
  margin-bottom: 64px;
}

.features__header .section-subtitle {
  margin: 0 auto;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.features__card {
  background: var(--color-vista-white);
  border-radius: var(--border-radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.features__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-carnation), var(--color-sea-pink));
  opacity: 0;
  transition: var(--transition);
}

.features__card:hover {
  border-color: rgba(249, 101, 102, 0.15);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background: white;
}

.features__card:hover::before {
  opacity: 1;
}

.features__card-icon-wrap {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--color-carnation), var(--color-sea-pink));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
  transition: var(--transition);
}

.features__card:hover .features__card-icon-wrap {
  transform: scale(1.1) rotate(-3deg);
}

.features__card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.features__card-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .features {
    padding: 64px 0;
  }

  .features__header {
    margin-bottom: 40px;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .features__card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  /* Disable lift on touch */
  .features__card:hover {
    transform: none;
  }

  .features__card:hover .features__card-icon-wrap {
    transform: none;
  }

  .features__card-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    margin-bottom: 14px;
  }

  .features__card-icon-wrap svg {
    width: 20px;
    height: 20px;
  }

  .features__card-title {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .features__card-desc {
    font-size: 0.8rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .features {
    padding: 52px 0;
  }

  .features__header {
    margin-bottom: 32px;
  }

  .features__grid {
    gap: 12px;
  }

  .features__card {
    padding: 18px 16px;
  }

  .features__card-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 12px;
  }

  .features__card-icon-wrap svg {
    width: 18px;
    height: 18px;
  }

  .features__card-title {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .features__card-desc {
    font-size: 0.77rem;
    line-height: 1.55;
  }
}

/* 1 column — very small screens */
@media (max-width: 360px) {
  .features__grid {
    grid-template-columns: 1fr;
  }

  .features__card {
    padding: 20px 18px;
  }
}
/* ============================================================
   Earning Section  — rethemed to match ActiveBuddies palette
   ============================================================ */
.earning {
  position: relative;
  padding: 110px 0 120px;
  background: var(--color-dark);
  overflow: hidden;
  color: white;
}

/* ── Ambient blobs — carnation only, matching ActiveBuddies ── */
.earning__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.18;
}
.earning__blob--1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--color-carnation), transparent 70%);
  top: -160px; right: -80px;
}
.earning__blob--2 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, var(--color-sea-pink), transparent 70%);
  bottom: -120px; left: -80px;
}

/* ── Inner two-column grid ── */
.earning__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* ========================================
   LEFT COLUMN
   ======================================== */
.earning__left {
  display: flex;
  flex-direction: column;
}

/* Tag pill */
.earning__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(249, 101, 102, 0.12);
  color: #ff8a8b;
  border: 1px solid rgba(249, 101, 102, 0.35);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  width: fit-content;
  margin-bottom: 24px;
}

/* Heading */
.earning__title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.earning__title-highlight {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-carnation) 0%, var(--color-sea-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.earning__subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 420px;
}

/* ── Stats grid ── */
.earning__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}

.earning__stat {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px 14px 18px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  overflow: visible;
}

.earning__stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249,101,102,0.08), transparent);
  opacity: 0;
  transition: var(--transition);
  border-radius: inherit;
  pointer-events: none;
  overflow: hidden;
}

.earning__stat:hover {
  border-color: rgba(249, 101, 102, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.09);
}

.earning__stat:hover::before {
  opacity: 1;
}

.earning__stat-badge {
  position: absolute;
  top: -9px; right: 10px;
  background: var(--color-carnation);
  color: white;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 50px;
  letter-spacing: 0.06em;
  box-shadow: 0 3px 10px rgba(249, 101, 102, 0.45);
}

.earning__stat-value {
  font-size: 1.75rem;
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  letter-spacing: -0.02em;
}

.earning__stat-original {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: line-through;
}

.earning__stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* ── CTA button ── */
.earning__cta-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.earning__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-carnation);
  color: white;
  font-size: 1rem;
  font-weight: 800;
  padding: 16px 36px;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(249, 101, 102, 0.35);
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.earning__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: var(--transition);
}

.earning__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(249, 101, 102, 0.5);
  background: var(--color-sea-pink);
}

.earning__cta:hover::before {
  opacity: 1;
}

.earning__cta svg {
  transition: var(--transition);
  flex-shrink: 0;
}

.earning__cta:hover svg {
  transform: translateX(4px);
}

/* ========================================
   RIGHT COLUMN
   ======================================== */
.earning__right {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 36px 32px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.06);
}

.earning__how-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.earning__how-title::before,
.earning__how-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

/* Cards grid — 3 items: first two share top row, third spans full width */
.earning__how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.earning__how-grid .earning__how-card:last-child {
  grid-column: 1 / -1;
}

.earning__how-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 16px;
  display: flex;
  gap: 12px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.earning__how-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-carnation), var(--color-sea-pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.earning__how-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(249, 101, 102, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.earning__how-card:hover::after {
  transform: scaleX(1);
}

.earning__how-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.earning__how-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 5px;
  line-height: 1.3;
}

.earning__how-card-rate {
  font-size: 0.85rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-carnation), var(--color-sea-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  line-height: 1.2;
}

.earning__how-card-example {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

/* ── Trust strip ── */
.earning__trust {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.earning__trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.earning__trust-item:hover {
  color: rgba(255, 255, 255, 0.9);
}

.earning__trust-item svg {
  flex-shrink: 0;
  color: var(--color-carnation);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .earning__inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .earning__right {
    max-width: 660px;
    margin: 0 auto;
    width: 100%;
  }

  .earning__subtitle {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .earning {
    padding: 80px 0;
  }

  .earning__title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .earning__right {
    padding: 28px 22px;
  }

  .earning__how-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .earning__how-grid .earning__how-card:last-child {
    grid-column: auto;
  }

  .earning__trust {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .earning__stat:hover,
  .earning__how-card:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .earning {
    padding: 64px 0;
  }

  .earning__inner {
    gap: 40px;
  }

  .earning__tag {
    font-size: 0.68rem;
    padding: 5px 14px;
    margin-bottom: 16px;
  }

  .earning__title {
    font-size: clamp(1.9rem, 7.5vw, 2.4rem);
    margin-bottom: 16px;
  }

  .earning__subtitle {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }

  .earning__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 28px;
  }

  .earning__stat {
    padding: 26px 8px 14px;
    border-radius: 14px;
  }

  .earning__stat-badge {
    font-size: 0.55rem;
    padding: 2px 6px;
    top: -8px;
    right: 6px;
  }

  .earning__stat-value {
    font-size: 1.2rem;
  }

  .earning__stat-original {
    font-size: 0.66rem;
  }

  .earning__stat-label {
    font-size: 0.62rem;
  }

  .earning__cta {
    width: 100%;
    justify-content: center;
    padding: 15px 24px;
    font-size: 0.95rem;
  }

  .earning__right {
    padding: 22px 16px;
    border-radius: 18px;
  }

  .earning__how-title {
    font-size: 1.05rem;
    margin-bottom: 18px;
  }

  .earning__how-grid {
    gap: 10px;
    margin-bottom: 22px;
  }

  .earning__how-card {
    padding: 14px 12px;
    gap: 10px;
    border-radius: 14px;
  }

  .earning__how-icon {
    font-size: 1.4rem;
  }

  .earning__how-card-title {
    font-size: 0.86rem;
    margin-bottom: 4px;
  }

  .earning__how-card-rate {
    font-size: 0.82rem;
    margin-bottom: 3px;
  }

  .earning__how-card-example {
    font-size: 0.73rem;
  }

  .earning__trust {
    gap: 10px;
    padding-top: 18px;
  }

  .earning__trust-item {
    font-size: 0.78rem;
    gap: 7px;
  }
}
/* ============================================================
   Pricing Section
   ============================================================ */
.pricing {
  padding: 100px 0;
  background: var(--color-vista-white);
}

.pricing__header {
  text-align: center;
  margin-bottom: 64px;
}

.pricing__header .section-tag {
  font-size: 1rem;
  padding: 8px 22px;
}

.pricing__header .section-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}

.pricing__header .section-subtitle {
  margin: 0 auto;
}

/* ── Grid ── */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* ============================================================
   Card base
   ============================================================ */
.pricing__card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 24px 22px;
  border: 1.5px solid #ebebeb;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pricing__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

/* ── Highlighted (Premium) card ── */
.pricing__card--highlighted {
  border: 2px solid var(--accent, #f96566);
  box-shadow: 0 8px 32px rgba(249, 101, 102, 0.14);
}

.pricing__card--highlighted:hover {
  box-shadow: 0 16px 48px rgba(249, 101, 102, 0.22);
}

/* ── Most Popular badge ── */
.pricing__badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #f96566;
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 50px;
  white-space: nowrap;
}

/* ── Inline discount tag (inside price row) ── */
.pricing__discount-tag {
  display: inline-flex;
  align-items: center;
  background: #fff3cd;
  color: #b45309;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 50px;
  white-space: nowrap;
  margin-left: 4px;
  align-self: center;
}

.pricing__card--highlighted .pricing__discount-tag {
  background: rgba(249, 101, 102, 0.12);
  color: #f96566;
}

/* ── Icon circle ── */
.pricing__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--icon-bg, #eef3fd);
  color: var(--accent, #5b8dee);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

/* ── Plan name & tagline ── */
.pricing__plan-header {
  margin-bottom: 16px;
}

.pricing__plan-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.pricing__card--highlighted .pricing__plan-name {
  color: var(--accent, #f96566);
}

.pricing__tagline {
  font-size: 0.82rem;
  color: #888;
  line-height: 1.45;
}

/* ── Price ── */
.pricing__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

/* ── Per month label ── */
.pricing__per-month {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 18px;
  margin-top: 0;
  flex-wrap: wrap;
}

.pricing__per-month-amount {
  font-size: 1rem;
  font-weight: 700;
  color: #444;
}

.pricing__card--highlighted .pricing__per-month-amount {
  color: var(--accent, #f96566);
}

.pricing__per-month-label {
  font-size: 0.75rem;
  color: #aaa;
  font-weight: 400;
}

.pricing__price-amount {
  font-size: 2.4rem;
  font-weight: 900;
  color: #1a1a2e;
  line-height: 1;
  letter-spacing: -0.02em;
}

.pricing__card--highlighted .pricing__price-amount {
  color: var(--accent, #f96566);
}

.pricing__price-original {
  font-size: 1rem;
  color: #aaa;
  font-weight: 500;
  text-decoration: line-through;
}

/* ── Features ── */
.pricing__features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
  flex: 1;
  list-style: none;
  padding: 0;
  margin-top: 0;
}

.pricing__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.855rem;
  color: #444;
  line-height: 1.4;
}

.pricing__card--highlighted .pricing__feature {
  color: #333;
}

.pricing__feature-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--icon-bg, #eef3fd);
  color: var(--accent, #5b8dee);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Excluded / not-included feature row ── */
.pricing__feature--excluded {
  opacity: 0.45;
}

.pricing__feature-check--no {
  background: #f1f1f4;
  color: #bbb;
}

/* ── CTA button ── */
.pricing__cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid var(--accent, #5b8dee);
  color: var(--accent, #5b8dee);
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.01em;
  margin-top: auto;
}

.pricing__cta:hover {
  background: var(--accent, #5b8dee);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Solid CTA for highlighted card */
.pricing__cta--solid {
  background: var(--accent, #f96566);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(249, 101, 102, 0.35);
}

.pricing__cta--solid:hover {
  background: #e04f5a;
  color: white;
  box-shadow: 0 8px 26px rgba(249, 101, 102, 0.45);
}

/* ── Taxes note ── */
.pricing__taxes {
  text-align: center;
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 12px;
  margin-bottom: 0;
}

/* ── Bottom note ── */
.pricing__note {
  text-align: center;
  margin-top: 40px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ============================================================
   Tablet: 2-column
   ============================================================ */
@media (max-width: 1100px) {
  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   Mobile Carousel
   ============================================================ */
.pricing__carousel-wrap {
  display: none;
}

@media (max-width: 900px) {
  .pricing__grid {
    display: none;
  }

  .pricing__carousel-wrap {
    display: block;
  }

  .pricing {
    padding: 64px 0;
  }

  .pricing__header {
    margin-bottom: 40px;
  }

  .pricing__carousel-track {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    margin: 0 -24px;
    padding: 24px 24px 8px;
  }

  .pricing__carousel-track::-webkit-scrollbar {
    display: none;
  }

  .pricing__carousel-slide {
    flex: 0 0 calc(100vw - 48px);
    scroll-snap-align: center;
    padding: 0 8px;
    box-sizing: border-box;
    display: flex;
  }

  .pricing__carousel-slide .pricing__card {
    width: 100%;
    padding: 28px 22px 22px;
    border-radius: 20px;
    transform: none !important;
    min-height: 480px;
    height: 100%;
  }

  .pricing__carousel-slide .pricing__card:hover {
    transform: none !important;
    box-shadow: none;
  }

  .pricing__carousel-slide .pricing__card--highlighted:hover {
    transform: none !important;
    box-shadow: 0 8px 32px rgba(249, 101, 102, 0.14);
  }

  /* Dots */
  .pricing__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
  }

  .pricing__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--color-border);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
  }

  .pricing__dot--active {
    width: 24px;
    border-radius: 4px;
    background: var(--color-carnation);
  }

  .pricing__note {
    margin-top: 28px;
    font-size: 0.8rem;
    padding: 0 4px;
  }
}

@media (max-width: 480px) {
  .pricing {
    padding: 52px 0;
  }

  .pricing__header {
    margin-bottom: 32px;
  }

  .pricing__carousel-track {
    margin: 0 -18px;
    padding: 20px 18px 8px;
  }

  .pricing__carousel-slide {
    flex: 0 0 calc(100vw - 36px);
    padding: 0 6px;
  }

  .pricing__carousel-slide .pricing__card {
    padding: 24px 18px 20px;
    min-height: 440px;
  }

  .pricing__price-amount {
    font-size: 2rem;
  }

  .pricing__feature {
    font-size: 0.82rem;
  }

  .pricing__features {
    gap: 9px;
    margin-bottom: 22px;
  }
}
/* ============================================================
   Testimonials — Flowing Marquee Carousel
   ============================================================ */
.testimonials {
  padding: 100px 0 80px;
  background: white;
  overflow: hidden;
  max-width: 100vw;
}

/* ── Header ── */
.testimonials__header {
  text-align: center;
  margin-bottom: 64px;
}

.testimonials__header .section-subtitle {
  margin: 0 auto;
}

/* ── Marquee wrapper ── */
.tm-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.tm-marquee--rev {
  margin-bottom: 0;
}

/* ── Track ── */
.tm-marquee__track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

.tm-marquee__track--fwd {
  animation: tm-scroll-fwd 45s linear infinite;
}

.tm-marquee__track--rev {
  animation: tm-scroll-rev 50s linear infinite;
}

/* Pause on hover */
.tm-marquee:hover .tm-marquee__track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .tm-marquee__track { animation: none !important; }
}

@keyframes tm-scroll-fwd {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-100% / 3)); }
}

@keyframes tm-scroll-rev {
  0%   { transform: translateX(calc(-100% / 3)); }
  100% { transform: translateX(0); }
}

/* ── Card ── */
.tm-card {
  flex-shrink: 0;
  width: clamp(280px, 24vw, 380px);
  background: var(--color-vista-white, #fdf8f8);
  border: 1px solid rgba(249, 101, 102, 0.1);
  border-radius: 20px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  text-align: left;
}

.tm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(249, 101, 102, 0.12);
  border-color: rgba(249, 101, 102, 0.35);
  background: white;
}

/* Left — avatar */
.tm-card__avatar-wrap {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid rgba(249, 101, 102, 0.3);
  box-shadow: 0 4px 14px rgba(249, 101, 102, 0.15);
}

.tm-card__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Right — body */
.tm-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Name + role */
.tm-card__author-info {
  margin-bottom: 8px;
}

.tm-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-dark, #1a1a2e);
  margin-bottom: 3px;
}

.tm-card__meta {
  font-size: 0.75rem;
  color: var(--color-text-muted, #888);
}

/* Stars */
.tm-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
}

.tm-star {
  font-size: 0.85rem;
  color: #d1d5db;
}

.tm-star--on {
  color: #f59e0b;
}

/* Quote */
.tm-card__text {
  font-size: 0.85rem;
  color: var(--color-text, #555);
  line-height: 1.7;
  font-style: italic;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .testimonials {
    padding: 72px 0 60px;
  }

  .testimonials__header {
    margin-bottom: 44px;
  }

  .tm-card {
    width: 80vw;
    padding: 18px;
    border-radius: 16px;
    gap: 14px;
  }

  .tm-card__avatar-wrap {
    width: 58px;
    height: 58px;
  }

  .tm-card__text {
    font-size: 0.76rem;
  }

  .tm-card__name {
    font-size: 0.8rem;
  }

  .tm-card__meta {
    font-size: 0.66rem;
  }
}
.cta-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--color-carnation) 0%, #d94f5a 60%, #c94055 100%);
  overflow: hidden;
  text-align: center;
}

.cta-section__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta-section__blob--1 {
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.08);
  top: -100px;
  left: -80px;
}

.cta-section__blob--2 {
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.06);
  bottom: -80px;
  right: -60px;
}

.cta-section__inner {
  position: relative;
  z-index: 1;
}

.cta-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 14px;
  border-radius: 50px;
}

.cta-section__live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7);
  animation: cta-live-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes cta-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7); }
  60%  { box-shadow: 0 0 0 6px rgba(250, 204, 21, 0); }
  100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); }
}

.cta-section__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cta-section__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-section__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cta-section__note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}

@media (max-width: 768px) {
  .cta-section {
    padding: 80px 0;
  }

  .cta-section__title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .cta-section__subtitle {
    font-size: 0.95rem;
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .cta-section {
    padding: 64px 0;
  }

  .cta-section__eyebrow {
    font-size: 0.7rem;
    margin-bottom: 14px;
  }

  .cta-section__title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    margin-bottom: 14px;
  }

  .cta-section__subtitle {
    font-size: 0.875rem;
    margin-bottom: 28px;
  }

  .cta-section__note {
    font-size: 0.75rem;
  }

  .cta-section__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-section__actions a {
    justify-content: center;
  }
}
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.75);
  padding: 80px 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__logo-link {
  display: inline-block;
  margin-bottom: 16px;
}

.footer__logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  filter: brightness(0.95);
}

.footer__brand-desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.footer__social {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer__social:hover {
  background: var(--color-carnation);
  border-color: var(--color-carnation);
  color: white;
  transform: translateY(-2px);
}

/* Links Grid */
.footer__links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer__col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 20px;
}

.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer__col-link:hover {
  color: var(--color-sea-pink);
}

/* Bottom */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer__copy-link {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: var(--transition);
}

.footer__copy-link:hover { color: var(--color-sea-pink); }

.footer__made {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* Inline legal links row */
.footer__legal-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer__legal-link {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: var(--transition);
}

.footer__legal-link:hover { color: var(--color-sea-pink); }

.footer__legal-sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.78rem;
}

/* Responsive */
@media (max-width: 1000px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 700px) {
  .footer__links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 64px 0 0;
  }

  .footer__brand-desc,
  .footer__col-link {
    font-size: 0.8rem;
  }

  .footer__col-title {
    font-size: 0.72rem;
    margin-bottom: 14px;
  }

  .footer__copy,
  .footer__made,
  .footer__legal-link,
  .footer__legal-sep {
    font-size: 0.72rem;
  }

  .footer__links {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer__legal-links {
    gap: 4px;
  }
}
/* ==============================
   Auth Pages — Signup & Login
   ============================== */
.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  overflow: hidden;
  font-family: var(--font-family);
}

/* ==============================
   LEFT PANEL
   ============================== */
.auth-page__left {
  background: linear-gradient(150deg, var(--color-carnation) 0%, #d44350 50%, #b83348 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  height: 100%;
}

/* Blobs */
.auth-deco__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.auth-deco__blob--1 {
  width: 480px;
  height: 480px;
  background: rgba(255,255,255,0.07);
  bottom: -140px;
  right: -120px;
}

.auth-deco__blob--2 {
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.06);
  top: -80px;
  left: -80px;
}

.auth-deco__blob--3 {
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,0.05);
  top: 45%;
  right: 10%;
}

/* Inner content */
.auth-left__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  width: 100%;
  gap: 20px;
  overflow: hidden;
  height: 100%;
  justify-content: space-between;
}

/* Logo */
.auth-left__logo-link {
  display: inline-block;
}

.auth-page__logo {
  height: 52px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

/* Headline */
.auth-left__headline {
  margin-bottom: 0;
}

.auth-left__title {
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 900;
  color: white;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.auth-left__title-accent {
  color: rgba(255,255,255,0.75);
}

.auth-left__sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  margin-right: 10px;
}

/* Feature cards */
.auth-left__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.auth-left__feature-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
  max-width: 100%;
}

.auth-left__feature-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(3px);
}

.auth-left__feature-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.auth-left__feature-body {
  flex: 1;
  min-width: 0;
}

.auth-left__feature-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  line-height: 1.25;
  margin-bottom: 2px;
}

.auth-left__feature-desc {
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
}

.auth-left__feature-badge {
  position: absolute;
  top: -1px;
  right: 10px;
  background: #FFD93D;
  color: #3D4550;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Stats row */
.auth-left__stats {
  display: flex;
  gap: 0;
  justify-content: space-between;
  margin-bottom: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.auth-left__stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.auth-left__stat-value {
  font-size: 1.25rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.auth-left__stat-label {
  font-size: 0.67rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Testimonial */
.auth-left__quote {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 20px 22px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.auth-left__quote p {
  font-size: 0.875rem;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  line-height: 1.65;
  margin-bottom: 10px;
}

.auth-left__quote-author {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
}

/* ==============================
   RIGHT PANEL — Form
   ============================== */
.auth-page__right {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 32px 24px;
  overflow-y: auto;
  height: 100%;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card__title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.auth-card__sub {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

/* Role toggle */
.auth-role-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  background: var(--color-vista-white);
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 24px;
}

.auth-role-btn {
  padding: 10px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-family);
  color: var(--color-text-muted);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: transparent;
}

.auth-role-btn--active {
  background: white;
  color: var(--color-carnation);
  box-shadow: var(--shadow-sm);
}

/* Form fields */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}

.auth-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
}

.auth-form__optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.auth-form__input {
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: var(--font-family);
  color: var(--color-dark);
  background: white;
  transition: var(--transition);
  outline: none;
}

.auth-form__input:focus {
  border-color: var(--color-carnation);
  box-shadow: 0 0 0 3px rgba(249, 101, 102, 0.12);
}

.auth-form__input::placeholder { color: #bbb; }

.auth-form__input--error {
  border-color: #e8555b;
  background: #fff8f8;
}

.auth-form__input--error:focus {
  border-color: #e8555b;
  box-shadow: 0 0 0 3px rgba(232, 85, 91, 0.15);
}

.auth-form__error {
  font-size: 0.78rem;
  color: #d63b42;
  line-height: 1.4;
  margin-top: 2px;
}

/* Inline server/API error banner */
.auth-form__api-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #fff2f2;
  border: 1.5px solid #f5c6c8;
  color: #c0303a;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.45;
}

.auth-form__api-error::before {
  content: '⚠';
  font-size: 0.9rem;
  flex-shrink: 0;
}

.auth-consent--error .auth-consent__checkmark {
  border-color: #e8555b;
}

.auth-form__submit {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 0.95rem;
  margin-top: 4px;
  min-height: 50px;
}

.auth-form__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Switch line */
.auth-card__switch {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.auth-card__link {
  color: var(--color-carnation);
  font-weight: 600;
}

.auth-card__link:hover { text-decoration: underline; }

/* ── Consent checkbox ── */
.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-top: -4px;
}

.auth-consent__box {
  flex-shrink: 0;
  position: relative;
  margin-top: 1px;
}

.auth-consent__input {
  position: absolute;
  opacity: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0;
}

.auth-consent__checkmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--color-border);
  background: white;
  color: white;
  transition: var(--transition);
  pointer-events: none;
}

.auth-consent__input:checked + .auth-consent__checkmark {
  background: var(--color-carnation);
  border-color: var(--color-carnation);
  box-shadow: 0 2px 8px rgba(249, 101, 102, 0.35);
}

.auth-consent__input:focus-visible + .auth-consent__checkmark {
  outline: 2px solid var(--color-carnation);
  outline-offset: 2px;
}

.auth-consent__text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  user-select: none;
}

.auth-consent__link {
  color: var(--color-carnation);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.auth-consent__link:hover { text-decoration: underline; }

/* ==============================
   Responsive
   ============================== */
@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .auth-page__left {
    height: auto;
    overflow: visible;
  }

  .auth-page__right {
    height: auto;
  }

  .auth-left__inner {
    padding: 32px 28px;
    gap: 20px;
    overflow: visible;
  }

  .auth-left__logo-link {
    margin-bottom: 0;
  }

  .auth-page__logo {
    height: 48px;
  }

  /* Compact the left panel on tablet — hide stats + quote */
  .auth-left__stats,
  .auth-left__quote {
    display: none;
  }

  .auth-left__headline {
    margin-bottom: 0;
  }

  .auth-left__features {
    margin-bottom: 0;
    flex: none;
    overflow: visible;
  }

  .auth-left__title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .auth-left__inner {
    padding: 24px 18px;
  }

  .auth-page__logo {
    height: 38px;
  }

  .auth-left__features {
    display: none;
  }
}

/* ── Password show/hide toggle ── */
.auth-form__input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-form__input--has-toggle {
  padding-right: 44px;
  width: 100%;
}

.auth-form__pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s;
  line-height: 0;
}

.auth-form__pw-toggle:hover {
  color: var(--color-carnation);
}

.auth-form__pw-toggle:focus-visible {
  outline: 2px solid var(--color-carnation);
  outline-offset: 2px;
}

/* ==============================
   OTP & Mode-toggle additions
   ============================== */

/* Login mode toggle (Password / OTP via SMS) */
.auth-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--color-vista-white, #f6f6f6);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 24px;
}

.auth-mode-btn {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-family);
  color: var(--color-text-muted, #888);
  transition: var(--transition, 0.2s);
  cursor: pointer;
  border: none;
  background: transparent;
  text-align: center;
}

.auth-mode-btn--active {
  background: white;
  color: var(--color-carnation, #f96566);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* OTP 6-digit input row */
.otp-input-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.otp-digit {
  width: 48px;
  height: 52px;
  max-width: 52px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  border: 1.5px solid var(--color-border, #e0e0e0);
  border-radius: 10px;
  outline: none;
  background: white;
  color: var(--color-dark, #1a1a1a);
  transition: border-color 0.15s, box-shadow 0.15s;
  caret-color: var(--color-carnation, #f96566);
  font-family: var(--font-family);
  flex-shrink: 0;
}

.otp-digit:focus {
  border-color: var(--color-carnation, #f96566);
  box-shadow: 0 0 0 3px rgba(249, 101, 102, 0.12);
}

.otp-digit--filled {
  border-color: var(--color-carnation, #f96566);
  background: #fff5f5;
}

/* "OTP sent to X. Change" line */
.auth-otp-sent-msg {
  font-size: 0.875rem;
  color: var(--color-text-muted, #888);
  line-height: 1.5;
}

.auth-otp-sent-msg strong {
  color: var(--color-dark, #1a1a1a);
}

/* "Change" inline button */
.auth-otp-change-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-carnation, #f96566);
  font-weight: 600;
  font-size: inherit;
  cursor: pointer;
  font-family: var(--font-family);
  text-decoration: underline;
}

.auth-otp-change-btn:hover {
  opacity: 0.8;
}

/* Resend row */
.auth-otp-resend {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
}

.auth-otp-resend__timer {
  font-size: 0.8rem;
  color: var(--color-text-muted, #888);
}

.auth-otp-resend__btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-carnation, #f96566);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-family);
}

.auth-otp-resend__btn:hover {
  text-decoration: underline;
}

.auth-otp-resend__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Phone input with +91 prefix ── */
.auth-phone-input-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--color-border, #e0e0e0);
  border-radius: 10px;
  overflow: hidden;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-phone-input-wrapper:focus-within {
  border-color: var(--color-carnation, #f96566);
  box-shadow: 0 0 0 3px rgba(249, 101, 102, 0.12);
}

.auth-form__input--error + .auth-phone-input-wrapper,
.auth-phone-input-wrapper:has(.auth-form__input--error) {
  border-color: #e8555b;
}

.auth-phone-prefix {
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted, #888);
  background: var(--color-vista-white, #f6f6f6);
  border-right: 1.5px solid var(--color-border, #e0e0e0);
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  user-select: none;
  min-height: 46px;
}

.auth-phone-input {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  flex: 1;
  padding-left: 12px;
}

.auth-phone-input:focus {
  border: none;
  box-shadow: none;
  outline: none;
}
/* ─────────────────────────────────────────────────────────────────────────────
   PWA Install Banner
───────────────────────────────────────────────────────────────────────────── */

.pwa-banner {
  position: fixed;
  bottom: calc(64px + 12px); /* sits just above the bottom nav on mobile */
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 32px));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 20px;
  z-index: 9999;
  animation: pwa-slide-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  border: 1px solid rgba(229, 62, 62, 0.12);
}

/* On desktop, show at bottom-right */
@media (min-width: 768px) {
  .pwa-banner {
    bottom: 24px;
    left: auto;
    right: 24px;
    transform: none;
    animation: pwa-slide-in-right 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
}

@keyframes pwa-slide-up {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes pwa-slide-in-right {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Close button ─────────────────────────────────────────── */
.pwa-banner__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.pwa-banner__close:hover {
  color: #374151;
  background: #f3f4f6;
}

/* ── App icon ─────────────────────────────────────────────── */
.pwa-banner__app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: contain;
}

.pwa-banner__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-banner__icon-wrap--bell {
  background: #fef3f2;
  color: #e53e3e;
}

/* ── Body row ─────────────────────────────────────────────── */
.pwa-banner__body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  padding-right: 24px; /* space for close button */
}

.pwa-banner__title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 4px;
}

.pwa-banner__subtitle {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

/* ── Actions ──────────────────────────────────────────────── */
.pwa-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pwa-banner__btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pwa-banner__btn--primary {
  background: #e53e3e;
  color: #fff;
}

.pwa-banner__btn--primary:hover {
  background: #c53030;
}

.pwa-banner__btn--notify {
  background: #fef3f2;
  color: #e53e3e;
  border: 1px solid rgba(229, 62, 62, 0.2);
}

.pwa-banner__btn--notify:hover {
  background: #fee2e2;
}

.pwa-banner__btn--skip {
  background: transparent;
  color: #9ca3af;
  font-weight: 500;
  font-size: 13px;
}

.pwa-banner__btn--skip:hover {
  color: #374151;
}

.pwa-banner__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── iOS variant ──────────────────────────────────────────── */
.pwa-banner--ios .pwa-banner__ios-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding-right: 24px;
}

.pwa-banner__ios-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pwa-banner__ios-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
}

.pwa-banner__step-icon {
  width: 32px;
  height: 32px;
  background: #fef3f2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #e53e3e;
  font-size: 14px;
  font-weight: 700;
}

/* ── Notify variant ───────────────────────────────────────── */
.pwa-banner--notify .pwa-banner__body {
  margin-bottom: 16px;
}
/* ============================================================
   Social App Layout — Authenticated Shell
   Replaces the old CRM sidebar dashboard with a modern
   social-platform layout: top nav (desktop) + bottom nav (mobile)
   ============================================================ */

/* ── Root shell ──────────────────────────────────────────── */
.app-shell {
  height: 100vh;
  height: 100dvh; /* dvh shrinks when the soft keyboard opens */
  background: #f4f5f7;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Top Navigation Bar ──────────────────────────────────── */
.app-topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: 62px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(249, 101, 102, 0.1);
  box-shadow: 0 2px 16px rgba(249, 101, 102, 0.08);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
}

.app-topnav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.app-topnav__logo img {
  height: 34px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

/* Search bar in nav */
.app-topnav__search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f5f7;
  border: 1.5px solid transparent;
  border-radius: 50px;
  padding: 8px 16px;
  flex: 1;
  max-width: 340px;
  margin: 0 auto;
  transition: var(--transition);
}

.app-topnav__search:focus-within {
  background: white;
  border-color: var(--color-carnation);
  box-shadow: 0 0 0 3px rgba(249, 101, 102, 0.1);
}

.app-topnav__search svg {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.app-topnav__search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.875rem;
  font-family: var(--font-family);
  color: var(--color-text);
  width: 100%;
}

.app-topnav__search input::placeholder {
  color: var(--color-text-muted);
}

/* Nav action icons */
.app-topnav__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

/* Hide chat & bell icons on desktop — sidebar handles navigation */
@media (min-width: 901px) {
  .app-topnav__icon-btn {
    display: none;
  }
  .app-topnav__actions--mobile {
    display: none;
  }
}

.app-topnav__icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: var(--transition);
  text-decoration: none;
}

.app-topnav__icon-btn:hover {
  background: var(--color-vista-white);
  color: var(--color-carnation);
}

.app-topnav__icon-btn--active {
  color: var(--color-carnation);
}

.app-topnav__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  background: var(--color-carnation);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid white;
}

/* Avatar button */
.app-topnav__avatar-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
  flex-shrink: 0;
}

.app-topnav__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid var(--color-carnation);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-carnation), var(--color-sea-pink));
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  overflow: hidden;
  transition: var(--transition);
}

.app-topnav__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.app-topnav__avatar-btn:hover .app-topnav__avatar {
  box-shadow: 0 0 0 3px rgba(249, 101, 102, 0.2);
}

/* ── Mobile Bottom Sheet ─────────────────────────────────── */

/* Dark backdrop */
.app-sheet__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 600;
  animation: backdrop-in 0.22s ease;
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Sheet panel */
.app-sheet {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 601;
  background: white;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.16);
  padding: 0 0 env(safe-area-inset-bottom, 16px);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.app-sheet--open {
  transform: translateY(0);
}

/* Drag handle */
.app-sheet__handle {
  width: 36px;
  height: 4px;
  background: #e2e2e7;
  border-radius: 2px;
  margin: 12px auto 4px;
}

/* User header inside sheet */
.app-sheet__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  transition: background 0.15s;
}

.app-sheet__header:active {
  background: var(--color-vista-white);
}

.app-sheet__header-chevron {
  margin-left: auto;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.app-sheet__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-carnation), var(--color-sea-pink));
  color: white;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 2.5px solid white;
  box-shadow: 0 4px 12px rgba(249, 101, 102, 0.3);
}

.app-sheet__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-sheet__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sheet__role {
  font-size: 0.78rem;
  color: var(--color-carnation);
  font-weight: 600;
  margin-top: 2px;
}

/* Nav list */
.app-sheet__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.app-sheet__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.15s;
}

.app-sheet__item:active {
  background: var(--color-vista-white);
  color: var(--color-carnation);
}

.app-sheet__item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-vista-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: var(--transition);
}

.app-sheet__item:active .app-sheet__item-icon {
  background: rgba(249, 101, 102, 0.1);
  color: var(--color-carnation);
}

.app-sheet__divider {
  height: 1px;
  background: var(--color-border);
  margin: 4px 20px;
}

.app-sheet__logout {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e53e3e;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  transition: background 0.15s;
  margin-bottom: 8px;
}

.app-sheet__logout:active {
  background: #fff5f5;
}

/* ── Left sidebar (Threads-style, desktop only) ─────────── */
.app-leftnav {
  position: fixed;
  top: 62px;
  left: 0;
  bottom: 0;
  width: 240px;
  background: white;
  border-right: 1px solid rgba(249, 101, 102, 0.08);
  display: flex;
  flex-direction: column;
  padding: 16px 12px 20px;
  gap: 2px;
  z-index: 400;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Scrollbar hidden but functional */
.app-leftnav::-webkit-scrollbar { width: 4px; }
.app-leftnav::-webkit-scrollbar-track { background: transparent; }
.app-leftnav::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

/* Section label inside sidebar */
.app-leftnav__section-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 12px 6px;
}

.app-leftnav__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 46px;
  border-radius: 12px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: 0 12px;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-family);
  white-space: nowrap;
}

.app-leftnav__item:hover {
  background: var(--color-vista-white);
  color: var(--color-carnation);
}

.app-leftnav__item--active {
  background: linear-gradient(135deg, rgba(249, 101, 102, 0.1), rgba(238, 156, 160, 0.06));
  color: var(--color-carnation);
  font-weight: 700;
}

.app-leftnav__item--active svg {
  stroke: var(--color-carnation);
}

.app-leftnav__item svg {
  flex-shrink: 0;
}

.app-leftnav__dot {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: var(--color-carnation);
  border-radius: 50%;
  border: 2px solid white;
}

/* Bottom user section in sidebar */
.app-leftnav__footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.app-leftnav__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-family);
  text-align: left;
}

.app-leftnav__user:hover {
  background: var(--color-vista-white);
}

.app-leftnav__user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-carnation), var(--color-sea-pink));
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(249, 101, 102, 0.25);
}

.app-leftnav__user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.app-leftnav__user-info {
  flex: 1;
  min-width: 0;
}

.app-leftnav__user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-leftnav__user-role {
  font-size: 0.7rem;
  color: var(--color-carnation);
  font-weight: 600;
}

.app-leftnav__logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e53e3e;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  transition: var(--transition);
  margin-top: 2px;
}

.app-leftnav__logout-btn:hover {
  background: #fff5f5;
}

/* ── Main content area ───────────────────────────────────── */
.app-content {
  margin-top: 62px;
  margin-left: 240px;
  flex: 1;
  min-height: 0;
  height: calc(100vh - 62px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-main {
  padding: 28px 32px;
  flex: 1;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Feed page — no padding, uses app-main's own scroll */
.app-main--feed {
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
}

/* Chat pages need zero padding and full height */
.app-main--chat {
  padding: 0;
  max-width: none;
  height: calc(100vh - 62px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

/* ── Bottom Navigation (mobile) ──────────────────────────── */
.app-bottomnav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: 64px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(249, 101, 102, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  align-items: stretch;
  padding: 0 4px;
  /* Hide bottom nav when the virtual keyboard is open so it
     doesn't overlap the chat input. With interactive-widget=resizes-content
     this is automatic, but this ensures compatibility. */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.app-bottomnav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
  padding: 6px 4px;
  background: none;
  border: none;
  font-family: var(--font-family);
  cursor: pointer;
}

.app-bottomnav__item:hover,
.app-bottomnav__item--active {
  color: var(--color-carnation);
}

.app-bottomnav__item--active svg {
  stroke: var(--color-carnation);
}

.app-bottomnav__indicator {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--color-carnation);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transition: var(--transition);
}

.app-bottomnav__item--active .app-bottomnav__indicator {
  opacity: 1;
}

.app-bottomnav__badge {
  position: absolute;
  top: 6px;
  left: 50%;
  margin-left: 6px;
  min-width: 14px;
  height: 14px;
  background: var(--color-carnation);
  color: white;
  font-size: 0.55rem;
  font-weight: 800;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid white;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .app-leftnav {
    width: 70px;
    padding: 16px 8px 20px;
  }

  .app-leftnav__item {
    flex-direction: column;
    width: 54px;
    height: 54px;
    font-size: 0.55rem;
    gap: 3px;
    padding: 0;
    justify-content: center;
    align-items: center;
  }

  .app-leftnav__section-label,
  .app-leftnav__user-info,
  .app-leftnav__logout-btn span,
  .app-leftnav__item > span { display: none; }

  .app-leftnav__footer { padding-top: 12px; }
  .app-leftnav__user { padding: 8px 0; justify-content: center; }
  .app-leftnav__logout-btn { justify-content: center; padding: 0; height: 44px; }
  .app-leftnav__dot { top: 6px; right: 6px; }

  .app-content {
    margin-left: 70px;
  }
}

@media (max-width: 900px) {
  .app-leftnav {
    display: none;
  }

  .app-sheet__backdrop {
    display: block;
  }

  .app-sheet {
    display: block;
  }

  .app-content {
    margin-left: 0;
    margin-bottom: 64px;
    height: calc(100vh - 62px - 64px);
    overflow: hidden;
  }

  .app-main {
    padding: 20px 16px;
    overflow-y: auto;
  }

  .app-main--chat {
    height: 100%;
    padding: 0 !important;
  }

  .app-main--feed {
    flex: 1;
    min-height: 0;
    padding: 0 !important;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .app-bottomnav {
    display: flex;
  }

  .app-topnav__search {
    max-width: none;
    flex: 1;
  }
}

@media (max-width: 600px) {
  .app-topnav {
    padding: 0 14px;
    gap: 8px;
  }

  .app-topnav__search {
    padding: 7px 12px;
  }

  .app-main {
    padding: 16px 12px;
  }


}
/* ── CustomSelect ── */
.csel {
  position: relative;
  outline: none;
}

/* Trigger button */
.csel__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  background: white;
  font-size: 0.9rem;
  font-family: var(--font-family);
  color: var(--color-dark);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.csel__trigger--placeholder .csel__value {
  color: #9ca3af;
}

.csel--open .csel__trigger,
.csel__trigger:focus {
  border-color: var(--color-carnation);
  box-shadow: 0 0 0 3px rgba(249, 101, 102, 0.12);
}

.csel__trigger:hover:not(:focus) {
  border-color: #c5c8d0;
}

/* Arrow icon */
.csel__arrow {
  flex-shrink: 0;
  color: #9ca3af;
  transition: transform 0.2s ease, color 0.2s ease;
}

.csel--open .csel__arrow {
  transform: rotate(180deg);
  color: var(--color-carnation);
}

/* Dropdown menu */
.csel__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 0;
  padding: 6px;
  z-index: 9999;
  max-height: 260px;
  overflow-y: auto;
  animation: csel-fade-in 0.12s ease;
}

@keyframes csel-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scrollbar styling */
.csel__menu::-webkit-scrollbar { width: 5px; }
.csel__menu::-webkit-scrollbar-track { background: transparent; }
.csel__menu::-webkit-scrollbar-thumb { background: #e2e4ea; border-radius: 99px; }

/* Option item */
.csel__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: var(--font-family);
  color: var(--color-dark);
  cursor: pointer;
  transition: background 0.12s;
  user-select: none;
}

.csel__option:hover {
  background: #fdf2f2;
  color: var(--color-carnation);
}

.csel__option--active {
  background: #fdf2f2;
  color: var(--color-carnation);
  font-weight: 600;
}
/* ═══════════════════════════════════════════════════════════
   SubscriptionGateModal  — two-zone paywall modal
   ═══════════════════════════════════════════════════════════ */

.sgm {
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  font-family: var(--font-family);
}

/* ── Header gradient zone ── */
.sgm__header {
  background: linear-gradient(160deg, var(--color-carnation) 0%, #e84d6a 55%, #d63660 100%);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

/* Close button — absolute top-right over the gradient */
.sgm__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.sgm__close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.sgm__header::before,
.sgm__header::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.sgm__header::before {
  width: 200px;
  height: 200px;
  top: -60px;
  left: -60px;
}
.sgm__header::after {
  width: 160px;
  height: 160px;
  bottom: -50px;
  right: -40px;
}

.sgm__lock-bubble {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  margin-bottom: 2px;
}

.sgm__tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}

.sgm__title {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.sgm__subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  line-height: 1.5;
  max-width: 280px;
}

/* ── Body white zone ── */
.sgm__body {
  background: #ffffff;
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Benefits */
.sgm__benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  width: 100%;
}

.sgm__benefit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f5e8e8;
}

.sgm__benefit-row:last-child {
  border-bottom: none;
}

.sgm__benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #fff0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.sgm__benefit-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.3;
}

/* Social proof */
.sgm__social-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff5f5;
  border: 1px solid #f5dede;
  border-radius: 50px;
  padding: 8px 16px;
  margin-bottom: 18px;
  width: fit-content;
  align-self: center;
}

.sgm__avatars {
  display: flex;
  gap: 2px;
  font-size: 16px;
}

.sgm__social-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-dark);
}

/* CTA */
.sgm__btn {
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--color-carnation) 0%, #e84d6a 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 20px rgba(249, 101, 102, 0.45);
  transition: var(--transition);
  font-family: var(--font-family);
  margin-bottom: 10px;
}

.sgm__btn:hover {
  box-shadow: 0 8px 28px rgba(249, 101, 102, 0.55);
  transform: translateY(-1px);
}

.sgm__btn:active {
  transform: translateY(0);
}

/* Pricing */
.sgm__pricing {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0 0 10px;
  text-align: center;
}

.sgm__pricing strong {
  color: var(--color-dark);
}

/* Maybe later */
.sgm__btn-later {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 4px 0;
  font-family: var(--font-family);
  transition: color 0.15s;
}

.sgm__btn-later:hover {
  color: var(--color-dark);
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .sgm__header {
    padding: 26px 20px 30px;
  }

  .sgm__lock-bubble {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  .sgm__title {
    font-size: 18px;
  }

  .sgm__body {
    padding: 20px 18px 16px;
  }

  .sgm__btn {
    font-size: 14px;
    padding: 13px 20px;
  }
}
/* ═══════════════════════════════════════════════════════════
   SubscriptionStickyBar
   Fixed bottom bar shown to non-members on Feed / Discover
   ═══════════════════════════════════════════════════════════ */

.sub-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  /* glass + gradient effect */
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.97) 0%, rgba(45, 27, 78, 0.97) 100%);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border-top: 1px solid rgba(249, 101, 102, 0.25);
  box-shadow: 0 -4px 32px rgba(249, 101, 102, 0.2);
  animation: subBarSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes subBarSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.sub-sticky-bar__inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sub-sticky-bar__lock {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f96566, #f43f8e);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  box-shadow: 0 4px 14px rgba(249, 101, 102, 0.45);
}

.sub-sticky-bar__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sub-sticky-bar__title {
  font-size: 0.875rem;
  font-weight: 800;
  color: white;
  line-height: 1.3;
}

.sub-sticky-bar__sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub-sticky-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, #f96566, #f43f8e);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(249, 101, 102, 0.5);
  transition: box-shadow 0.2s, transform 0.18s;
  font-family: var(--font-family);
  flex-shrink: 0;
}

.sub-sticky-bar__btn:hover {
  box-shadow: 0 6px 22px rgba(249, 101, 102, 0.65);
  transform: translateY(-1px);
}

.sub-sticky-bar__btn:active {
  transform: translateY(0);
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .sub-sticky-bar__inner {
    padding: 10px 14px;
    gap: 10px;
  }

  .sub-sticky-bar__lock {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .sub-sticky-bar__lock svg {
    width: 16px;
    height: 16px;
  }

  .sub-sticky-bar__title {
    font-size: 0.8rem;
  }

  .sub-sticky-bar__sub {
    font-size: 0.66rem;
  }

  .sub-sticky-bar__btn {
    padding: 8px 14px;
    font-size: 0.76rem;
    gap: 5px;
  }

  .sub-sticky-bar__btn svg {
    width: 12px;
    height: 12px;
  }
}
/* ============================================================
   Social Platform — Shared Dashboard Styles
   ============================================================ */

/* ── Page wrapper ── */
.social-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.social-page--narrow {
  max-width: 680px;
}

/* Centered form pages — wider than narrow, but still centered for readability */
.social-page--form {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

/* ── Profile page two-column desktop layout ── */
.profile-desktop-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.profile-desktop-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  width: 100%;
}

.profile-col-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.profile-col-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  position: sticky;
  top: 20px;
}

@media (max-width: 1100px) {
  .profile-desktop-cols {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 860px) {
  .profile-desktop-cols {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .profile-col-right {
    position: static;
    order: -1; /* dashboard overview first on mobile */
  }
  .profile-desktop-layout {
    max-width: 860px;
  }
  .profile-notif-panel {
    display: none;
  }
  .profile-mobile-hidden {
    display: none !important;
  }
}

/* ── Mobile profile tab switcher ── */
.profile-mobile-tabs {
  display: none;
}

@media (max-width: 860px) {
  .profile-mobile-tabs {
    display: flex;
    gap: 0;
    background: white;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 4px;
    border: 1.5px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }
  .profile-mobile-tabs__btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .profile-mobile-tabs__btn--active {
    background: linear-gradient(135deg, var(--color-carnation), var(--color-sea-pink));
    color: white;
    box-shadow: 0 2px 8px rgba(249, 101, 102, 0.3);
  }
}

.dash-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

/* ── Section heading ── */
.social-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.social-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-section-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-carnation);
  text-decoration: none;
  transition: var(--transition);
}
.social-section-link:hover { opacity: 0.75; }


/* ── Card base ── */
.social-card {
  background: white;
  border-radius: 18px;
  border: 1px solid rgba(249, 101, 102, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  overflow: hidden;
}

.social-card:hover {
  box-shadow: 0 6px 24px rgba(249, 101, 102, 0.1);
  transform: translateY(-2px);
}

.social-card--flat {
  box-shadow: none;
  border: 1px solid var(--color-border);
  overflow: visible;
}

.social-card__body {
  padding: 20px;
}

/* ── Avatar ── */
.social-avatar {
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-carnation), var(--color-sea-pink));
  color: white;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.social-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.social-avatar--sm  { width: 36px;  height: 36px;  font-size: 0.75rem; }
.social-avatar--md  { width: 48px;  height: 48px;  font-size: 0.9rem;  }
.social-avatar--lg  { width: 64px;  height: 64px;  font-size: 1.1rem;  }
.social-avatar--xl  { width: 80px;  height: 80px;  font-size: 1.4rem;  }
.social-avatar--xxl { width: 100px; height: 100px; font-size: 1.8rem;  }


/* ── Status / Badge ── */
.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: capitalize;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.social-badge--open     { background: #dcfce7; color: #15803d; }
.social-badge--closed   { background: #f1f5f9; color: #64748b; }
.social-badge--expired  { background: #fef2f2; color: #dc2626; }
.social-badge--pending  { background: #fef3c7; color: #b45309; }
.social-badge--accepted { background: #ede9fe; color: #6d28d9; }
.social-badge--declined { background: #fef2f2; color: #dc2626; }
.social-badge--online   { background: #dcfce7; color: #15803d; }
.social-badge--offline  { background: #f1f5f9; color: #94a3b8; }
.social-badge--verified { background: linear-gradient(135deg,#dcfce7,#d1fae5); color: #059669; }

.social-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--color-vista-white);
  color: var(--color-carnation);
  border: 1px solid rgba(249, 101, 102, 0.15);
  white-space: nowrap;
}

/* ── Online dot ── */
.online-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse-online 2.5s infinite;
}
@keyframes pulse-online {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%      { box-shadow: 0 0 0 5px rgba(34,197,94,0);  }
}


/* ── Form elements (shared) ── */
.soc-form { display: flex; flex-direction: column; gap: 18px; }
.soc-form__group { display: flex; flex-direction: column; gap: 6px; }
.soc-form__label { font-size: 0.85rem; font-weight: 600; color: var(--color-dark); }

.soc-form__input,
.soc-form__textarea,
.soc-form__select {
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: var(--font-family);
  color: var(--color-dark);
  background: white;
  transition: var(--transition);
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.soc-form__input:focus,
.soc-form__textarea:focus,
.soc-form__select:focus {
  border-color: var(--color-carnation);
  box-shadow: 0 0 0 3px rgba(249, 101, 102, 0.1);
}

/* ── Custom select styling ── */
.soc-form__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.soc-form__select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f96566' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
.soc-form__select option[value=""] {
  color: #9ca3af;
}
.soc-form__select.is-placeholder {
  color: #9ca3af;
}
.soc-form__textarea { resize: vertical; min-height: 100px; }
.soc-form__actions  { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Budget input ── */
.soc-form__budget-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.soc-form__budget-wrap:focus-within {
  border-color: var(--color-carnation);
  box-shadow: 0 0 0 3px rgba(249, 101, 102, 0.1);
}
.soc-form__budget-symbol {
  padding: 12px 14px;
  background: #f8f8f8;
  font-weight: 700;
  font-size: 16px;
  color: #555;
  border-right: 1px solid var(--color-border);
}
.soc-form__budget-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-family);
  color: var(--color-dark);
  background: transparent;
}
.soc-form__budget-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* ── Empty state ── */
.social-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  gap: 14px;
  text-align: center;
}
.social-empty__icon {
  width: 64px; height: 64px; border-radius: 20px;
  background: var(--color-vista-white);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-carnation);
}
.social-empty__title {
  font-size: 1rem; font-weight: 700; color: var(--color-dark);
}
.social-empty__text {
  font-size: 0.875rem; color: var(--color-text-muted);
  max-width: 280px; line-height: 1.65;
}

/* ── Two-column layout (feed + right panel) ── */
.social-layout-cols {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1100px) {
  .social-layout-cols { grid-template-columns: 1fr; }
  .social-right-panel { display: none; }
}

@media (max-width: 700px) {
  .social-page { gap: 16px; }
  .social-card__body { padding: 16px; }
}

/* ── Post Request page ── */
.post-request-tips {
  background: var(--color-vista-white);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.post-request-actions {
  flex-direction: column;
  gap: 10px;
}

.post-request-actions .btn-primary,
.post-request-actions .btn-secondary {
  border-radius: 50px;
  width: 100%;
  justify-content: center;
}

/* ── Monthly usage banner ── */
.pr-usage-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #86efac;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pr-usage-banner--full {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fca5a5;
}
.pr-usage-banner__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pr-usage-banner__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #166534;
}
.pr-usage-banner--full .pr-usage-banner__label {
  color: #991b1b;
}
.pr-usage-banner__tier {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  background: rgba(255,255,255,0.7);
  color: #16a34a;
  border-radius: 50px;
}
.pr-usage-banner--full .pr-usage-banner__tier {
  color: #dc2626;
}
.pr-usage-banner__counts {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #15803d;
  flex-wrap: wrap;
}
.pr-usage-banner--full .pr-usage-banner__counts {
  color: #991b1b;
}
.pr-usage-banner__used {
  font-weight: 700;
}
.pr-usage-banner__remaining {
  font-weight: 700;
}
.pr-usage-banner__remaining--zero {
  color: #dc2626;
}
.pr-usage-banner__sep {
  opacity: 0.4;
}
.pr-usage-banner__limit {
  opacity: 0.7;
}
.pr-usage-bar {
  height: 8px;
  background: rgba(0,0,0,0.08);
  border-radius: 50px;
  overflow: hidden;
}
.pr-usage-bar__fill {
  height: 100%;
  border-radius: 50px;
  transition: width 0.4s ease, background 0.3s ease;
}
.pr-usage-banner__limit-msg {
  font-size: 0.8rem;
  color: #991b1b;
  font-weight: 600;
  line-height: 1.5;
}
.pr-usage-banner__upgrade-link {
  color: #dc2626;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.pr-usage-banner__upgrade-link:hover {
  border-bottom-color: #dc2626;
}
.pr-usage-banner__unlimited {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #7c3aed;
}

/* ── Post Request / Form page — mobile fixes ── */
@media (max-width: 600px) {
  .social-page--form {
    /* Ensure the form page doesn't overflow its container */
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .social-page--form .social-card--flat {
    border-radius: 14px;
    /* Don't use overflow: hidden here — it clips the CustomSelect dropdown */
  }

  .social-page--form .social-card__body {
    padding: 16px 14px;
  }

  /* Ensure inputs, textareas, and selects never overflow */
  .soc-form__input,
  .soc-form__textarea,
  .soc-form__select {
    width: 100%;
    min-width: 0;
    font-size: 0.875rem;
  }

  /* Stack action buttons vertically and fill width */
  .post-request-actions .btn-primary,
  .post-request-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Tips box — smaller padding on mobile */
  .post-request-tips {
    padding: 12px;
    font-size: 0.8rem;
  }
}


/* ── Page hero header (used on Discover + Feed) ── */
.discover-header {
  background: white;
  border-radius: 18px;
  padding: 24px 24px 20px;
  border: 1px solid rgba(249,101,102,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.discover-header__title {
  font-size: 1.5rem; font-weight: 900;
  color: var(--color-dark); letter-spacing: -0.02em; margin-bottom: 4px;
}
.discover-header__sub { font-size: 0.9rem; color: var(--color-text-muted); }

/* (dash-loading is defined earlier in this file) */

/* ── Password show/hide toggle ── */
.soc-form__input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.soc-form__input--has-toggle {
  padding-right: 40px;
  width: 100%;
}

.soc-form__pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s;
  line-height: 0;
}

.soc-form__pw-toggle:hover {
  color: var(--color-carnation);
}

.soc-form__pw-toggle:focus-visible {
  outline: 2px solid var(--color-carnation);
  outline-offset: 2px;
}

/* ── My Requests page header ── */
.my-requests-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 480px) {
  .my-requests-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .my-requests-post-btn {
    width: 100%;
    justify-content: center;
    padding: 9px 18px;
    font-size: 0.82rem;
  }
}
/* ═══════════════════════════════════════════════════════════
   BUDDY FEED — Card-based design (matching reference UI)
   BuddySearch theme  (#F96566 carnation)
   ═══════════════════════════════════════════════════════════ */

.feed-scroll-wrapper {
  width: 100%;
  background: #f4f5f7;
}

.feed-scroll-wrapper--paywall {
  overflow: hidden;
  height: 100dvh;
}

.social-feed {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 12px 48px;
  background: #f4f5f7;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Post Composer ──────────────────────────────────────── */
.feed-composer {
  background: white;
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 12px;
}

.feed-composer__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-carnation), var(--color-sea-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.feed-composer__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-composer__input {
  flex: 1;
  background: #f0f2f5;
  border: none;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 15px;
  color: #8e8e8e;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s;
  font-family: var(--font-family);
}

.feed-composer__input:hover {
  background: #e4e6eb;
}

/* ── Feed Card ──────────────────────────────────────────── */
.feed-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.2s ease;
  margin-bottom: 12px;
}

.feed-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ── Card Header ──────────────────────────────────────── */
.feed-card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 0;
}

/* Avatar wrap — relative container for the overlay badge */
.feed-card__avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.feed-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-carnation), var(--color-sea-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

/* Clickable avatar variant */
.feed-card__avatar--clickable {
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.feed-card__avatar--clickable:hover {
  transform: scale(1.07);
  box-shadow: 0 4px 12px rgba(249, 101, 102, 0.35);
}

/* Avatar overlay badge — bottom-right corner */
.feed-card__avatar-wrap > img {
  position: absolute;
  bottom: -4px;
  right: -6px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.18));
  pointer-events: none;
}

.feed-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-card__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Name row — flex so badge sits inline */
.feed-card__name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.feed-card__name {
  font-size: 15px;
  font-weight: 700;
  color: #1c1c1c;
  line-height: 1.3;
  display: block;
}

/* Clickable name — looks like text, acts like a link */
.feed-card__name--link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
}
.feed-card__name--link:hover {
  color: var(--color-carnation, #f96566);
  text-decoration: underline;
}

.feed-card__location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: #8e8e8e;
  font-weight: 400;
}

.feed-card__location svg {
  flex-shrink: 0;
  color: #b0b0b0;
}

.feed-card__time-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.feed-card__time-row svg {
  flex-shrink: 0;
  color: #b0b0b0;
}

.feed-card__time {
  font-size: 12.5px;
  color: #8e8e8e;
}

.feed-card__dot {
  font-size: 13px;
  color: #c8c8c8;
}

.feed-card__service {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-carnation);
  background: rgba(249, 101, 102, 0.1);
  border-radius: 50px;
  padding: 2px 9px;
  white-space: nowrap;
}

/* Three-dot more button */
.feed-card__more {
  background: none;
  border: none;
  cursor: pointer;
  color: #b0b0b0;
  padding: 2px 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  margin-top: 2px;
}

.feed-card__more:hover {
  background: #f5f5f5;
  color: #555;
}

/* ── Card Content ───────────────────────────────────────── */
.feed-card__content {
  padding: 12px 16px 4px;
}

.feed-card__title {
  font-size: 15.5px;
  font-weight: 800;
  color: #1c1c1c;
  margin: 0 0 7px 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.feed-card__desc p {
  font-size: 14px;
  color: #4a4a4a;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.feed-card__read-more {
  background: none;
  border: none;
  color: var(--color-carnation);
  font-size: 13.5px;
  padding: 4px 0 0;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-family);
  display: block;
  transition: opacity 0.15s;
}

.feed-card__read-more:hover {
  opacity: 0.75;
}

/* ── Card Footer ──────────────────────────────────────── */
.feed-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 14px;
  gap: 12px;
  border-top: 1px solid #f0f0f0;
  margin-top: 0;
}

/* Unified single-row footer: upvote + price + send request */
.feed-card__footer--unified {
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 16px 14px;
}

.feed-card__footer--unified .feed-card__btn {
  margin-left: auto;
}

.feed-card__footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.feed-card__footer-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #777;
  font-weight: 500;
  white-space: nowrap;
}

.feed-card__footer-item svg {
  color: #999;
  flex-shrink: 0;
}

.feed-card__footer-divider {
  width: 1px;
  height: 16px;
  background: #e0e0e0;
  flex-shrink: 0;
}

/* ── Send Request Button ──────────────────────────────── */
.feed-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  border: none;
  background: var(--color-carnation);
  color: white;
  font-family: var(--font-family);
  box-shadow: 0 2px 10px rgba(249, 101, 102, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.feed-card__btn:hover:not(:disabled) {
  background: #e04f50;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249, 101, 102, 0.38);
}

.feed-card__btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(249, 101, 102, 0.25);
}

.feed-card__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.feed-card__btn--sent {
  background: white;
  color: #22c55e;
  border: 1.5px solid rgba(34, 197, 94, 0.4);
  box-shadow: none;
}

.feed-card__btn--sent:hover {
  background: rgba(34, 197, 94, 0.04) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Pending state — amber/orange tint, disabled */
.feed-card__btn--pending {
  background: white;
  color: #f59e0b;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  box-shadow: none;
  cursor: not-allowed;
}

.feed-card__btn--pending:hover {
  background: rgba(245, 158, 11, 0.04) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Accepted state — green, clickable to open chat */
.feed-card__btn--accepted {
  background: #22c55e;
  color: white;
  border: none;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
  cursor: pointer;
}

.feed-card__btn--accepted:hover {
  background: #16a34a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.38) !important;
}

/* ── Loading / Empty / End States ──────────────────────── */
.social-feed__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.social-feed__loading-more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.social-feed__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.social-feed__empty-icon {
  color: #c8c8c8;
  margin-bottom: 16px;
}

.social-feed__empty h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1c1c1c;
  margin: 0 0 6px 0;
}

.social-feed__empty p {
  font-size: 14px;
  color: #8e8e8e;
  margin: 0;
}

.social-feed__end {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  gap: 8px;
}

.social-feed__end svg {
  color: #22c55e;
}

.social-feed__end p {
  font-size: 14px;
  color: #8e8e8e;
  margin: 0;
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .social-feed {
    max-width: 100%;
    padding: 6px 6px 56px;
    gap: 14px;
  }

  /* Avatar */
  .feed-card__avatar-wrap {
    width: 40px;
    height: 40px;
  }

  .feed-card__avatar {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  /* Header */
  .feed-card__header {
    padding: 12px 12px 0;
    gap: 9px;
  }

  .feed-card__name {
    font-size: 13.5px;
  }

  .feed-card__location {
    font-size: 11.5px;
  }

  .feed-card__time {
    font-size: 11.5px;
  }

  .feed-card__service {
    font-size: 11px;
    padding: 2px 7px;
  }

  /* Content */
  .feed-card__content {
    padding: 10px 12px 4px;
  }

  .feed-card__title {
    font-size: 13.5px;
    margin-bottom: 5px;
  }

  .feed-card__desc p {
    font-size: 12.5px;
    line-height: 1.55;
  }

  .feed-card__read-more {
    font-size: 12px;
  }

  /* Footer */
  .feed-card__footer {
    padding: 6px 12px 12px;
    gap: 6px;
  }

  .feed-card__footer--unified {
    padding: 6px 12px 12px;
    gap: 6px;
  }

  .feed-card__footer-item {
    font-size: 11.5px;
    gap: 4px;
  }

  .feed-card__footer-item svg {
    width: 13px;
    height: 13px;
  }

  .feed-card__btn {
    flex: 0 0 auto;
    padding: 7px 12px;
    font-size: 11.5px;
    border-radius: 8px;
    gap: 4px;
  }

  .feed-card__btn svg {
    width: 13px;
    height: 13px;
  }

  /* Composer */
  .feed-composer {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .feed-composer__avatar {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .feed-composer__input {
    font-size: 13.5px;
    padding: 9px 14px;
  }
}


/* ═══════════════════════════════════════════════════════════
   UPVOTE & PRICING — Actions bar between content and footer
   ═══════════════════════════════════════════════════════════ */

.feed-card__actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-top: 1px solid #f5f5f5;
}

/* ── Upvote Button ──────────────────────────────────────── */
.feed-card__upvote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1.5px solid #e0e0e0;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #777;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-family);
}

.feed-card__upvote-btn:hover {
  border-color: var(--color-carnation);
  color: var(--color-carnation);
  background: rgba(249, 101, 102, 0.05);
}

.feed-card__upvote-btn--active {
  border-color: var(--color-carnation);
  color: var(--color-carnation);
  background: rgba(249, 101, 102, 0.08);
}

.feed-card__upvote-btn--active svg {
  color: var(--color-carnation);
}

.feed-card__upvote-count {
  font-size: 13px;
  font-weight: 700;
}

/* ── Price Button ──────────────────────────────────────── */
.feed-card__price-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1.5px solid #e0e0e0;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #777;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-family);
}

.feed-card__price-btn:hover {
  border-color: #16a34a;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.05);
}

.feed-card__price-btn--proposed {
  border-color: #16a34a;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.06);
}

.feed-card__price-btn--proposed svg {
  color: #16a34a;
}

.feed-card__price-rs {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.feed-card__price-status {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.feed-card__price-status--proposed {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.feed-card__price-status--countered {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.feed-card__price-status--accepted {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.feed-card__price-status--hired {
  background: rgba(22, 163, 74, 0.18);
  color: #15803d;
}

/* ── Price Proposal Modal ─────────────────────────────── */
.feed-card__price-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: fadeIn 0.15s ease;
}

.feed-card__price-modal {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.feed-card__price-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #f0f0f0;
}

.feed-card__price-modal-header h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: #1c1c1c;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-card__price-modal-header h4 svg {
  color: var(--color-carnation);
}

.feed-card__price-modal-icon {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-carnation);
  line-height: 1;
}

.feed-card__price-modal-close {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.feed-card__price-modal-close:hover {
  background: #f0f0f0;
  color: #555;
}

.feed-card__price-modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feed-card__price-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #555;
}

.feed-card__price-label-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.feed-card__price-label-row svg {
  color: #999;
}

.feed-card__price-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.feed-card__price-input-wrap:focus-within {
  border-color: var(--color-carnation);
}

.feed-card__price-currency {
  padding: 10px 12px;
  background: #f8f8f8;
  font-weight: 700;
  font-size: 16px;
  color: #555;
  border-right: 1px solid #e8e8e8;
}

.feed-card__price-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-family);
  color: #1c1c1c;
}

.feed-card__price-input::placeholder {
  color: #bbb;
  font-weight: 400;
}

.feed-card__price-textarea {
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-family);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  color: #333;
}

.feed-card__price-textarea:focus {
  border-color: var(--color-carnation);
}

.feed-card__price-textarea::placeholder {
  color: #bbb;
}

.feed-card__price-existing {
  background: #f8faf8;
  border: 1px solid #e6f0e6;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #555;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feed-card__price-counter-info {
  color: #2563eb;
  font-weight: 500;
}

/* ── Budget badge on feed card ────────────────────────── */
.feed-card__budget-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 1.5px solid #86efac;
  border-radius: 50px;
  padding: 5px 14px 5px 10px;
  margin-bottom: 10px;
}

.feed-card__budget-rs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #16a34a;
  color: white;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.feed-card__budget-amount {
  font-size: 15px;
  font-weight: 800;
  color: #15803d;
  letter-spacing: -0.02em;
}

.feed-card__budget-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 2px;
}

/* ── Client budget in price modal ─────────────────────── */
.feed-card__price-client-budget {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: #166534;
}

.feed-card__price-client-budget-rs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #16a34a;
  color: white;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.feed-card__price-client-budget strong {
  font-weight: 800;
  font-size: 17px;
  color: #15803d;
}

/* ── Budget input in post form ────────────────────────── */
.soc-form__budget-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.soc-form__budget-wrap:focus-within {
  border-color: var(--color-carnation);
}

.soc-form__budget-symbol {
  padding: 10px 12px;
  background: #f8f8f8;
  font-weight: 700;
  font-size: 16px;
  color: #555;
  border-right: 1px solid #e8e8e8;
}

.soc-form__budget-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-family);
  color: #1c1c1c;
}

.soc-form__budget-input::placeholder {
  color: #bbb;
  font-weight: 400;
}

.feed-card__price-modal-actions {
  display: flex;
  gap: 10px;
  padding: 0 20px 18px;
}

/* ── Mobile adjustments ───────────────────────────────── */
@media (max-width: 768px) {
  .feed-card__actions-bar {
    padding: 6px 12px 2px;
    gap: 5px;
  }

  .feed-card__upvote-btn,
  .feed-card__price-btn {
    padding: 5px 9px;
    font-size: 11.5px;
    gap: 4px;
  }

  .feed-card__upvote-btn svg {
    width: 14px;
    height: 14px;
  }

  .feed-card__price-btn svg {
    width: 14px;
    height: 14px;
  }

  .feed-card__price-status {
    font-size: 10px;
    padding: 1px 5px;
  }

  /* Modal — full-width bottom sheet style on mobile */
  .feed-card__price-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .feed-card__price-modal {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUpMobile 0.25s ease;
  }

  @keyframes slideUpMobile {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .feed-card__price-modal-header {
    padding: 16px 16px 12px;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
  }

  .feed-card__price-modal-header h4 {
    font-size: 16px;
    gap: 6px;
  }

  .feed-card__price-modal-header h4 svg {
    width: 18px;
    height: 18px;
  }

  .feed-card__price-modal-body {
    padding: 14px 16px;
    gap: 12px;
  }

  .feed-card__price-label {
    font-size: 13px;
  }

  .feed-card__price-currency {
    padding: 10px 10px;
    font-size: 15px;
  }

  .feed-card__price-input {
    padding: 10px 12px;
    font-size: 15px;
  }

  .feed-card__price-textarea {
    font-size: 13.5px;
    padding: 10px 12px;
  }

  .feed-card__price-existing {
    font-size: 12.5px;
    padding: 9px 12px;
  }

  .feed-card__price-modal-actions {
    padding: 0 16px 20px;
    gap: 8px;
    flex-direction: column;
  }

  .feed-card__budget-badge {
    padding: 3px 10px 3px 6px;
    gap: 3px;
  }

  .feed-card__budget-rs {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }

  .feed-card__budget-amount {
    font-size: 12.5px;
  }

  .feed-card__budget-label {
    font-size: 9px;
    letter-spacing: 0.3px;
  }

  .feed-card__price-client-budget {
    font-size: 13px;
    padding: 10px 12px;
    gap: 8px;
  }

  .feed-card__price-client-budget-rs {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .feed-card__price-client-budget strong {
    font-size: 15px;
  }

  .soc-form__budget-symbol {
    padding: 9px 10px;
    font-size: 15px;
  }

  .soc-form__budget-input {
    padding: 9px 12px;
    font-size: 14px;
  }
}

/* ── Paywall overlay ──────────────────────────────────────── */
.social-feed__paywall-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-height: calc(100vh - 120px);
}

.social-feed__blurred-cards {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  max-height: calc(100vh - 120px);
}

/* MembershipRequiredCard sits centered over the blurred cards */
.social-feed__paywall-wrapper .mrc {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: calc(100% - 24px);
  max-width: 400px;
}

@media (max-width: 768px) {
  .feed-scroll-wrapper--paywall {
    height: 100dvh;
    overflow: hidden;
  }

  .social-feed__paywall-wrapper {
    max-height: 100dvh;
    overflow: hidden;
  }

  .social-feed__blurred-cards {
    max-height: 100dvh;
  }

  /* On mobile: fix the card to viewport center so it's always fully visible */
  .social-feed__paywall-wrapper .mrc {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 32px);
    max-width: 400px;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    z-index: 100;
  }
}
/* ============================================================
   Buddy Discovery  —  Profile card redesign
   ============================================================ */

/* ── Top bar ── */
.bd-top-bar {
  display: flex; align-items: center; gap: 12px;
  background: white; border-radius: 16px; padding: 12px 16px;
  border: 1px solid rgba(249,101,102,0.08);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.bd-top-bar__right {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.bd-top-bar__count {
  font-size: 0.8rem; font-weight: 700; color: var(--color-carnation); white-space: nowrap;
}

/* ── Search ── */
.bd-search {
  display: flex; align-items: center; gap: 8px;
  background: #f4f5f7; border: 1.5px solid transparent;
  border-radius: 50px; padding: 9px 16px;
  transition: var(--transition); flex: 1; min-width: 0;
}
.bd-search:focus-within {
  background: white; border-color: var(--color-carnation);
  box-shadow: 0 0 0 3px rgba(249,101,102,0.1);
}
.bd-search svg { color: var(--color-text-muted); flex-shrink: 0; }
.bd-search input {
  border: none; outline: none; font-size: 0.875rem;
  font-family: var(--font-family); color: var(--color-text);
  background: none; width: 100%;
}
.bd-search input::placeholder { color: var(--color-text-muted); }

/* ── Filter ── */
.feed-filter-wrap { position: relative; }
.feed-filter-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(249,101,102,0.2);
  background: white; cursor: pointer; transition: all 0.18s ease;
}
.feed-filter-btn:hover { background: var(--color-vista-white); border-color: var(--color-carnation); }
.feed-filter-btn--active { background: var(--color-carnation); border-color: var(--color-carnation); }
.feed-filter-btn--active:hover { background: #e85556; }
.feed-filter-badge {
  position: absolute; top: -4px; right: -4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-dark); color: white;
  font-size: 0.6rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid white;
}
.feed-filter-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 200;
  width: 300px; background: white; border-radius: 18px;
  border: 1px solid rgba(249,101,102,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  max-height: 80vh;
  overflow-y: auto;
}
.feed-filter-panel__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 10px; border-bottom: 1px solid rgba(249,101,102,0.06);
}
.feed-filter-panel__title { font-size: 0.95rem; font-weight: 800; color: var(--color-dark); }
.feed-filter-panel__close {
  background: none; border: none; cursor: pointer; font-size: 0.85rem;
  color: var(--color-text-muted); padding: 2px 6px; border-radius: 50%; transition: background 0.15s;
}
.feed-filter-panel__close:hover { background: var(--color-vista-white); }
.feed-filter-panel__body { padding: 14px 18px; display: flex; flex-direction: column; }
.feed-filter-label {
  font-size: 0.72rem; font-weight: 700; color: var(--color-text-muted);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; display: block;
}
.feed-filter-panel__footer {
  display: flex; gap: 8px; padding: 12px 18px 16px;
  border-top: 1px solid rgba(249,101,102,0.06);
}

/* ── Grid ── */
.bd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* The wrapper div (grid item) and the card inside must both fill the row height */
.bd-grid > * {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bd-grid > * > .bd-card {
  flex: 1;
  height: 100%;
}

/* ════════════════════════════════════════════════
   BUDDY CARD  — Reference redesign
   ════════════════════════════════════════════════ */
.bd-card {
  background: white;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  position: relative;       /* anchor for the absolutely-positioned avatar */
  overflow: visible;        /* allow avatar to overlap the cover without being clipped */
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 6px 24px rgba(0,0,0,0.04);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.bd-card:hover {
  box-shadow: 0 8px 32px rgba(249,101,102,0.14), 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}

/* ── Star Member — golden border + glow ── */
.bd-card--star {
  border: 2px solid #f5c518;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.06),
    0 6px 24px rgba(0,0,0,0.04),
    0 0 16px 2px rgba(245,197,24,0.35);
}

.bd-card--star:hover {
  box-shadow:
    0 8px 32px rgba(249,101,102,0.10),
    0 2px 8px rgba(0,0,0,0.06),
    0 0 18px 3px rgba(245,197,24,0.25);
  transform: translateY(-4px);
}

/* ── Cover — pink gradient with blobs and dots ── */
.bd-card__cover {
  height: 130px;
  background: linear-gradient(135deg, #ffe8e8 0%, #ffd9e2 45%, #fce9ff 100%);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 24px 24px 0 0;   /* match card top corners since card no longer clips */
}

/* decorative dot grid */
.bd-card__cover::after {
  content: '';
  position: absolute;
  top: 10px; right: 20px;
  width: 80px; height: 80px;
  background-image: radial-gradient(circle, rgba(249,101,102,0.3) 1.5px, transparent 1.5px);
  background-size: 10px 10px;
  border-radius: 50%;
}

/* decorative wave blob */
.bd-card__cover-blob {
  position: absolute;
  bottom: -10px; left: -20px;
  width: 160px; height: 80px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  transform: rotate(-10deg);
}

/* ── Availability pill — top-right of cover ── */
.bd-card__avail {
  position: absolute;
  top: 12px; right: 14px;
  z-index: 1;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.7rem; font-weight: 700; padding: 5px 12px;
  border-radius: 50px; white-space: nowrap;
  backdrop-filter: blur(8px);
}

/* ── Membership badge — bottom-left of cover ── */
.bd-card__membership-badge {
  position: absolute;
  bottom: 10px; left: 12px;
  z-index: 2;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.12));
}

/* img rendered directly inside cover by MembershipBadge */
.bd-card__cover > img {
  position: absolute;
  bottom: 10px; left: 12px;
  z-index: 2;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.12));
}.bd-card__avail--yes {
  background: rgba(255,255,255,0.9);
  color: #16a34a;
  border: 1px solid rgba(34,197,94,0.3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.bd-card__avail--no {
  background: rgba(255,255,255,0.85);
  color: #64748b;
  border: 1px solid rgba(100,116,139,0.2);
}
.bd-card__avail-dot {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  animation: pulse-avail 2.5s infinite;
}
.bd-card__avail--no .bd-card__avail-dot { animation: none; }
@keyframes pulse-avail {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ── Avatar — large circle overlapping cover bottom ── */
.bd-card__avatar-wrap {
  position: absolute;
  /* top of card + cover height - half avatar */
  top: calc(130px - 42px);
  left: 24px;
  width: 84px; height: 84px;
  z-index: 3;            /* above cover, above body bg */
}
.bd-card__avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-carnation), var(--color-sea-pink));
  color: white; font-size: 1.7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 4px 18px rgba(249,101,102,0.3);
}
.bd-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

/* avatar badge image (tier badge) — bottom-right of avatar circle */
.bd-card__avatar-badge {
  position: absolute;
  bottom: -6px;
  right: -8px;
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.18));
  pointer-events: none;
}

/* ── Body ── */
.bd-card__body {
  padding: 58px 22px 18px;
  display: flex; flex-direction: column; gap: 14px;
  flex: 1;
}

/* ── Name row ── */
.bd-card__name-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.bd-card__name {
  font-size: 1.15rem; font-weight: 900;
  color: #1a1a2e; line-height: 1.2; margin: 0;
}

/* shield verified badge next to name */
.bd-card__shield {
  display: inline-flex;
  flex-shrink: 0;
}

/* ── Role + location row ── */
.bd-card__meta-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.bd-card__role-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 700; padding: 5px 12px; border-radius: 50px;
  background: rgba(249,101,102,0.07);
  color: var(--color-carnation);
  border: 1px solid rgba(249,101,102,0.2);
  white-space: nowrap;
}
.bd-card__role-badge svg { width: 10px; height: 10px; }
.bd-card__divider {
  width: 1px; height: 16px;
  background: var(--color-border);
  flex-shrink: 0;
}
.bd-card__location {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.78rem; color: #555; font-weight: 500;
}

/* ── Bio — quote box ── */
.bd-card__bio-box {
  background: #fdf6f6;
  border: 1px solid rgba(249,101,102,0.1);
  border-radius: 14px;
  padding: 10px 14px;
  position: relative;
  display: flex; align-items: center; gap: 8px;
}
.bd-card__bio-quote {
  font-size: 1.4rem;
  font-family: Georgia, serif;
  line-height: 1;
  color: var(--color-carnation);
  opacity: 0.6;
  flex-shrink: 0;
  margin-top: -4px;
  user-select: none;
}
.bd-card__bio-quote--close {
  margin-top: auto;
  margin-bottom: -4px;
  align-self: flex-end;
}
.bd-card__bio {
  font-size: 0.83rem; color: #555; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin: 0; flex: 1;
}
.bd-card__bio--empty {
  font-style: italic; opacity: 0.45;
}

/* ── Services section ── */
.bd-card__services {
  display: flex; flex-direction: column; gap: 8px;
}
.bd-card__services--empty {
  flex-direction: row; align-items: center; gap: 7px;
  font-size: 0.75rem; color: var(--color-text-muted); font-style: italic;
  padding: 8px 10px; border-radius: 10px; background: #f8f9fa;
}
.bd-card__services-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: #888;
}
.bd-card__services-label::after {
  content: '';
  flex: 1; height: 1px; background: #ebebeb;
}

/* 2-column grid matching reference */
.bd-card__tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bd-card__tag {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px;
  background: white;
  border: 1.5px solid #ebebeb;
  border-radius: 12px;
  cursor: default;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-width: 0;
}
.bd-card__tag:hover {
  border-color: var(--tag-color, var(--color-carnation));
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

/* large icon square */
.bd-card__tag-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  flex-shrink: 0;
}

.bd-card__tag-name {
  font-size: 0.7rem; font-weight: 700;
  color: var(--tag-color, var(--color-carnation));
  line-height: 1.25;
  flex: 1; min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* chevron arrow */
.bd-card__tag-arrow {
  flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,0.04);
  display: flex; align-items: center; justify-content: center;
  margin-left: auto;
}

.bd-card__tag--more {
  background: #f1f5f9; color: #64748b; border-color: transparent;
  justify-content: center;
  font-size: 0.7rem; font-weight: 700;
}

/* ── Footer CTA ── */
.bd-card__footer {
  padding: 4px 20px 20px;
  margin-top: auto;
  border-radius: 0 0 24px 24px;
  display: flex;
  gap: 8px;
}
.bd-card__view-profile {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-carnation);
  background: rgba(249, 101, 102, 0.07);
  border: 1.5px solid rgba(249, 101, 102, 0.22);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  font-family: var(--font-family);
}
.bd-card__view-profile:hover {
  background: rgba(249, 101, 102, 0.13);
  box-shadow: 0 3px 12px rgba(249, 101, 102, 0.18);
  transform: translateY(-1px);
}
.bd-card__cta {
  flex: 1;
  justify-content: center;
  font-size: 0.82rem; font-weight: 700;
  padding: 14px 10px !important;
  border-radius: 16px !important;
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #f96566, #f43f8e) !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(249,101,102,0.38) !important;
  transition: box-shadow 0.22s ease, transform 0.22s ease !important;
}
.bd-card__cta:hover:not(:disabled) {
  box-shadow: 0 10px 28px rgba(249,101,102,0.5) !important;
  transform: translateY(-1px);
}
.bd-card__cta:disabled { opacity: 0.7; cursor: not-allowed; }

/* ── Content col pass-through ── */
.bd-card__content-col { display: contents; }

/* ── Infinite scroll loading more ── */
.bd-loading-more {
  display: flex; align-items: center; justify-content: center; padding: 24px 0;
}

/* ── Skeleton shimmer ─────────────────────────────────── */
@keyframes skel-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

.skel-block {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 800px 100%;
  animation: skel-shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}

.bd-card--skeleton {
  pointer-events: none;
  user-select: none;
}

.bd-card--skeleton .bd-card__cover {
  background: #f0f0f0;
}

.bd-card--skeleton .bd-card__avatar {
  background: linear-gradient(90deg, #e8e8e8 25%, #e0e0e0 50%, #e8e8e8 75%);
  background-size: 800px 100%;
  animation: skel-shimmer 1.4s ease-in-out infinite;
  color: transparent;
}

/* ── Service filter chips ── */
.bd-service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.bd-service-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 50px;
  border: 1.5px solid #e5e7eb;
  background: #f9fafb;
  font-size: 0.72rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}
.bd-service-chip:hover {
  border-color: var(--color-carnation);
  color: var(--color-carnation);
  background: rgba(249,101,102,0.06);
}
.bd-service-chip--active {
  border-color: var(--chip-color, var(--color-carnation));
  color: var(--chip-color, var(--color-carnation));
  background: rgba(249,101,102,0.08);
  font-weight: 700;
}

/* Gradient icon square inside service chips */
.bd-service-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ── Active filter quick-remove pill ── */
.bd-active-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -6px;
}
.bd-active-filter__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 50px;
  border: 1.5px solid var(--chip-color, var(--color-carnation));
  background: rgba(249,101,102,0.07);
  color: var(--chip-color, var(--color-carnation));
  font-size: 0.72rem;
  font-weight: 700;
}
.bd-active-filter__remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.65rem;
  color: inherit;
  opacity: 0.7;
  padding: 0 0 0 3px;
  line-height: 1;
  transition: opacity 0.15s;
}
.bd-active-filter__remove:hover { opacity: 1; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .bd-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
}

@media (max-width: 640px) {
  .bd-top-bar { padding: 10px 12px; gap: 10px; }
  .bd-top-bar__count { display: none; }
  .feed-filter-panel { right: 0; width: min(300px, calc(100vw - 32px)); }
  .bd-grid { grid-template-columns: 1fr; gap: 10px; }

  /* Filter panel footer buttons — compact on mobile */
  .feed-filter-panel__footer .btn-primary,
  .feed-filter-panel__footer .btn-secondary {
    padding: 9px 14px;
    font-size: 0.82rem;
  }

  /* Card shell */
  .bd-card { border-radius: 16px; }

  /* Cover — much shorter on mobile */
  .bd-card__cover { height: 72px; border-radius: 16px 16px 0 0; }
  /* Star card — cover needs to stay inside the golden border */
  .bd-card--star .bd-card__cover { border-radius: 12px 12px 0 0; }

  /* Avatar — smaller, repositioned */
  .bd-card__avatar-wrap { top: calc(72px - 28px); left: 16px; width: 56px; height: 56px; }
  .bd-card__avatar { width: 56px; height: 56px; font-size: 1.1rem; border: 3px solid white; }
  .bd-card__avatar-badge { width: 26px; height: 26px; bottom: -4px; right: -6px; }

  /* Body — less top padding since cover + avatar are shorter */
  .bd-card__body { padding: 36px 14px 10px; gap: 8px; }

  /* Name */
  .bd-card__name { font-size: 0.92rem; }

  /* Role / location badges */
  .bd-card__role-badge { font-size: 0.65rem; padding: 3px 9px; }
  .bd-card__location { font-size: 0.7rem; }

  /* Bio box — single line clamp, less padding */
  .bd-card__bio-box { padding: 7px 10px; border-radius: 10px; }
  .bd-card__bio-quote { font-size: 1.1rem; }
  .bd-card__bio { font-size: 0.76rem; -webkit-line-clamp: 1; }

  /* Services */
  .bd-card__services-label { font-size: 0.6rem; }
  .bd-card__tags { gap: 5px; }
  .bd-card__tag { padding: 5px 7px; gap: 6px; border-radius: 10px; }
  .bd-card__tag-icon { width: 26px; height: 26px; border-radius: 7px; }
  .bd-card__tag-icon svg { width: 13px; height: 13px; }
  .bd-card__tag-name { font-size: 0.64rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bd-card__tag-arrow { width: 14px; height: 14px; }

  /* CTA button */
  .bd-card__footer { padding: 2px 12px 12px; gap: 6px; }
  .bd-card__view-profile {
    font-size: 0.72rem;
    padding: 10px 6px;
    border-radius: 12px;
    gap: 4px;
  }
  .bd-card__view-profile svg { width: 12px; height: 12px; }
  .bd-card__cta {
    font-size: 0.72rem !important;
    padding: 10px 6px !important;
    border-radius: 12px !important;
    gap: 4px;
  }
  .bd-card__cta svg { width: 13px; height: 13px; }

  /* Availability pill */
  .bd-card__avail { font-size: 0.62rem; padding: 3px 9px; top: 8px; right: 10px; }
  .bd-card__avail-dot { width: 5px; height: 5px; }
}

@media (max-width: 380px) {
  .bd-card__tags { grid-template-columns: 1fr; }
  .bd-card__body { padding: 34px 12px 8px; }
}


/* ── Upgrade banner — shown to non-members after 10 profiles ── */
.bd-upgrade-banner {
  margin-top: 8px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #1a1a2e 100%);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.bd-upgrade-banner::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(249,101,102,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.bd-upgrade-banner__content {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.bd-upgrade-banner__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f96566, #f43f8e);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(249,101,102,0.4);
}
.bd-upgrade-banner__text {
  flex: 1;
  min-width: 0;
}
.bd-upgrade-banner__text h3 {
  font-size: 1rem;
  font-weight: 800;
  color: white;
  margin: 0 0 4px;
  line-height: 1.3;
}
.bd-upgrade-banner__text p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
  line-height: 1.5;
}
.bd-upgrade-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 22px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, #f96566, #f43f8e);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(249,101,102,0.4);
  transition: box-shadow 0.2s, transform 0.2s;
  font-family: var(--font-family);
  flex-shrink: 0;
}
.bd-upgrade-banner__btn:hover {
  box-shadow: 0 8px 28px rgba(249,101,102,0.55);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .bd-upgrade-banner { padding: 20px 16px; border-radius: 16px; }
  .bd-upgrade-banner__content { flex-direction: column; text-align: center; gap: 14px; }
  .bd-upgrade-banner__icon { width: 44px; height: 44px; border-radius: 12px; }
  .bd-upgrade-banner__icon svg { width: 22px; height: 22px; }
  .bd-upgrade-banner__text h3 { font-size: 0.92rem; }
  .bd-upgrade-banner__text p { font-size: 0.75rem; }
  .bd-upgrade-banner__btn { padding: 10px 20px; font-size: 0.8rem; }
}

/* ── Paywall overlay ──────────────────────────────────────── */
.social-page--paywall {
  overflow: hidden;
  height: 100vh;
}

.bd-paywall-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-height: calc(100vh - 120px);
}

.bd-blurred-grid {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  max-height: calc(100vh - 120px);
}

/* MembershipRequiredCard sits centered over the blurred grid */
.bd-paywall-wrapper .mrc {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: calc(100% - 24px);
  max-width: 400px;
}

@media (max-width: 768px) {
  .social-page--paywall {
    height: 100dvh;
    overflow: hidden;
  }

  .bd-paywall-wrapper {
    max-height: 100dvh;
    overflow: hidden;
  }

  .bd-blurred-grid {
    max-height: 100dvh;
  }

  /* On mobile: fix the card to viewport center */
  .bd-paywall-wrapper .mrc {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 32px);
    max-width: 400px;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    z-index: 100;
  }
}
/* ── Layout ──────────────────────────────────────────────────────────────────── */
.chats-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  height: 100%;
  width: 100%;
  background: white;
  border-radius: 0;
  border: none;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────────── */
.chats-sidebar {
  border-right: 1px solid rgba(249,101,102,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f9f9fb;
  min-height: 0;
}

.chats-sidebar__header {
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(249,101,102,0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.chats-sidebar__title { font-size: 1.05rem; font-weight: 900; color: var(--color-dark); }

.chats-sidebar__count {
  font-size: 0.68rem;
  font-weight: 800;
  background: var(--color-carnation);
  color: white;
  padding: 2px 8px;
  border-radius: 50px;
  min-width: 20px;
  text-align: center;
}

/* Sidebar search */
.chats-sidebar__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin: 10px 12px 4px;
  background: white;
  border: 1.5px solid transparent;
  border-radius: 50px;
  transition: var(--transition);
  flex-shrink: 0;
}
.chats-sidebar__search:focus-within { border-color: var(--color-carnation); box-shadow: 0 0 0 3px rgba(249,101,102,0.08); }
.chats-sidebar__search svg { color: var(--color-text-muted); flex-shrink: 0; }
.chats-sidebar__search input { flex: 1; border: none; outline: none; font-size: 0.82rem; font-family: var(--font-family); background: transparent; color: var(--color-dark); }

.chats-sidebar__empty { padding: 32px 20px; text-align: center; font-size: 0.85rem; color: var(--color-text-muted); line-height: 1.7; }

.chats-sidebar__list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

/* Room item */
.chat-room-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 13px 16px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-family); transition: var(--transition);
  text-align: left; border-bottom: 1px solid rgba(249,101,102,0.05);
}
.chat-room-item:hover { background: white; }
.chat-room-item--active { background: white; border-right: 3px solid var(--color-carnation); }
.chat-room-item--unread { background: rgba(249,101,102,0.04); }

.chat-room-item__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-carnation), var(--color-sea-pink));
  color: white; font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.chat-room-item__avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-room-item__avatar--online { box-shadow: 0 0 0 2.5px white, 0 0 0 4.5px #22c55e; }

.chat-room-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.chat-room-item__row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
/* Name wrap — flex row so badge sits next to name */
.chat-room-item__name-wrap { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0; overflow: hidden; }
.chat-room-item__name { font-size: 0.875rem; font-weight: 600; color: var(--color-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-room-item__name--unread { font-weight: 800; color: var(--color-dark); }
.chat-room-item__time { font-size: 0.68rem; color: var(--color-text-muted); flex-shrink: 0; }
.chat-room-item__time--unread { color: var(--color-carnation); font-weight: 700; }
.chat-room-item__preview-row { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow: hidden; }
.chat-room-item__tick { display: flex; align-items: center; flex-shrink: 0; }
.chat-room-item__preview { font-size: 0.78rem; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.chat-room-item__preview--unread { font-weight: 600; color: var(--color-dark); }
.chat-room-item__badge {
  background: var(--color-carnation); color: white;
  font-size: 0.68rem; font-weight: 700;
  padding: 1px 6px; border-radius: 50px; flex-shrink: 0;
}

/* Clickable avatar in chat header */
.chat-header-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.chat-header-avatar-wrap > img {
  position: absolute;
  bottom: -3px;
  right: -5px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
  pointer-events: none;
}

.chat-header-avatar-btn {
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  background: none;
}
.chat-header-avatar-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 3px 10px rgba(249, 101, 102, 0.3);
}

/* Sidebar avatar wrap with overlay badge */
.chat-room-item__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.chat-room-item__avatar-wrap > img {
  position: absolute;
  bottom: -3px;
  right: -5px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  pointer-events: none;
}

/* ── Chat window ─────────────────────────────────────────────────────────────── */
.chats-window {
  display: flex;
  flex-direction: column;
  overflow: hidden;        /* clip everything inside */
  position: relative;
  min-height: 0;
  min-width: 0;
  flex: 1;
}

.chats-window__empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; color: var(--color-text-muted); font-size: 0.9rem;
}

/* Header — always visible at top */
.chats-window__header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--color-border);
  background: white;
  flex-shrink: 0;          /* never shrinks away */
  position: sticky;        /* belt-and-suspenders: stays pinned at top of flex column */
  top: 0;
  z-index: 10;
}
.chats-window__header-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chats-window__header-name { font-size: 0.9rem; font-weight: 700; color: var(--color-dark); }
/* Clickable header name */
.chats-window__header-name--link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chats-window__header-name--link:hover {
  color: var(--color-carnation, #f96566);
}
.chats-window__header-status { font-size: 0.72rem; min-height: 14px; }
.chats-window__conn-status { color: var(--color-text-muted); text-transform: capitalize; }
.chats-window__conn-status--online { color: #22c55e; }
.chats-window__typing-status { color: var(--color-carnation); font-style: italic; font-weight: 500; }
.chats-window__header-actions { display: flex; align-items: center; gap: 6px; }

.chats-header-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--color-vista-white); border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--color-text-muted); transition: var(--transition);
}
.chats-header-btn:hover, .chats-header-btn--active { background: var(--color-carnation); color: white; border-color: var(--color-carnation); }

.chats-mute-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--color-vista-white); border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--color-text-muted); transition: var(--transition);
}
.chats-mute-btn:hover { background: #f0e0e0; }
.chats-mute-btn--muted { opacity: 0.5; }

/* Message search */
.chats-msg-search {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; background: var(--color-vista-white);
  border-bottom: 1px solid var(--color-border); flex-shrink: 0;
}
.chats-msg-search svg { color: var(--color-carnation); flex-shrink: 0; }
.chats-msg-search input { flex: 1; border: none; outline: none; background: transparent; font-size: 0.85rem; font-family: var(--font-family); color: var(--color-dark); }
.chats-msg-search__clear { background: none; border: none; cursor: pointer; color: var(--color-text-muted); display: flex; align-items: center; padding: 2px; }
.chats-msg-search__clear:hover { color: var(--color-carnation); }

/* Messages area — the ONLY scrollable part */
.chats-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f4f5f7;
  width: 100%;
  min-height: 0;
  min-width: 0;
}
.chats-messages__empty { text-align: center; color: var(--color-text-muted); font-size: 0.875rem; margin: auto; }

.chat-date-sep {
  display: flex; align-items: center; justify-content: center;
  margin: 14px 0 10px; gap: 12px;
}
.chat-date-sep::before, .chat-date-sep::after {
  content: ''; flex: 1; height: 1px; background: rgba(249,101,102,0.1);
}
.chat-date-sep span {
  font-size: 0.7rem; font-weight: 600; color: var(--color-text-muted);
  background: #f4f5f7; padding: 2px 10px; border-radius: 50px;
  white-space: nowrap;
}

/* ── Message bubbles ─────────────────────────────────────────────────────────── */
.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 72%;
  animation: msg-enter 0.18s ease-out;
  margin-bottom: 2px;
}
@keyframes msg-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.chat-msg--own {
  align-self: flex-end;
  flex-direction: row-reverse;
  margin-left: auto;       /* push all the way to the right edge */
}
.chat-msg--other {
  align-self: flex-start;
  margin-right: auto;      /* push all the way to the left edge */
}

.chat-msg__avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-sea-pink), var(--color-wewak));
  color: white; font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden; align-self: flex-end;
}
.chat-msg__avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-msg__avatar--hidden { visibility: hidden; }

.chat-msg__col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

/* own messages align bubble to the right within col */
.chat-msg--own .chat-msg__col {
  align-items: flex-end;
}
.chat-msg--other .chat-msg__col {
  align-items: flex-start;
}

/* Reply preview inside bubble */
.chat-msg__reply-preview {
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-left: 3px solid rgba(0, 0, 0, 0.25);
  cursor: pointer;
  max-width: 100%;
}
.chat-msg--own .chat-msg__reply-preview {
  background: rgba(255, 255, 255, 0.22);
  border-left-color: rgba(255, 255, 255, 0.7);
}
.chat-msg__reply-name {
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 2px;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-msg__reply-text {
  font-size: 0.76rem;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.chat-msg__bubble {
  padding: 9px 13px; border-radius: 16px;
  font-size: 0.875rem; line-height: 1.55; word-break: break-word;
  display: flex; flex-direction: column; gap: 3px;
}
.chat-msg--own .chat-msg__bubble {
  background: var(--color-carnation); color: white;
  border-bottom-right-radius: 4px;
}
.chat-msg--other .chat-msg__bubble {
  background: white; color: var(--color-dark);
  border: 1px solid var(--color-border); border-bottom-left-radius: 4px;
}
.chat-msg__text { white-space: pre-wrap; }

.chat-msg__meta { display: flex; align-items: center; gap: 4px; align-self: flex-end; }
.chat-msg__time { font-size: 0.62rem; opacity: 0.6; white-space: nowrap; }
.chat-msg__status { opacity: 0.9; display: flex; align-items: center; }
.chat-msg__deleted { font-style: italic; opacity: 0.55; font-size: 0.82rem; }

/* ── Message tick icons ──────────────────────────────────────────────────────── */
.msg-tick { display: inline-flex; align-items: center; vertical-align: middle; }
/* Sending (clock) — grey/muted */
.msg-tick--sending { opacity: 0.5; color: white; }
/* Sent — single tick, white/muted */
.msg-tick--sent { opacity: 0.65; color: white; }
/* Delivered — double tick, white/light */
.msg-tick--delivered { opacity: 0.75; color: white; }
/* Read — double tick, bright cyan/blue */
.msg-tick--read { opacity: 1; color: #7dd3fc; }

/* In sidebar preview tick */
.chat-room-item__tick .msg-tick--sent,
.chat-room-item__tick .msg-tick--delivered { color: var(--color-text-muted); opacity: 0.8; }
.chat-room-item__tick .msg-tick--read { color: #0ea5e9; opacity: 1; }
.chat-room-item__tick .msg-tick--sending { color: var(--color-text-muted); opacity: 0.5; }

/* Hover actions — inline beside the bubble, no gap */
.chat-msg__row {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.chat-msg--own .chat-msg__row {
  flex-direction: row-reverse;
  justify-content: flex-start;  /* bubble sits at right since row is reversed */
}
.chat-msg--other .chat-msg__row {
  flex-direction: row;
  justify-content: flex-start;
}

.chat-msg__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}

/* Show on hover of the whole message row */
.chat-msg__row:hover .chat-msg__actions {
  opacity: 1;
  pointer-events: auto;
}

/* Remove the old JS-based .visible class approach */
.chat-msg__actions.visible {
  opacity: 1;
  pointer-events: auto;
}

.chat-msg__action-btn {
  width: 26px; height: 26px; border-radius: 6px; border: none;
  background: white; cursor: pointer; color: var(--color-text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  border: 1px solid var(--color-border);
}
.chat-msg__action-btn:hover { background: var(--color-vista-white); color: var(--color-carnation); }
.chat-msg__action-btn--danger:hover { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }

/* Typing bubble */
.chat-msg--typing .chat-msg__bubble { padding: 12px 14px; }
.chat-typing-bubble { display: flex !important; flex-direction: row !important; align-items: center; gap: 5px; }

.typing-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-sea-pink); animation: typing-bounce 1.2s ease-in-out infinite; flex-shrink: 0;
}
.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}
.typing-dot--inline { width: 5px; height: 5px; background: var(--color-carnation); }

/* Scroll to bottom */
.chats-scroll-btn {
  position: absolute; bottom: 130px; right: 20px;
  width: 38px; height: 38px; border-radius: 50%;
  background: white; border: 1.5px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--color-text-muted); z-index: 20;
  transition: var(--transition);
  flex-direction: column; gap: 0;
}
.chats-scroll-btn:hover { background: var(--color-carnation); color: white; border-color: var(--color-carnation); }
.chats-scroll-btn__badge {
  position: absolute; top: -7px; right: -7px;
  background: var(--color-carnation); color: white;
  font-size: 0.6rem; font-weight: 800;
  padding: 1px 5px; border-radius: 50px;
  border: 2px solid white; min-width: 18px; text-align: center;
  line-height: 1.4;
}

/* ── Reply banner ────────────────────────────────────────────────────────────── */
.chats-reply-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; background: var(--color-vista-white);
  border-top: 1px solid var(--color-border); flex-shrink: 0;
  animation: msg-enter 0.15s ease-out;
}
.chats-reply-banner__bar { width: 3px; height: 36px; background: var(--color-carnation); border-radius: 3px; flex-shrink: 0; }
.chats-reply-banner__content { flex: 1; min-width: 0; }
.chats-reply-banner__name { font-size: 0.75rem; font-weight: 700; color: var(--color-carnation); margin-bottom: 2px; }
.chats-reply-banner__text { font-size: 0.8rem; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chats-reply-banner__close {
  background: none; border: none; cursor: pointer;
  color: var(--color-text-muted); display: flex; align-items: center;
  padding: 4px; border-radius: 6px; flex-shrink: 0;
}
.chats-reply-banner__close:hover { color: var(--color-carnation); }

/* ── Input ───────────────────────────────────────────────────────────────────── */
.chats-input {
  display: flex; align-items: flex-end; gap: 10px;
  padding: 14px 16px; border-top: 1px solid var(--color-border);
  background: white; flex-shrink: 0;
}

.chats-offer-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--color-vista-white); border: 1.5px solid rgba(249,101,102,0.25);
  color: var(--color-carnation); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer; transition: var(--transition);
}
.chats-offer-btn:hover { background: var(--color-carnation); color: white; border-color: var(--color-carnation); }

.chats-input__field {
  flex: 1; padding: 11px 15px;
  border: 1.5px solid var(--color-border); border-radius: 20px;
  font-size: 0.9rem; font-family: var(--font-family);
  outline: none; transition: var(--transition);
  resize: none; line-height: 1.5; max-height: 120px; overflow-y: auto;
  scrollbar-width: none; /* Firefox */
}
.chats-input__field::-webkit-scrollbar { display: none; } /* Chrome/Safari/mobile */

/* ── Slim scrollbars for sidebar list & message area ────────────────────────── */
.chats-sidebar__list,
.chats-messages {
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 101, 102, 0.25) transparent;
}

.chats-sidebar__list::-webkit-scrollbar,
.chats-messages::-webkit-scrollbar {
  width: 4px;
}

.chats-sidebar__list::-webkit-scrollbar-track,
.chats-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chats-sidebar__list::-webkit-scrollbar-thumb,
.chats-messages::-webkit-scrollbar-thumb {
  background: rgba(249, 101, 102, 0.25);
  border-radius: 99px;
}

.chats-sidebar__list::-webkit-scrollbar-thumb:hover,
.chats-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(249, 101, 102, 0.5);
}
.chats-input__field:focus { border-color: var(--color-carnation); box-shadow: 0 0 0 3px rgba(249,101,102,0.1); }

.chats-input__send {
  width: 42px; height: 42px; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ── Emoji Picker ────────────────────────────────────────────────────────────── */
.chats-emoji-wrap {
  position: static;   /* anchor is the whole input bar, not this element */
  flex-shrink: 0;
}

.chats-emoji-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--color-vista-white); border: 1.5px solid rgba(249,101,102,0.25);
  font-size: 1.15rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
  flex-shrink: 0;
}
.chats-emoji-btn:hover,
.chats-emoji-btn--active {
  background: var(--color-carnation);
  border-color: var(--color-carnation);
  transform: scale(1.05);
}

/* Picker is fixed so it's never clipped by any overflow:hidden parent */
.chats-emoji-picker {
  position: fixed;
  /* JS positions it via inline style; these are sensible fallbacks */
  bottom: 80px;
  left: 16px;
  z-index: 2000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  animation: emoji-pop 0.15s cubic-bezier(0.4,0,0.2,1);
  /* Clamp width so it never bleeds off-screen on small devices */
  max-width: calc(100vw - 32px);
}

@keyframes emoji-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* Scale the picker down a touch on narrow phones */
@media (max-width: 420px) {
  .chats-emoji-picker {
    left: 50% !important;
    transform: translateX(-50%);
    max-width: calc(100vw - 16px);
  }
  @keyframes emoji-pop {
    from { opacity: 0; transform: translateX(-50%) translateY(8px) scale(0.96); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0)   scale(1); }
  }
}

/* ── Rate Offer Modal ────────────────────────────────────────────────────────── */
.rate-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; padding: 20px; animation: fade-in 0.15s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.rate-modal {
  background: white; border-radius: var(--border-radius-lg);
  padding: 28px; width: 100%; max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modal-up 0.2s cubic-bezier(0.4,0,0.2,1);
}
@keyframes modal-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.rate-modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.rate-modal__title { font-size: 1rem; font-weight: 800; color: var(--color-dark); }
.rate-modal__close {
  width: 32px; height: 32px; border-radius: 8px; background: var(--color-vista-white);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted); transition: var(--transition);
}
.rate-modal__close:hover { background: #fee2e2; color: var(--color-carnation); }

.rate-modal__form { display: flex; flex-direction: column; gap: 16px; }
.rate-modal__field { display: flex; flex-direction: column; gap: 6px; }
.rate-modal__label { font-size: 0.82rem; font-weight: 600; color: var(--color-dark); }

.rate-modal__input-wrap {
  display: flex; align-items: center;
  border: 1.5px solid var(--color-border); border-radius: 10px; overflow: hidden; transition: var(--transition);
}
.rate-modal__input-wrap:focus-within { border-color: var(--color-carnation); box-shadow: 0 0 0 3px rgba(249,101,102,0.12); }

.rate-modal__currency {
  padding: 0 12px; font-size: 0.9rem; font-weight: 700;
  color: var(--color-carnation); background: var(--color-vista-white);
  border-right: 1.5px solid var(--color-border); height: 44px; display: flex; align-items: center;
}
.rate-modal__input {
  flex: 1; padding: 10px 14px; border: none; outline: none;
  font-size: 1rem; font-family: var(--font-family); font-weight: 600; color: var(--color-dark); background: white;
}
.rate-modal__input--note {
  padding: 10px 14px; border: 1.5px solid var(--color-border); border-radius: 10px;
  font-size: 0.88rem; font-family: var(--font-family); color: var(--color-dark);
  outline: none; transition: var(--transition); width: 100%; box-sizing: border-box;
}
.rate-modal__input--note:focus { border-color: var(--color-carnation); box-shadow: 0 0 0 3px rgba(249,101,102,0.12); }

.rate-modal__quick { display: flex; gap: 8px; flex-wrap: wrap; }
.rate-modal__preset {
  padding: 6px 12px; border-radius: 50px; border: 1.5px solid var(--color-border);
  background: white; font-size: 0.8rem; font-weight: 600; color: var(--color-text-muted);
  cursor: pointer; transition: var(--transition); font-family: var(--font-family);
}
.rate-modal__preset:hover { border-color: var(--color-carnation); color: var(--color-carnation); }
.rate-modal__preset--active { background: var(--color-carnation); border-color: var(--color-carnation); color: white; }
.rate-modal__submit { width: 100%; justify-content: center; padding: 12px; }

/* ── Offer Bubble ────────────────────────────────────────────────────────────── */
.offer-bubble { display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.offer-bubble__label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.7; }
.offer-bubble__rate { font-size: 1.5rem; font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
.offer-bubble__currency { font-size: 0.75rem; font-weight: 600; opacity: 0.7; }
.offer-bubble__note { font-size: 0.8rem; opacity: 0.8; line-height: 1.4; }
.offer-bubble__status { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; width: fit-content; margin-top: 2px; }
.offer-bubble__status--pending  { background: rgba(217,119,6,0.15);  color: #d97706; }
.offer-bubble__status--accepted { background: rgba(22,163,74,0.15);  color: #16a34a; }
.offer-bubble__status--declined { background: rgba(220,38,38,0.12);  color: #dc2626; }
.chat-msg--own .offer-bubble__status--pending,
.chat-msg--own .offer-bubble__status--accepted,
.chat-msg--own .offer-bubble__status--declined { background: rgba(255,255,255,0.2); color: rgba(255,255,255,0.9); }
.offer-bubble__actions { display: flex; gap: 8px; margin-top: 6px; }
.offer-bubble__btn { flex: 1; padding: 7px 0; border-radius: 8px; font-size: 0.8rem; font-weight: 700; font-family: var(--font-family); cursor: pointer; border: none; transition: var(--transition); }
.offer-bubble__btn--accept { background: #dcfce7; color: #16a34a; }
.offer-bubble__btn--accept:hover { background: #16a34a; color: white; }
.offer-bubble__btn--decline { background: #fee2e2; color: #dc2626; }
.offer-bubble__btn--decline:hover { background: #dc2626; color: white; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  /* Full-screen single panel layout */
  .chats-layout {
    grid-template-columns: 1fr;
    position: relative;
    overflow: hidden;
  }

  /* Sidebar fills screen by default (list view) */
  .chats-sidebar {
    border-right: none;
    border-bottom: none;
    max-height: none;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* When a room is selected, slide sidebar out to the left */
  .chats-layout--room-open .chats-sidebar {
    transform: translateX(-100%);
  }

  /*
   * Chat window — use position:fixed anchored to the viewport.
   * With interactive-widget=resizes-content in the viewport meta,
   * the layout viewport (and fixed elements) shrink when the
   * soft keyboard opens, so the header stays visible.
   * top: 62px  = app-topnav height
   * bottom: 64px = app-bottomnav height
   */
  .chats-window {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    bottom: 64px;
    z-index: 2;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* When a room is selected, slide chat window in from the right */
  .chats-layout--room-open .chats-window {
    transform: translateX(0);
  }

  /* Message bubbles wider on mobile */
  .chat-msg { max-width: 85%; }

  /* Hide hover action buttons on touch — long-press context menu is used instead */
  .chat-msg__actions { display: none !important; }

  /* Back button in chat header */
  .chats-back-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-vista-white);
    border: 1px solid var(--color-border);
    cursor: pointer;
    color: var(--color-dark);
    flex-shrink: 0;
    transition: var(--transition);
  }
  .chats-back-btn:hover {
    background: var(--color-carnation);
    color: white;
    border-color: var(--color-carnation);
  }

  /* Header adjustments */
  .chats-window__header {
    padding: 10px 14px;
  }

  /* Input area safe padding for bottom nav */
  .chats-input {
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  /* Sidebar header padding */
  .chats-sidebar__header {
    padding: 16px 16px 12px;
  }

  /* Scroll-to-bottom button above input */
  .chats-scroll-btn {
    bottom: 90px;
  }
}

/* Back button hidden on desktop */
.chats-back-btn {
  display: none;
}

/* ── Privacy Mode ────────────────────────────────────────────────────────────── */

/* Active state: amber tint so it's visually distinct from the red search/active state */
.chats-header-btn--privacy {
  background: #f59e0b !important;
  border-color: #f59e0b !important;
  color: white !important;
}
.chats-header-btn--privacy:hover {
  background: #d97706 !important;
  border-color: #d97706 !important;
}

/* Blurred text — applied to chat-msg__text and reply text */
.chat-msg__text--blurred {
  filter: blur(6px);
  user-select: none;
  cursor: pointer;
  border-radius: 4px;
  transition: filter 0.2s ease;
}

/* Reveal individual message on hover/focus when privacy mode is active */
.chat-msg__text--blurred:hover,
.chat-msg__text--blurred:focus {
  filter: blur(0);
  outline: none;
}

/* Subtle privacy banner below header when mode is on */
.chats-privacy-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 16px;
  background: #fef3c7;
  border-bottom: 1px solid #fde68a;
  font-size: 0.73rem;
  font-weight: 600;
  color: #92400e;
  flex-shrink: 0;
  animation: msg-enter 0.15s ease-out;
}
.chats-privacy-banner svg {
  flex-shrink: 0;
  opacity: 0.8;
}

/* ── Message context menu (mobile long-press / desktop right-click) ─────────── */
.chat-ctx-menu {
  position: fixed;
  z-index: 3000;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid var(--color-border);
  min-width: 160px;
  overflow: hidden;
  animation: ctx-pop 0.14s cubic-bezier(0.4,0,0.2,1);
}

@keyframes ctx-pop {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.chat-ctx-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-dark);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease;
}
.chat-ctx-menu__item:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}
.chat-ctx-menu__item:hover,
.chat-ctx-menu__item:active {
  background: var(--color-vista-white);
}
.chat-ctx-menu__item--danger {
  color: #dc2626;
}
.chat-ctx-menu__item--danger:hover,
.chat-ctx-menu__item--danger:active {
  background: #fee2e2;
}

/* Deleted message style — italic with faded icon */
.chat-msg__deleted {
  display: flex;
  align-items: center;
  font-style: italic;
  opacity: 0.55;
  font-size: 0.82rem;
}

/* ── Delete Mode ─────────────────────────────────────────────────────────────── */
.chats-delete-toggle {
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  color: var(--color-text-muted); padding: 4px;
  border-radius: 6px; transition: var(--transition);
}
.chats-delete-toggle:hover { color: var(--color-carnation); background: rgba(249,101,102,0.08); }

.chats-delete-cancel {
  background: none; border: none; cursor: pointer;
  color: var(--color-text-muted); padding: 4px;
  border-radius: 6px; transition: var(--transition);
}
.chats-delete-cancel:hover { color: var(--color-dark); }

.chats-sidebar__selected {
  font-size: 0.82rem; font-weight: 700; color: var(--color-dark); flex: 1;
}

.chats-delete-confirm {
  margin-left: auto;
  background: var(--color-carnation); border: none; cursor: pointer;
  color: white; padding: 6px 8px; border-radius: 8px; transition: var(--transition);
}
.chats-delete-confirm:hover { background: #e84546; }
.chats-delete-confirm:disabled { opacity: 0.4; cursor: not-allowed; }

.chat-room-item__check {
  width: 20px; height: 20px; min-width: 20px;
  border: 2px solid #ccc; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.chat-room-item__check--active {
  background: var(--color-carnation); border-color: var(--color-carnation); color: white;
}
.chat-room-item--checked { background: rgba(249,101,102,0.05); }

/* ── Report button in chat header ───────────────────────────────────────────── */
.chats-header-btn--report {
  color: var(--color-text-muted);
}
.chats-header-btn--report:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

/* ── Report option in context menu ─────────────────────────────────────────── */
.chat-ctx-menu__item--report {
  color: #dc2626;
}
.chat-ctx-menu__item--report:hover,
.chat-ctx-menu__item--report:active {
  background: #fee2e2;
}

/* ── Paywall overlay ──────────────────────────────────────── */
.chats-paywall-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Inner container when user has an active subscription — must fill the wrapper */
.chats-paywall-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.chats-paywall-wrapper--active {
  overflow: hidden;
}

.chats-paywall-blur {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* MembershipRequiredCard centered over the blurred chat */
.chats-paywall-wrapper--active .mrc {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: calc(100% - 24px);
  max-width: 400px;
}

@media (max-width: 768px) {
  /* On mobile: fix the card to viewport center */
  .chats-paywall-wrapper--active .mrc {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 32px);
    max-width: 400px;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    z-index: 100;
  }
}
/* ============================================================
   Notifications Page — Modern PWA Style
   ============================================================ */

/* ── Page header ── */
.notif-page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border-radius: 18px;
  padding: 20px 24px;
  border: 1px solid rgba(249, 101, 102, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.notif-page-header__left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.notif-page-header__icon-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-carnation), var(--color-sea-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(249, 101, 102, 0.25);
}

.notif-page-header__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50px;
  background: #f43f5e;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  line-height: 1;
}

.notif-page-header__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 2px;
}

.notif-page-header__sub {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ── Action buttons wrapper ── */
.notif-page-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Mark all button ── */
.notif-mark-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-family);
  color: var(--color-carnation);
  background: var(--color-vista-white);
  border: 1.5px solid rgba(249, 101, 102, 0.18);
  border-radius: 50px;
  padding: 8px 16px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.notif-mark-all-btn:hover:not(:disabled) {
  background: rgba(249, 101, 102, 0.1);
  border-color: rgba(249, 101, 102, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 101, 102, 0.15);
}
.notif-mark-all-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.notif-clear-all-btn {
  color: #64748b;
  background: #f8fafc;
  border-color: #e2e8f0;
}
.notif-clear-all-btn:hover:not(:disabled) {
  background: #e2e8f0;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.1);
}

/* ── Grouped list ── */
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.notif-group__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0 4px;
  margin-bottom: 8px;
}

.notif-group__card {
  overflow: hidden;
}

/* ── Individual notification row ── */
.notif-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px 15px 20px;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
  width: 100%;
  text-align: left;
  border-radius: 0;
  font-family: var(--font-family);
  border-left: none;
  border-right: none;
  border-top: none;
}

.notif-item--last {
  border-bottom: none;
}

.notif-item:hover:not(:disabled) {
  background: rgba(249, 101, 102, 0.03);
}

.notif-item:active:not(:disabled) {
  transform: scale(0.99);
}

.notif-item--unread {
  background: rgba(249, 101, 102, 0.035);
}

.notif-item--unread:hover:not(:disabled) {
  background: rgba(249, 101, 102, 0.07);
}

/* Left accent line for unread */
.notif-item__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-carnation);
  border-radius: 0 3px 3px 0;
}

/* ── Icon bubble ── */
.notif-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.notif-item:hover:not(:disabled) .notif-item__icon {
  transform: scale(1.05);
}

/* ── Avatar (sender profile pic) ── */
.notif-item__avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: none;
  transition: transform 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f96566, #e05c97);
}

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

.notif-item__avatar-initials {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
}

.notif-item:hover:not(:disabled) .notif-item__avatar {
  transform: scale(1.05);
}

/* ── Body text ── */
.notif-item__body {
  flex: 1;
  min-width: 0;
}

.notif-item__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 3px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-item--unread .notif-item__title {
  font-weight: 800;
}

.notif-item:disabled .notif-item__title {
  font-weight: 600;
  color: var(--color-text-muted);
}

.notif-item__text {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.notif-item__time {
  font-size: 0.72rem;
  color: #b0bac9;
  font-weight: 500;
}

.notif-item__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-carnation);
  background: rgba(249, 101, 102, 0.08);
  padding: 2px 9px;
  border-radius: 50px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* ── Right side ── */
.notif-item__right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.notif-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-carnation);
  box-shadow: 0 0 0 3px rgba(249, 101, 102, 0.15);
  display: block;
}

.notif-item__chevron {
  display: flex;
  align-items: center;
}

/* ── Empty state icon ── */
.notif-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--color-vista-white), #fce8e8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-carnation);
  box-shadow: 0 4px 16px rgba(249, 101, 102, 0.12);
}

/* ── Mobile tweaks ── */
@media (max-width: 480px) {
  .notif-page-header {
    padding: 16px;
    border-radius: 14px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .notif-page-header__left {
    gap: 10px;
    flex: 1;
    min-width: 0;
  }

  /* Scale down the header bell icon on mobile */
  .notif-page-header__icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .notif-page-header__icon-wrap svg {
    width: 16px;
    height: 16px;
  }

  .notif-page-header__title {
    font-size: 1.1rem;
  }

  .notif-page-header__sub {
    font-size: 0.75rem;
  }

  .notif-page-header__actions {
    gap: 6px;
  }

  .notif-mark-all-btn {
    font-size: 0.72rem;
    padding: 7px 12px;
    gap: 4px;
  }

  .notif-item {
    padding: 13px 14px 13px 16px;
    gap: 12px;
  }

  .notif-item__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .notif-item__avatar {
    width: 46px;
    height: 46px;
  }

  /* Keep title text from truncating */
  .notif-item__title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

/* ── Actionable items always show a pointer ── */
.notif-item--actionable {
  cursor: pointer;
}

/* ── Tablet (481–768px): slightly smaller padding ── */
@media (min-width: 481px) and (max-width: 768px) {
  .notif-page-header {
    gap: 10px;
  }

  .notif-mark-all-btn {
    padding: 8px 16px;
  }
}


/* ── Profile Viewed — Blurred Avatar ── */
.notif-item__avatar--blurred {
  position: relative;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.notif-item__avatar-img--blurred {
  filter: blur(6px);
  transform: scale(1.1);
}

.notif-item__avatar-silhouette {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #94a3b8;
}
/* ============================================================
   Earning Dashboard Card — inside logged-in dashboard
   ============================================================ */

.earning-dash {
  background: linear-gradient(135deg, var(--color-carnation) 0%, #e05a6b 55%, var(--color-sea-pink) 100%);
  border-radius: 22px;
  padding: 26px 24px 22px;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Decorative blob */
.earning-dash::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
  top: -80px;
  right: -60px;
  border-radius: 50%;
  pointer-events: none;
}
.earning-dash::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,0.07), transparent);
  bottom: -40px;
  left: -20px;
  border-radius: 50%;
  pointer-events: none;
}

/* Header */
.earning-dash__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
  position: relative;
}

.earning-dash__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  backdrop-filter: blur(4px);
}

.earning-dash__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: white;
  line-height: 1.3;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.earning-dash__subtitle {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* Steps */
.earning-dash__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
}

.earning-step {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(6px);
  transition: background 0.2s;
  position: relative;
}

.earning-step:hover {
  background: rgba(255, 255, 255, 0.18);
}

.earning-step__number-wrap {
  position: absolute;
  top: -10px;
  left: 14px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.earning-step__number {
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--color-carnation);
  line-height: 1;
}

.earning-step__icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-top: 4px;
}

.earning-step__title {
  font-size: 0.85rem;
  font-weight: 800;
  color: white;
  line-height: 1.3;
}

.earning-step__desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

/* CTA row */
.earning-dash__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

.earning-dash__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--color-carnation);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  flex-shrink: 0;
}

.earning-dash__btn:hover {
  background: var(--color-vista-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.earning-dash__btn svg {
  transition: transform 0.2s;
}
.earning-dash__btn:hover svg {
  transform: translateX(3px);
}

.earning-dash__btn--secondary {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
  backdrop-filter: blur(4px);
}
.earning-dash__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.earning-dash__note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
  flex: 1;
  min-width: 180px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .earning-dash__steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .earning-dash {
    padding: 24px 20px 22px;
    border-radius: 20px;
  }

  .earning-dash__header {
    margin-bottom: 22px;
    gap: 12px;
  }

  .earning-dash__icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .earning-dash__title {
    font-size: 1rem;
    margin-bottom: 5px;
  }

  .earning-dash__subtitle {
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .earning-dash__steps {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 22px;
  }

  .earning-step {
    padding: 18px 14px 16px;
    gap: 11px;
  }

  .earning-step__number-wrap {
    top: -11px;
    left: 12px;
    width: 24px;
    height: 24px;
  }

  .earning-step__number {
    font-size: 0.72rem;
  }

  .earning-step__icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    margin-top: 6px;
  }

  .earning-step__icon-wrap svg {
    width: 19px;
    height: 19px;
  }

  .earning-step__title {
    font-size: 0.875rem;
    line-height: 1.35;
  }

  .earning-step__desc {
    font-size: 0.78rem;
    line-height: 1.6;
  }

  /* Disable hover lift on touch */
  .earning-step:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .earning-dash__btn:hover {
    transform: none;
  }

  .earning-dash__cta {
    gap: 12px;
  }

  .earning-dash__btn {
    font-size: 0.875rem;
    padding: 11px 24px;
  }

  .earning-dash__note {
    font-size: 0.8rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .earning-dash {
    padding: 22px 16px 20px;
    border-radius: 18px;
  }

  .earning-dash__header {
    margin-bottom: 20px;
    gap: 11px;
    align-items: center;
  }

  .earning-dash__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .earning-dash__title {
    font-size: 0.95rem;
  }

  .earning-dash__subtitle {
    font-size: 0.78rem;
  }

  .earning-dash__steps {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }

  .earning-step {
    padding: 16px 12px 14px;
    gap: 10px;
    border-radius: 14px;
  }

  .earning-step__number-wrap {
    width: 22px;
    height: 22px;
    top: -10px;
    left: 11px;
  }

  .earning-step__number {
    font-size: 0.68rem;
  }

  .earning-step__icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin-top: 4px;
  }

  .earning-step__icon-wrap svg {
    width: 17px;
    height: 17px;
  }

  .earning-step__title {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .earning-step__desc {
    font-size: 0.75rem;
    line-height: 1.55;
  }

  .earning-dash__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .earning-dash__btn {
    width: 100%;
    justify-content: center;
    font-size: 0.875rem;
    padding: 12px 20px;
    border-radius: 50px;
  }

  .earning-dash__note {
    font-size: 0.77rem;
    text-align: center;
  }
}
/* ── Welcome Hero ── */
.home-welcome {
  border-radius: 22px;
  padding: 28px 28px 24px;
  background: linear-gradient(135deg, var(--color-carnation) 0%, #e05a6b 50%, var(--color-sea-pink) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.home-welcome::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='160' cy='40' r='80' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='20' cy='150' r='60' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") right top no-repeat;
  pointer-events: none;
}
.home-welcome__greeting {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.home-welcome__name {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.15;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.home-welcome__role-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.22);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.home-welcome__sub {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 20px;
}
.home-welcome__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.home-welcome__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-family);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
}
.home-welcome__btn--white {
  background: white;
  color: var(--color-carnation);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.home-welcome__btn--white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.home-welcome__btn--outline {
  background: rgba(255,255,255,0.18);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}
.home-welcome__btn--outline:hover { background: rgba(255,255,255,0.28); }

/* ── Stats strip ── */
.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.home-stat {
  background: white;
  border-radius: 16px;
  padding: 18px 16px;
  border: 1px solid rgba(249,101,102,0.08);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition);
}
.home-stat:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(249,101,102,0.1); }
.home-stat__icon {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--color-vista-white);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-carnation);
  margin-bottom: 2px;
}
.home-stat__value { font-size: 1.7rem; font-weight: 900; color: var(--color-dark); line-height: 1; }
.home-stat__label { font-size: 0.75rem; color: var(--color-text-muted); font-weight: 500; }

/* ── Quick action pills ── */
.home-quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.home-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: white;
  border: 1.5px solid rgba(249,101,102,0.12);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.home-quick-btn:hover {
  background: var(--color-vista-white);
  border-color: var(--color-carnation);
  color: var(--color-carnation);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(249,101,102,0.15);
}
.home-quick-btn svg { color: var(--color-carnation); }


/* ── Activity / notification feed items ── */
.activity-list { display: flex; flex-direction: column; gap: 2px; }
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.activity-item:hover { background: #fafafa; }
.activity-item--unread { background: var(--color-vista-white); }
.activity-item--unread::before {
  content: '';
  position: absolute;
  left: 6px; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-carnation);
}
.activity-item__icon {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--color-vista-white);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-carnation);
  flex-shrink: 0;
}
.activity-item__body { flex: 1; min-width: 0; }
.activity-item__title {
  font-size: 0.875rem; font-weight: 600; color: var(--color-dark);
  margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.activity-item__text { font-size: 0.8rem; color: var(--color-text-muted); line-height: 1.5; }
.activity-item__time { font-size: 0.7rem; color: #aaa; margin-top: 3px; }

/* ── Request card (social style) ── */
.request-card {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(249,101,102,0.08);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.request-card:hover { box-shadow: 0 6px 20px rgba(249,101,102,0.1); transform: translateY(-2px); }
.request-card__top {
  padding: 16px 18px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.request-card__service-tag {
  font-size: 0.68rem; font-weight: 700; color: var(--color-carnation);
  background: var(--color-vista-white);
  padding: 3px 10px; border-radius: 50px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.request-card__title {
  font-size: 0.95rem; font-weight: 700; color: var(--color-dark);
  padding: 0 18px 6px; line-height: 1.4;
}
.request-card__desc {
  font-size: 0.82rem; color: var(--color-text-muted);
  padding: 0 18px 14px; line-height: 1.6;
}
.request-card__footer {
  padding: 12px 18px;
  border-top: 1px solid rgba(249,101,102,0.06);
  background: #fafafa;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
}
.request-card__meta { font-size: 0.78rem; color: var(--color-text-muted); display: flex; align-items: center; gap: 14px; }

/* ── Buddy request inline ── */
.buddy-req-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  background: var(--color-vista-white);
  margin-bottom: 8px; transition: var(--transition);
}
.buddy-req-item:hover { background: #f7eded; }
.buddy-req-item__info { flex: 1; min-width: 0; }
.buddy-req-item__name { font-size: 0.875rem; font-weight: 700; color: var(--color-dark); }
.buddy-req-item__actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Clickable stat card ── */
.home-stat--clickable {
  cursor: pointer;
  background: white;
  border: none;
  text-align: left;
  font-family: var(--font-family);
}
.home-stat--clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(249,101,102,0.14);
  border-color: rgba(249,101,102,0.2);
}
.home-stat--clickable:focus-visible {
  outline: 2px solid var(--color-carnation);
  outline-offset: 2px;
}
.home-stat--clickable:active { transform: translateY(-1px); }

/* Live dot on stat value */
.home-stat__value { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.home-stat__dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-carnation);
  flex-shrink: 0;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.home-stat__dot--chat { background: #3b82f6; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

/* ── Notification panel badge ── */
.notif-panel__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: var(--color-carnation);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 50px;
  padding: 0 4px;
  letter-spacing: 0;
  line-height: 1;
}

/* ── Notification item as button ── */
.activity-item--btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-family);
  cursor: pointer;
}
.activity-item--btn:hover { background: #fafafa; }
.activity-item--btn:focus-visible {
  outline: 2px solid var(--color-carnation);
  outline-offset: -2px;
  border-radius: 14px;
}
.activity-item__arrow {
  flex-shrink: 0;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  margin-left: 4px;
}

/* ── Notification row hover (full-page list) ── */
.notif-row:hover { background: var(--color-vista-white) !important; }
.notif-row:focus-visible {
  outline: 2px solid var(--color-carnation);
  outline-offset: -2px;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .home-stats { grid-template-columns: repeat(2, 1fr); }
  .home-welcome__name { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .home-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .home-welcome { padding: 22px 18px 20px; }
  .home-welcome__name { font-size: 1.2rem; }
  .home-welcome__btn { font-size: 0.8rem; padding: 9px 16px; }
}
/* ============================================================
   Safety / Onboarding Modal — shown after subscription purchase
   ============================================================ */

/* ── Backdrop ── */
.safety-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.safety-overlay--in {
  opacity: 1;
}

/* ── Modal card ── */
.safety-modal {
  width: 100%;
  max-width: 440px;
  border-radius: 24px;
  overflow: hidden;
  background: white;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.28s ease;
  opacity: 0;
  max-height: 92vh;
  overflow-y: auto;
}

.safety-modal--in {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ── Red header ── */
.safety-modal__header {
  background: linear-gradient(145deg, var(--color-carnation) 0%, #d94f50 100%);
  padding: 28px 28px 24px;
}

.safety-modal__logo {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.safety-modal__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  line-height: 1.35;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.safety-modal__plan-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 50px;
}

/* ── White body ── */
.safety-modal__body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.safety-modal__intro {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 20px;
}

.safety-modal__highlight {
  color: var(--color-carnation);
  font-weight: 700;
}

.safety-modal__highlight--danger {
  color: var(--color-carnation);
}

/* ── Tips list ── */
.safety-modal__tips {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.safety-modal__tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.safety-modal__tip-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--color-vista-white);
  color: var(--color-carnation);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.safety-modal__tip-text {
  font-size: 0.83rem;
  color: #4b5563;
  line-height: 1.6;
}

.safety-modal__tip-text strong {
  color: #111827;
  font-weight: 700;
}

/* ── Divider ── */
.safety-modal__divider {
  border: none;
  border-top: 1px solid #f3f4f6;
  margin: 4px 0 20px;
}

/* ── Agree checkbox ── */
.safety-modal__agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: #374151;
  line-height: 1.55;
  cursor: pointer;
  margin-bottom: 16px;
}

.safety-modal__checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--color-carnation);
  cursor: pointer;
  margin-top: 1px;
}

.safety-modal__link {
  color: var(--color-carnation);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.safety-modal__link:hover {
  color: #d94f50;
}

/* ── CTA button ── */
.safety-modal__cta {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  border: none;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
  margin-bottom: 14px;
  background: #9ca3af;
  color: white;
  opacity: 0.7;
}

.safety-modal__cta--active {
  background: linear-gradient(135deg, var(--color-carnation) 0%, #d94f50 100%);
  opacity: 1;
  box-shadow: var(--shadow-md);
}

.safety-modal__cta--active:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.safety-modal__cta:disabled {
  cursor: not-allowed;
}

/* ── Read more link ── */
.safety-modal__read-more {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  color: #6b7280;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.safety-modal__read-more:hover {
  color: #374151;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .safety-modal__header {
    padding: 22px 20px 20px;
  }

  .safety-modal__body {
    padding: 20px 20px 24px;
  }

  .safety-modal__title {
    font-size: 1.05rem;
  }
}
/* ── Subscription Page — fit viewport ── */
.sub-page-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-height: 0;
}

/* ── Subscription header ── */
.sub-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 12px;
}

.sub-header__pill {
  display: inline-block;
  background: var(--color-vista-white);
  color: var(--color-carnation);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.sub-header__title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.sub-header__subtitle {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ── Free trial banner ── */
.sub-trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.sub-trial-banner__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sub-trial-banner__text strong {
  font-size: 0.85rem;
  font-weight: 800;
  color: #15803d;
}

.sub-trial-banner__text span {
  font-size: 0.75rem;
  color: #166534;
}

/* ── Social Proof Marquee ── */
.sub-marquee-wrapper {
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, #fdf4ff 0%, #fef3c7 100%);
  border: 1px solid rgba(139, 92, 246, 0.18);
  padding: 0;
  margin-bottom: 4px;
  position: relative;
}

/* Fade edges */
.sub-marquee-wrapper::before,
.sub-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}
.sub-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #fdf4ff, transparent);
}
.sub-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #fef3c7, transparent);
}

.sub-marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: sub-marquee-scroll 38s linear infinite;
  padding: 9px 0;
}

.sub-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes sub-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.sub-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  white-space: nowrap;
}

.sub-marquee-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c084fc;
  flex-shrink: 0;
  opacity: 0.7;
}

.sub-marquee-emoji {
  font-size: 0.9rem;
  line-height: 1;
}

.sub-marquee-text {
  font-size: 0.76rem;
  font-weight: 600;
  color: #6b21a8;
  letter-spacing: 0.01em;
}

/* ── Subscription plans ── */
.sub-plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.sub-plan-card {
  background: white;
  border-radius: 16px;
  border: 1.5px solid rgba(249,101,102,0.1);
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.sub-plan-card:hover {
  box-shadow: 0 8px 28px rgba(249,101,102,0.12);
  transform: translateY(-2px);
}

.sub-plan-card--highlight {
  background: linear-gradient(145deg, var(--color-carnation) 0%, #d44f60 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 8px 28px rgba(249,101,102,0.35);
}
.sub-plan-card--highlight:hover {
  box-shadow: 0 14px 40px rgba(249,101,102,0.45);
}

.sub-plan-card--current {
  border-color: var(--color-carnation);
  border-width: 2px;
}

.sub-plan-card__badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 0.65rem; font-weight: 800; padding: 3px 10px;
  border-radius: 50px; text-transform: uppercase; letter-spacing: 0.06em;
  background: rgba(255,255,255,0.2); color: white;
}
.sub-plan-card:not(.sub-plan-card--highlight) .sub-plan-card__badge {
  background: var(--color-vista-white); color: var(--color-carnation);
}
.sub-plan-card__badge--popular {
  background: white; color: var(--color-carnation);
}

.sub-plan-card__name {
  font-size: 0.78rem; font-weight: 700; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.06em;
}
.sub-plan-card--highlight .sub-plan-card__name { opacity: 0.9; color: rgba(255,255,255,0.85); }

.sub-plan-card__price {
  font-size: 1.6rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: var(--color-dark);
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px;
}
.sub-plan-card--highlight .sub-plan-card__price { color: white; }

.sub-plan-card__features { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sub-plan-card__feature {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--color-text);
}
.sub-plan-card--highlight .sub-plan-card__feature { color: rgba(255,255,255,0.9); }
.sub-plan-card__feature svg { color: var(--color-carnation); flex-shrink: 0; width: 14px; height: 14px; }
.sub-plan-card--highlight .sub-plan-card__feature svg { color: rgba(255,255,255,0.9); }

/* ── Excluded feature row ── */
.sub-plan-card__feature--excluded {
  opacity: 0.38;
}
.sub-plan-card__feature--excluded svg {
  color: #bbb !important;
}
.sub-plan-card--highlight .sub-plan-card__feature--excluded svg {
  color: rgba(255,255,255,0.45) !important;
}

/* ── Plan icon ── */
.sub-plan-card__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--sub-icon-bg, #eef3fd);
  color: var(--sub-accent, #5b8dee);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sub-plan-card--highlight .sub-plan-card__icon {
  background: rgba(255,255,255,0.2);
  color: white;
}

/* ── Tagline ── */
.sub-plan-card__tagline {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 2px;
  line-height: 1.3;
}
.sub-plan-card--highlight .sub-plan-card__tagline {
  color: rgba(255,255,255,0.7);
}

.sub-plan-card__active {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 700; color: var(--color-carnation);
  background: var(--color-vista-white); padding: 6px 12px;
  border-radius: 50px; width: fit-content; margin-top: auto;
}
.sub-plan-card--highlight .sub-plan-card__active { background: rgba(255,255,255,0.2); color: white; }

.sub-note {
  text-align: center; font-size: 0.72rem;
  color: var(--color-text-muted); margin-top: 4px;
  padding: 0 12px;
}

/* ── 48-hour guarantee banner (below plans grid) ── */
.sub-guarantee-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #dbeafe;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 0.82rem;
  color: #1e3a8a;
  line-height: 1.55;
  max-width: 560px;
  margin: 4px auto 0;
}

.sub-guarantee-banner__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 1px;
}

.sub-guarantee-banner strong {
  font-weight: 700;
}
  padding: 0 12px;
}

/* ── Tablet: 2-column layout ── */
@media (max-width: 1100px) {
  .sub-plans {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 900px) {
  .sub-plans {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* Make the highlight (Premium) card span full width so it stands out */
  .sub-plan-card--highlight {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .sub-plan-card--highlight .sub-plan-card__features {
    flex: 1 1 200px;
  }
}

/* ── Mobile: single column ── */
@media (max-width: 600px) {
  .sub-header__title {
    font-size: 1.35rem;
  }

  .sub-header__subtitle {
    font-size: 0.85rem;
  }

  .sub-plans {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Reset highlight card back to column on small screens */
  .sub-plan-card--highlight {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .sub-plan-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .sub-plan-card__price {
    font-size: 1.5rem;
  }

  .sub-plan-card__badge {
    font-size: 0.6rem;
    padding: 2px 8px;
    top: 12px;
    right: 12px;
  }
}

/* ── Recovery Banner (removed — now handled via push notifications) ── */

/* ── Limited Time Offer Banner (standalone) ── */
.sub-limited-offer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  border: 1.5px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 4px 24px rgba(79, 70, 229, 0.2), 0 0 60px rgba(139, 92, 246, 0.08);
  overflow: hidden;
  flex-wrap: wrap;
  animation: offerPulseIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes offerPulseIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sub-limited-offer__glow {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.sub-limited-offer__content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  z-index: 1;
}

.sub-limited-offer__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 3px 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 50px;
  text-transform: uppercase;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.sub-limited-offer__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sub-limited-offer__headline {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.sub-limited-offer__sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.sub-limited-offer__timer {
  z-index: 1;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-limited-offer__timer .sub-countdown {
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 800;
  margin-top: 0;
  gap: 6px;
}

.sub-limited-offer__timer .sub-countdown svg {
  width: 14px;
  height: 14px;
  stroke: #fbbf24;
}

/* ── Countdown Timer (base) ── */
.sub-countdown {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #e11d48;
  margin-top: 6px;
  letter-spacing: 0.01em;
}

.sub-countdown svg {
  flex-shrink: 0;
}

.sub-plan-card--highlight .sub-countdown {
  color: #fecdd3;
}

/* ── Limited Offer Mobile ── */
@media (max-width: 600px) {
  .sub-limited-offer {
    padding: 12px 16px;
    border-radius: 12px;
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .sub-limited-offer__headline {
    font-size: 0.88rem;
  }

  .sub-limited-offer__timer {
    width: 100%;
    justify-content: center;
    padding: 8px 14px;
  }
}

/* ── Coupon Chips ── */
.sub-coupon-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.sub-coupon-chips::-webkit-scrollbar {
  height: 3px;
}

.sub-coupon-chips::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.sub-coupon-chips__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.sub-coupon-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  border-radius: 50px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #92400e;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.sub-coupon-chip:hover {
  background: linear-gradient(135deg, #fde68a, #fcd34d);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.sub-coupon-chip:active {
  transform: translateY(0);
}

/* ── Order Summary Modal ── */
.sub-order-summary-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: sub-overlay-fade 0.2s ease;
}

@keyframes sub-overlay-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sub-order-summary {
  background: white;
  border-radius: 20px;
  padding: 24px 24px 20px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  animation: sub-summary-slide 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}

@keyframes sub-summary-slide {
  from { transform: translateY(24px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ── Top row: icon left, close right ── */
.sub-order-summary__toprow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sub-order-summary__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--summary-icon-bg, #eef3fd);
  color: var(--summary-accent, #5b8dee);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sub-order-summary__close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #9ca3af;
  transition: color 0.15s;
  padding: 0;
  margin-top: -2px;
}

.sub-order-summary__close:hover {
  color: #374151;
}

/* ── Plan name + duration ── */
.sub-order-summary__title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-dark, #1a1a1a);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.sub-order-summary__subtitle {
  font-size: 0.78rem;
  color: var(--color-text-muted, #6b7280);
  font-weight: 500;
  margin-bottom: 16px;
}

/* ── Savings pill ── */
.sub-order-summary__savings {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: #d1fae5;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 18px;
}

/* ── Price breakdown ── */
.sub-order-summary__breakdown {
  margin-bottom: 18px;
}

.sub-order-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 0.875rem;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.sub-order-summary__row:last-child {
  border-bottom: none;
}

.sub-order-summary__strikethrough {
  text-decoration: line-through;
  color: #9ca3af;
  font-weight: 500;
}

.sub-order-summary__value {
  font-weight: 700;
  color: var(--color-dark, #1a1a1a);
}

.sub-order-summary__row--discount {
  color: #059669;
  font-weight: 600;
}

.sub-order-summary__divider {
  height: 1px;
  background: #e5e7eb;
  margin: 4px 0;
}

.sub-order-summary__row--total {
  border-bottom: none !important;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-dark, #1a1a1a);
  padding-top: 12px;
}

.sub-order-summary__coupon-badge {
  display: inline-block;
  background: #d1fae5;
  color: #065f46;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 6px;
  font-family: monospace;
  letter-spacing: 0.03em;
}

/* ── What you'll get box ── */
.sub-order-summary__includes {
  background: #f9fafb;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.sub-order-summary__includes-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 10px;
}

.sub-order-summary__includes-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #111827;
  padding: 3px 0;
}

.sub-order-summary__check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  flex-shrink: 0;
}

.sub-order-summary__includes-more {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5b8dee;
  margin-top: 8px;
  cursor: default;
}

/* ── Guarantee banner ── */
.sub-order-summary__guarantee {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #eff6ff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 0.78rem;
  color: #1d4ed8;
  line-height: 1.5;
}

.sub-order-summary__guarantee-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  flex-shrink: 0;
  margin-top: 1px;
}

.sub-order-summary__guarantee strong {
  font-weight: 700;
}

/* ── Actions ── */
.sub-order-summary__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
}

.sub-order-summary__confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 15px 24px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  background: #111827;
  border: none;
  color: white;
  letter-spacing: -0.01em;
}

.sub-order-summary__confirm:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.sub-order-summary__confirm:active {
  opacity: 1;
  transform: translateY(0);
}

.sub-order-summary__confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.sub-order-summary__cancel {
  display: block;
  width: 100%;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
  background: none;
  border: none;
  color: #6b7280;
  text-align: center;
  margin-top: 4px;
}

.sub-order-summary__cancel:hover {
  color: #111827;
}

/* ── Trust row ── */
.sub-order-summary__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sub-order-summary__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #9ca3af;
}

.sub-order-summary__trust-item svg {
  color: #6b7280;
}

.sub-order-summary__trust-dot {
  font-size: 0.68rem;
  color: #d1d5db;
}

@media (max-width: 600px) {
  .sub-order-summary-overlay {
    align-items: flex-end;
    padding: 0;
    /* Push the sheet up so bottom toasts/nav don't overlap */
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .sub-order-summary {
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    /* Leave enough room for toasts and browser chrome at bottom */
    max-height: 88vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    animation: sub-summary-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 12px));
  }

  @keyframes sub-summary-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  /* Slightly tighter spacing inside the sheet on small screens */
  .sub-order-summary__title {
    font-size: 1.25rem;
  }

  .sub-order-summary__guarantee {
    margin-bottom: 14px;
  }

  .sub-order-summary__confirm {
    padding: 13px 20px;
  }
}
/* ============================================================
   Help & Support Page
   ============================================================ */

.help-support-page {
  max-width: 760px;
  margin: 0 auto;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hs-hero {
  text-align: center;
  padding: 8px 0 32px;
}

.hs-hero__icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--color-vista-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--color-carnation);
  box-shadow: 0 4px 16px rgba(249, 101, 102, 0.14);
}

.hs-hero__title {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.hs-hero__subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Contact Card ──────────────────────────────────────────── */
.hs-contact-card {
  background: white;
  border-radius: 20px;
  border: 1px solid rgba(249, 101, 102, 0.12);
  box-shadow: 0 4px 24px rgba(249, 101, 102, 0.07);
  padding: 28px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.hs-contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-carnation), var(--color-sea-pink));
  border-radius: 20px 20px 0 0;
}

.hs-contact-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-vista-white);
  color: var(--color-carnation);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: flex-start;
}

.hs-contact-card__badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-carnation);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

.hs-contact-card__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.hs-contact-card__info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.hs-contact-card__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-vista-white);
  color: var(--color-carnation);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hs-contact-card__label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 3px;
}

.hs-contact-card__email {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-carnation);
  text-decoration: none;
  letter-spacing: -0.01em;
  word-break: break-all;
}

.hs-contact-card__email:hover {
  text-decoration: underline;
}

.hs-contact-card__divider {
  width: 1px;
  height: 48px;
  background: var(--color-border);
  flex-shrink: 0;
}

.hs-contact-card__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.hs-contact-card__meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.hs-contact-card__meta-item svg {
  color: var(--color-carnation);
  flex-shrink: 0;
}

.hs-contact-card__meta-item strong {
  color: var(--color-dark);
}

.hs-contact-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 50px;
  align-self: flex-start;
  text-decoration: none;
}

/* ── Info tiles ────────────────────────────────────────────── */
.hs-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.hs-tile {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s;
}

.hs-tile:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.hs-tile__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hs-tile__icon--blue   { background: #eef3fd; color: #5b8dee; }
.hs-tile__icon--green  { background: #edfdf4; color: #22c55e; }
.hs-tile__icon--purple { background: #f3effe; color: #8b5cf6; }

.hs-tile__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark);
}

.hs-tile__body {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ── FAQs ──────────────────────────────────────────────────── */
.hs-faq {
  margin-bottom: 32px;
}

.hs-faq__heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hs-faq__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hs-faq__item {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.hs-faq__item[open] {
  box-shadow: 0 4px 20px rgba(249, 101, 102, 0.08);
  border-color: rgba(249, 101, 102, 0.2);
}

.hs-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s;
}

.hs-faq__question::-webkit-details-marker { display: none; }

.hs-faq__item[open] .hs-faq__question {
  color: var(--color-carnation);
}

.hs-faq__chevron {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hs-faq__item[open] .hs-faq__chevron {
  transform: rotate(180deg);
  color: var(--color-carnation);
}

.hs-faq__answer {
  padding: 0 20px 18px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--color-border);
  margin: 0;
  padding-top: 14px;
}

/* ── Footer note ───────────────────────────────────────────── */
.hs-footer-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--color-vista-white);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.83rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.hs-footer-note svg {
  color: var(--color-carnation);
  flex-shrink: 0;
  margin-top: 2px;
}

.hs-footer-note span {
  flex: 1;
  min-width: 0;
}

.hs-footer-note strong {
  color: var(--color-dark);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 680px) {
  .hs-tiles {
    grid-template-columns: 1fr;
  }

  .hs-contact-card__divider {
    display: none;
  }

  .hs-contact-card__meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hs-hero__title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hs-contact-card__body {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ============================================================
   View Profile Page — Single-column, mobile-first
   Matches the reference design screenshot
   ============================================================ */

.vp-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 8px 40px;
  box-sizing: border-box;
}

/* ── States ── */
.vp-loading {
  display: flex; align-items: center; justify-content: center; min-height: 320px;
}
.vp-empty-state {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 64px 24px; text-align: center;
}
.vp-empty-state__icon { font-size: 3rem; line-height: 1; }
.vp-empty-state__title { font-size: 1.3rem; font-weight: 800; color: var(--color-dark); margin: 0; }
.vp-empty-state__text  { font-size: 0.875rem; color: var(--color-text-muted); margin: 0; max-width: 300px; }

/* ── Back ── */
.vp-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 700; color: var(--color-text-muted);
  background: none; border: none; cursor: pointer; padding: 4px 0;
  align-self: flex-start; transition: color 0.15s;
}
.vp-back:hover { color: var(--color-carnation); }

/* ══════════════════════════════════════
   HERO CARD
   ══════════════════════════════════════ */
.vp-hero {
  background: white;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  overflow: hidden;
}

/* Cover */
.vp-hero__cover {
  height: 150px;
  background: linear-gradient(135deg, var(--color-carnation) 0%, #e05a6b 50%, var(--color-sea-pink) 100%);
  position: relative;
  overflow: hidden;
}
.vp-hero__cover-circle {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.vp-hero__cover-circle--1 { width: 220px; height: 220px; top: -70px; right: -50px; }
.vp-hero__cover-circle--2 { width: 130px; height: 130px; bottom: -50px; left: 40px; background: rgba(255,255,255,0.07); }
.vp-hero__cover-dots {
  position: absolute; bottom: 12px; right: 24px;
  width: 90px; height: 90px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.35) 1.5px, transparent 1.5px);
  background-size: 11px 11px;
}

/* Availability pill */
.vp-avail-pill {
  position: absolute; top: 14px; right: 16px; z-index: 1;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 700; padding: 5px 13px;
  border-radius: 50px; backdrop-filter: blur(10px);
}
.vp-avail-pill--yes {
  background: rgba(255,255,255,0.92); color: #16a34a;
  border: 1px solid rgba(34,197,94,0.3); box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.vp-avail-pill--no {
  background: rgba(255,255,255,0.85); color: #64748b;
  border: 1px solid rgba(100,116,139,0.2);
}
.vp-avail-pill__dot {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  animation: avail-pulse 2.5s infinite;
}
.vp-avail-pill--no .vp-avail-pill__dot { animation: none; }
@keyframes avail-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(0.7); }
}

/* Identity row */
.vp-hero__identity {
  display: flex;
  gap: 14px;
  padding: 0 20px 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Avatar */
.vp-avatar-wrap {
  position: relative;
  margin-top: -44px;
  flex-shrink: 0;
  z-index: 2;
}
.vp-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-carnation), var(--color-sea-pink));
  color: white; font-size: 1.8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 4px 18px rgba(249,101,102,0.25);
}
.vp-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Medal badge for members */
.vp-avatar__medal {
  position: absolute;
  bottom: -2px;
  left: -4px;
  font-size: 1.1rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.vp-avatar__tick {
  position: absolute; bottom: 3px; right: 3px;
  width: 24px; height: 24px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid white;
  box-shadow: 0 2px 8px rgba(22,163,74,0.4);
}

/* Membership badge icon — bottom-left of avatar circle */
.vp-avatar__membership-badge {
  position: absolute;
  bottom: -6px; left: -6px;
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.18));
  line-height: 0;
}

/* img rendered directly inside avatar-wrap by MembershipBadgeIcon */
.vp-avatar-wrap > img {
  position: absolute;
  bottom: -6px; left: -6px;
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.18));
}

/* Info */
.vp-hero__info {
  flex: 1; min-width: 0;
  padding-top: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.vp-hero__name-wrap {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.vp-hero__name {
  font-size: 1.5rem; font-weight: 900;
  color: #1a1a2e; margin: 0; line-height: 1.15; letter-spacing: -0.02em;
}
.vp-verified-badge {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(34,197,94,0.35));
}
.vp-hero__badges {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
}
.vp-role-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 700; padding: 4px 11px;
  border-radius: 50px;
  background: rgba(249,101,102,0.08); color: var(--color-carnation);
  border: 1px solid rgba(249,101,102,0.2);
}
.vp-meta-item {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 500; color: var(--color-text-muted);
}

/* ─── Info strip: 3 boxes ─── */
.vp-info-strip {
  display: flex;
  align-items: stretch;
  margin: 0 16px 16px;
  border: 1.5px solid rgba(0,0,0,0.07);
  border-radius: 14px;
  overflow: visible;
  background: #fafafa;
}
.vp-info-box {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 10px;
  min-width: 0;
}
.vp-info-strip__sep {
  width: 1px;
  background: rgba(0,0,0,0.07);
  flex-shrink: 0;
  align-self: stretch;
}
.vp-info-box__label {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--color-text-muted); margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.vp-info-box__value {
  font-size: 0.8rem; font-weight: 700; color: var(--color-dark); line-height: 1.3;
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}
.vp-info-verified {
  color: #22c55e; font-size: 0.75rem; font-weight: 700;
}
.vp-info-na { color: var(--color-text-muted); font-weight: 500; }

/* Gender display */

/* CTA area */
.vp-hero__cta {
  padding: 0 20px 20px;
}
.vp-send-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 20px;
  background: linear-gradient(135deg, var(--color-carnation), #f43f8e);
  color: white;
  font-size: 0.95rem; font-weight: 700; font-family: var(--font-family);
  border: none; border-radius: 14px; cursor: pointer;
  box-shadow: 0 6px 22px rgba(249,101,102,0.38);
  transition: box-shadow 0.2s, transform 0.2s;
}
.vp-send-btn:hover:not(:disabled) {
  box-shadow: 0 10px 30px rgba(249,101,102,0.5);
  transform: translateY(-1px);
}
.vp-send-btn:disabled { opacity: 0.65; cursor: not-allowed; }

.vp-edit-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px;
  background: white; color: var(--color-carnation);
  font-size: 0.875rem; font-weight: 700; font-family: var(--font-family);
  border: 2px solid var(--color-carnation); border-radius: 14px; cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.vp-edit-btn:hover {
  background: var(--color-vista-white);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════ */
.vp-section {
  background: white;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  padding: 20px;
}
.vp-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.vp-section__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 800; color: var(--color-dark);
  margin: 0 0 16px;
}
.vp-section__header .vp-section__title { margin: 0; }
.vp-section__deco { flex-shrink: 0; }

/* Bio */
.vp-bio {
  font-size: 0.9rem; color: #555; line-height: 1.75; margin: 0;
  white-space: pre-wrap;
}
.vp-bio--empty { color: var(--color-text-muted); font-style: italic; }
.vp-empty-hint { font-size: 0.85rem; color: var(--color-text-muted); font-style: italic; margin: 0; }

/* Services grid */
.vp-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.vp-service-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 14px 10px; border-radius: 14px;
  background: white; border: 1.5px solid #ebebeb; text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.vp-service-item:hover {
  border-color: var(--svc-color, var(--color-carnation));
  box-shadow: 0 4px 14px rgba(0,0,0,0.07); transform: translateY(-2px);
}
.vp-service-item__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
}
.vp-service-item__name {
  font-size: 0.72rem; font-weight: 700;
  color: var(--svc-color, var(--color-carnation));
  line-height: 1.3; word-break: break-word;
}

/* Two-column grid for membership + social */
.vp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Detail list (shared) */
.vp-detail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vp-detail-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.vp-detail-item:last-child { border-bottom: none; }
.vp-detail-item__label {
  font-size: 0.72rem; font-weight: 600; color: var(--color-text-muted);
  text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; flex-shrink: 0;
}
.vp-detail-item__value {
  font-size: 0.85rem; font-weight: 700; color: var(--color-dark); text-align: right;
}

/* Days remaining */
.vp-days-remaining {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 700; color: #16a34a;
}

/* Status badges */
.vp-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 50px; font-size: 0.73rem; font-weight: 700;
}
.vp-badge--green  { background: rgba(34,197,94,0.1);  color: #16a34a; border: 1px solid rgba(34,197,94,0.25); }
.vp-badge--amber  { background: rgba(245,158,11,0.1); color: #d97706; border: 1px solid rgba(245,158,11,0.25); }
.vp-badge--gray   { background: rgba(100,116,139,0.08); color: #64748b; border: 1px solid rgba(100,116,139,0.2); }
.vp-badge__dot    { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* Social links */
.vp-social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.vp-social-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px; border-radius: 10px;
  text-decoration: none; color: var(--color-dark);
  transition: background 0.15s;
}
.vp-social-link:hover { background: rgba(0,0,0,0.03); }
.vp-social-link--empty { cursor: default; opacity: 0.5; }
.vp-social-link__icon { flex-shrink: 0; display: flex; align-items: center; }
.vp-social-link__label {
  font-size: 0.78rem; font-weight: 600; color: var(--color-dark); flex-shrink: 0; min-width: 80px;
}
.vp-social-link__label--muted { color: var(--color-text-muted); }
.vp-social-link__handle {
  flex: 1; font-size: 0.82rem; font-weight: 600;
  color: var(--color-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vp-social-link__handle--muted { color: var(--color-text-muted); font-weight: 400; }
.vp-social-link__arrow { flex-shrink: 0; color: var(--color-text-muted); }

/* Privacy notice */
.vp-privacy-note {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 14px 16px;
  background: rgba(249,101,102,0.04);
  border: 1px solid rgba(249,101,102,0.1);
  border-radius: 14px;
  font-size: 0.75rem; color: var(--color-text-muted); line-height: 1.55;
}
.vp-privacy-note svg { flex-shrink: 0; margin-top: 1px; opacity: 0.6; }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 560px) {
  .vp-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .vp-hero__cover { height: 110px; }

  /* ── Identity: stack avatar above info on mobile ── */
  .vp-hero__identity {
    flex-direction: column;
    align-items: center;
    padding: 0 16px 16px;
    gap: 4px;
    text-align: center;
  }

  /* Avatar: pull up from cover, centered */
  .vp-avatar-wrap {
    margin-top: -44px;
    align-self: center;
  }
  .vp-avatar { width: 82px; height: 82px; font-size: 1.65rem; }
  .vp-avatar__tick { width: 22px; height: 22px; }

  /* Info block: full width, centered */
  .vp-hero__info {
    width: 100%;
    padding-top: 6px;
    align-items: center;
    gap: 6px;
  }
  .vp-hero__name {
    font-size: 1.3rem;
    text-align: center;
  }

  .vp-hero__name-wrap {
    justify-content: center;
  }

  /* Badges: wrap naturally, centered */
  .vp-hero__badges {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  /* CTA */
  .vp-hero__cta { padding: 0 16px 16px; }

  /* Info strip: stack vertically */
  .vp-info-strip {
    flex-direction: column;
    margin: 0 16px 16px;
    border-radius: 12px;
  }
  .vp-info-strip__sep {
    width: auto;
    height: 1px;
    align-self: stretch;
  }
  .vp-info-box {
    padding: 11px 14px;
    align-items: center;
    gap: 10px;
  }
  .vp-info-box__label {
    font-size: 0.62rem;
    margin-bottom: 2px;
    white-space: normal;
  }
  .vp-info-box__value { font-size: 0.85rem; }

  .vp-section { padding: 16px; border-radius: 16px; }
  .vp-services-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
  .vp-service-item { padding: 12px 8px; }
  .vp-service-item__icon { width: 36px; height: 36px; }
  .vp-service-item__name { font-size: 0.66rem; }
}

@media (max-width: 360px) {
  .vp-page { padding-left: 10px; padding-right: 10px; }
  .vp-services-grid { grid-template-columns: repeat(2, 1fr); }
  .vp-hero__name { font-size: 1.15rem; }
  .vp-hero__identity { padding: 0 12px 14px; }
  .vp-info-strip { margin: 0 12px 14px; }
  .vp-hero__cta { padding: 0 12px 14px; }
}

/* ── Social links locked (Basic / no subscription viewer) ── */
.vp-social-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  background: linear-gradient(135deg, rgba(167,139,250,0.06), rgba(139,92,246,0.04));
  border: 1.5px dashed rgba(167,139,250,0.35);
  border-radius: 14px;
  text-align: center;
}
.vp-social-locked__icon {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: rgba(167,139,250,0.1);
  border-radius: 50%;
  flex-shrink: 0;
}
.vp-social-locked__text {
  font-size: 0.82rem; color: var(--color-text-muted); line-height: 1.55; margin: 0;
}
.vp-social-locked__text strong { color: #7c3aed; }
.vp-social-locked__upgrade {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 22px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white; font-size: 0.8rem; font-weight: 700; font-family: var(--font-family);
  border: none; border-radius: 50px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(124,58,237,0.3);
  transition: box-shadow 0.2s, transform 0.15s;
}
.vp-social-locked__upgrade:hover {
  box-shadow: 0 6px 20px rgba(124,58,237,0.45);
  transform: translateY(-1px);
}
/* ==============================
   Influencer Login Page
   ============================== */
.inf-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  position: relative;
  overflow: hidden;
}

/* Background blobs */
.inf-login__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.inf-login__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.inf-login__blob--1 {
  width: 400px;
  height: 400px;
  background: #667eea;
  top: -100px;
  right: -100px;
}

.inf-login__blob--2 {
  width: 350px;
  height: 350px;
  background: #764ba2;
  bottom: -80px;
  left: -80px;
}

.inf-login__blob--3 {
  width: 200px;
  height: 200px;
  background: #f093fb;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
}

/* Card */
.inf-login__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}

/* Header */
.inf-login__header {
  text-align: center;
  margin-bottom: 28px;
}

.inf-login__logo {
  height: 38px;
  width: auto;
  margin-bottom: 16px;
}

.inf-login__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.inf-login__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.inf-login__subtitle {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Form */
.inf-login__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.inf-login__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inf-login__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}

.inf-login__input-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.inf-login__input-wrapper:focus-within {
  border-color: #764ba2;
  box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.12);
}

.inf-login__input-wrapper--pw {
  position: relative;
}

.inf-login__prefix {
  padding: 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  background: #f9fafb;
  border-right: 1.5px solid #e5e7eb;
  min-height: 46px;
  display: flex;
  align-items: center;
  user-select: none;
}

.inf-login__input {
  border: none;
  outline: none;
  padding: 13px 14px;
  font-size: 0.9rem;
  color: #1f2937;
  background: transparent;
  width: 100%;
  font-family: inherit;
}

.inf-login__input::placeholder {
  color: #b0b0b0;
}

.inf-login__input--pw {
  padding-right: 44px;
}

.inf-login__pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.inf-login__pw-toggle:hover {
  color: #764ba2;
}

/* Error */
.inf-login__error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
}

.inf-login__error svg {
  flex-shrink: 0;
}

/* Submit button */
.inf-login__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  margin-top: 4px;
}

.inf-login__submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.inf-login__submit:active:not(:disabled) {
  transform: translateY(0);
}

.inf-login__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.inf-login__spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: inf-spin 0.7s linear infinite;
}

@keyframes inf-spin {
  to { transform: rotate(360deg); }
}

/* Footer */
.inf-login__footer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #f3f4f6;
}

.inf-login__perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.inf-login__perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #4b5563;
  font-weight: 500;
}

.inf-login__perk-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #f3f4f6;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.inf-login__help {
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.6;
}

.inf-login__help strong {
  color: #6b7280;
  font-weight: 600;
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 480px) {
  .inf-login {
    padding: 16px;
  }

  .inf-login__card {
    padding: 32px 22px;
    border-radius: 16px;
  }

  .inf-login__title {
    font-size: 1.4rem;
  }
}
/* ==============================
   Admin Panel — Full Design System
   Inherits CSS vars from index.css
   ============================== */

/* ── Layout ── */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #f4f6f9;
  font-family: var(--font-family);
}

/* ── Sidebar ── */
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--color-dark);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 200;
}

.admin-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}

.admin-sidebar__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
}

.admin-sidebar__brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.admin-sidebar__brand-role {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-carnation);
}

.admin-sidebar__close {
  display: none;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.5);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
}

/* Nav */
.admin-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: var(--transition);
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

.admin-nav-item--active {
  background: rgba(249, 101, 102, 0.15);
  color: var(--color-carnation);
  font-weight: 600;
}

.admin-nav-item__icon {
  flex-shrink: 0;
  opacity: 0.8;
}

.admin-nav-item--active .admin-nav-item__icon {
  opacity: 1;
}

/* Footer */
.admin-sidebar__footer {
  padding: 16px 12px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-sidebar__back,
.admin-sidebar__logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  transition: var(--transition);
  text-align: left;
}

.admin-sidebar__back:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

.admin-sidebar__logout:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
}

/* ── Main ── */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-left: 240px;
  min-height: 100vh;
}

.admin-topbar {
  background: white;
  border-bottom: 1px solid var(--color-border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-topbar__menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.admin-topbar__menu span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

.admin-topbar__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-content {
  padding: 32px 28px;
  flex: 1;
}

.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
}

/* ── Page Header ── */
.admin-page__header {
  margin-bottom: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-export-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.admin-export-btns .admin-btn {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.admin-page__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.admin-page__sub {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ── Stat Cards ── */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 24px 22px;
  border: 1px solid var(--color-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-width: 0; /* prevent blowout in grid */
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.admin-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-carnation), var(--color-sea-pink));
}

.admin-stat-card__icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-vista-white);
  color: var(--color-carnation);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.admin-stat-card__value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-dark);
  line-height: 1;
  margin-bottom: 4px;
}

.admin-stat-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  word-break: break-word;
}

/* ── Table Card ── */
.admin-table-card {
  background: white;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.admin-table-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
}

.admin-table-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
}

.admin-table-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Search input */
.admin-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-vista-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 12px;
  transition: var(--transition);
}

.admin-search:focus-within {
  border-color: var(--color-carnation);
  background: white;
  box-shadow: 0 0 0 3px rgba(249, 101, 102, 0.1);
}

.admin-search svg { color: var(--color-text-muted); flex-shrink: 0; }

.admin-search input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.85rem;
  color: var(--color-text);
  font-family: var(--font-family);
  width: 180px;
}

.admin-search input::placeholder { color: var(--color-text-muted); }

/* Filter select */
.admin-filter {
  background: var(--color-vista-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--color-text);
  font-family: var(--font-family);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.admin-filter:focus {
  border-color: var(--color-carnation);
  background: white;
}

/* Table */
.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th {
  background: #f8f9fb;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f2f5;
  color: var(--color-text);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table tbody tr:hover td { background: #fafbfd; }

/* User cell */
.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-carnation), var(--color-sea-pink));
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-user-name {
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.3;
}

.admin-user-email {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Badges */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: capitalize;
  white-space: nowrap;
}

.admin-badge--client    { background: #eff6ff; color: #3b82f6; }
.admin-badge--buddy     { background: #fef3c7; color: #d97706; }
.admin-badge--both      { background: #f0fdf4; color: #15803d; }
.admin-badge--admin     { background: rgba(249,101,102,0.1); color: var(--color-carnation); }
.admin-badge--active    { background: #dcfce7; color: #16a34a; }
.admin-badge--suspended { background: #fee2e2; color: #dc2626; }
.admin-badge--deleted   { background: #f3e8ff; color: #7c3aed; }
.admin-badge--verified  { background: #dcfce7; color: #16a34a; }
.admin-badge--pending   { background: #fef3c7; color: #d97706; }
.admin-badge--unverified{ background: #f1f5f9; color: #64748b; }
.admin-badge--open      { background: #dcfce7; color: #16a34a; }
.admin-badge--closed    { background: #f1f5f9; color: #64748b; }
.admin-badge--expired   { background: #fee2e2; color: #dc2626; }
.admin-badge--free      { background: #f1f5f9; color: #64748b; }
.admin-badge--basic     { background: #eff6ff; color: #3b82f6; }
.admin-badge--standard  { background: #f0fdf4; color: #15803d; }
.admin-badge--premium   { background: #fdf4ff; color: #9333ea; }
.admin-badge--star_member { background: #fffbeb; color: #b45309; border: 1px solid #fcd34d; }
.admin-badge--pro       { background: rgba(249,101,102,0.1); color: var(--color-carnation); }
.admin-badge--cancelled { background: #fee2e2; color: #dc2626; }
.admin-badge--halted    { background: #fef3c7; color: #d97706; }

/* Action buttons */
.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--color-border);
  background: white;
  cursor: pointer;
  transition: var(--transition);
  color: var(--color-text-muted);
  font-family: var(--font-family);
  text-decoration: none;
}

.admin-action-btn:hover { background: var(--color-vista-white); color: var(--color-carnation); border-color: var(--color-sea-pink); }
.admin-action-btn--danger:hover { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }
.admin-action-btn--success:hover { background: #dcfce7; color: #16a34a; border-color: #86efac; }

.admin-actions { display: flex; align-items: center; gap: 6px; }

/* Pagination */
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  background: #fafbfd;
}

.admin-pagination__info {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.admin-pagination__btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--color-border);
  background: white;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-family);
}

.admin-page-btn:hover:not(:disabled) { border-color: var(--color-carnation); color: var(--color-carnation); }
.admin-page-btn--active { background: var(--color-carnation); border-color: var(--color-carnation); color: white; }
.admin-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Empty / Loading states */
.admin-empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.admin-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

/* Modal */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}

.admin-modal {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  animation: admin-modal-in 0.2s ease;
}

@keyframes admin-modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(-8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.admin-modal__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.admin-modal__sub {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.admin-form__group {
  margin-bottom: 16px;
}

.admin-form__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.admin-form__input,
.admin-form__textarea,
.admin-form__select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: var(--font-family);
  color: var(--color-text);
  background: white;
  outline: none;
  transition: var(--transition);
}

.admin-form__input:focus,
.admin-form__textarea:focus,
.admin-form__select:focus {
  border-color: var(--color-carnation);
  box-shadow: 0 0 0 3px rgba(249, 101, 102, 0.1);
}

.admin-form__textarea { resize: vertical; min-height: 80px; }

.admin-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font-family);
  transition: var(--transition);
}

.admin-btn--primary {
  background: var(--color-carnation);
  color: white;
}
.admin-btn--primary:hover { background: #e8555b; }

.admin-btn--ghost {
  background: var(--color-vista-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.admin-btn--ghost:hover { background: #eee; }

.admin-btn--danger {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}
.admin-btn--danger:hover { background: #fca5a5; }

.admin-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Aadhaar Verification Tabs ── */
.admin-aadhaar-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
}

.admin-aadhaar-tab {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-aadhaar-tab:hover {
  color: var(--color-dark);
}

.admin-aadhaar-tab--active {
  color: var(--color-carnation);
}

.admin-aadhaar-tab--active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-carnation);
  border-radius: 2px 2px 0 0;
}

.admin-aadhaar-tab__count {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--color-carnation);
  color: white;
  padding: 1px 7px;
  border-radius: 50px;
  line-height: 1.4;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .admin-stats { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}

@media (max-width: 900px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 300;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    height: 100vh;
  }
  .admin-sidebar--open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.25); }
  .admin-sidebar__close { display: block; }
  .admin-topbar__menu { display: flex; }
  .admin-overlay { display: block; }
  .admin-content { padding: 20px 16px; }
  .admin-main { margin-left: 0; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (max-width: 600px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .admin-stat-card { padding: 16px 14px; }
  .admin-stat-card__value { font-size: 1.6rem; }
  .admin-stat-card__label { font-size: 0.72rem; letter-spacing: 0.03em; }
  .admin-stat-card__icon-wrap { width: 34px; height: 34px; margin-bottom: 12px; }
  .admin-search input { width: 120px; }
  .admin-page__title { font-size: 1.3rem; }
  .admin-table-card__header { padding: 14px 16px; }
  .admin-pagination { padding: 12px 16px; }
}

/* ── Password show/hide toggle ── */
.admin-form__input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-form__input--has-toggle {
  padding-right: 44px;
}

.admin-form__pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s;
  line-height: 0;
}

.admin-form__pw-toggle:hover {
  color: var(--color-carnation);
}

.admin-form__pw-toggle:focus-visible {
  outline: 2px solid var(--color-carnation);
  outline-offset: 2px;
}

/* ── Refresh spin animation ── */
@keyframes admin-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Reports / extra btn variants ── */
.admin-btn--sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: 6px;
}

.admin-btn--success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.admin-btn--success:hover { background: #a7f3d0; }

.admin-btn--muted {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.admin-btn--muted:hover { background: #e5e7eb; }

/* ── admin-filters row ── */
.admin-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* ── admin-select ── */
.admin-select {
  padding: 9px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--color-border);
  font-size: 0.875rem;
  font-family: var(--font-family);
  color: var(--admin-text, #111827);
  background: white;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}
.admin-select:focus { border-color: var(--color-carnation); }
/* ══════════════════════════════════════════════════════════════════════════════
   Admin Bulk Message — Desktop-first two-column layout
   ══════════════════════════════════════════════════════════════════════════════ */

.abm {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Header ────────────────────────────────────────────────────────────────── */

.abm__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.abm__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 2px;
}

.abm__subtitle {
  color: #6b7280;
  font-size: 0.85rem;
  margin: 0;
}

.abm__stats-row {
  display: flex;
  gap: 12px;
}

.abm__stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid;
}

.abm__stat--blue {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.abm__stat--purple {
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.abm__stat--green {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.abm__stat-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
}

.abm__stat--blue .abm__stat-icon { color: #2563eb; }
.abm__stat--purple .abm__stat-icon { color: #7c3aed; }
.abm__stat--green .abm__stat-icon { color: #059669; }

.abm__stat-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
}

.abm__stat-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #6b7280;
}

/* ── Two-Column Grid ───────────────────────────────────────────────────────── */

.abm__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: start;
}

/* ── Card Base ─────────────────────────────────────────────────────────────── */

.abm__card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
}

.abm__card--progress {
  border-color: #c7d2fe;
  background: #fafbff;
}

.abm__card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.abm__card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.abm__card-title-row h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.abm__card-title-row svg {
  color: #6366f1;
  flex-shrink: 0;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */

.abm__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.abm__btn--sm {
  padding: 6px 12px;
  font-size: 0.78rem;
}

.abm__btn--full {
  width: 100%;
  justify-content: center;
}

.abm__btn--primary {
  background: #6366f1;
  color: #fff;
}

.abm__btn--primary:hover {
  background: #4f46e5;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.abm__btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.abm__btn--send {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  padding: 10px 22px;
  font-size: 0.88rem;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.abm__btn--send:hover:not(:disabled) {
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.abm__btn--send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Icon Buttons */
.abm__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.12s;
}

.abm__btn-icon--warn { background: #fef3c7; color: #d97706; }
.abm__btn-icon--warn:hover { background: #fde68a; }
.abm__btn-icon--green { background: #d1fae5; color: #059669; }
.abm__btn-icon--green:hover { background: #a7f3d0; }
.abm__btn-icon--blue { background: #dbeafe; color: #2563eb; }
.abm__btn-icon--blue:hover { background: #bfdbfe; }
.abm__btn-icon--red { background: #fee2e2; color: #dc2626; }
.abm__btn-icon--red:hover { background: #fecaca; }

/* ── Add Form ──────────────────────────────────────────────────────────────── */

.abm__add-form {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.abm__field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 3px;
}

.abm__field input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  font-size: 0.84rem;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.abm__field input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.abm__required { color: #ef4444; }

/* ── Account List ──────────────────────────────────────────────────────────── */

.abm__account-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.abm__account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  transition: all 0.12s;
  background: #fff;
}

.abm__account:hover {
  border-color: #c7d2fe;
  background: #fafafe;
}

.abm__account--inactive {
  background: #fffbeb;
  border-color: #fde68a;
  opacity: 0.75;
}

.abm__account-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.abm__account--inactive .abm__account-avatar {
  background: linear-gradient(135deg, #94a3b8, #64748b);
}

.abm__account-info { flex: 1; min-width: 0; }

.abm__account-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.abm__account-meta {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.abm__account-meta-sep {
  color: #cbd5e1;
}

.abm__account-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

/* Badges */
.abm__badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 1px 6px;
  border-radius: 4px;
}

.abm__badge--green { background: #dcfce7; color: #166534; }
.abm__badge--red { background: #fee2e2; color: #991b1b; }

.abm__empty {
  text-align: center;
  padding: 24px 12px;
  color: #94a3b8;
  font-size: 0.85rem;
}

/* ── Compose Card ──────────────────────────────────────────────────────────── */

.abm__info-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.abm__info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #334155;
}

.abm__info-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.abm__info-dot--blue { background: #3b82f6; }
.abm__info-dot--purple { background: #8b5cf6; }

.abm__compose {
  display: flex;
  flex-direction: column;
}

.abm__textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: inherit;
  resize: vertical;
  min-height: 130px;
  transition: border-color 0.15s;
  box-sizing: border-box;
  line-height: 1.5;
}

.abm__textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.06);
}

.abm__textarea:disabled {
  background: #f9fafb;
  color: #94a3b8;
}

.abm__compose-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.abm__char-count {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ── Progress Card ─────────────────────────────────────────────────────────── */

.abm__progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.abm__progress-percent {
  font-size: 1.4rem;
  font-weight: 800;
  color: #6366f1;
  font-variant-numeric: tabular-nums;
}

.abm__progress-body {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
}

.abm__progress-left {
  flex: 1;
}

.abm__progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.abm__progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 8px;
  transition: width 0.25s ease;
}

.abm__progress-bar-fill--done {
  background: linear-gradient(90deg, #10b981, #059669);
}

.abm__progress-numbers {
  margin-top: 6px;
  font-size: 0.75rem;
  color: #6b7280;
}

.abm__progress-counters {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.abm__counter {
  text-align: center;
  padding: 8px 16px;
  border-radius: 10px;
  min-width: 70px;
}

.abm__counter--sent { background: #f0fdf4; border: 1px solid #bbf7d0; }
.abm__counter--failed { background: #fef2f2; border: 1px solid #fecaca; }

.abm__counter-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.abm__counter--sent .abm__counter-value { color: #059669; }
.abm__counter--failed .abm__counter-value { color: #dc2626; }

.abm__counter-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #6b7280;
  margin-top: 1px;
}

/* Live Log */
.abm__log {
  max-height: 240px;
  overflow-y: auto;
  background: #0f172a;
  border-radius: 10px;
  padding: 14px 16px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
  font-size: 0.72rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.abm__log-entry { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abm__log-entry--info { color: #93c5fd; }
.abm__log-entry--success { color: #6ee7b7; }
.abm__log-entry--error { color: #fca5a5; }
.abm__log-entry--done { color: #fde68a; font-weight: 700; }

/* Complete Banner */
.abm__complete-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #6ee7b7;
  border-radius: 10px;
}

.abm__complete-icon { font-size: 1.6rem; }
.abm__complete-banner strong { color: #065f46; font-size: 0.9rem; }
.abm__complete-failed { color: #dc2626; font-size: 0.82rem; }

/* Spinner */
.abm__spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: abm-spin 0.6s linear infinite;
}

@keyframes abm-spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════════════════════════
   Responsive — Stack to single column on tablet/mobile
   ══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .abm__grid {
    grid-template-columns: 1fr;
  }

  .abm__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .abm__stats-row {
    width: 100%;
    flex-wrap: wrap;
  }

  .abm__stat {
    flex: 1;
    min-width: 100px;
  }

  .abm__progress-body {
    flex-direction: column;
    align-items: stretch;
  }

  .abm__progress-counters {
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .abm__card {
    padding: 16px;
    border-radius: 12px;
  }

  .abm__stats-row {
    gap: 8px;
  }

  .abm__stat {
    padding: 8px 12px;
  }

  .abm__stat-number {
    font-size: 1.1rem;
  }

  .abm__compose-footer {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .abm__btn--send {
    width: 100%;
    justify-content: center;
  }

  .abm__account-meta {
    flex-direction: column;
    gap: 0;
  }

  .abm__account-meta-sep {
    display: none;
  }
}
/* ==============================
   Legal Pages — Shared Layout
   ============================== */

.legal-page {
  min-height: 100vh;
  background: var(--color-white);
  font-family: var(--font-family);
}

/* ── Hero banner ── */
.legal-hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, #2e3540 100%);
  padding: 140px 0 72px;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249,101,102,0.12), transparent);
  top: -150px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
}

.legal-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  /* margin-bottom: 24px; */
  transition: var(--transition);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 14px;
  border-radius: 50px;
}

.legal-hero__back:hover {
  color: white;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
}

.legal-hero__back-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.legal-hero__tag {
  display: inline-block;
  background: rgba(249,101,102,0.18);
  border: 1px solid rgba(249,101,102,0.35);
  color: var(--color-sea-pink);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 50px;
}

.legal-hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: white;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.legal-hero__meta {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

/* ── Body ── */
.legal-body {
  padding: 64px 0 100px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}

/* ── Sidebar TOC ── */
.legal-toc {
  position: sticky;
  top: 100px;
}

.legal-toc__title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.legal-toc__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-toc__link {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: var(--transition);
  line-height: 1.4;
}

.legal-toc__link:hover {
  color: var(--color-carnation);
  background: var(--color-vista-white);
}

/* ── Content ── */
.legal-content {
  max-width: 760px;
}

.legal-section {
  margin-bottom: 52px;
  scroll-margin-top: 100px;
}

.legal-section__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-vista-white);
  color: var(--color-carnation);
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 8px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.legal-section__heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 14px;
  line-height: 1.3;
}

.legal-section__text {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-section__text:last-child { margin-bottom: 0; }

.legal-ul {
  margin: 10px 0 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.6;
}

.legal-ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-carnation);
  flex-shrink: 0;
  margin-top: 8px;
}

/* Highlight box */
.legal-highlight {
  background: var(--color-vista-white);
  border-left: 3px solid var(--color-carnation);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.7;
}

.legal-highlight strong {
  color: var(--color-carnation);
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Contact box */
.legal-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-dark);
  border-radius: var(--border-radius-lg);
  padding: 24px 28px;
  margin-top: 48px;
}

.legal-contact__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(249,101,102,0.15);
  color: var(--color-sea-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.legal-contact__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}

.legal-contact__value {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
}

.legal-contact__value a {
  color: var(--color-sea-pink);
  text-decoration: none;
}

.legal-contact__value a:hover { text-decoration: underline; }

/* Divider */
.legal-divider {
  height: 1px;
  background: var(--color-border);
  margin: 40px 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal-toc {
    position: static;
    background: var(--color-vista-white);
    border-radius: var(--border-radius);
    padding: 20px;
  }

  .legal-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .legal-hero__title {
    font-size: clamp(1.7rem, 5vw, 2.2rem);
  }

  .legal-hero__meta {
    font-size: 0.78rem;
  }

  .legal-section__heading {
    font-size: 1.05rem;
  }

  .legal-section__text,
  .legal-ul li {
    font-size: 0.85rem;
  }

  .legal-toc__link {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .legal-hero { padding: 120px 0 56px; }
  .legal-body { padding: 40px 0 80px; }

  .legal-hero__back {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .legal-hero__tag {
    font-size: 0.65rem;
  }

  .legal-hero__title {
    font-size: clamp(1.45rem, 6vw, 1.85rem);
    margin-bottom: 10px;
  }

  .legal-hero__meta {
    font-size: 0.72rem;
  }

  .legal-hero__back-row {
    flex-wrap: wrap;
    margin-bottom: 20px;
  }

  .legal-toc {
    padding: 16px;
  }

  .legal-toc__title {
    font-size: 0.68rem;
  }

  .legal-toc__link {
    font-size: 0.75rem;
    padding: 5px 8px;
  }

  .legal-section__heading {
    font-size: 0.98rem;
  }

  .legal-section__text,
  .legal-ul li,
  .legal-highlight {
    font-size: 0.8rem;
  }

  .legal-contact {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    gap: 10px;
  }

  .legal-contact__value {
    font-size: 0.82rem;
  }

  .legal-section {
    margin-bottom: 40px;
  }
}
/* App-level styles */
#root {
  min-height: 100vh;
  overflow-x: hidden;
}
