.lang-dropdown, .nav-auth { position: relative; display: flex; align-items: center; }
.nav-auth { gap: 0.35rem; }
.lang-dropdown-toggle {
  border: 1px solid var(--border, rgba(255,255,255,.12));
  background: rgba(255,255,255,.04);
  color: var(--text, #e8eef5);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 6.5rem;
  text-align: left;
}
.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 9rem;
  background: var(--surface, #141b24);
  border: 1px solid var(--border, rgba(255,255,255,.12));
  border-radius: 10px;
  padding: 0.35rem;
  z-index: 50;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
.lang-dropdown.open .lang-dropdown-menu { display: block; }
.lang-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--muted, #8b9cb0);
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  font-size: 0.88rem;
  cursor: pointer;
}
.lang-dropdown-item:hover,
.lang-dropdown-item.active {
  color: var(--accent, #5eead4);
  background: rgba(94,234,212,.08);
}
.nav-auth a {
  color: var(--muted, #8b9cb0);
  text-decoration: none;
  font-size: 0.85rem;
}
.nav-auth a:hover { color: var(--text, #e8eef5); }
.nav-user-menu { position: relative; }
.nav-user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid rgba(94,234,212,.35);
  background: linear-gradient(135deg, hsl(var(--avatar-h, 168), 55%, 42%), hsl(calc(var(--avatar-h, 168) + 28), 60%, 34%));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.nav-user-avatar:hover,
.nav-user-menu.open .nav-user-avatar,
.nav-user-menu:focus-within .nav-user-avatar {
  border-color: rgba(94,234,212,.75);
  box-shadow: 0 0 0 3px rgba(94,234,212,.12);
}
.nav-user-avatar-lg {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.82rem;
}
.nav-user-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(18rem, calc(100vw - 2rem));
  background: var(--surface, #141b24);
  border: 1px solid var(--border, rgba(255,255,255,.12));
  border-radius: 14px;
  padding: 0.85rem;
  z-index: 60;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.nav-user-menu:hover .nav-user-panel,
.nav-user-menu.open .nav-user-panel,
.nav-user-menu:focus-within .nav-user-panel { display: block; }
.nav-user-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border, rgba(255,255,255,.08));
  margin-bottom: 0.65rem;
}
.nav-user-name {
  color: var(--text, #e8eef5);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
  word-break: break-word;
}
.nav-user-email {
  color: var(--muted, #8b9cb0);
  font-size: 0.78rem;
  line-height: 1.35;
  word-break: break-all;
  margin-top: 0.15rem;
}
.nav-user-meta {
  color: var(--muted, #8b9cb0);
  font-size: 0.78rem;
  line-height: 1.45;
  margin-bottom: 0.55rem;
}
.nav-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text, #e8eef5);
  font: inherit;
  font-size: 0.88rem;
  padding: 0.55rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.nav-user-item:hover {
  background: rgba(94,234,212,.08);
  color: var(--accent, #5eead4);
}
.nav-user-item .nav-user-chevron {
  color: var(--muted, #8b9cb0);
  font-size: 0.82rem;
}
.nav-user-signout {
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border, rgba(255,255,255,.08));
  color: var(--muted, #8b9cb0);
}
.nav-user-signout:hover { color: #f87171; background: rgba(248,113,113,.08); }
.nav-right { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.notice-warn {
  background: rgba(251,191,36,.1);
  border: 1px solid rgba(251,191,36,.25);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--warn, #fbbf24);
  font-size: 0.88rem;
  margin-top: 0.75rem;
}
.industry-slots { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.industry-slots li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border, rgba(255,255,255,.08));
  color: var(--muted, #8b9cb0);
  font-size: 0.9rem;
}
.industry-slots .slot { color: var(--accent, #5eead4); font-size: 0.8rem; }
.card p a {
  color: var(--accent, #5eead4);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.card p a:hover { color: #34d399; }
.section-sub a,
.section-sub a:visited {
  color: var(--accent, #5eead4);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.section-sub a:hover { color: #34d399; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  align-items: center;
}
.contact-mail-btn.btn-primary {
  color: #0b0f14 !important;
  text-decoration: none !important;
  font-weight: 700;
}
.contact-mail-btn.btn-ghost {
  color: var(--text, #e8eef5) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.2)) !important;
  text-decoration: none !important;
  font-weight: 600;
}
.contact-mail-btn.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--text, #e8eef5) !important;
}
.contact-mailhint {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--muted, #8b9cb0);
  line-height: 1.45;
}
button.btn {
  cursor: pointer;
  font-family: inherit;
  appearance: none;
}
.contact-copy-btn {
  border: 1px solid var(--border, rgba(255,255,255,.2)) !important;
  background: rgba(255,255,255,.06) !important;
  color: var(--text, #e8eef5) !important;
  text-decoration: none !important;
}
.contact-copy-btn:hover {
  background: rgba(255,255,255,.1) !important;
  color: var(--text, #e8eef5) !important;
}
.livora-toast {
  position: fixed;
  left: 50%;
  top: 0;
  background: #1a2330;
  color: #e8eef5;
  border: 1px solid rgba(94,234,212,.35);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, var(--toast-y, -100%)) scale(0.94);
  transition: transform .2s ease, opacity .2s ease;
}
.livora-toast.show {
  transform: translate(-50%, var(--toast-y, -100%)) scale(1);
  opacity: 1;
}
.subject-box {
  display: block;
  margin: 0.5rem 0;
  padding: 0.65rem 0.85rem;
  background: rgba(0,0,0,.35);
  border-radius: 8px;
  font-family: Consolas, monospace;
  font-size: 0.85rem;
  color: var(--accent, #5eead4);
}

/* —— Pricing · pay section (warm palette, 2× buttons) —— */
.pay-section {
  margin-top: 2rem;
  padding: 2rem 2.2rem;
  background: linear-gradient(155deg, #4a2c1a 0%, #6b3f24 38%, #5a3520 72%, #3f2518 100%);
  border: 2px solid rgba(251, 191, 36, 0.55);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(180, 83, 9, 0.28);
}
.pay-heading {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #fef3c7;
  font-weight: 800;
  line-height: 1.25;
}
.pay-sub {
  font-size: 1.25rem;
  color: #fde68a;
  margin-bottom: 1.5rem;
  line-height: 1.55;
  opacity: 0.96;
}
.pay-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.pay-block {
  background: rgba(255, 237, 213, 0.1);
  border: 1px solid rgba(253, 186, 116, 0.4);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
}
.pay-block h4 {
  font-size: 1.35rem;
  color: #fcd34d;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.pay-btns {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1rem;
}
.pay-btn-buy {
  font-size: 1.75rem;
  font-weight: 700;
  padding: 1.05rem 2rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  line-height: 1.3;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.pay-btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.pay-btn-wechat {
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff;
}
.pay-btn-wechat:hover { color: #fff; }
.pay-btn-stripe {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #3f2518;
}
.pay-btn-stripe:hover { color: #3f2518; }
.pay-btn-stripe-alt {
  background: rgba(255, 247, 237, 0.96);
  color: #78350f;
  border: 2px solid #fbbf24;
}
.pay-btn-stripe-alt:hover { color: #78350f; }
.pay-after {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  color: #fde68a;
  line-height: 1.65;
}
.pay-after a { color: #fef08a; font-weight: 600; }
.pay-pending {
  margin-top: 1rem;
  font-size: 1.15rem;
  color: #fca5a5;
  line-height: 1.55;
}

/* WeChat pay modal */
.pay-wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.pay-wechat-modal[hidden] { display: none !important; }
.pay-wechat-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 15, 8, 0.72);
  backdrop-filter: blur(4px);
}
.pay-wechat-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 2rem 1.75rem 1.75rem;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  border: 2px solid #fdba74;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  text-align: center;
  color: #431407;
}
.pay-wechat-modal-panel h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #9a3412;
  margin: 0 0 0.65rem;
}
.pay-wechat-modal-amount {
  font-size: 1.65rem;
  font-weight: 800;
  color: #c2410c;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}
.pay-wechat-modal-hint {
  font-size: 1.05rem;
  color: #78350f;
  margin: 0 0 1.15rem;
  line-height: 1.55;
}
.pay-wechat-modal-qr {
  width: min(100%, 320px);
  height: auto;
  border-radius: 14px;
  border: 3px solid #fed7aa;
  background: #fff;
  box-shadow: 0 8px 24px rgba(180, 83, 9, 0.2);
}
.pay-wechat-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(154, 52, 18, 0.12);
  color: #9a3412;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  font-weight: 700;
}
.pay-wechat-modal-close:hover { background: rgba(154, 52, 18, 0.22); }

@media (max-width: 640px) {
  .pay-heading { font-size: 1.55rem; }
  .pay-sub { font-size: 1.05rem; }
  .pay-btn-buy { font-size: 1.35rem; padding: 0.95rem 1.25rem; }
  .pay-wechat-modal-panel h3 { font-size: 1.45rem; }
  .pay-wechat-modal-amount { font-size: 1.35rem; }
}

/* YouTube product demo (9:16 vertical) */
.demo-video-wrap { text-align: center; padding: 0.5rem 0 0.25rem; }
.demo-video-aspect {
  position: relative;
  width: min(100%, 340px);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(94, 234, 212, 0.28);
  background: #000;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}
.demo-video-aspect iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.demo-video-caption {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.88rem;
  color: var(--muted, #8b9cb0);
  line-height: 1.5;
}
.demo-video-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent, #5eead4);
  text-decoration: none;
}
.demo-video-link:hover { text-decoration: underline; }
