/* HenHo — Nunito Sans, dating theme */
:root {
  --font: "Nunito Sans", system-ui, sans-serif;
  --pink: #e91e63;
  --pink-dark: #c2185b;
  --pink-light: #fce4ec;
  --coral: #ff6b6b;
  --purple: #7c4dff;
  --text: #2d2a32;
  --text-muted: #6b6573;
  --bg: #fff9fb;
  --white: #ffffff;
  --border: #f0e6ea;
  --shadow: 0 12px 40px rgba(233, 30, 99, 0.12);
  --radius: 14px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.page-auth {
  background: linear-gradient(135deg, #fff5f8 0%, #f3e8ff 50%, #fff9fb 100%);
}

a {
  color: var(--pink-dark);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--pink);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
}

.logo:hover {
  color: var(--pink-dark);
}

.logo-heart {
  color: var(--pink);
  font-size: 1.5rem;
}

.logo .logo-icon {
  margin-right: 0.15rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.main-nav a:not(.btn) {
  font-weight: 600;
  color: var(--text-muted);
}

.main-nav a:not(.btn):hover {
  color: var(--pink);
}

.nav-user {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #f5d0dc;
  color: #9e4a66;
  border: 1px solid #edc4d4;
  box-shadow: none;
}

.btn-primary:hover {
  color: #8a3f58;
  background: #f8e0e8;
  border-color: #e8b8ca;
  box-shadow: none;
}

.btn-outline {
  background: var(--white);
  border-color: #e8c4d0;
  color: #a85a72;
}

.btn-outline:hover {
  background: #fdf6f8;
  color: #8f4a60;
}

.btn-google {
  background: var(--white);
  border: 2px solid #dadce0;
  color: #3c4043;
  width: 100%;
  padding: 0.75rem 1rem;
}

.btn-google:hover {
  background: #f8f9fa;
  color: #3c4043;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-google svg {
  flex-shrink: 0;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}

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

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(233, 30, 99, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--white);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-avatars {
  display: flex;
  margin-bottom: 1.5rem;
}

.hero-avatars span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--white);
  margin-left: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--pink-light), #e8deff);
}

.hero-avatars span:first-child {
  margin-left: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  color: var(--pink);
}

.hero-stats small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Features */
.features {
  padding: 3rem 0 4rem;
  background: var(--white);
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  text-align: center;
}

.feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Auth */
.auth-section {
  padding: 3rem 0 4rem;
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
}

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--pink);
  background: var(--white);
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer-text {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
}

.auth-card-modern {
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem 1.75rem 2.25rem;
  border-radius: 22px;
  box-shadow: 0 16px 48px rgba(45, 42, 50, 0.1);
}

.auth-brand-panel {
  display: none;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0.25rem;
  background: #f5f2f4;
  border-radius: 12px;
}

.auth-tab {
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-tab.active {
  background: var(--white);
  color: var(--pink-dark);
  box-shadow: 0 2px 8px rgba(45, 42, 50, 0.06);
}

.phone-input-wrap {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
  overflow: hidden;
  transition: border-color 0.2s;
}

.phone-input-wrap:focus-within {
  border-color: var(--pink);
  background: var(--white);
}

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #f0ecef;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.phone-input {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.form-divider span {
  padding: 0 0.35rem;
  background: var(--white);
}

