:root {
  --bg-primary: #09090b;
  --bg-secondary: #18181b;
  --bg-card: #27272a;
  --bg-elevated: #3f3f46;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.15);
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-bg: rgba(99,102,241,0.1);
  --success: #22c55e;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

body {
  font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Background */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.discord-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.discord-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.discord-btn svg {
  width: 18px;
  height: 18px;
}

/* Main */
.main-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Hero New */
.hero-new {
  text-align: center;
  padding: 60px 0 40px;
}

.hero-new .hero-title {
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.hero-new .hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Install Section */
.install-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tab:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tab svg {
  width: 20px;
  height: 20px;
}

/* Panel */
.panel {
  display: none;
}

.panel.active {
  display: block;
}

.panel-header {
  margin-bottom: 20px;
}

.panel-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.panel-header p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Pricing Section */
.pricing-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pricing-card {
  position: relative;
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.2s;
}

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

.pricing-card.popular {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(99,102,241,0.1) 0%, var(--bg-card) 100%);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 100px;
}

.pricing-days {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pricing-price {
  margin-bottom: 16px;
}

.pricing-price .currency {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.pricing-price .amount {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.pricing-feature svg {
  width: 14px;
  height: 14px;
  color: var(--success);
  flex-shrink: 0;
}

.pricing-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.pricing-buy-btn:hover {
  background: #5865F2;
  border-color: #5865F2;
  color: #fff;
}

.pricing-buy-btn svg {
  width: 16px;
  height: 16px;
}

/* Video Section */
.video-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-wrap {
  position: relative;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.video-placeholder:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

.video-placeholder svg {
  width: 56px;
  height: 56px;
  opacity: 0.9;
}

.video-placeholder span {
  font-size: 13px;
  font-weight: 500;
}

.video-label {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

/* Download Zone */
.download-zone {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.download-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.download-zone-content svg {
  width: 40px;
  height: 40px;
  color: var(--text-muted);
}

.download-zone-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.download-zone-sub {
  font-size: 12px;
  color: var(--text-muted);
  padding: 2px 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s;
}

.download-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.download-btn svg {
  width: 18px;
  height: 18px;
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.step-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-icon svg {
  width: 22px;
  height: 22px;
  color: var(--text-secondary);
}

.step-icon.drag {
  background: var(--accent-bg);
}

.step-icon.drag svg {
  color: var(--accent);
}

.step-icon.pin {
  background: rgba(34,197,94,0.1);
}

.step-icon.pin svg {
  color: var(--success);
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.step-hint {
  font-size: 12px !important;
  color: var(--text-muted) !important;
}

.step-arrow {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.step-arrow svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

/* Code Box */
.code-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 8px 0;
}

.code-box code {
  flex: 1;
  font-family: "SF Mono", "Monaco", monospace;
  font-size: 13px;
  color: var(--accent-hover);
}

.copy-btn {
  padding: 6px;
  border-radius: 4px;
  color: var(--text-muted);
  transition: all 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}

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

.copy-btn svg {
  width: 16px;
  height: 16px;
}

.copy-btn.copied {
  color: var(--success);
}

/* Drop Hint */
.drop-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
}

.drop-hint svg {
  width: 18px;
  height: 18px;
  opacity: 0.5;
}

/* Orion Badge */
.orion-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.orion-badge svg {
  width: 20px;
  height: 20px;
}

/* External Link */
.external-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s;
}

.external-link:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.external-link svg {
  width: 16px;
  height: 16px;
}

/* Settings List */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.setting-item {
  padding: 8px 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
}

/* Apps Section */
.apps-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

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

.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
}

.app-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.app-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
}

.apps-more {
  text-align: center;
  margin-top: 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}

/* Features Section */
.features-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

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

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.feature-icon.streaming svg { color: #ef4444; }
.feature-icon.ai svg { color: #a855f7; }
.feature-icon.creative svg { color: #f97316; }
.feature-icon.music svg { color: #22c55e; }

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.footer-logo {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
}

.footer-logo svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* Toast */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 100;
}

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

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

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .hero-new {
    padding: 40px 0 32px;
  }
  
  .hero-new .hero-title {
    font-size: 28px;
  }
  
  .hero-new .hero-desc {
    font-size: 14px;
  }
  
  .tabs {
    flex-direction: column;
  }
  
  .install-section,
  .apps-section,
  .features-section,
  .pricing-section,
  .video-section {
    padding: 20px;
  }
  
  .apps-grid {
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 8px;
  }
  
  .app-card {
    padding: 12px 4px;
  }
  
  .app-icon {
    width: 40px;
    height: 40px;
  }
  
  .app-icon img {
    width: 26px;
    height: 26px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
