/* ==========================================================================
   VITRINO THEME DESIGN SYSTEM (Persian RTL - Deep Emerald Tech & Light Mode)
   ========================================================================== */

/* 1. Global Box-Sizing & CSS Variables */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-fa: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bg-dark: #03140e;
  --bg-dark-card: rgba(6, 30, 22, 0.75);
  --bg-dark-elevated: #092a1e;
  --emerald-primary: #10b981;
  --emerald-hover: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --emerald-deep: #022c22;
  --mint-accent: #34d399;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-glass: rgba(16, 185, 129, 0.15);
  --border-hover: rgba(52, 211, 153, 0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bg-section-alt: rgba(2, 20, 14, 0.5);
}

/* ==========================================================================
   2. Light Theme Comprehensive & Explicit Overrides
   ========================================================================== */
[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-dark-card: #ffffff;
  --bg-dark-elevated: #ffffff;
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #475569;
  --border-glass: rgba(16, 185, 129, 0.3);
  --border-hover: rgba(16, 185, 129, 0.7);
  --shadow-glow: 0 10px 30px rgba(16, 185, 129, 0.15);
  --mint-accent: #047857;
  --bg-section-alt: #f0fdf4;
}

[data-theme="light"] body {
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 60%),
              #f8fafc !important;
  color: #0f172a !important;
}

/* Header Light Mode */
[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom-color: rgba(16, 185, 129, 0.25) !important;
  box-shadow: 0 4px 20px rgba(2, 44, 34, 0.05) !important;
}

[data-theme="light"] .brand-text {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] .main-nav a {
  color: #334155 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .main-nav a:hover,
[data-theme="light"] .main-nav .current-menu-item > a {
  color: #047857 !important;
}

/* Hero Light Mode */
[data-theme="light"] .hero-title {
  color: #064e3b !important;
}

[data-theme="light"] .hero-title span {
  background: linear-gradient(135deg, #064e3b 20%, #047857 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] .hero-description {
  color: #334155 !important;
  font-weight: 500 !important;
}

[data-theme="light"] .badge-glow {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border-color: #a7f3d0 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15) !important;
}

/* Sections & Typography Light Mode */
[data-theme="light"] .section-tag {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border-color: #a7f3d0 !important;
}

[data-theme="light"] .section-title {
  color: #064e3b !important;
}

[data-theme="light"] .section-subtitle {
  color: #334155 !important;
  font-weight: 500 !important;
}

/* Cards & Glass Containers Light Mode */
[data-theme="light"] .card-glass,
[data-theme="light"] .post-card,
[data-theme="light"] .feature-card-large,
[data-theme="light"] .step-card {
  background: #ffffff !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 10px 30px rgba(2, 44, 34, 0.06) !important;
}

[data-theme="light"] .card-glass:hover,
[data-theme="light"] .post-card:hover,
[data-theme="light"] .feature-card-large:hover {
  border-color: #10b981 !important;
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.2) !important;
}

[data-theme="light"] .product-title,
[data-theme="light"] .post-title,
[data-theme="light"] .post-title a,
[data-theme="light"] .single-post-title,
[data-theme="light"] .feature-card-large h3,
[data-theme="light"] .step-card h4 {
  color: #0f172a !important;
}

[data-theme="light"] .product-desc,
[data-theme="light"] .post-excerpt,
[data-theme="light"] .single-post-content,
[data-theme="light"] .feature-card-large p,
[data-theme="light"] .step-card p {
  color: #334155 !important;
}

[data-theme="light"] .product-tag {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
}

[data-theme="light"] .product-icon-wrap {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #047857 !important;
}

[data-theme="light"] .product-version,
[data-theme="light"] .link-arrow {
  color: #047857 !important;
}

/* FAQ Accordion Light Mode Explicit Fixes */
[data-theme="light"] .faq-item {
  background: #ffffff !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 8px 24px rgba(2, 44, 34, 0.05) !important;
}

[data-theme="light"] .faq-item:hover {
  border-color: #10b981 !important;
}

[data-theme="light"] .faq-question {
  color: #0f172a !important;
}

[data-theme="light"] .faq-question svg {
  color: #047857 !important;
}

[data-theme="light"] .faq-answer {
  color: #334155 !important;
}

/* Buttons Light Mode */
[data-theme="light"] .btn-outline {
  background: #ffffff !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #064e3b !important;
  font-weight: 700 !important;
}

[data-theme="light"] .btn-outline:hover {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #047857 !important;
}

[data-theme="light"] .btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.35) !important;
}