body.page-auth-phone {
  background: linear-gradient(165deg, #fff8fa 0%, #f5f0f8 45%, #faf8fa 100%);
}

@media (min-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .auth-brand-panel {
    display: block;
    padding: 2rem;
  }

  .auth-brand-tagline {
    margin: 1rem 0 0;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 280px;
  }
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.alert-error {
  background: #fff5f6;
  color: #9e5a63;
  border: 1px solid #f5d5da;
  font-weight: 500;
}

.alert-success {
  background: #f6fbf7;
  color: #5a7d62;
  border: 1px solid #dceee0;
  font-weight: 500;
}

/* Content pages */
.page-content {
  padding: 2.5rem 0 4rem;
}

.content-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  max-width: 800px;
  margin: 0 auto;
}

.content-card h1 {
  margin-top: 0;
  font-size: 1.85rem;
}

.content-card h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

.content-card p,
.content-card li {
  color: var(--text-muted);
}

/* Dashboard */
.dashboard-header {
  padding: 2rem 0 1rem;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 1.75rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.profile-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.profile-card-avatar {
  height: 180px;
  background: linear-gradient(160deg, var(--pink-light), #ede7f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-initials {
  font-size: 2.5rem;
  font-weight: 800;
  color: #b87a8f;
  letter-spacing: 0.05em;
}

.profile-card-body {
  padding: 1.25rem;
}

.profile-card-body h3 {
  margin: 0 0 0.25rem;
}

.profile-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.profile-card-actions {
  display: flex;
  gap: 0.5rem;
}

/* Footer */
.site-footer {
  background: #1a1520;
  color: #c4bcc8;
  margin-top: auto;
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.9rem;
  margin: 0;
  max-width: 220px;
}

.footer-links h3 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #a89fb0;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: #ff8fab;
}

.footer-legal {
  border-top: 1px solid #2e2836;
  padding: 1.75rem 0 2rem;
  font-size: 0.78rem;
  line-height: 1.7;
}

.footer-legal p {
  margin: 0 0 0.75rem;
}

.trademark,
.operator {
  opacity: 0.85;
}

.copyright {
  color: #7a7280;
  margin-top: 1rem !important;
}

.sitemap-list {
  columns: 2;
  gap: 2rem;
}

.sitemap-list a {
  display: block;
  padding: 0.25rem 0;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

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

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

@media (max-width: 600px) {
  .main-nav .nav-user {
    display: none;
  }

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

  .auth-card {
    padding: 1.75rem;
  }
}

body.page-auth {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.page-auth .auth-section {
  flex: 1;
}

.hidden {
  display: none !important;
}

.logo-center {
  justify-content: center;
  margin-bottom: 1.25rem;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 0.6rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
}

.auth-tab.active {
  border-color: var(--pink);
  color: var(--pink-dark);
  background: var(--pink-light);
}

.auth-panel:not(.active) {
  display: none;
}

.auth-demo {
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* —— App: desktop + mobile —— */
body.page-app {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-only-mobile {
  display: none;
}

.app-only-desktop {
  display: block;
}

.app-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.app-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  flex-wrap: wrap;
}

.app-nav {
  display: flex;
  gap: 0.35rem;
  flex: 1;
  align-items: center;
}

.app-nav-btn,
.app-nav-link {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-muted);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.app-nav-btn.active {
  background: var(--pink-light);
  color: var(--pink-dark);
}

.app-nav-link:hover,
.app-nav-btn:hover {
  color: var(--pink-dark);
  background: var(--pink-light);
}

a.app-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.app-user-greeting {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.15rem;
  line-height: 1.3;
  text-align: right;
}

.app-user-greeting-top,
.app-user-greeting-bottom {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.app-user-greeting b {
  font-weight: 800;
  color: var(--text);
}

.app-main-wrap {
  flex: 1;
  padding-bottom: 0;
}

.app-title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.app-lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.app-view {
  display: none;
  pointer-events: none;
}

.app-view.active {
  display: block;
  pointer-events: auto;
}

.app-view[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.profile-card-avatar {
  position: relative;
}

.profile-card-bio {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.profile-likes-badge,
.match-likes {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--pink-dark);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.icon-likes {
  flex-shrink: 0;
  stroke: var(--pink);
}

.profile-likes-badge::after,
.match-likes::after {
  content: " thích";
  font-weight: 700;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  color: var(--pink);
}

.logo-icon .icon-logo {
  display: block;
}

.icon {
  display: block;
  flex-shrink: 0;
}

.discover-btn .icon {
  stroke: currentColor;
}

#app-alert {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  width: min(92vw, 420px);
  margin: 0;
}

@media (max-width: 899px) {
  #app-alert {
    top: 56px;
  }
}

.app-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.app-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.app-topbar-logout {
  border: none;
  background: transparent;
  font-family: var(--font, "Nunito Sans", system-ui, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.35rem 0.5rem;
  cursor: pointer;
}

.app-topbar-admin {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pink-dark);
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
}

.logo-compact {
  font-size: 1.15rem;
}

.discover-head {
  padding: 0.75rem 0 0.5rem;
  text-align: center;
}

.discover-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.discover-sub {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.discover-stage {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.discover-stack {
  margin: 0.75rem 0 1rem;
  min-height: 420px;
}

.match-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(45, 42, 50, 0.1);
}

.match-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 52vh;
  background: linear-gradient(160deg, var(--pink-light), #ede7f6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.match-overlay {
  display: none;
}

.match-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-photo-initials {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--pink);
}

.match-likes {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pink-dark);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.match-body {
  padding: 1rem 1.1rem 1.2rem;
}

.match-name {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.match-city {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.match-tag {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  background: #f3eef8;
  color: #7a5f8a;
  border: 1px solid #e8dff0;
}

.match-bio {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.discover-actions {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  padding: 0.5rem 0 1rem;
}

.discover-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.discover-action-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.discover-actions.is-hidden {
  display: none;
}

.discover-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: var(--font);
}

.discover-btn:active {
  transform: scale(0.92);
}

.discover-btn-pass {
  background: var(--white);
  color: #9a8fa3;
  border: 2px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.discover-btn-like {
  background: linear-gradient(145deg, #f5a8bc, var(--pink));
  color: #fff;
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.35);
}

.discover-btn-like .icon {
  fill: rgba(255, 255, 255, 0.25);
  stroke: #fff;
}

.app-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  min-height: 56px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: #fff;
  border-top: 1px solid #e4e6eb;
  z-index: 120;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
  pointer-events: auto;
}

.app-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.4rem 0.25rem;
  border: none;
  background: none;
  font-family: var(--font);
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.app-tab.active .app-tab-icon,
.app-tab.is-active .app-tab-icon {
  color: var(--pink);
}

.app-tab-label {
  font-size: 0.65rem;
  font-weight: 700;
}

.app-tab.active,
.app-tab.is-active,
.app-tab:hover {
  color: var(--pink-dark);
}

.page-app .site-footer-mini {
  display: none;
}

/* Mobile app layout */
@media (max-width: 899px) {
  .app-only-desktop {
    display: none !important;
  }

  .app-only-mobile {
    display: block;
  }

  body.page-app {
    background: #f0f2f5;
  }

  body.page-app:has(#view-discover.active) .app-topbar {
    display: none;
  }

  .app-main-wrap {
    padding: 0 0 calc(3.5rem + env(safe-area-inset-bottom, 0));
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    min-height: calc(100dvh - 3.5rem - env(safe-area-inset-bottom, 0));
    display: flex;
    flex-direction: column;
  }

  #view-discover.active {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  /* —— Facebook Dating style (mobile) —— */
  .fbd-discover {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0 0.75rem;
  }

  .fbd-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.15rem 0.5rem;
    flex-shrink: 0;
  }

  .fbd-header-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
  }

  .fbd-header-icon {
    display: flex;
    color: #e91e63;
    line-height: 0;
  }

  .fbd-header-icon .icon-fbd-heart {
    fill: rgba(233, 30, 99, 0.15);
    stroke: #e91e63;
  }

  .fbd-header-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1c1e21;
  }

  .fbd-header-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #e91e63;
    background: #fff;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  }

  .fbd-header-list {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #fff;
    color: #65676b;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    margin-left: 0.5rem;
  }

  .fbd-discover .discover-bar {
    margin: 0 0 0.5rem;
    padding: 0;
    min-height: auto;
    background: transparent;
  }

  .fbd-discover .discover-count-pill {
    min-width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  }

  .fbd-discover .discover-count-num {
    font-size: 0.8rem;
    color: #e91e63;
  }

  .fbd-discover .discover-bar-track {
    background: #fff;
    border-radius: 999px;
    padding: 0.2rem 0.25rem 0.2rem 0.15rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  }

  .fbd-discover .discover-tab {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #65676b;
  }

  .fbd-discover .discover-tab.active {
    color: #fff;
    background: linear-gradient(145deg, #f06292, #e91e63);
    font-weight: 700;
  }

  .fbd-discover .discover-tab.active::after {
    display: none;
  }

  .fbd-discover .discover-list-link {
    display: none;
  }

  .fbd-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 0;
  }

  .fbd-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: clamp(320px, 52dvh, 480px);
    margin: 0;
    position: relative;
  }

  .fbd-stack .loading-text,
  .fbd-stack .empty-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    color: #65676b;
    font-size: 0.95rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .fbd-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.08),
      0 12px 32px rgba(0, 0, 0, 0.12);
    background: #1a1a1a;
    animation: fbd-card-in 0.28s ease;
  }

  @keyframes fbd-card-in {
    from {
      opacity: 0;
      transform: scale(0.97);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  .fbd-card-photo {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: clamp(340px, 58dvh, 520px);
    max-height: none;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(165deg, #fce4ec 0%, #e1bee7 100%);
  }

  .fbd-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .fbd-card-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 35%,
      rgba(0, 0, 0, 0.25) 65%,
      rgba(0, 0, 0, 0.75) 100%
    );
    pointer-events: none;
  }

  .fbd-card-info {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 2.5rem 1rem 1rem;
    pointer-events: none;
    background: none;
  }

  .fbd-card-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  }

  .fbd-card-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
  }

  .fbd-loc-icon {
    flex-shrink: 0;
    opacity: 0.9;
  }

  .fbd-card-info .match-tags {
    margin: 0.5rem 0 0;
    flex-wrap: wrap;
    max-height: none;
    gap: 0.35rem;
  }

  .fbd-card-info .match-tag {
    font-size: 0.72rem;
    padding: 0.28rem 0.6rem;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    backdrop-filter: blur(4px);
  }

  .fbd-card-bio {
    margin: 0.45rem 0 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .fbd-card-open {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: 16px;
  }

  .fbd-card .profile-likes-badge {
    top: 0.85rem;
    right: 0.85rem;
    z-index: 4;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    backdrop-filter: blur(6px);
    font-size: 0.75rem;
  }

  .fbd-card .profile-likes-badge .icon-likes {
    stroke: #fff;
  }

  .fbd-card .match-photo-initials {
    font-size: 4rem;
    font-weight: 800;
    color: #e91e63;
  }

  .fbd-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.35rem;
    padding: 1rem 0 0.65rem;
    flex-shrink: 0;
  }

  .fbd-actions.is-hidden {
    display: none;
  }

  .fbd-act {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    font-family: var(--font);
  }

  .fbd-act:active {
    transform: scale(0.92);
  }

  .fbd-act-pass {
    width: 56px;
    height: 56px;
    background: #fff;
    color: #65676b;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid #e4e6eb;
  }

  .fbd-act-like {
    width: 68px;
    height: 68px;
    background: linear-gradient(145deg, #ff6090, #e91e63);
    color: #fff;
    box-shadow: 0 6px 24px rgba(233, 30, 99, 0.45);
  }

  .fbd-act-like .icon {
    fill: rgba(255, 255, 255, 0.3);
    stroke: #fff;
    stroke-width: 2;
  }

  .fbd-act-profile {
    width: 52px;
    height: 52px;
    background: #fff;
    color: #e91e63;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e4e6eb;
  }

  .fbd-strip-hidden {
    display: none !important;
  }

  .discover-btn-liked {
    animation: like-pop 0.45s ease;
  }

  @keyframes like-pop {
    0% {
      transform: scale(1);
    }
    40% {
      transform: scale(1.12);
    }
    100% {
      transform: scale(1);
    }
  }

  .app-tabbar {
    display: flex;
  }
}

@media (min-width: 900px) {
  .app-only-mobile {
    display: none !important;
  }

  .app-only-desktop {
    display: block;
  }

  .app-tabbar {
    display: none !important;
  }

  .app-main-wrap .container {
    padding-top: 1.5rem;
  }
}

.loading-text,
.empty-text {
  color: var(--text-muted);
  grid-column: 1 / -1;
  text-align: center;
}

.profile-view-inner {
  width: 100%;
  max-width: 100%;
  padding: 1rem 1rem 3rem;
  margin: 0 auto;
}

.profile-mobile-title {
  text-align: center;
  margin-bottom: 0.75rem;
}

.profile-editor-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.5rem 1.35rem 1.75rem;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(45, 42, 50, 0.08);
}

.profile-section {
  padding-bottom: 1.35rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--border);
}

