:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-accent: #94a3b8;
  --card-bg: rgba(15, 23, 42, 0.8);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --backdrop-blur: blur(12px);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0a0e1a;
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Abstract Gradient Background */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.2) 0%, transparent 40%);
  animation: gradientMove 20s ease-in-out infinite;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(100px);
  -webkit-backdrop-filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

@keyframes gradientMove {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(5%, -5%) rotate(120deg);
  }

  66% {
    transform: translate(-5%, 5%) rotate(240deg);
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 5px;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: 1rem 0;
}

nav .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-direction: row !important;
  flex-wrap: nowrap;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

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

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 0 4rem;
  position: relative;
}

.hero-content {
  max-width: 900px;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 4rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-decoration: none;
  border-radius: 60px;
  font-size: 1.3rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.7s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 30px 60px rgba(99, 102, 241, 0.4);
}

/* Section */
section {
  padding: 6rem 0;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Download Section */
.download-section {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 4rem;
  margin: 4rem 0;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.download-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.terms-toggle {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 1.2rem;
  padding: 1.5rem;
  border-radius: 16px;
  transition: all 0.3s ease;
  width: 100%;
  margin-bottom: 2rem;
}

.terms-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.terms-content {
  display: none;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  max-height: 400px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
}

.terms-content h4 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.terms-content h5 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin: 2rem 0 1rem 0;
}

.terms-agreement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
}

.agreement-checkbox {
  width: 24px;
  height: 24px;
  cursor: pointer;
  accent-color: var(--primary);
}

.agreement-label {
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  font-size: 1.1rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.download-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.download-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.download-item.beta {
  border-color: rgba(245, 158, 11, 0.3);
  position: relative;
  overflow: hidden;
}

.download-item.beta::after {
  content: 'TESTING';
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--warning);
  color: #000;
  padding: 5px 40px;
  font-size: 0.7rem;
  font-weight: 900;
  transform: rotate(45deg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.beta-badge {
  background: var(--warning);
  color: #000;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
}

.warning-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 1rem;
  margin: 1rem 0 2rem 0;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.6;
}

.warning-box strong {
  color: var(--warning);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.download-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.download-item p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.download-button.disabled {
  background: linear-gradient(135deg, #64748b, #475569);
  cursor: not-allowed;
  opacity: 0.6;
}

.download-button.disabled:hover {
  transform: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Screenshots Section */
.screenshot-grid {
  display: grid;
  gap: 6rem;
  margin-top: 4rem;
}

.screenshot-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.screenshot-item.reverse {
  direction: rtl;
}

.screenshot-item.reverse>* {
  direction: ltr;
}

.screenshot-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.screenshot-image:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.screenshot-image img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.screenshot-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Specs Section */
.spec-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-top: 3rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-table th {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-table td {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.spec-item {
  font-weight: 600;
  color: var(--text-primary) !important;
}

/* Installation Steps */
.steps-container {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--success), #059669);
}

.step-card h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--success), #059669);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card ol {
  margin-left: 1.5rem;
  color: var(--text-secondary);
}

.step-card li {
  margin: 1rem 0;
  line-height: 1.7;
}

.note {
  background: rgba(245, 158, 11, 0.1);
  border-left: 4px solid var(--warning);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  color: var(--text-secondary);
}

.note strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-accent);
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 6rem;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
  .screenshot-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .screenshot-item.reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }

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

  .hero p {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }

  .spec-card {
    padding: 1.5rem;
  }

  .spec-table th,
  .spec-table td {
    padding: 1rem;
    font-size: 0.85rem;
  }

  .screenshot-grid {
    gap: 3rem;
  }
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.pricing-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pricing-card.popular {
  border-color: var(--primary);
  transform: scale(1.05);
  z-index: 10;
}

.pricing-card.popular::after {
  content: 'Recommended';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.price {
  font-size: 3rem;
  font-weight: 800;
  margin: 1.5rem 0;
  color: var(--text-primary);
}

.price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  text-align: left;
  flex-grow: 1;
}

.pricing-features li {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-features li svg {
  color: var(--success);
  flex-shrink: 0;
}

.monetization-notice-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--warning);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .pricing-card.popular {
    transform: scale(1);
  }
}

/* Manual Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  width: 95%;
  max-width: 1400px;
  height: 90vh;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-header {
  padding: 1.25rem 2rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-title svg {
  color: var(--primary);
}

.close-modal {
  background: #f1f5f9;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

.modal-iframe-container {
  flex-grow: 1;
  position: relative;
  background: #fff;
}

.modal-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.iframe-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: #64748b;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f1f5f9;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* News Styles */
.latest-news-strip {
  background: rgba(99, 102, 241, 0.1);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  padding: 0.75rem 0;
  margin-top: 5rem;
  /* Space for fixed nav */
  position: relative;
  z-index: 900;
}

.news-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.news-badge {
  background: var(--primary);
  color: white;
  padding: 0.2rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.news-content-scroll {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.news-content-scroll a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.5rem;
}

.news-content-scroll a:hover {
  text-decoration: underline;
  color: var(--primary);
}

.all-news-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.news-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.news-item {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.news-item:hover {
  border-color: var(--primary);
  transform: translateX(5px);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.news-date {
  color: var(--text-accent);
  font-size: 0.9rem;
  font-family: monospace;
}

.news-cat {
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
}

.cat-release {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.cat-important {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.cat-other {
  background: rgba(99, 102, 241, 0.2);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.news-item h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.cat-update {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.news-item p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.news-md-content {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.news-md-content h1,
.news-md-content h2,
.news-md-content h3 {
  color: var(--text-primary);
  margin: 1.5rem 0 1rem;
}

.news-md-content ul,
.news-md-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.news-md-content li {
  margin-bottom: 0.5rem;
}

.news-md-content strong {
  color: var(--primary);
}

.news-md-content code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

.news-md-content blockquote {
  background: rgba(99, 102, 241, 0.1);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  color: var(--text-primary);
}

.news-md-content blockquote strong {
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Debug / Error Display */
.debug-error-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  text-align: left;
  display: inline-block;
  max-width: 100%;
}

.debug-error-box p {
  color: #f87171 !important;
  font-size: 0.9rem !important;
  margin-bottom: 0.5rem;
}

.debug-error-box ul {
  list-style: disc;
  margin-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* =====================
   FAQ Section
   ===================== */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.faq-item.open {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  cursor: pointer;
  text-align: left;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-question span {
  flex: 1;
  line-height: 1.5;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.faq-answer p {
  padding: 1.25rem 2rem 1.75rem 2rem;
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.85;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-answer p + p {
  border-top: none;
  padding-top: 0;
}

.faq-answer strong {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.15);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}