* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #050505;
  --surface: #141416;
  --surface-2: #1c1c1e;
  --surface-3: #2a2a2a;
  --border: hsla(0, 0%, 100%, .08);
  --text: #ffffff;
  --muted: hsla(0, 0%, 100%, .62);
  --dim: hsla(0, 0%, 100%, .38);
  --green: #25d366;
  --green-dark: #1ebe57;
  --green-soft: rgba(37, 211, 102, .16);
  --yellow: #ffd60a;
  --blue: #0a84ff;
  --danger: #ff453a;
  --radius: 16px;
  --radius-lg: 22px;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang HK", "PingFang SC", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

.hidden { display: none !important; }

.app-container {
  min-height: 100vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 48px;
  overflow-x: hidden;
}

/* Header */
.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0 8px;
  position: sticky;
  top: 0;
  background: hsla(0, 0%, 2%, .88);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  z-index: 50;
  border-bottom: 1px solid hsla(0, 0%, 100%, .04);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--green-soft);
}

.nav-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.3px;
  color: #fff;
}

.nav-title span {
  color: var(--green);
  font-weight: 700;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, .06);
  color: #f0f0f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:active { transform: scale(.92); }

.online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #04140a;
  cursor: pointer;
  background: var(--green);
  border-radius: 999px;
  border: none;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .28);
}

.online:active { transform: scale(.97); background: var(--green-dark); }

.home-desc {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 14px;
}

/* Hero */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 60%;
  transform: scale(1.04);
  animation: heroZoom 12s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 48%, rgba(0,0,0,.25) 100%),
    linear-gradient(0deg, rgba(0,0,0,.55), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 28px 22px 24px;
  min-height: 280px;
}

.hero-title {
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero-title span {
  color: var(--green);
  display: inline-block;
  animation: pulseGreen 2.4s ease-in-out infinite;
}

.hero-sub {
  color: hsla(0, 0%, 100%, .78);
  font-size: 14px;
  max-width: 320px;
  margin-bottom: 18px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: none;
  border-radius: 14px;
  background: var(--green);
  color: #04140a;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .35);
  transition: transform .15s ease, background .15s ease;
}

.hero-cta:hover { background: var(--green-dark); }
.hero-cta:active { transform: scale(.97); }

.hero-badge {
  flex-shrink: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(8, 12, 10, .72);
  border: 1px solid rgba(37, 211, 102, .55);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  backdrop-filter: blur(8px);
  animation: floatBadge 3.2s ease-in-out infinite;
}

.hero-badge strong {
  display: block;
  font-size: 18px;
  margin-top: 2px;
}

/* Feature / Trust bars */
.feature-bar,
.trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 22px;
}

.feature-item,
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.feature-icon,
.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
  color: var(--green);
  flex-shrink: 0;
}

.feature-item h3,
.trust-item h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.feature-item p,
.trust-item p {
  font-size: 11px;
  color: var(--muted);
}

/* Services */
.section-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.category-nav {
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 14px;
}

.category-nav::-webkit-scrollbar { display: none; }

.category-list {
  display: flex;
  gap: 8px;
  list-style: none;
  padding-bottom: 4px;
}

.category-item {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #a1a1a6;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  background: hsla(0, 0%, 100%, .05);
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease;
}

.category-item.active {
  color: #04140a;
  background: var(--green);
  font-weight: 800;
}

.card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  display: flex;
  flex-direction: column;
  animation: cardIn .45s ease both;
}

.card-media {
  position: relative;
  width: 100%;
  padding-bottom: 62%;
  background: #1c1c1e center/cover no-repeat;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(37, 211, 102, .92);
  color: #04140a;
  font-size: 11px;
  font-weight: 800;
}

.card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-body h3 {
  font-size: 17px;
  font-weight: 800;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price-free {
  color: var(--yellow);
  font-size: 15px;
  font-weight: 800;
}

.price-old {
  color: var(--dim);
  font-size: 12px;
  text-decoration: line-through;
}

.card-cta {
  margin-top: auto;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: var(--green);
  color: #04140a;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.card-cta:active { transform: scale(.98); background: var(--green-dark); }

.trust-bar { margin-top: 28px; }

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 18px;
}

.pairing-overlay {
  background: rgba(0, 0, 0, .58);
}

.modal-content {
  background: var(--surface-2);
  border-radius: 28px;
  max-width: 420px;
  width: 100%;
  padding: 30px 24px 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .8);
  border: 1px solid var(--border);
  position: relative;
  max-height: 95vh;
  overflow-y: auto;
  animation: modalIn .28s ease;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, .08);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.modal-header { text-align: center; margin-bottom: 18px; }