.profile-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0.75rem;
  padding-bottom: 0;
}

.profile-section-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pink-dark);
}

.profile-section-hint {
  margin: -0.35rem 0 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.profile-section-avatar {
  text-align: center;
}

.profile-avatar-picker {
  margin: 0 auto;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.profile-col-12 {
  grid-column: 1 / -1;
}

.profile-age-display {
  margin-bottom: 0.5rem;
}

.profile-detail-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.profile-detail-block .profile-detail-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.profile-detail-block .chip-grid {
  margin-top: 0;
}

.profile-form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 0.5rem;
}

@media (max-width: 640px) {
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .profile-view-inner {
    max-width: 960px;
    padding: 1.5rem 1.5rem 3rem;
  }
}

@media (max-width: 899px) {
  .profile-view-inner {
    padding: 0.5rem 1rem 4.5rem;
  }

  .profile-editor-card {
    border-radius: 18px;
    padding: 1.25rem 1.1rem 1.5rem;
  }

  .profile-form-actions {
    gap: 1rem;
    margin-top: 1.5rem;
  }
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.page-app .site-footer,
.page-auth .site-footer {
  margin-top: auto;
}

.auth-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  text-align: center;
}

.onboarding-card {
  max-width: 420px;
}

.onboarding-banner {
  background: #f3faf4;
  color: #5f7a63;
  border: 1px solid #dceee0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.gender-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.gender-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 104px;
  border: 2px solid #ebe6ef;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.12s;
  padding: 1.1rem 0.75rem 0.9rem;
  font-family: var(--font);
}

.gender-option:hover {
  border-color: #d5ced8;
  background: #fdfcfd;
}

.gender-option:active {
  transform: scale(0.97);
}

.gender-option.gender-male {
  --gender-accent: #5b8fc9;
  --gender-bg: #eef4fc;
  --gender-bg-active: #e2eefb;
  --gender-ring: rgba(91, 143, 201, 0.35);
}

.gender-option.gender-female {
  --gender-accent: #d4688a;
  --gender-bg: #fdf0f4;
  --gender-bg-active: #fce8ef;
  --gender-ring: rgba(212, 104, 138, 0.35);
}

.gender-option.selected {
  border-color: var(--gender-accent);
  background: var(--gender-bg-active);
  box-shadow: 0 0 0 4px var(--gender-ring);
}

.gender-check {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2px solid #d8d2dc;
  background: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s, transform 0.15s, background 0.15s, border-color 0.15s;
}

.gender-option.selected .gender-check {
  opacity: 1;
  transform: scale(1);
  border-color: var(--gender-accent);
  background: var(--gender-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6l2.5 2.5 4.5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.65rem;
}

.gender-icon-svg {
  width: 2.75rem;
  height: 2.75rem;
  display: block;
  color: var(--gender-accent);
  flex-shrink: 0;
}

.gender-option.selected .gender-icon-svg {
  transform: scale(1.06);
  transition: transform 0.15s;
}

.gender-caption {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-muted);
  line-height: 1;
}

.gender-option.selected .gender-caption {
  color: var(--gender-accent);
}

.terms-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1rem 0 1.25rem;
  cursor: pointer;
}

