.page-home .feature-card .feature-link { text-decoration:none; color:inherit; display:inline-block; }
.page-home .feature-card .feature-link:focus { outline:none; }
.page-home .feature-card .icon { cursor:pointer; }
.feature-details { padding:80px 20px; background:linear-gradient(180deg, #edf2ff 0%, #f8fafc 100%); }
.details-container { max-width:1100px; margin:0 auto; display:flex; flex-direction:column; gap:36px; }
.detail-row { display:grid; grid-template-columns:minmax(0,1fr) 420px; gap:36px; align-items:center; padding:40px 0; border-bottom:1px solid rgba(15,23,42,.06); }
.detail-row:nth-child(odd) { grid-template-columns:minmax(0,1fr) 420px; }
.detail-row:nth-child(even) { grid-template-columns:420px minmax(0,1fr); }
.detail-row:nth-child(even) .detail-text { order:2; }
.detail-row:nth-child(even) .detail-media { order:1; }
.detail-text h3 { font-size:24px; font-weight:800; color:#0f172a; margin:8px 0 12px; }
.detail-text p { color:#475569; line-height:1.75; font-size:15px; }
.detail-breadcrumb { font-size:12px; letter-spacing:.02em; color:#64748b; }
.detail-breadcrumb a { color:#4f46e5; text-decoration:none; }
.detail-breadcrumb a:hover { text-decoration:underline; }
.detail-media { 
  width:420px; 
  height:280px; 
  border-radius:12px; 
  background:linear-gradient(180deg, #f1f5f9, #e2e8f0); 
  box-shadow:0 4px 20px rgba(15,23,42,.08); 
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.feature-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
}

.fullscreen-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.2s ease;
  z-index: 10;
}

.video-container:hover .fullscreen-btn {
  opacity: 1;
}

.fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.fullscreen-btn:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

.fullscreen-icon {
  pointer-events: none;
}
/* Complete CSS Reset to eliminate all potential left spacing issues */
* { margin: 0; padding: 0; border: 0; box-sizing: border-box; }
html { width: 100%; height: 100%; }
body { 
  width: 100%; 
  min-height: 100vh; 
  margin: 0; 
  padding: 0; 
  display: flex; 
  flex-direction: column; 
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* Remove fade-in/transitions to avoid visual flicker */
main { transform:none; opacity:1; }

/* Page transition optimization */
html {
  scroll-behavior: smooth;
}

/* Link/button interaction: Remove all transform animations to avoid jitter */
a { transition: none; }
a:hover, a:active { transform: none; }

/* Button reset styles handled in main definition */

/* Fixed layout for auth buttons area to prevent flicker */
#auth-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  /* use min-height instead of fixed height to avoid clipping borders */
  min-height: 36px;
  box-sizing: border-box;
}

/* Force auth button styles - highest priority */
#auth-buttons .btn,
#auth-buttons .btn.btn-secondary,
#auth-buttons a.btn,
#auth-buttons a.btn.btn-secondary {
  display: inline-block !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  min-height: 32px !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  transition: none !important;
  /* Force show border to prevent style conflicts */
  border: 1px solid #4f46e5 !important;
  background: #fff !important;
  background-color: #fff !important;
  color: #4f46e5 !important;
}

/* Ensure button spacing in browsers without flex gap support */
#auth-buttons .btn + .btn {
  margin-left: 8px;
}

/* ensure header container has consistent padding to avoid layout jump */
.header-container {
  padding-top: 2px;
  padding-bottom: 2px;
}

/* Header */
header { 
  background-color:#ffffff; 
  border-bottom:1px solid #e0e0e0; 
  padding:8px 20px; 
  box-shadow:0 2px 4px rgba(0,0,0,0.05); 
  position:fixed; 
  top:0; 
  left:0; 
  right:0; 
  z-index:1000; 
  transform: translateZ(0);
  /* contain: layout style paint; Remove containment to allow dropdown menu display */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: auto;
  height: 70px;
  box-sizing: border-box;
  overflow: visible; /* Ensure dropdown menu is not clipped */
}
.header-container { 
  max-width:1400px; 
  margin:0 auto; 
  display:flex; 
  align-items:center; 
  height: 50px;
  box-sizing: border-box;
  overflow: visible; /* Allow child elements to overflow */
}
.header-left {
  display:flex;
  align-items:center;
  gap:40px;
  flex:1;
}
.header-right {
  display:flex;
  align-items:center;
  gap:8px;
}
.logo { 
  display:flex; 
  align-items:center; 
  font-size:22px; 
  font-weight:700; 
  color:#4f46e5; 
  text-decoration:none; 
  transform: translateZ(0);
}
.logo img { 
  height:40px; 
  width:40px; 
  margin-right:10px; 
  display:block; 
  flex-shrink: 0;
}
nav { 
  display:flex; 
  align-items:center; 
  gap:30px; 
  transform: translateZ(0);
}
nav a { 
  color:#555; 
  text-decoration:none; 
  font-weight:500; 
  font-size:15px;
  transition:none; 
}
nav a:hover, nav a.active { 
  color:#4f46e5; 
}
.header-buttons { 
  display:flex; 
  align-items:center; 
  gap:8px; 
  transform: translateZ(0);
  /* allow natural height to avoid clipping child borders */
  box-sizing: border-box;
  overflow: visible; /* Ensure dropdown menu is visible */
}

/* Force Add to Chrome button styles - highest priority */
.header-buttons .btn-primary,
.header-buttons .btn.btn-primary,
.header-buttons a.btn-primary,
.header-buttons a.btn.btn-primary {
  display: inline-block !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  transition: none !important;
  background: #4f46e5 !important;
  background-color: #4f46e5 !important;
  color: #fff !important;
  border: 1px solid #4f46e5 !important;
}
/* Base button styles - overridden by header specific styles */
.btn { 
  display: inline-block; 
  padding: 10px 20px; 
  border-radius: 8px; 
  font-weight: 600; 
  cursor: pointer; 
  text-decoration: none; 
  transition: none; 
  font-size: 14px; 
  box-shadow: none; 
  transform: none;
  border: 1px solid transparent;
}
.btn.btn-loading { position: relative; color:#fff !important; background:#4f46e5 !important; border-color:#4f46e5 !important; }
.btn.btn-loading::after { content:""; position:absolute; right:12px; top:50%; width:14px; height:14px; margin-top:-7px; border:2px solid rgba(255,255,255,.7); border-top-color:transparent; border-radius:50%; animation: spin .8s linear infinite; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.btn-primary { background-color:#4f46e5; color:#fff; border:1px solid #4f46e5; }
.btn-secondary { background:#fff; color:#4f46e5; border:1px solid #4f46e5; }

/* Footer */
footer { background-color:#1f2937; color:#fff; padding:30px 30px 24px; margin-top:auto; }
.footer-container { max-width:1200px; margin:0 auto; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:60px; align-items:start; }
.footer-grid > .footer-column { padding-top: 0; }

.footer-column h3 { color:#fff; font-size:20px; font-weight:700; margin:0; line-height:1.25; }
.footer-column h4 { color:#fff; font-size:16px; font-weight:600; margin:0 0 12px; line-height:1.25; height:25px; display:flex; align-items:center; }
.footer-column { display:flex; flex-direction:column; justify-content:flex-start; }
.footer-brand { display:flex; align-items:center; gap:16px; margin-bottom:12px; margin-top:0; height:25px; }
.footer-logo { width:40px; height:40px; display:block; margin-top:0; object-fit:contain; flex-shrink:0; }
.footer-brand h3 { margin:0; padding:0; line-height:1.25; }
.footer-description { color: #9ca3af; font-size: 14px; line-height: 1.6; margin: 0 0 12px; }
.footer-links { list-style:none; padding:0; margin:0; }
.footer-links li { margin-bottom:12px; }
.footer-links a { color:#9ca3af; text-decoration:none; font-size:14px; transition:none; }
.footer-links a:hover { color:#fff; }
.footer-contact-info { color:#9ca3af; font-size:14px; }
.footer-copyright { color: #9ca3af; font-size: 12px; margin-top: 6px; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns:1fr; gap:40px; text-align:center; }
  .footer-brand { justify-content:center; }
}

/* ---------------- Home page ---------------- */
main { margin-top:0; flex:1; padding-top:78px; }
.page-home .hero { padding:80px 20px; text-align:center; background:linear-gradient(180deg, rgba(245,248,255,1) 0%, rgba(232,238,255,1) 100%); color:#0f172a; }
.page-home .hero-container { max-width:1200px; margin:0 auto; }
.page-home .hero h1 { font-size:56px; font-weight:800; margin-bottom:24px; line-height:1.15; color:#0f172a; }
.page-home .hero-v2 .hero-title-line1 { display:block; color:#0f172a; }
.page-home .hero-v2 .hero-title-line2 { display:block; font-weight:900; font-size:56px; color:#5b21b6; background-image:linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent; }
.page-home .hero .hero-sub { font-size:16px; margin-bottom:36px; color:#334155; }
.page-home .hero .btn { font-size:18px; padding:15px 30px; margin:0 10px; }
.page-home .features { padding:80px 20px; background:#fff; }
.page-home .features-container { max-width:1200px; margin:0 auto; }
.page-home .features h2 { font-size:40px; font-weight:800; text-align:center; margin-bottom:12px; color:#0f172a; }
.page-home .features-sub { text-align:center; color:#475569; margin-bottom:36px; }
.page-home .features-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:28px 28px; }
.page-home .feature-card { text-align:left; padding:24px 28px; border-radius:14px; box-shadow:0 10px 30px rgba(15,23,42,.06); background:#fff; cursor:pointer; transition:all 0.3s ease; outline:none; user-select:none; -webkit-user-select:none; -moz-user-select:none; -ms-user-select:none; }
.page-home .feature-card:hover { transform:translateY(-4px); box-shadow:0 20px 40px rgba(15,23,42,.12); }
.page-home .feature-card:focus { outline:none; }
.page-home .feature-card .feature-head { display:flex; align-items:center; gap:12px; margin-bottom:8px; }
.page-home .feature-card h3 { font-size:18px; font-weight:800; margin:0; color:#0f172a; }
.page-home .feature-card p { color:#475569; line-height:1.65; margin-top:8px; }
.page-home .icon { width:36px; height:36px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; }
.page-home .icon-indigo { background:#eef2ff; color:#4f39f6; }
.page-home .icon-blue { background:#e8f0ff; color:#155dfc; }
.page-home .icon-purple { background:#f3e8ff; color:#7c3aed; }
.page-home .icon-teal { background:#e6fffa; color:#009689; }
.page-home .icon-green { background:#ecfdf5; color:#00a63e; }
.page-home .icon-orange { background:#fff5ee; color:#f54a00; }
.page-home .pricing { padding:80px 20px; background:#f8f9fa; }
.page-home .pricing-container { max-width:800px; margin:0 auto; text-align:center; }
.page-home .pricing h2 { font-size:36px; font-weight:700; margin-bottom:50px; color:#1a1a1a; }
.page-home .pricing-card { background:#fff; padding:40px; border-radius:12px; box-shadow:0 4px 20px rgba(0,0,0,.1); max-width:400px; margin:0 auto; }
.page-home .pricing-card h3 { font-size:28px; font-weight:700; color:#4f46e5; margin-bottom:20px; }
.page-home .pricing-card .price { font-size:48px; font-weight:700; color:#1a1a1a; margin-bottom:30px; }
.page-home .pricing-card ul { list-style:none; margin-bottom:30px; text-align:left; }
.page-home .pricing-card li { padding:8px 0; color:#666; }
.page-home .pricing-card li::before { content:"\2713"; color:#4f46e5; font-weight:bold; margin-right:10px; }
.page-home .contact { padding:80px 20px; background:#fff; }
.page-home .contact-container { max-width:600px; margin:0 auto; text-align:center; }
.page-home .contact h2 { font-size:36px; font-weight:700; margin-bottom:30px; color:#1a1a1a; }
.page-home .contact p { font-size:18px; color:#666; margin-bottom:30px; }
@media (max-width:768px){
  .page-home .header-container { flex-direction:column; gap:15px; }
  .page-home nav { gap:20px; }
  .page-home .header-buttons { flex-wrap:wrap; }
  .page-home .hero h1 { font-size:36px; }
  .page-home .hero p { font-size:18px; }
  .page-home .hero .btn { display:block; margin:10px auto; max-width:200px; }
  .page-home .features h2, .page-home .pricing h2, .page-home .contact h2 { font-size:28px; }
}

/* ---------------- Pricing page ---------------- */
.page-pricing main { flex:1; padding:60px 20px; width:100%; }
.page-pricing .pricing-hero { text-align:center; margin-bottom:60px; margin-top:36px; }
.page-pricing .pricing-hero h1 { font-size:42px; font-weight:700; color:#1a1a1a; margin-bottom:20px; }
.page-pricing .pricing-hero p { font-size:20px; color:#666; max-width:600px; margin:0 auto; }
.page-pricing .pricing-grid { display:grid; grid-template-columns:repeat(4,minmax(280px,320px)); gap:12px; max-width:1320px; margin:0 auto 80px; padding:0 20px; justify-content:center; }
@media (max-width:1049px){ .page-pricing .pricing-grid { grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); } }
.page-pricing .pricing-card { background:#fff; padding:28px 18px; border-radius:16px; box-shadow:0 4px 20px rgba(0,0,0,.1); text-align:center; position:relative; border:2px solid transparent; transition:none; }
.page-pricing .pricing-card:hover { transform:none; box-shadow:0 8px 30px rgba(0,0,0,.15); }
.page-pricing .pricing-card.featured { border-color:#4f46e5; transform:none; }
.page-pricing .pricing-card.featured::before { content:"Most Popular"; position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:#4f46e5; color:#fff; padding:6px 20px; border-radius:20px; font-size:14px; font-weight:600; }
.page-pricing .pricing-card h3 { font-size:24px; font-weight:700; color:#1a1a1a; margin-bottom:10px; }
.page-pricing .pricing-card .description { color:#666; margin-bottom:30px; font-size:16px; min-height: 24px; }
.page-pricing .pricing-card .price { font-size:36px; font-weight:700; color:#4f46e5; margin-bottom:20px; }
.page-pricing .pricing-card .price .period { font-size:16px; font-weight:400; color:#666; }
.page-pricing .pricing-card .features { list-style:none; margin-bottom:0; margin-top:20px; text-align:left; padding:0 8px; min-height: 360px; }
.page-pricing .pricing-card .btn { margin-bottom:20px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; padding:10px 20px; box-sizing:border-box; }
.page-pricing .pricing-card .features li { padding:6px 0; color:#1f2937; position:relative; padding-left:22px; white-space:nowrap; word-break:keep-all; }
.page-pricing .pricing-card .features li::before { content:"\2713"; position:absolute; left:0; color:#4f46e5; font-weight:bold; }
.page-pricing .pricing-card .features li.unavailable { color:#9ca3af; text-decoration:line-through; }
.page-pricing .pricing-card .features li.unavailable::before { content:"\2717"; color:#9ca3af; }
.page-pricing .price-dual { margin-bottom:30px; }
.page-pricing .price-option { margin-bottom:15px; }
.page-pricing .price-option .price { font-size:42px; font-weight:700; color:#4f46e5; margin-bottom:5px; }
.page-pricing .price-option .price-period { color:#666; font-size:14px; margin-bottom:10px; }
.page-pricing .price-divider { text-align:center; color:#999; font-size:14px; font-weight:500; margin:10px 0; position:relative; }
.page-pricing .price-divider::before, .page-pricing .price-divider::after { content:''; position:absolute; top:50%; width:35%; height:1px; background:#e0e0e0; }
.page-pricing .price-divider::before { left:0; } .page-pricing .price-divider::after { right:0; }
.page-pricing .dual-buttons { display:flex; gap:10px; justify-content:center; }
.page-pricing .dual-buttons .btn { flex:1; min-width:120px; }

/* Payment buttons styling */
.payment-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.payment-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-buttons.cn-payment .btn {
  min-height: 44px;
  font-weight: 600;
  font-size: 14px;
}

.payment-buttons.intl-payment .btn {
  min-height: 44px;
}

.btn-wechat {
  background: #07c160 !important;
  color: #fff !important;
  border: 1px solid #07c160 !important;
}

.btn-wechat:hover {
  background: #06ad56 !important;
  border-color: #06ad56 !important;
}

.btn-alipay {
  background: #1677ff !important;
  color: #fff !important;
  border: 1px solid #1677ff !important;
}

.btn-alipay:hover {
  background: #135dd4 !important;
  border-color: #135dd4 !important;
}

.btn-stripe {
  background: #635bff !important;
  color: #fff !important;
  border: 1px solid #635bff !important;
}

.btn-stripe:hover {
  background: #5548d9 !important;
  border-color: #5548d9 !important;
}

.btn.placeholder {
  opacity: 0.6;
  cursor: not-allowed !important;
  position: relative;
}

.btn.placeholder:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Lifetime dropdown */
.page-pricing .lifetime-dropdown { display:flex; justify-content:center; margin-bottom:20px; }
.dropdown { position:relative; display:inline-block; min-width: 280px; }
.dropdown-toggle { position:relative; width:100%; padding:10px 36px 10px 20px; text-align:center; min-height:44px; display:flex; align-items:center; justify-content:center; box-sizing:border-box; }
/* Down arrow indicator */
.dropdown-toggle::after { content:""; position:absolute; right:14px; top:50%; transform:translateY(-50%); border-width:6px 5px 0 5px; border-style:solid; border-color:#ffffff transparent transparent transparent; }
.dropdown-menu { display:none; position:absolute; left:0; right:0; top:100%; margin-top:0; background:#4f46e5; border:1px solid #4f46e5; border-top: none; border-bottom-left-radius:8px; border-bottom-right-radius:8px; box-shadow:0 10px 30px rgba(15,23,42,.12); padding:8px; z-index:10; }
.dropdown:hover .dropdown-menu { display:block; }
/* Make the button and menu look attached */
.dropdown:hover .dropdown-toggle { border-bottom-left-radius:0; border-bottom-right-radius:0; border-bottom: none; }
.dropdown-item { 
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  gap:10px; 
  width:100%; 
  text-align:left; 
  padding:12px 14px; 
  background:#4f46e5; 
  border:2px solid rgba(255,255,255,0.35); 
  border-radius:6px; 
  color:#ffffff; 
  font-weight:700; 
  cursor:pointer; 
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease; 
}
.dropdown-item::after { content:none; }
.dropdown-item:hover { background:#5b54ea; box-shadow: inset 0 0 0 2px rgba(255,255,255,.45); border-color: rgba(255,255,255,0.55); }
.dropdown-item:active { transform: translateY(0); }
.dropdown-item:focus-visible { outline:none; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
@media (max-width:768px){
  .page-pricing .header-container { flex-direction:column; gap:15px; }
  .page-pricing nav { gap:20px; }
  .page-pricing .header-buttons { flex-wrap:wrap; }
  .page-pricing .pricing-hero h1 { font-size:32px; }
  .page-pricing .pricing-hero p { font-size:18px; }
  .page-pricing .pricing-grid { grid-template-columns:1fr; gap:20px; max-width:100%; }
  .page-pricing .pricing-card.featured { transform:none; }
  .page-pricing .pricing-card { padding:30px 20px; }
}
@media (max-width:480px){
  .page-pricing main { padding:40px 15px; }
  .page-pricing .pricing-grid { gap:15px; }
  .page-pricing .pricing-card { padding:25px 15px; }
}
@media (min-width:769px) and (max-width:1049px){
  .page-pricing .pricing-grid { grid-template-columns:repeat(auto-fit,minmax(280px,320px)); gap:12px; max-width:1000px; justify-content:center; }
  .page-pricing .pricing-card { padding:32px 20px; }
}
@media (min-width:1350px){
  .page-pricing .pricing-grid { max-width:1400px; gap:16px; }
}

/* ---------------- Login page ---------------- */
.page-login main { flex:1; padding:60px 20px; width:100%; }
.page-login .login-card { max-width:420px; margin:0 auto; background:#fff; padding:40px; border-radius:12px; box-shadow:0 4px 20px rgba(0,0,0,.1); }
.page-login .login-card h1 { font-size:24px; font-weight:700; color:#1a1a1a; margin-bottom:24px; text-align:center; }
.page-login .form-group { margin-bottom:20px; }
.page-login .form-group label { display:block; font-size:14px; font-weight:600; color:#374151; margin-bottom:6px; }
.page-login .form-group input { width:100%; padding:12px 14px; border:1px solid #d1d5db; border-radius:8px; font-size:16px; transition:none; }
.page-login .password-field { position:relative; width:100%; }
.page-login .password-field input { width:100%; padding-right:56px; display:block; }
.page-login .toggle-password { position:absolute !important; right:12px; top:50%; transform:translateY(-50%); background:transparent !important; border:0 !important; cursor:pointer; color:#9ca3af; width:32px; height:32px; padding:0; display:inline-flex; align-items:center; justify-content:center; outline:none; box-shadow:none; -webkit-appearance:none; appearance:none; overflow:visible; }
.page-login .toggle-password svg { width:18px; height:18px; display:block; }
.page-login .toggle-password:focus { outline:none; box-shadow:none; }
.page-login .form-group input:focus { outline:none; border-color:#4f46e5; box-shadow:0 0 0 3px rgba(79,70,229,.1); }
.page-login .form-group input.error { border-color:#dc2626; box-shadow:0 0 0 3px rgba(220,38,38,.1); }
.page-login .field-error { color:#dc2626; font-size:14px; margin-top:6px; min-height:20px; display:none; }
.page-login .submit-btn { display:block; width:100%; padding:12px 16px; background:#4f46e5; color:#fff; border:none; border-radius:8px; font-size:16px; font-weight:600; cursor:pointer; margin-top:8px; transition:none; }
.page-login .submit-btn:hover { background:#4338ca; }
.page-login .submit-btn:disabled { background:#9ca3af; cursor:not-allowed; }
.page-login .message { margin-top:12px; padding:8px; border-radius:6px; font-size:14px; text-align:center; display:none; }
.page-login .message.error { background:#fef2f2; color:#dc2626; border:1px solid #fecaca; }
.page-login .message.success { background:#f0fdf4; color:#16a34a; border:1px solid #bbf7d0; }
.page-login .signup-link { display:block; text-align:center; margin-top:20px; color:#6b7280; text-decoration:none; font-size:14px; }
.page-login .signup-link:hover { color:#4f46e5; }

/* ---------------- Signup page ---------------- */
.page-signup main { flex:1; padding:60px 20px; width:100%; }
.page-signup .signup-card { max-width:420px; margin:0 auto; background:#fff; padding:40px; border-radius:12px; box-shadow:0 4px 20px rgba(0,0,0,.1); }
.page-signup .signup-card h1 { font-size:24px; font-weight:700; color:#1a1a1a; margin-bottom:24px; text-align:center; }
.page-signup .form-group { margin-bottom:20px; }
.page-signup .form-group label { display:block; font-size:14px; font-weight:600; color:#374151; margin-bottom:6px; }
.page-signup .form-group input { width:100%; padding:12px 14px; border:1px solid #d1d5db; border-radius:8px; font-size:16px; transition:none; }
.page-signup .password-field { position:relative; width:100%; }
.page-signup .password-field input { width:100%; padding-right:56px; display:block; }
.page-signup .toggle-password { position:absolute !important; right:12px; top:50%; transform:translateY(-50%); background:transparent !important; border:0 !important; cursor:pointer; color:#9ca3af; width:32px; height:32px; padding:0; display:inline-flex; align-items:center; justify-content:center; outline:none; box-shadow:none; -webkit-appearance:none; appearance:none; overflow:visible; }
.page-signup .toggle-password svg { width:18px; height:18px; display:block; }
.page-signup .toggle-password:focus { outline:none; box-shadow:none; }
.page-signup .form-group input:focus { outline:none; border-color:#4f46e5; box-shadow:0 0 0 3px rgba(79,70,229,.1); }
.page-signup .form-group input.error { border-color:#dc2626; box-shadow:0 0 0 3px rgba(220,38,38,.1); }
.page-signup .field-error { color:#dc2626; font-size:14px; margin-top:6px; min-height:20px; display:none; }
.page-signup .submit-btn { display:block; width:100%; padding:12px 16px; background:#4f46e5; color:#fff; border:none; border-radius:8px; font-size:16px; font-weight:600; cursor:pointer; margin-top:8px; transition:none; }
.page-signup .submit-btn:hover { background:#4338ca; }
.page-signup .submit-btn:disabled { background:#9ca3af; cursor:not-allowed; }
.page-signup .message { margin-top:12px; padding:8px; border-radius:6px; font-size:14px; text-align:center; display:none; }
.page-signup .message.error { background:#fef2f2; color:#dc2626; border:1px solid #fecaca; }
.page-signup .message.success { background:#f0fdf4; color:#16a34a; border:1px solid #bbf7d0; }
.page-signup .login-link { display:block; text-align:center; margin-top:20px; color:#6b7280; text-decoration:none; font-size:14px; }
.page-signup .login-link:hover { color:#4f46e5; }

/* ---------------- Privacy & Terms pages ---------------- */
.page-privacy main, .page-terms main { flex:1; padding:60px 20px; width:100%; }
.page-privacy .content-card, .page-terms .content-card { 
  max-width:800px; 
  margin:0 auto; 
  background:#fff; 
  padding:40px; 
  border-radius:12px; 
  box-shadow:0 4px 20px rgba(0,0,0,.1); 
}
.page-privacy .content-card h1, .page-terms .content-card h1 { font-size:32px; font-weight:700; color:#1a1a1a; margin-bottom:20px; text-align:center; }
.page-privacy .last-updated, .page-terms .last-updated { text-align:center; color:#6b7280; font-size:14px; margin-bottom:40px; }
.page-privacy .content-card h2, .page-terms .content-card h2 { font-size:24px; font-weight:600; color:#1a1a1a; margin-top:30px; margin-bottom:15px; }
.page-privacy .content-card h3, .page-terms .content-card h3 { font-size:18px; font-weight:600; color:#1a1a1a; margin-top:25px; margin-bottom:10px; }
.page-privacy .content-card p, .page-terms .content-card p { margin-bottom:15px; line-height:1.7; color:#374151; }
.page-privacy .content-card ul, .page-privacy .content-card ol, .page-terms .content-card ul, .page-terms .content-card ol { margin-bottom:15px; padding-left:20px; }
.page-privacy .content-card li, .page-terms .content-card li { margin-bottom:8px; line-height:1.7; color:#374151; }

/* ---------------- Success page ---------------- */
.page-success main { flex:1; padding:60px 20px; width:100%; text-align:center; }
.page-success .success-card { max-width:600px; margin:0 auto; background:#fff; padding:40px; border-radius:12px; box-shadow:0 4px 20px rgba(0,0,0,.1); }
.page-success .success-icon { width:80px; height:80px; margin:0 auto 30px; background:#10b981; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:40px; }
.page-success .success-content h1 { font-size:36px; font-weight:700; color:#1a1a1a; margin-bottom:20px; }
.page-success .success-content p { font-size:18px; color:#666; margin-bottom:30px; line-height:1.6; }
.page-success .session-info { background:#f8f9fa; padding:30px; border-radius:8px; margin-bottom:30px; text-align:left; }
.page-success .session-info h3 { font-size:20px; font-weight:600; color:#1a1a1a; margin-bottom:15px; }
.page-success .session-info p { margin-bottom:10px; font-size:16px; }
.page-success .actions { display:flex; gap:20px; justify-content:center; flex-wrap:wrap; }
@media (max-width:768px){ .page-success .actions { flex-direction:column; align-items:center; } .page-success .success-content h1 { font-size:28px; } .page-success .session-info { padding:20px; } }

/* ---------------- User page ---------------- */
.page-user .user-card { max-width:600px; margin:0 auto; background:#fff; padding:40px; border-radius:12px; box-shadow:0 4px 20px rgba(0,0,0,.1); }
.page-user .user-card h1 { font-size:28px; font-weight:700; color:#1a1a1a; margin-bottom:30px; text-align:center; }
.page-user .user-info-section { 
  background:#f8f9fa; 
  padding:30px; 
  border-radius:8px; 
  margin-bottom:30px; 
  min-height: 120px; /* Fixed minimum height to prevent jumping */
}
.page-user .info-row { display:flex; align-items:center; gap:12px; margin-bottom:14px; min-height: 24px; /* Fixed row height */ }
.page-user .info-label { font-size:14px; font-weight:600; color:#666; min-width:120px; }
.page-user .info-value { font-size:18px; font-weight:600; color:#333; }
.page-user .info-muted { font-size:16px; font-weight:500; color:#444; }
.page-user .user-actions { text-align:center; }
.page-user .user-actions .btn { margin:0 6px; }
.page-user .error-message { color:#dc2626; font-size:14px; margin-bottom:20px; text-align:center; }

/* ---------------- Stats page ---------------- */
.page-stats .container { max-width:1400px; margin:30px auto; padding:0; }
.page-stats .card { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:20px; box-shadow:0 4px 20px rgba(0,0,0,.08); overflow:visible; }
.page-stats .title { font-size:26px; font-weight:800; margin-bottom:16px; color:#111827; }
.page-stats .tooltip { position:relative; display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:50%; background:#374151; color:#fff; font-size:12px; font-weight:700; cursor:help; }
/* Remove legacy tooltip pseudo rules - handled inline in stats.html */
.page-stats .grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.page-stats .metric { background:#f9fafb; border:1px solid #e5e7eb; border-radius:6px; padding:10px 12px; }
.page-stats .metric h3 { margin:0 0 3px; font-size:13px; color:#6b7280; font-weight:700; }
.page-stats .metric p { margin:0; font-size:20px; color:#111827; font-weight:800; }
@media (max-width: 900px) { .page-stats .grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width: 600px) { .page-stats .grid { grid-template-columns:1fr; } }
.page-stats .error { color:#dc2626; margin-top:12px; }
.page-stats .toolbar { display:flex; align-items:center; gap:10px; margin:14px 0 8px; }
.page-stats .select { padding:6px 10px; border:1px solid #e5e7eb; background:#fff; border-radius:8px; }

/* ---------------- Contact Us page ---------------- */
.page-contact main { flex:1; padding:60px 20px; width:100%; }
.page-contact .contact-hero { text-align:center; margin-bottom:60px; margin-top:36px; }
.page-contact .contact-hero h1 { font-size:42px; font-weight:700; color:#1a1a1a; margin-bottom:20px; }
.page-contact .contact-hero p { font-size:20px; color:#666; max-width:800px; margin:0 auto; white-space:nowrap; }

.page-contact .contact-methods { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:30px; max-width:1200px; margin:0 auto 80px; }
.page-contact .contact-card { background:#fff; padding:40px 30px; border-radius:16px; box-shadow:0 4px 20px rgba(0,0,0,.1); text-align:center; border:2px solid transparent; transition:none; }
.page-contact .contact-card:hover { box-shadow:0 8px 30px rgba(0,0,0,.15); }
.page-contact .contact-icon { width:60px; height:60px; margin:0 auto 20px; background:#f8faff; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#4f46e5; }
.page-contact .contact-card h3 { font-size:24px; font-weight:700; color:#1a1a1a; margin-bottom:15px; }
.page-contact .contact-card p { color:#666; margin-bottom:25px; line-height:1.6; }
.page-contact .contact-card .btn { margin-top:10px; }
.page-contact .contact-info { margin-top:20px; }
.page-contact .qq-number { font-size:24px; font-weight:700; color:#4f46e5; display:block; margin-bottom:10px; }
.page-contact .contact-note { font-size:14px; color:#888; margin-top:8px; }

.page-contact .qr-code-container { margin-top:20px; }
.page-contact .qr-code-placeholder { text-align:center; margin:15px auto; }
.page-contact .qr-code-placeholder p { color:#666; margin-bottom:15px; }
.page-contact .qr-code-image { width:200px; height:200px; border-radius:8px; border:1px solid #ddd; display:block; margin:0 auto; }
.page-contact .feishu-qr-code { display:flex; justify-content:center; margin:15px auto; }
.page-contact .feishu-qr-code svg { transition:transform 0.2s ease; cursor:pointer; }
.page-contact .feishu-qr-code svg:hover { transform:scale(1.05); }

.page-contact .contact-footer { background:#f8f9fa; padding:60px 20px; margin-top:40px; }
.page-contact .contact-footer-content { max-width:800px; margin:0 auto; text-align:center; }
.page-contact .contact-footer h3 { font-size:28px; font-weight:700; color:#1a1a1a; margin-bottom:20px; }
.page-contact .contact-footer p { font-size:18px; color:#666; line-height:1.7; }
.page-contact .support-email { color:#4f46e5; text-decoration:none; font-weight:600; }
.page-contact .support-email:hover { text-decoration:underline; }

@media (max-width:768px){
  .page-contact .contact-hero h1 { font-size:32px; }
  .page-contact .contact-hero p { font-size:18px; white-space:normal; max-width:600px; }
  .page-contact .contact-methods { grid-template-columns:1fr; gap:20px; }
  .page-contact .contact-card { padding:30px 20px; }
  .page-contact .contact-footer h3 { font-size:24px; }
  .page-contact .contact-footer p { font-size:16px; }
}

/* ---------------- 404 page ---------------- */
.page-404 main { flex:1; }
.page-404 .wrapper { max-width:720px; margin:12vh auto; background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:40px; text-align:center; box-shadow:0 8px 30px rgba(0,0,0,.08); }
.page-404 h1 { margin:0 0 12px; font-size:32px; color:#111827; }
.page-404 p { margin:0 0 18px; color:#6b7280; }
.page-404 a { color:#4f46e5; text-decoration:none; font-weight:600; }
.page-404 a:hover { text-decoration:underline; }

/* Global edge spacing removal: avoid left/right page padding on all pages */
main { padding-left:0 !important; padding-right:0 !important; padding-top:78px !important; }

/* Common page styles - unified from inline styles */

/* Page-specific main container styles */
.page-404 main { padding-top: 78px; } /* 404 page specific override */
.page-stats .container { margin-top: 82px; } /* Stats page specific - reduced from 80px */
.page-user main { 
  flex: none; /* Prevent flexbox from dynamically adjusting height */
  min-height: calc(100vh - 120px); /* Fixed minimum height minus estimated header+footer height */
  padding: 60px 20px; 
  width: 100% !important; 
} /* User page specific override */

/* CSS Version: 2025-01-10-001 - Force button styles with highest priority */

/* ---- Terms (rendered) ---- */
.page-terms .terms-render h1 { font-size:28px; font-weight:800; text-align:center; margin:0 0 8px; color:#0f172a; }
.page-terms .terms-render .updated { text-align:center; color:#64748b; margin-bottom:24px; font-size:13px; }
.page-terms .terms-render h2 { font-size:18px; font-weight:800; margin:22px 0 8px; color:#0f172a; }
.page-terms .terms-render h3 { font-size:15px; font-weight:700; margin:14px 0 6px; color:#111827; }
.page-terms .terms-render p { margin:8px 0; color:#334155; line-height:1.7; }
.page-terms .terms-render ul { margin:6px 0 12px 18px; padding:0; }
.page-terms .terms-render li { list-style:disc; color:#334155; line-height:1.7; }
.terms-highlight { background:linear-gradient(180deg,#f1f5ff,#eef2ff); border:1px solid #e5e7eb; border-radius:10px; padding:14px 16px; margin-top:18px; color:#111827; }
.page-terms pre#terms-raw { display:none; }

/* Responsive video styles */
@media (max-width: 768px) {
  .details-container { gap:24px; }
  .detail-row { grid-template-columns:1fr !important; gap:24px; padding:24px 0; }
  .detail-row:nth-child(even) .detail-text { order:1; }
  .detail-row:nth-child(even) .detail-media { order:2; }
  .detail-media { width:100%; height:200px; }
  .detail-text h3 { font-size:20px; }
  .feature-video { 
    object-fit: contain; /* Use contain on mobile to avoid content cropping */
  }
}

@media (max-width: 480px) {
  .detail-media { height:180px; }
  .fullscreen-btn {
    bottom: 8px;
    right: 8px;
    padding: 6px;
  }
  .fullscreen-btn svg {
    width: 16px;
    height: 16px;
  }
}