.modal-header h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.sub-headline {
  font-size: 20px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 8px;
}
.modal-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
  list-style: none;
  margin: 0 0 20px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: hsla(0, 0%, 100%, .88);
}

.feature-list li:last-child {
  grid-column: auto;
}

.feature-list li:nth-child(5):last-child {
  grid-column: 1 / -1;
}

.feat-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--green-soft);
}

.feat-text strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 1px;
}

.feat-text span {
  color: var(--muted);
  font-size: 11px;
}

.input-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.input-group {
  background: hsla(0, 0%, 100%, .05);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 4px 10px;
  margin-bottom: 16px;
}

.phone-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
}

.wa-mini {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.country-select,
.phone-input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  outline: none;
}

.country-select {
  appearance: none;
  width: 72px;
  flex-shrink: 0;
  font-weight: 700;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='m1 1 4 4 4-4' stroke='%23aaa' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 14px;
}

.country-select option { background: #1c1c1e; color: #fff; }

.phone-input {
  flex: 1;
  min-width: 0;
  padding: 10px 4px;
}

.phone-input::placeholder { color: hsla(0, 0%, 100%, .28); }

.tel-error {
  color: var(--danger);
  font-size: 12px;
  padding: 0 4px 8px;
}

.unlock-btn {
  width: 100%;
  padding: 15px;
  background: var(--green);
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  color: #04140a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .28);
}

.unlock-btn:disabled { opacity: .6; cursor: not-allowed; }
.unlock-btn:not(:disabled):active { background: var(--green-dark); }

.legal-note {
  text-align: center;
  font-size: 11px;
  color: var(--dim);
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.progress-panel {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(8, 12, 10, .5);
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}

.progress-header strong { color: var(--green); font-size: 12px; }

.progress-track {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #25d366, #8bffb0);
  transition: width .25s ease;
}

.progress-text {
  min-height: 18px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
}

/* Pairing */
.pairing-modal {
  background: #1f1f1f;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 28px 20px 22px;
  text-align: center;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .9);
  position: relative;
  border: 1px solid var(--border);
  animation: modalIn .28s ease;
}

.pairing-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.35;
  padding: 0 28px;
}

.pairing-code-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: var(--surface-3);
  border-radius: 10px;
  padding: 12px 8px;
}

.code-box {
  width: 32px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .5px;
}

.code-separator {
  color: #666;
  display: flex;
  align-items: center;
  padding: 0 2px;
}

.tutorial-btn {
  background: #333;
  color: var(--blue);
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  margin-bottom: 16px;
  cursor: pointer;
}

.instructions {
  text-align: left;
  background: var(--surface-3);
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.instructions ol {
  list-style: none;
  color: #ddd;
}

.instructions li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 14px;
}

.ins-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: hsla(0, 0%, 100%, .06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ccc;
}

.ins-icon.wa { background: rgba(37, 211, 102, .12); }

.warning-text {
  color: var(--yellow);
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0;
  text-align: left;
}

.status-bar {
  background: hsla(0, 0%, 100%, .08);
  padding: 12px;
  border-radius: 12px;
  margin: 12px 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
}

.status-bar svg { animation: spin .75s linear infinite; }

.copy-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
}

.copy-btn:active { filter: brightness(1.08); }

/* Profile / Success */
.profile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(12px);
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.profile-modal {
  width: 100%;
  max-width: 480px;
  background: #161618;
  height: 100vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .32s ease;
}

.profile-close { z-index: 10; }

.profile-image {
  position: relative;
  width: 100%;
  padding-bottom: 72%;
  background-size: cover;
  background-position: center;
  background-color: #1c1c1e;
}

.profile-image-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(0deg, #161618, transparent);
}

.profile-info { padding: 8px 24px 16px; }