/* Custom Inquiry Box Light Mode */
[data-theme="light"] .inquiry-box {
  background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 15px 40px rgba(2, 44, 34, 0.08) !important;
}

[data-theme="light"] .inquiry-info h3 {
  color: #064e3b !important;
}

[data-theme="light"] .inquiry-info p {
  color: #334155 !important;
}

[data-theme="light"] .features-list li {
  color: #0f172a !important;
}

[data-theme="light"] .features-list svg {
  color: #047857 !important;
}

[data-theme="light"] .inquiry-form {
  background: #ffffff !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 8px 24px rgba(2, 44, 34, 0.05) !important;
}

[data-theme="light"] .form-group label {
  color: #334155 !important;
}

[data-theme="light"] .form-control {
  background: #f8fafc !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: #0f172a !important;
}

[data-theme="light"] .form-control:focus {
  background: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25) !important;
}

/* Custom Select Box Light Mode */
[data-theme="light"] .custom-select-trigger {
  background: #ffffff !important;
  color: #022c22 !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

[data-theme="light"] .custom-options {
  background: #ffffff !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 12px 30px rgba(2, 44, 34, 0.12) !important;
}

[data-theme="light"] .custom-option {
  color: #334155 !important;
}

[data-theme="light"] .custom-option:hover,
[data-theme="light"] .custom-option.selected {
  background: #d1fae5 !important;
  color: #046c4e !important;
}

/* Mobile Drawer Light Mode */
[data-theme="light"] .mobile-drawer-content {
  background: #ffffff !important;
  border-left-color: rgba(16, 185, 129, 0.2) !important;
}

[data-theme="light"] .mobile-nav-menu a {
  color: #334155 !important;
}

[data-theme="light"] .mobile-nav-menu a:hover,
[data-theme="light"] .mobile-nav-menu .current-menu-item > a {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #059669 !important;
}

/* Audio Preview Badge Light Mode */
[data-theme="light"] .audio-preview-badge {
  background: #d1fae5 !important;
  border-color: #10b981 !important;
  color: #022c22 !important;
}

[data-theme="light"] .audio-status {
  color: #022c22 !important;
}

/* Comments Section Light Mode */
[data-theme="light"] .comments-title {
  color: #022c22 !important;
}

[data-theme="light"] .comments-area .card-glass {
  background: #ffffff !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
}

/* Footer Light Mode */
[data-theme="light"] .site-footer {
  background: #e6f4ed !important;
  border-top-color: rgba(16, 185, 129, 0.2) !important;
}

[data-theme="light"] .footer-brand p,
[data-theme="light"] .footer-col a {
  color: #334155 !important;
}

[data-theme="light"] .footer-col h4 {
  color: #022c22 !important;
}

[data-theme="light"] .footer-bottom {
  color: #64748b !important;
  border-top-color: rgba(16, 185, 129, 0.15) !important;
}

/* ==========================================================================
   3. Base Layout & Compact Form Styles
   ========================================================================== */
html {
  font-family: var(--font-fa);
  font-size: 16px;
  scroll-behavior: smooth;
  direction: rtl;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.7;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 65%),
              radial-gradient(circle at 100% 40%, rgba(2, 44, 34, 0.4) 0%, transparent 50%),
              var(--bg-dark);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container & Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

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

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-glass);
  color: var(--mint-accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero-features-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--mint-accent);
  font-weight: 600;
  margin-top: 20px;
}

.hero-features-list span {
  color: var(--mint-accent);
}

/* Header & Glassmorphic Navbar */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(3, 20, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.brand-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--mint-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
}

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

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

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--mint-accent);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--emerald-primary);
  transition: var(--transition);
  border-radius: var(--radius-full);
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle-btn {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--mint-accent);
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  transform: rotate(15deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  outline: none;
}

.btn-emerald {
  background: linear-gradient(135deg, var(--emerald-primary) 0%, var(--emerald-hover) 100%);
  color: #03140e;
  box-shadow: 0 4px 16px var(--emerald-glow);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

.btn-outline {
  background: rgba(16, 185, 129, 0.05);
  border-color: var(--border-glass);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--border-hover);
  color: var(--mint-accent);
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background: rgba(16, 185, 129, 0.2);
  color: var(--mint-accent);
}

