/* ============ CSS Variables & Reset ============ */
:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #6366f1;
  --primary-bg: #eef2ff;
  --secondary: #0f172a;
  --secondary-dark: #020617;
  --secondary-light: #334155;
  --accent: #a78bfa;
  --accent-light: #c4b5fd;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --text: #1e293b;
  --text-light: #475569;
  --text-lighter: #94a3b8;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Header / Navbar ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
}

.navbar-brand .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1.1rem;
}

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

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 10px 24px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
}

/* ============ Hero Section ============ */
.hero {
  padding: 140px 0 80px;
  background: #f5f3ff;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139,92,246,0.12) 0%, transparent 100%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(99,102,241,0.08) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234f46e5' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero::after {
  display: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p, .hero-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
}

.hero-stat .label {
  font-size: 0.9rem;
  color: var(--text-lighter);
  margin-top: 4px;
}

/* Hero Product Layout */
.hero-product { padding: 120px 0 80px; text-align: left; }
.hero-product .hero-desc { margin: 0 0 32px; }

.hero-product-layout {
  display: flex;
  align-items: center;
  gap: 80px;
}

.hero-left { flex: 1; }
.hero-right { flex-shrink: 0; }

.hero-trust {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}

.trust-item { display: flex; flex-direction: column; }
.trust-num { font-size: 1.4rem; font-weight: 800; color: var(--dark); }
.trust-label { font-size: 0.8rem; color: var(--text-lighter); margin-top: 2px; }

/* Product Card */
.product-card {
  position: relative;
  width: 340px;
}

.product-card-glow {
  position: absolute;
  inset: -6px;
  background: linear-gradient(135deg, rgba(79,70,229,0.45), rgba(124,58,237,0.35), rgba(167,139,250,0.25));
  border-radius: 24px;
  filter: blur(28px);
  opacity: 1;
}

.product-card-inner {
  position: relative;
  background: white;
  border-radius: 18px;
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 20px 50px rgba(79,70,229,0.12);
  border: 1px solid rgba(79,70,229,0.08);
}

.product-badge-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(244,63,94,0.3);
}

.product-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.product-duration {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.product-price {
  margin-bottom: 28px;
}

.product-currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  vertical-align: top;
  position: relative;
  top: 8px;
  margin-right: 2px;
}

.product-amount {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.product-features {
  text-align: left;
  margin-bottom: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.product-features li {
  padding: 7px 0;
  font-size: 0.92rem;
  color: var(--text);
}

.product-buy-btn {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: 10px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.4);
  color: white;
}

.btn-outline {
  background: white;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
  box-shadow: 0 4px 14px rgba(13,148,136,0.3);
}

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

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

/* ============ Announcement Bar ============ */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  padding: 10px 0;
  text-align: center;
  font-size: 0.9rem;
  position: relative;
  top: 72px;
}

.announcement-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ============ Section Styles ============ */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--dark);
  color: white;
}

.section-alt {
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .tag {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-dark .section-header h2 {
  color: white;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.7);
}

/* ============ Features Grid ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-icon.purple { background: #eef2ff; color: var(--primary); }
.feature-icon.teal { background: #f0fdfa; color: var(--secondary); }
.feature-icon.amber { background: #fffbeb; color: var(--accent); }
.feature-icon.rose { background: #fff1f2; color: #f43f5e; }
.feature-icon.blue { background: #eff6ff; color: #3b82f6; }
.feature-icon.green { background: #f0fdf4; color: #22c55e; }

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============ Pricing Cards ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

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

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-4px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-card .plan-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.pricing-card .plan-duration {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.pricing-card .plan-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.pricing-card .plan-price .currency {
  font-size: 1.2rem;
  vertical-align: top;
  margin-right: 2px;
}

.pricing-card .plan-price .period {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 400;
}

.pricing-card .plan-features {
  text-align: left;
  margin: 24px 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-card .plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text);
}

.pricing-card .plan-features li .check {
  color: var(--secondary);
  font-weight: bold;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* ============ How It Works ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  text-align: center;
  padding: 24px;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ============ Testimonials ============ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.testimonial-card .stars {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.testimonial-card .text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-bg), #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
}

.testimonial-card .author-name {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
}

.testimonial-card .author-role {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .arrow {
  transition: transform 0.3s;
  font-size: 0.8rem;
  color: var(--text-light);
}

.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============ Contact Section ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.contact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

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

.contact-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-card .icon.wechat { background: #f0fdf4; color: #22c55e; }
.contact-card .icon.email { background: #eff6ff; color: #3b82f6; }
.contact-card .icon.telegram { background: #eff6ff; color: #0ea5e9; }

.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.contact-card .value {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 500;
}

.contact-card .qr-image {
  margin-top: 16px;
  max-width: 180px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* ============ Payment Section ============ */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.payment-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.payment-card .icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.payment-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.payment-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.payment-card .qr-image {
  max-width: 200px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* ============ CTA Section ============ */
.cta-section {
  padding: 80px 0;
  background: var(--dark);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ Footer ============ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer h4 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* ============ Page Header (Subpages) ============ */
.page-header {
  padding: 120px 0 60px;
  background: #f5f3ff;
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139,92,246,0.1) 0%, transparent 100%);
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* ============ Admin Panel ============ */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.login-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.login-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  text-align: center;
}

.login-card .subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-error {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 6px;
}

/* Admin Dashboard */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--dark);
  color: white;
  padding: 24px 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