.profile-name { font-size: 26px; font-weight: 800; }
.profile-tagline {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.profile-chip {
  font-size: 12px;
  padding: 6px 12px;
  background: hsla(0, 0%, 100%, .08);
  border-radius: 999px;
  color: #ddd;
}

.profile-bio {
  font-size: 14px;
  line-height: 1.6;
  color: hsla(0, 0%, 100%, .82);
}

.profile-phone {
  background: hsla(0, 0%, 100%, .06);
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-top: 16px;
}

.phone-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.phone-number { font-size: 18px; font-weight: 700; }

.open-contact {
  display: block;
  width: calc(100% - 48px);
  margin: 0 24px 32px;
  padding: 16px;
  background: var(--green);
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  color: #04140a;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .28);
}

/* Video */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(8px);
}

.video-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  padding: 24px 18px 18px;
  background: #1c1c1e;
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
}

.video-close { position: absolute; top: 10px; right: 10px; }

.video-modal-box video {
  width: 100%;
  max-width: 301px;
  border-radius: 8px;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, .5);
  margin-top: 12px;
  background: #000;
}

.login-step { font-size: 17px; font-weight: 700; padding-right: 28px; }

.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(22, 22, 24, .95);
  backdrop-filter: blur(20px);
  color: #fff;
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 14px;
  z-index: 5000;
  max-width: 85%;
  text-align: center;
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: .6; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; }
  50% { opacity: .72; }
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (min-width: 640px) {
  .app-container { padding: 0 24px 56px; }
  .feature-bar,
  .trust-bar { grid-template-columns: repeat(4, 1fr); }
  .card-list { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .hero { min-height: 340px; }
  .hero-content { min-height: 340px; padding: 36px 32px; }
}

@media (min-width: 960px) {
  .card-list { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .nav-title { font-size: 24px; }
}

@media (max-width: 420px) {
  .app-container { padding: 0 12px 40px; }
  .online span,
  .online { font-size: 12px; padding: 8px 10px; }
  .nav-btn { display: none; }
  .hero-badge { display: none; }
}

/* ===== Extra bottom sections ===== */
.process-section,
.guarantee-section,
.why-section,
.faq-section,
.mid-cta {
  margin: 28px 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 14px;
  text-align: center;
  position: relative;
}

.process-num {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #04140a;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-icon {
  width: 40px;
  height: 40px;
  margin: 4px auto 10px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step h3 { font-size: 14px; margin-bottom: 4px; }
.process-step p { font-size: 12px; color: var(--muted); }

.guarantee-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  background: linear-gradient(135deg, #0d1f14, #122018);
  border: 1px solid rgba(37, 211, 102, .25);
  border-radius: 20px;
  padding: 22px;
  overflow: hidden;
}

.guarantee-copy h2 { font-size: 20px; margin-bottom: 12px; }
.guarantee-copy ul { list-style: none; margin-bottom: 14px; }
.guarantee-copy li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin: 8px 0;
  color: hsla(0,0%,100%,.88);
}
.guarantee-cta-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--green);
}
.guarantee-media {
  min-height: 160px;
  border-radius: 14px;
  background: #1c1c1e center/cover no-repeat;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.why-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.why-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.why-item h3 { font-size: 14px; margin-bottom: 4px; }
.why-item p { font-size: 12px; color: var(--muted); }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.mid-cta-card {
  background: var(--surface-2);
  border: 1px solid rgba(212, 175, 55, .35);
  border-radius: 22px;
  padding: 24px 20px;
  text-align: center;
}
.mid-cta-card h2 {
  font-size: 20px;
  color: #d4af37;
  margin-bottom: 8px;
}
.mid-cta-desc { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.mid-cta-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12px;
  color: hsla(0,0%,100%,.8);
}
.mid-cta-points span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: hsla(0,0%,100%,.05);
  padding: 6px 10px;
  border-radius: 999px;
}
.mid-cta-input { text-align: left; margin-bottom: 14px; }