/* Mobile Drawer Overlay & Menu (Top Aligned Fix) */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2000;
  background: rgba(2, 20, 14, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 340px;
  background: #041f17;
  border-left: 1px solid var(--border-hover);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
  overflow-y: auto;
}

.mobile-drawer-overlay.active .mobile-drawer-content {
  transform: translateX(0);
}

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

.drawer-close-btn {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.drawer-close-btn:hover {
  color: var(--mint-accent);
  border-color: var(--border-hover);
}

.mobile-nav-menu ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
}

.mobile-nav-menu a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.mobile-nav-menu a:hover,
.mobile-nav-menu .current-menu-item > a {
  background: rgba(16, 185, 129, 0.12);
  color: var(--mint-accent);
  border-right: 3px solid var(--emerald-primary);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
}

/* Custom Mobile & Desktop Select Box Component (Compact) */
.custom-select-wrapper {
  position: relative;
  user-select: none;
}

.custom-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px; /* Compact padding */
  font-size: 0.9rem;
  font-family: var(--font-fa);
  font-weight: 500;
  color: var(--text-main);
  background: #041f17;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.custom-select-trigger:hover,
.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--emerald-primary);
  box-shadow: 0 0 12px var(--emerald-glow);
}

.custom-select-arrow {
  transition: transform 0.3s ease;
  color: var(--mint-accent);
}

.custom-select-wrapper.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 100;
  background: #031811;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.custom-select-wrapper.open .custom-options {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.custom-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.custom-option:hover,
.custom-option.selected {
  color: var(--mint-accent);
  background: rgba(16, 185, 129, 0.12);
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  padding-top: 170px;
  padding-bottom: 110px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-glass);
  color: var(--mint-accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: var(--shadow-glow);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(135deg, #ffffff 30%, var(--mint-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
}

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

/* Landing Page Features Box & Grid */
.feature-card-large {
  background: var(--bg-dark-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: var(--transition);
}

.feature-card-large:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(2, 44, 34, 0.6);
}

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

.step-card {
  background: rgba(6, 30, 22, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 30px;
  position: relative;
  transition: var(--transition);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--emerald-primary);
  color: #03140e;
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
}

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.faq-answer {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 14px;
  line-height: 1.8;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Products Showcase */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.card-glass {
  background: var(--bg-dark-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-glass:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(2, 44, 34, 0.8), 0 0 30px rgba(16, 185, 129, 0.15);
}

.product-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint-accent);
  margin-bottom: 24px;
}

.product-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.product-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  margin-top: auto;
}

.product-version {
  font-size: 0.85rem;
  color: var(--emerald-primary);
  font-weight: 600;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mint-accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.card-glass:hover .link-arrow {
  gap: 10px;
}

/* Custom Dev Inquiry Banner (Sleek & Compact Form) */
.inquiry-box {
  background: linear-gradient(135deg, #042419 0%, #083c2c 100%);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
}

.inquiry-info h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.inquiry-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-size: 0.9rem;
}

.features-list svg {
  color: var(--mint-accent);
}

.inquiry-form {
  background: rgba(3, 20, 14, 0.6);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

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

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

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #041f17;
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-family: var(--font-fa);
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--emerald-primary);
  box-shadow: 0 0 10px var(--emerald-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 70px;
}

/* Blog / Articles Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.post-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
}

.post-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.post-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.5;
}

.post-title a:hover {
  color: var(--mint-accent);
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Footer */
.site-footer {
  background: #020e0a;
  border-top: 1px solid var(--border-glass);
  padding-top: 80px;
  padding-bottom: 40px;
  margin-top: auto;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--mint-accent);
  padding-right: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Single Post Page Styling */
.single-post-container {
  max-width: 800px;
  margin: 140px auto 80px auto;
}

.single-post-title {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
}

.audio-preview-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--border-hover);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  color: var(--mint-accent);
}

.single-post-content {
  font-size: 1.1rem;
  line-height: 2;
  color: #e2e8f0;
}

.single-post-content p {
  margin-bottom: 24px;
}

