/* ========================================
   AISubHub - Main Stylesheet
   ======================================== */

:root {
  --bg-primary: #0a0a12;
  --bg-secondary: #12121e;
  --bg-card: #1a1a2e;
  --bg-card-hover: #22223a;
  --bg-elevated: #24243d;
  --text-primary: #f1f1f6;
  --text-secondary: #a0a0b8;
  --text-tertiary: #6b6b85;
  --accent: #7c3aed;
  --accent-light: #a855f7;
  --accent-dark: #5b21b6;
  --accent-glow: rgba(124, 58, 237, 0.3);
  --accent-gradient: linear-gradient(135deg, #7c3aed, #a855f7);
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.3);
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.5);
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s var(--transition);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: white;
}

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

.header-nav a,
.header-nav button {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.header-nav a:hover,
.header-nav button:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn .flag { font-size: 1.1rem; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* ========================================
   Main Content
   ======================================== */
main {
  padding-top: 64px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 20px 60px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  position: relative;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #f1f1f6 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  position: relative;
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* Stats */
.hero-stats {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

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

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ========================================
   Product Section
   ======================================== */
.products-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* Product Tabs */
.product-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.product-tab {
  flex: 1;
  min-width: 120px;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.25s var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

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

.product-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.product-tab .tab-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
}

.product-tab .tab-badge.hot {
  background: var(--accent);
  color: white;
}

.product-tab .tab-badge.new {
  background: var(--success);
  color: white;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  animation: fadeIn 0.4s var(--transition);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  transition: all 0.3s var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.product-card.featured {
  border-color: rgba(124, 58, 237, 0.3);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.06) 0%, var(--bg-card) 100%);
}

.product-card.featured::before {
  content: 'Best Value';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 16px;
  border-radius: 0 0 12px 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.product-card .badge-save {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

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

.product-card .price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

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

.product-card .price-original {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  text-decoration: line-through;
  margin-bottom: 16px;
}

.product-card .features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
}

.product-card .features li {
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.product-card .features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.product-card .buy-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--transition);
  font-family: inherit;
  background: var(--accent-gradient);
  color: white;
  position: relative;
  overflow: hidden;
}

.product-card .buy-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card .buy-btn:hover::before {
  opacity: 1;
}

.product-card .buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.product-card.featured .buy-btn {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
}

/* ========================================
   Trust Section
   ======================================== */
.trust-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.trust-section h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all 0.3s var(--transition);
}

.trust-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.trust-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.trust-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}

.faq-section h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: var(--border-light);
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-family: inherit;
  line-height: 1.5;
}

.faq-question .faq-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s var(--transition);
  color: var(--text-tertiary);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--transition), padding 0.35s var(--transition);
}

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

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

/* ========================================
   Modal (Buy flow)
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s var(--transition);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 0;
}

.modal-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s;
  font-family: inherit;
}

.modal-close:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: 20px 24px 24px;
}

/* Order Summary */
.order-summary {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
}

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

.order-summary-row .label {
  color: var(--text-secondary);
}

.order-summary-row .value {
  color: var(--text-primary);
  font-weight: 600;
}

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

.order-summary-row.total .value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-light);
}

.service-fee-info {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

/* Form */
.form-group {
  margin-bottom: 16px;
}

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

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder {
  color: var(--text-tertiary);
}

.captcha-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.captcha-row input {
  flex: 1;
  font-family: 'Courier New', monospace;
  letter-spacing: 4px;
}

.captcha-img {
  width: 100px;
  height: 42px;
  background: var(--bg-elevated);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--text-tertiary);
  font-family: 'Courier New', monospace;
  border: 1px solid var(--border);
  user-select: none;
}

.captcha-hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* Payment Methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.payment-method.selected {
  border-color: var(--accent);
  background: rgba(124, 58, 237, 0.06);
}

.payment-method .pm-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.payment-method .pm-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
}

.payment-method .pm-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.payment-method.selected .pm-check {
  border-color: var(--accent);
  background: var(--accent);
}

.payment-method.selected .pm-check::after {
  content: '✓';
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--transition);
  font-family: inherit;
  background: var(--accent-gradient);
  color: white;
}

.submit-btn:hover {
  box-shadow: 0 8px 24px var(--accent-glow);
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Payment Step */
.payment-step {
  display: none;
}

.payment-step.active {
  display: block;
  animation: fadeIn 0.3s var(--transition);
}

.payment-info {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.payment-info .pi-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.85rem;
}

.payment-info .pi-row .pi-label {
  color: var(--text-tertiary);
}

.payment-info .pi-row .pi-value {
  font-weight: 600;
}

.payment-address {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.payment-address input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  outline: none;
}

.copy-btn {
  padding: 6px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  font-weight: 500;
}

.copy-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.timer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin: 16px 0;
}

.timer strong {
  color: var(--warning);
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
}

/* Terms */
.terms-note {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 12px;
}

.terms-note a {
  color: var(--accent-light);
  text-decoration: none;
}

.terms-note a:hover {
  text-decoration: underline;
}

/* Success State */
.success-state {
  text-align: center;
  padding: 30px 0;
}

.success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.success-state h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.success-state p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 40px 20px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: 8px;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent-light);
}

.footer-lang {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-lang a {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ========================================
   Support Widget
   ======================================== */
.support-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
}

.support-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--accent-gradient);
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: all 0.3s var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.support-panel {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 40px);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  display: none;
}

.support-panel.open {
  display: block;
  animation: slideUp 0.3s var(--transition);
}

.support-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.support-panel-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.support-panel-close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px;
}

.support-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.support-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-family: inherit;
}

.support-tab.active {
  color: var(--accent-light);
  border-bottom-color: var(--accent);
}

.support-pane {
  display: none;
  padding: 16px 20px;
}

.support-pane.active {
  display: block;
}

.support-form input,
.support-form textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.85rem;
  margin-bottom: 8px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.support-form input:focus,
.support-form textarea:focus {
  border-color: var(--accent);
}

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

.support-send-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: var(--accent-gradient);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}

.support-send-btn:hover {
  opacity: 0.9;
}

.support-faq-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.support-faq-item:last-child {
  border-bottom: none;
}

.support-faq-q {
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.support-faq-a {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 8px;
  display: none;
  line-height: 1.6;
}

.support-faq-item.open .support-faq-a {
  display: block;
}

.support-faq-toggle {
  color: var(--text-tertiary);
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* ========================================
   Toast
   ======================================== */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--transition);
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Utility */
.hidden { display: none !important; }

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Tab content animation */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.35s var(--transition);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .header-nav .nav-link {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-nav.open .nav-link {
    display: block;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px;
    flex-direction: column;
  }

  .hero {
    padding: 60px 20px 40px;
  }

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

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

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

  .support-panel {
    width: calc(100vw - 40px);
    right: -10px;
  }

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

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .modal {
    border-radius: var(--radius-md);
  }

  .modal-body {
    padding: 16px 18px;
  }

  .payment-method {
    padding: 10px 12px;
  }
}