body.theme-gold .guarantee-card {
  background: linear-gradient(135deg, #1a1408, #0f0d08);
  border-color: rgba(212, 175, 55, .35);
}
body.theme-gold .guarantee-cta-title,
body.theme-gold .why-icon,
body.theme-gold .process-icon { color: #d4af37; }
body.theme-gold .why-icon,
body.theme-gold .process-icon { background: rgba(212, 175, 55, .12); }
body.theme-gold .process-num { background: #d4af37; color: #1a1200; }
body.theme-gold .home-desc {
  color: #d4af37;
  border-bottom: 1px solid rgba(212, 175, 55, .25);
  padding-bottom: 10px;
}

body.theme-light .guarantee-card {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: #fff;
}
body.theme-light .guarantee-copy li { color: rgba(255,255,255,.92); }
body.theme-light .guarantee-cta-title { color: #fff; }
body.theme-light .process-step,
body.theme-light .why-item,
body.theme-light .faq-item {
  background: #fff;
}

@media (min-width: 640px) {
  .process-steps { grid-template-columns: repeat(5, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .guarantee-card { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .guarantee-media { min-height: 220px; }
}

/* WhatsFood gold luxury theme */
body.theme-gold {
  --green: #25d366;
  --green-dark: #1ebe57;
  --yellow: #d4af37;
  --blue: #c9a227;
}

body.theme-gold .nav-title span,
body.theme-gold .hero-title span,
body.theme-gold .section-title,
body.theme-gold .home-desc,
body.theme-gold .price-free,
body.theme-gold .sub-headline,
body.theme-gold .profile-tagline {
  color: #d4af37;
}

body.theme-gold .hero-badge {
  border-color: rgba(212, 175, 55, .65);
  color: #d4af37;
}

body.theme-gold .category-item.active {
  background: linear-gradient(135deg, #d4af37, #a67c00);
  color: #1a1200;
}

body.theme-gold .copy-btn {
  background: linear-gradient(135deg, #d4af37, #a67c00);
  color: #1a1200;
}

body.theme-gold .tutorial-btn {
  color: #d4af37;
  border: 1px dashed rgba(212, 175, 55, .45);
  background: rgba(212, 175, 55, .08);
}

body.theme-gold .warning-text { color: #e8c872; }

body.theme-gold .pairing-code-container {
  border: 1px solid rgba(212, 175, 55, .35);
}

body.theme-gold .code-box { color: #d4af37; }

/* QR modal runtime overlay */
#qrModal {
  padding: 24px;
}

.qr-modal-frame {
  position: relative;
  max-width: 80vw;
  max-height: 80vh;
  width: min(80vw, calc(80vh * 1129 / 1393));
  aspect-ratio: 1129 / 1393;
  border-radius: 18px;
  clip-path: inset(0 round 18px);
  overflow: hidden;
}

.qr-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-slot {
  position: absolute;
  left: 45.7%;
  top: 64.35%;
  width: 20.2%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 2px #1f8a42;
}

.qr-live-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr-refresh-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(14, 17, 22, .88);
  color: #fff;
  cursor: pointer;
  clip-path: inset(0 round 12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.qr-refresh-cover.hidden {
  display: none;
}

.qr-refresh-cover:not(:disabled):hover {
  background: rgba(14, 17, 22, .94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 8px 22px rgba(0, 0, 0, .22);
}

.qr-refresh-cover:not(:disabled):active {
  transform: scale(.98);
}

.qr-refresh-cover:disabled {
  cursor: default;
}

.qr-refresh-cover[data-state="loading"] {
  cursor: wait;
}

.qr-refresh-cover[data-state="loading"] .qr-refresh-loader {
  display: inline-flex;
}

.qr-refresh-cover[data-state="scanned"] {
  background: rgba(31, 138, 66, .88);
}

.qr-refresh-cover[data-state="expired"],
.qr-refresh-cover[data-state="error"] {
  background: rgba(154, 58, 37, .9);
}

.qr-refresh-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 12px;
}

.qr-refresh-loader span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  opacity: .55;
  animation: qrRefreshDot .72s ease-in-out infinite;
}

.qr-refresh-loader span:nth-child(2) {
  animation-delay: .12s;
}

.qr-refresh-loader span:nth-child(3) {
  animation-delay: .24s;
}

.qr-refresh-title {
  font-size: clamp(14px, 2.2vw, 24px);
  font-weight: 800;
  line-height: 1.1;
}

.qr-refresh-desc {
  max-width: 9em;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(10px, 1.4vw, 14px);
  line-height: 1.4;
  text-align: center;
}

@keyframes qrRefreshDot {
  0%, 100% {
    opacity: .35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

