/* ========================================================
   MYVIPAPP Ultra-Modern Dark Theme & Design Architecture
   Designed with Luxury Glassmorphism, Micro-interactions, & Multi-lang RTL/LTR
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Tajawal:wght@400;500;700;800&family=Noto+Sans+TC:wght@400;500;700&display=swap');

:root {
  --bg-primary: #06080d;
  --bg-surface: rgba(15, 20, 31, 0.75);
  --bg-surface-elevated: rgba(22, 29, 46, 0.85);
  --bg-glow: rgba(99, 102, 241, 0.15);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: rgba(99, 102, 241, 0.45);
  --border-cyan: rgba(6, 182, 212, 0.4);

  --accent-primary: #6366f1;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --telegram-blue: #229ed9;

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --shadow-lg: 0 20px 45px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px -5px rgba(99, 102, 241, 0.25);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;

  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Specific fonts based on language directions */
html[dir="rtl"] body {
  font-family: 'Tajawal', system-ui, sans-serif;
}

html[lang="zh"] body {
  font-family: 'Noto Sans TC', system-ui, sans-serif;
}

/* Ambient Background Lights */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 15%;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -15%;
  right: 10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Header & Navbar */
header.header-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(6, 8, 13, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Custom Language Switcher */
.lang-switch-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-icon {
  position: absolute;
  left: 0.85rem;
  font-size: 0.9rem;
  pointer-events: none;
  color: var(--accent-primary);
}

html[dir="rtl"] .lang-icon {
  left: auto;
  right: 0.85rem;
}

.lang-select-custom {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: #fff;
  padding: 0.5rem 1.8rem 0.5rem 2.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
  font-family: inherit;
}

html[dir="rtl"] .lang-select-custom {
  padding: 0.5rem 2.2rem 0.5rem 1.8rem;
}

.lang-select-custom:hover, .lang-select-custom:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--accent-primary);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.25);
}

.lang-select-custom option {
  background: #0f141f;
  color: #ffffff;
}

/* Hero Section */
.hero-section {
  padding: 6.5rem 0 4.5rem;
  text-align: center;
}

.pill-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.25rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 999px;
  color: #a5b4fc;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.hero-title {
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 1.4rem;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  max-width: 780px;
  margin: 0 auto 2.8rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* Buttons */
.btn-core {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  font-family: inherit;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(99, 102, 241, 0.65);
}

.btn-telegram {
  background: linear-gradient(135deg, #0088cc 0%, #0099e6 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px -4px rgba(0, 136, 204, 0.4);
}

.btn-telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(0, 136, 204, 0.6);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-light);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Stats Ribbon */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 1.8rem 2.2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  margin-top: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
}

.stat-check {
  color: var(--accent-emerald);
  font-size: 1.2rem;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
  margin-bottom: 6rem;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-6px);
  background: var(--bg-surface-elevated);
  border-color: var(--border-active);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.card-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.product-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}

.product-index {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.product-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.product-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.8rem;
}

.card-bullet-list {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.card-bullet-list li {
  font-size: 0.88rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-bullet-list li::before {
  content: '▸';
  color: var(--accent-cyan);
  font-weight: bold;
}

.card-action-bar {
  border-top: 1px solid var(--border-light);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.action-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-smooth);
}

.action-link:hover {
  color: var(--accent-primary);
  transform: translateX(4px);
}

html[dir="rtl"] .action-link:hover {
  transform: translateX(-4px);
}

/* Telegram Direct Contact Section */
.telegram-license-box {
  background: linear-gradient(135deg, rgba(15, 20, 31, 0.9) 0%, rgba(20, 30, 48, 0.9) 100%);
  border: 1px solid rgba(0, 136, 204, 0.35);
  border-radius: 28px;
  padding: 4rem 3rem;
  margin-bottom: 6rem;
  box-shadow: 0 25px 60px -15px rgba(0, 136, 204, 0.15);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.telegram-license-box::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 136, 204, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.tg-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.tg-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.tg-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.tg-handle-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.4rem;
  background: rgba(0, 136, 204, 0.12);
  border: 1px solid rgba(0, 136, 204, 0.3);
  border-radius: var(--radius-md);
  color: #38bdf8;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.tg-qr-card {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  max-width: 310px;
  margin: 0 auto;
}

.tg-qr-card img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 12px;
  display: block;
}

.tg-qr-caption {
  margin-top: 1rem;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}

/* Detail Page Hero & Requirements */
.detail-hero {
  padding: 5rem 0 3rem;
}

.back-to-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.back-to-nav:hover {
  color: #ffffff;
  transform: translateX(-4px);
}

html[dir="rtl"] .back-to-nav:hover {
  transform: translateX(4px);
}

.specs-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  margin: 3rem 0;
}

.specs-card-main {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: blur(16px);
}

.specs-features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.8rem;
}

.spec-feature-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.spec-feature-box h4 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.spec-feature-box p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.requirements-sidebar {
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  height: fit-content;
}

.requirements-sidebar h3 {
  font-size: 1.25rem;
  margin-bottom: 1.4rem;
  color: #ffffff;
}

.requirements-sidebar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.requirements-sidebar li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.requirements-sidebar li::before {
  content: '✓';
  color: var(--accent-emerald);
  font-weight: 800;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 3.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  background: rgba(6, 8, 13, 0.95);
}

.footer-copy {
  margin-top: 0.6rem;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
  .tg-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .tg-handle-badge {
    margin: 0 auto 2rem;
  }
  .specs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .telegram-license-box { padding: 2.5rem 1.5rem; }
  .hero-section { padding: 4.5rem 0 3rem; }
}