.admin-sidebar .brand {
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
}

.admin-sidebar .brand h2 {
  font-size: 1.2rem;
  font-weight: 800;
}

.admin-sidebar .brand small {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(255,255,255,0.1);
  color: white;
}

.admin-nav a .nav-icon {
  width: 20px;
  text-align: center;
}

.admin-content {
  flex: 1;
  margin-left: 260px;
  padding: 32px;
  background: var(--bg);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.admin-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
}

.admin-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.admin-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.admin-table th {
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table td {
  color: var(--text);
}

.admin-table .actions {
  display: flex;
  gap: 8px;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success { background: #f0fdf4; color: #22c55e; }
.badge-warning { background: #fffbeb; color: #f59e0b; }
.badge-danger { background: #fef2f2; color: #ef4444; }
.badge-info { background: #eff6ff; color: #3b82f6; }

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.3s ease;
  min-width: 280px;
}

.toast.success { border-left: 4px solid #22c55e; }
.toast.error { border-left: 4px solid #ef4444; }
.toast.info { border-left: 4px solid #3b82f6; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============ Floating Contact Button ============ */
.fab-contact {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 14px 22px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(79,70,229,0.4);
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.95rem;
}

.fab-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(79,70,229,0.5);
  background: var(--primary-dark);
}

.fab-icon { font-size: 1.2rem; }

/* Contact Popup */
.cs-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cs-popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cs-popup {
  background: white;
  border-radius: 16px;
  padding: 36px 32px;
  width: 90%;
  max-width: 380px;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s;
}

.cs-popup-overlay.active .cs-popup {
  transform: translateY(0) scale(1);
}

.cs-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-lighter);
  cursor: pointer;
  line-height: 1;
}

.cs-popup-close:hover { color: var(--text); }

.cs-popup h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.cs-popup-qr {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.cs-wechat-ids {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-wechat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
}

.cs-wechat-label {
  color: var(--text-light);
}

.cs-wechat-id {
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  border: 1px solid var(--border);
}

.cs-copy-btn {
  padding: 4px 14px;
  border: 1.5px solid var(--primary);
  border-radius: 6px;
  background: white;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cs-copy-btn:hover {
  background: var(--primary);
  color: white;
}

@media (max-width: 768px) {
  .fab-contact {
    bottom: 20px;
    right: 20px;
    padding: 12px 18px;
    font-size: 0.9rem;
  }
  .fab-text { display: none; }
  .fab-contact { border-radius: 50%; padding: 16px; }
  .fab-icon { font-size: 1.4rem; }
}

/* ============ Payment QR Card (colored) ============ */
.pay-qr-card {
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 20px;
}

.pay-qr-card.wechat {
  background: #2dc100;
}

.pay-qr-card.alipay {
  background: #1677ff;
}

.pay-qr-card .pay-qr-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.pay-qr-card .pay-qr-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 10px;
  background: white;
  padding: 6px;
}

.pay-qr-card .pay-qr-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 0 4px;
}

.pay-qr-card .pay-qr-plan {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

.pay-qr-card .pay-qr-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
}

@media (max-width: 768px) {
  .pay-qr-card { padding: 20px 16px; }
  .pay-qr-card .pay-qr-img { width: 180px; height: 180px; }
  .order-detail-mobile-hide { display: none; }
  .page-header-mobile-hide { display: none; }
  .order-section-mobile { padding-top: 80px !important; }
}

/* ============ QR Code Placeholder ============ */
.qr-placeholder {
  width: 180px;
  height: 180px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-lighter);
  font-size: 0.85rem;
  margin: 16px auto 0;
  background: var(--bg);
}

/* ============ Order Flow ============ */
/* Order Compact Summary */
.order-compact-summary {
  background: var(--primary-bg);
  border: 1px solid rgba(79,70,229,0.1);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 24px;
  text-align: center;
}

.ocs-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.ocs-detail {
  font-size: 0.85rem;
  color: var(--text-light);
}

.ocs-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.order-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.order-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-lighter);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}

.order-step.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.order-step.done {
  color: var(--secondary);
  background: #f0fdfa;
}

.order-step .step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.order-step.active .step-num {
  background: var(--primary);
  color: white;
}

.order-step.done .step-num {
  background: var(--secondary);
  color: white;
}

.order-step-line {
  width: 40px;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
}

.order-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.order-plan-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  text-align: center;
}

.order-plan-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.order-plan-card.selected {
  border-color: var(--primary);
  background: var(--primary-bg);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.order-plan-card.popular {
  border-color: var(--primary-light);
}

.order-plan-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--primary);
  color: white;
  padding: 2px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.order-plan-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.order-plan-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.order-plan-price span {
  font-size: 1rem;
  vertical-align: top;
}

.order-plan-duration {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.order-plan-features {
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-light);
}

.order-plan-features li {
  padding: 3px 0;
}

.order-summary {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.95rem;
}

.order-summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
}