.terms-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.terms-check a {
  font-weight: 700;
}

.btn-onboarding {
  background: #f8e8ee;
  color: #a85a72;
  border: 1px solid #f0d4de;
  box-shadow: none;
  font-weight: 700;
}

.btn-onboarding:hover {
  color: #8f4a60;
  background: #f5eef1;
  border-color: #e8c4d0;
  transform: none;
}

.site-footer-mini {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  margin-top: auto;
}

.footer-mini-inner {
  text-align: center;
}

.footer-mini-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.onboarding-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  color: var(--text);
}

.onboarding-sub {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

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

.avatar-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.avatar-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  border: 2px dashed #d8d2dc;
  background: #faf8fa;
  overflow: hidden;
}

.avatar-preview-placeholder {
  font-size: 2.5rem;
  font-weight: 300;
  color: #c4bcc8;
  line-height: 1;
}

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

.avatar-picker-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pink);
}

.avatar-picker:hover .avatar-preview {
  border-color: #e8a8be;
  background: #fff8fa;
}

.onboarding-wizard {
  max-width: 440px;
}

.wizard-progress {
  height: 6px;
  background: #f0e8ec;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.wizard-progress-bar {
  height: 100%;
  width: 8%;
  background: linear-gradient(90deg, #e8a8be, #d4688a);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.wizard-step-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.wizard-title {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;
}

.wizard-lead {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.wizard-panel.hidden {
  display: none;
}

.wizard-nav {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.wizard-nav .btn-onboarding,
.wizard-nav .btn-outline {
  flex: 1;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-option {
  position: relative;
  cursor: pointer;
}

.chip-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-option span {
  display: block;
  padding: 0.5rem 0.85rem;
  border: 2px solid #ebe6ef;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #fff;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.chip-option input:checked + span {
  border-color: #e8a8be;
  background: #fff5f8;
  color: #a83d5c;
}

.age-range-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--pink);
  margin-bottom: 1rem;
}

.age-range-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.age-range-inputs label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.age-range-inputs input[type="range"],
.range-full {
  width: 100%;
  margin-top: 0.35rem;
}

/* —— Trang chủ & album cặp đôi —— */
body.page-home,
body.page-couples {
  background: var(--bg);
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 36rem;
  margin: -1.5rem auto 2rem;
  font-size: 1rem;
  line-height: 1.55;
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

.hero-card-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pink);
  margin: 0 0 1rem;
}

.hero-match-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero-match-preview img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.hero-match-heart {
  font-size: 1.75rem;
  color: var(--pink);
}

.hero-card-names {
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0;
  text-align: center;
}

.hero-card-meta {
  display: block;
  text-align: center;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.singles-pool {
  padding: 3rem 0 4rem;
  background: var(--white);
}

.singles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}

.single-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.single-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.single-card-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.single-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-card-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pink-dark);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.single-card-body {
  padding: 0.85rem 1rem 1rem;
}