.single-post-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text-main);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .inquiry-box {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .inquiry-form {
    padding: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  .header-cta-btn span {
    display: none;
  }
  .header-cta-btn {
    padding: 8px;
    border-radius: var(--radius-sm);
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-title {
    font-size: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

#ai-audio-content-wrapper {
  background: rgba(3, 20, 14, 0.8);
  border: 1px solid var(--border-glass);
  padding: 24px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 2;
  max-height: 250px;
  overflow-y: auto;
  text-align: justify;
  margin-top: 20px;
}
[data-theme="light"] #ai-audio-content-wrapper {
  background: #ffffff !important;
  color: #334155 !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
}

/* Email Notice Badge & Registration API UI */
.email-notice-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #38bdf8;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 14px;
  margin-bottom: 14px;
}
[data-theme="light"] .email-notice-badge {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0369a1 !important;
}

/* Comparison Table Styles */
.comparison-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: var(--bg-dark-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  margin-top: 20px;
}
.comparison-table {
  display: table !important;
  width: 100% !important;
  min-width: 650px;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  text-align: right;
  font-size: 0.95rem;
}
.comparison-table th,
.comparison-table td {
  padding: 16px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
  vertical-align: middle !important;
}
.comparison-table th:last-child,
.comparison-table td:last-child {
  border-left: none !important;
}
.comparison-table th {
  background: rgba(16, 185, 129, 0.12) !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  color: var(--text-main) !important;
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}
.comparison-table th:nth-child(1),
.comparison-table td:nth-child(1) {
  width: 38% !important;
  text-align: right !important;
}
.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
  width: 31% !important;
  text-align: center !important;
}
.comparison-table th:nth-child(3),
.comparison-table td:nth-child(3) {
  width: 31% !important;
  text-align: center !important;
}
.comparison-table th.highlight-col,
.comparison-table td.highlight-col {
  background: rgba(16, 185, 129, 0.18) !important;
  color: var(--mint-accent) !important;
  font-weight: 700 !important;
}
.comparison-table th.highlight-col {
  background: rgba(16, 185, 129, 0.28) !important;
  color: #34d399 !important;
}
.comparison-table td.feature-name {
  font-weight: 700 !important;
  color: var(--text-main) !important;
}
.comparison-table tbody tr:hover {
  background: rgba(16, 185, 129, 0.06) !important;
}

/* Light Mode Overrides for Comparison Table */
[data-theme="light"] .comparison-table-wrapper {
  background: #ffffff !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 15px 35px rgba(2, 44, 34, 0.08) !important;
}
[data-theme="light"] .comparison-table th {
  background: #ecfdf5 !important;
  color: #064e3b !important;
  border-bottom: 2px solid #a7f3d0 !important;
}
[data-theme="light"] .comparison-table td {
  border-bottom-color: #e2e8f0 !important;
  border-left-color: #f1f5f9 !important;
  color: #334155 !important;
}
[data-theme="light"] .comparison-table td.feature-name {
  color: #0f172a !important;
}
[data-theme="light"] .comparison-table th.highlight-col {
  background: #d1fae5 !important;
  color: #047857 !important;
}
[data-theme="light"] .comparison-table td.highlight-col {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #047857 !important;
}

/* Registration Result Box Styles */
.registration-result-box {
  background: rgba(4, 31, 23, 0.9);
  border: 1px solid var(--emerald-primary);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
  animation: fadeInResult 0.4s ease-out forwards;
}
@keyframes fadeInResult {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.registration-result-box.result-exists {
  border-color: #f59e0b;
}
.registration-result-box.result-error {
  border-color: #ef4444;
}
.result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.result-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.result-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.result-detail-row code {
  background: rgba(16, 185, 129, 0.2);
  color: var(--mint-accent);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 1rem;
  direction: ltr;
}
[data-theme="light"] .registration-result-box {
  background: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15) !important;
}
[data-theme="light"] .result-details {
  background: #f0fdf4 !important;
}
[data-theme="light"] .result-detail-row code {
  background: #d1fae5 !important;
  color: #046c4e !important;
}

/* Editorial Article Box Light Theme Overrides */
[data-theme="light"] .editorial-article-box {
  background: #ffffff !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 15px 40px rgba(2, 44, 34, 0.06) !important;
}
[data-theme="light"] .article-lead {
  background: #ecfdf5 !important;
  border-right-color: #10b981 !important;
  color: #064e3b !important;
}
[data-theme="light"] .article-body-content {
  color: #334155 !important;
}
[data-theme="light"] .article-body-content h3 {
  color: #0f172a !important;
}
[data-theme="light"] .article-body-content blockquote {
  background: #f0f9ff !important;
  border-right-color: #0284c7 !important;
  color: #0c4a6e !important;
}
[data-theme="light"] .article-body-content blockquote strong {
  color: #0369a1 !important;
}