.order-total {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.payment-select {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  flex: 1;
  min-width: 160px;
}

.payment-option:hover {
  border-color: var(--primary-light);
}

.payment-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.payment-option input {
  accent-color: var(--primary);
}

.payment-option-icon {
  font-size: 1.5rem;
}

.pay-svg-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: contain;
}

.payment-option-name {
  font-weight: 600;
  color: var(--dark);
}

.order-success-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}

.payment-display {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

.payment-display h4 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 16px;
}

.payment-qr-large {
  max-width: 220px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.order-result-info {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.order-result-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

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

.order-result-row span:first-child {
  color: var(--text-light);
}

.order-no-value {
  font-family: monospace;
  font-weight: 700;
  color: var(--dark);
  font-size: 1rem;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .features-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.popular {
    transform: none;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-product-layout {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .hero-product { padding: 100px 0 40px; }
  .hero-product .hero-desc { margin: 0 auto 24px; font-size: 1rem; }
  .hero-trust { justify-content: center; gap: 24px; margin-top: 20px; }
  .trust-num { font-size: 1.1rem; }

  /* Mobile: wide horizontal card */
  .product-card { width: 100%; max-width: 100%; margin: 0 auto; }
  .product-card-inner {
    padding: 20px 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 0 20px;
    text-align: left;
  }
  .product-card-inner .product-name {
    grid-column: 1 / -1;
    font-size: 1.1rem;
    margin-bottom: 2px;
    text-align: center;
  }
  .product-card-inner .product-duration {
    grid-column: 1 / -1;
    margin-bottom: 12px;
    text-align: center;
    font-size: 0.85rem;
  }
  .product-card-inner .product-price {
    grid-column: 1;
    grid-row: 3;
    margin-bottom: 0;
    display: flex;
    align-items: center;
  }
  .product-amount { font-size: 2.2rem; }
  .product-currency { top: 3px; font-size: 0.9rem; }
  .product-card-inner .product-features {
    grid-column: 2;
    grid-row: 3;
    padding-top: 0;
    margin-bottom: 0;
    border-top: none;
    border-left: 1px solid var(--border);
    padding-left: 20px;
  }
  .product-features li { padding: 2px 0; font-size: 0.82rem; }
  .product-card-inner .product-buy-btn {
    grid-column: 1 / -1;
    margin-top: 16px;
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .hero-stats {
    gap: 30px;
    flex-wrap: wrap;
  }

  .features-grid,
  .pricing-grid,
  .testimonials-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

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

  .admin-sidebar {
    display: none;
  }

  .admin-content {
    margin-left: 0;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }
}