.single-card-body h3 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
}

.single-card-body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.single-card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #5f9ea0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6bc4a6;
  animation: pulse-dot 1.5s ease infinite;
}

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

.couples-teaser {
  padding: 3rem 0 4rem;
}

.couples-teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.couple-teaser-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: block;
}

.couple-teaser-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.couple-teaser-card:hover img {
  transform: scale(1.05);
}

.couple-teaser-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 42, 50, 0.75), transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  color: #fff;
}

.couple-teaser-overlay strong {
  font-size: 1rem;
}

.couple-teaser-overlay span {
  font-size: 0.8rem;
  opacity: 0.9;
}

.page-hero {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}

.page-hero-couples {
  background: linear-gradient(180deg, #fff5f8 0%, var(--bg) 100%);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
}

.page-hero-lead {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.couples-album {
  padding: 1rem 0 4rem;
}

.couples-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.couple-album-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(45, 42, 50, 0.06);
}

.couple-album-card--tall .couple-album-photo {
  aspect-ratio: 3 / 4;
}

.couple-album-photo {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.couple-album-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.couple-album-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--pink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.couple-album-body {
  padding: 1.1rem 1.25rem 1.35rem;
}

.couple-album-body h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.couple-album-meta {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pink-dark);
}

.couple-album-story {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.couples-album-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
}

.couples-album-cta p {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

/* —— Discover bar (lọc gọn) —— */
.discover-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  min-height: 36px;
}

.discover-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  margin-right: auto;
  border-radius: 10px;
  background: var(--pink-light);
  flex-shrink: 0;
}

.discover-count-num {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--pink-dark);
  line-height: 1;
}

.discover-bar-track {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
}

.discover-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.discover-tabs::-webkit-scrollbar {
  display: none;
}

.discover-filter-btn[hidden] {
  display: none !important;
}

.discover-tab {
  position: relative;
  padding: 0.45rem 0.65rem;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #9a919e;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.25;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.discover-tab:hover {
  color: var(--text);
}

.discover-tab.active {
  color: var(--pink-dark);
  font-weight: 700;
}

.discover-tab.active::after {
  content: '';
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--pink);
}

.discover-list-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--pink-dark);
  background: rgba(233, 30, 99, 0.08);
  text-decoration: none;
  transition: background 0.15s, transform 0.12s;
}

.discover-list-link:hover {
  background: var(--pink-light);
}

.discover-list-link:active {
  transform: scale(0.96);
}

.discover-view .app-only-desktop .discover-bar {
  margin-bottom: 1rem;
}

.match-card-footer {
  padding: 0.65rem 1rem 0.85rem;
  border-top: 1px solid var(--border);
  background: #fcfafb;
}

.match-detail-btn {
  text-align: center;
  text-decoration: none;
}

.app-subheader {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.5rem 1rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 45;
}

.app-subheader-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
}

.app-subheader-back:hover {
  color: var(--pink-dark);
}

.app-subheader-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  flex: 1;
  text-align: center;
  padding-right: 4rem;
}

.discover-list-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1rem 5rem;
  width: 100%;
}

.discover-list-page .discover-bar {
  margin-bottom: 0.85rem;
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.member-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(45, 42, 50, 0.04);
}

.member-row-photo {
  display: block;
  width: 96px;
  height: 112px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--pink-light), #ede7f6);
}

.member-row-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-row-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 1.75rem;
  font-weight: 800;
  color: #b87a8f;
}

.member-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.member-row-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.member-row-name a {
  color: inherit;
  text-decoration: none;
}

.member-row-name a:hover {
  color: var(--pink-dark);
}

.member-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.member-badge-m {
  background: #e8f0fa;
  color: #3d5a80;
}

.member-badge-f {
  background: var(--pink-light);
  color: var(--pink-dark);
}

.member-row-city {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.member-row-bio {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.member-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-public-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

.profile-public-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(45, 42, 50, 0.08);
}

.profile-hero {
  aspect-ratio: 4 / 5;
  max-height: 420px;
  background: linear-gradient(160deg, var(--pink-light), #ede7f6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero-initials {
  font-size: 4rem;
  font-weight: 800;
  color: #b87a8f;
}

.profile-public-head {
  padding: 1.25rem 1.25rem 0.5rem;
}

.profile-public-name {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.profile-public-meta {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.profile-public-section {
  padding: 0 1.25rem 1.15rem;
  border-top: 1px solid var(--border);
}

.profile-public-section h2 {
  margin: 1rem 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.profile-public-section p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

.profile-public-muted p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.detail-list {
  margin: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.5rem 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f3eef5;
  font-size: 0.9rem;
}

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

.detail-row dt {
  margin: 0;
  font-weight: 700;
  color: var(--text-muted);
}

.detail-row dd {
  margin: 0;
  color: var(--text);
}

.detail-row dd a {
  color: var(--pink-dark);
  font-weight: 600;
  word-break: break-all;
}

.profile-public-actions {
  padding: 1rem 1.25rem 1.35rem;
  border-top: 1px solid var(--border);
}

body.page-app.page-discover-list,
body.page-app.page-profile-view {
  background: #f5f2f4;
}

@media (max-width: 640px) {
  .member-row {
    grid-template-columns: 80px 1fr;
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .member-row-photo {
    width: 80px;
    height: 96px;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .app-subheader-title {
    padding-right: 0;
    text-align: left;
    font-size: 0.95rem;
  }
}

/* —— 404 —— */
.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  min-height: 50vh;
}

.error-card {
  max-width: 420px;
  width: 100%;
  text-align: center;
  padding: 2rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(45, 42, 50, 0.08);
}

.error-code {
  margin: 0 0 0.5rem;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--pink-light);
  letter-spacing: -0.02em;
}

.error-title {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

.error-text {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

body.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}

.maintenance-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
}

.maintenance-inner h1 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.maintenance-contact,
.footer-mini-support {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .main-nav a:not(.btn) {
    display: none;
  }

  .main-nav .btn {
    margin-left: auto;
  }

  .singles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Ví / rút tiền — giao diện khách, tông nhẹ viền nét đứt */
body.page-wallet {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wallet .wallet-subheader {
  flex-shrink: 0;
}

.page-wallet .wallet-page {
  flex: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 1rem 1rem 5.5rem;
  box-sizing: border-box;
}

.page-wallet .wallet-balance-card {
  background: #fff;
  color: var(--text);
  border: 2px dashed #d8d0d6;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.15rem;
  box-shadow: none;
  text-align: center;
}

.page-wallet .wallet-balance-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-wallet .wallet-balance-value {
  margin: 0.4rem 0 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.page-wallet .wallet-balance-hint {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.page-wallet .wallet-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.page-wallet .wallet-tab {
  flex: 1;
  border: 1px solid transparent;
  background: transparent;
  padding: 0.55rem 0.35rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.page-wallet .wallet-tab:hover {
  color: var(--text);
  background: #faf8f9;
}

.page-wallet .wallet-tab.is-active {
  color: var(--text);
  background: #fff;
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(45, 42, 50, 0.06);
}

.page-wallet .wallet-panel[hidden] {
  display: none !important;
}

.page-wallet .wallet-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.page-wallet .wallet-card-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.page-wallet .wallet-card-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.35rem;
}

.page-wallet .wallet-card-line {
  margin: 0.15rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.page-wallet .wallet-card-note {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #8a847c;
}

.page-wallet .wallet-tag {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #faf8f9;
  color: var(--text-muted);
  font-weight: 700;
}

.page-wallet .wallet-status {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
}

.page-wallet .wallet-status--ok { color: #047857; }
.page-wallet .wallet-status--pending { color: #b45309; }
.page-wallet .wallet-status--bad { color: #b91c1c; }

/* Form rút tiền & modal */
.page-wallet .wallet-form-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1.2rem;
  margin-bottom: 1.15rem;
}

.page-wallet .wallet-form-lead {
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed #e8e0e4;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.page-wallet .wallet-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.page-wallet .wallet-field-label {
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.page-wallet .wallet-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border: 1px solid #ddd6df;
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.page-wallet .wallet-input::placeholder {
  color: #a39aa8;
  font-weight: 500;
}

.page-wallet .wallet-input:hover {
  border-color: #cfc5cc;
}

.page-wallet .wallet-input:focus {
  outline: none;
  border-color: #c9a8b4;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.page-wallet .wallet-select {
  cursor: pointer;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6573' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 12px;
}

.page-wallet .wallet-field-check {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

.page-wallet .wallet-field-check input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--pink-dark);
}

.page-wallet .wallet-field-check span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.page-wallet .wallet-submit-btn {
  margin-top: 0.25rem;
}

.page-wallet #btn-add-bank {
  margin-bottom: 0.85rem;
}

.page-wallet .wallet-subtitle {
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0 0 0.65rem;
  color: var(--text);
}

.page-wallet .wallet-log-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
}

.page-wallet .wallet-log-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.page-wallet .wallet-log-type {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.page-wallet .wallet-log-amt.is-plus { color: #047857; font-weight: 700; }
.page-wallet .wallet-log-amt.is-minus { color: #b91c1c; font-weight: 700; }

.page-wallet .wallet-log-note {
  margin: 0.25rem 0;
  font-size: 0.88rem;
  color: var(--text);
}

.page-wallet .wallet-log-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.page-wallet .wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(45, 42, 50, 0.4);
  padding: 0;
}

.page-wallet .wallet-modal[hidden] {
  display: none !important;
}

.page-wallet .wallet-modal-panel {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
}

.page-wallet .wallet-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.page-wallet .wallet-modal-head h2 {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 800;
}

.page-wallet .wallet-modal-close {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
}

.page-wallet .wallet-modal-body,
.page-wallet .wallet-modal-form {
  padding: 1rem 1.1rem 1.5rem;
}

.page-wallet .app-tabbar {
  flex-shrink: 0;
}

#user-greeting-balance-link {
  color: var(--pink-dark, #c93d5a);
  text-decoration: none;
  font-weight: 600;
}

#user-greeting-balance-link:hover {
  text-decoration: underline;
}

.app-tab-wallet.active,
.app-tab-wallet.is-active,
.app-tab-wallet:active {
  color: var(--pink-dark, #c93d5a);
}

@media (min-width: 900px) {
  body.page-wallet .app-only-mobile.app-tabbar {
    display: none;
  }

  .page-wallet .wallet-page {
    padding-bottom: 2rem;
  }

  .page-wallet .wallet-modal {
    align-items: center;
    padding: 1rem;
  }

  .page-wallet .wallet-modal-panel {
    border-radius: 14px;
  }
}

@media (max-width: 899px) {
  body.page-wallet {
    padding-bottom: 0;
  }
}

/* Trang hỗ trợ */
body.page-support {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-support .support-page {
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: 1rem 1rem 5.5rem;
  box-sizing: border-box;
}

.support-hero {
  text-align: center;
  padding: 1.1rem 1rem 1.25rem;
  margin-bottom: 1rem;
  background: #fff;
  border: 2px dashed #d8d0d6;
  border-radius: 14px;
}

.support-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.65rem;
  border-radius: 50%;
  background: #faf8f9;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.support-hero-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.support-hero-lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.support-hero-hours {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.support-hero-hours-label {
  font-weight: 700;
  color: var(--text);
}

.support-channel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.support-channel-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.support-channel-card:hover {
  border-color: #cfc5cc;
  box-shadow: 0 2px 10px rgba(45, 42, 50, 0.06);
}

.support-channel-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: #faf8f9;
  color: var(--text-muted);
}

.support-channel-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: left;
}

.support-channel-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.support-channel-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

.support-channel-arrow {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: #c4bdb4;
  font-weight: 300;
}

.support-note-box {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px dashed #d8d0d6;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.support-note-box p {
  margin: 0;
}

.support-empty {
  padding: 1.25rem 1rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-mini-support a {
  color: var(--text-muted);
  font-weight: 700;
  text-decoration: none;
}

.footer-mini-support a:hover {
  color: var(--pink-dark);
}

@media (min-width: 900px) {
  body.page-support .app-only-mobile.app-tabbar {
    display: none;
  }

  .page-support .support-page {
    padding-bottom: 2rem;
  }
}

@media (max-width: 899px) {
  .app-tabbar .app-tab-label {
    font-size: 0.62rem;
  }
}
