/*
Theme Name: Custar Child (InvoiceGenie Dark)
Theme URI: https://myinvoicegenie.com/
Description: A premium, modern dark child theme for Custar.
Author: Antigravity AI
Template: custar
Version: 1.2.2
Text Domain: custar-child
*/

/* ==========================================================================
   CSS Overrides & Variables
   ========================================================================== */
:root {
  --bg-primary: #080a10;
  --bg-secondary: #0f121d;
  --bg-tertiary: #161a29;
  
  --accent-cyan: #00f5d4;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --container-width: 1200px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  --glass-bg: rgba(15, 18, 29, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(12px);

  --grad-primary: linear-gradient(135deg, #00f5d4 0%, #3b82f6 100%);
  --grad-text: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
  --grad-text-glowing: linear-gradient(135deg, #00f5d4 0%, #a855f7 100%);
  --grad-dark-overlay: radial-gradient(circle at top, rgba(99, 102, 241, 0.15) 0%, rgba(8, 10, 16, 0) 70%);
}

/* Base resets for custom landing page template */
.dark-theme-template {
  background-color: var(--bg-primary) !important;
  color: var(--text-main) !important;
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  
  /* Override parent theme CSS variables globally inside this scope */
  --text-color: var(--text-secondary) !important;
  --heading-color: #fff !important;
}

.dark-theme-template h1, 
.dark-theme-template h2, 
.dark-theme-template h3, 
.dark-theme-template h4, 
.dark-theme-template h5, 
.dark-theme-template h6,
.dark-theme-template h1 *,
.dark-theme-template h2 *,
.dark-theme-template h3 *,
.dark-theme-template h4 *,
.dark-theme-template h5 *,
.dark-theme-template h6 * {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff !important;
}

.dark-theme-template p,
.dark-theme-template span:not(.logo-text):not(.logo-text span):not(.ig-trigger-flag):not(.lang-btn span):not(.lang-option span):not(.action-title):not(.action-desc):not(.action-arrow),
.dark-theme-template li,
.dark-theme-template strong,
.dark-theme-template em,
.dark-theme-template blockquote,
.dark-theme-template td,
.dark-theme-template th {
  color: var(--text-secondary) !important;
}

.dark-theme-template a:not(.btn):not(.nav-link):not(.logo-wrap):not(.app-badge):not(.social-icon):not(.footer-nav-link):not(.footer-bottom-link):not(.action-card):not(.mobile-menu-link) {
  color: var(--accent-cyan) !important;
  text-decoration: underline !important;
}

.dark-theme-template a:not(.btn):not(.nav-link):not(.logo-wrap):not(.app-badge):not(.social-icon):not(.footer-nav-link):not(.footer-bottom-link):not(.action-card):not(.mobile-menu-link):hover {
  color: #fff !important;
}

/* Background Gradients */
.dark-theme-template::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 900px;
  background: var(--grad-dark-overlay);
  pointer-events: none;
  z-index: 0;
}

/* Custom Scrollbar for Child Theme */
.dark-theme-template::-webkit-scrollbar {
  width: 8px;
}
.dark-theme-template::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
.dark-theme-template::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
.dark-theme-template::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Add original styles matching custom landing preview layout */
.dark-theme-template .container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.dark-theme-template .text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark-theme-template .text-gradient-glowing {
  background: var(--grad-text-glowing);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark-theme-template .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  font-size: 1rem;
  gap: 8px;
}

.dark-theme-template .btn-primary {
  background: var(--grad-primary);
  color: #000;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 245, 212, 0.3);
}

.dark-theme-template .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 245, 212, 0.5);
  opacity: 1;
}

.dark-theme-template .btn-secondary {
  background: var(--glass-bg);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
}

.dark-theme-template .btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  opacity: 1;
}

/* Navbar */
.dark-theme-template .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 14, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 18px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 1px 0 rgba(0,245,212,0.06), 0 4px 30px rgba(0,0,0,0.4);
}

/* Scrolled state — slightly more opaque */
.dark-theme-template .site-header.scrolled {
  background: rgba(6, 8, 14, 0.97);
  box-shadow: 0 1px 0 rgba(0,245,212,0.1), 0 8px 40px rgba(0,0,0,0.6);
}

.dark-theme-template .navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dark-theme-template .logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dark-theme-template .logo-icon {
  width: 44px;
  height: 44px;
  background: var(--grad-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(0,245,212,0.25), 0 6px 18px rgba(0, 245, 212, 0.3);
  flex-shrink: 0;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.dark-theme-template .logo-wrap:hover .logo-icon {
  box-shadow: 0 0 0 1px rgba(0,245,212,0.4), 0 8px 28px rgba(0, 245, 212, 0.45);
  transform: scale(1.04) rotate(-2deg);
}

.dark-theme-template .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}


.dark-theme-template .logo-text {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.2s ease;
}

.dark-theme-template .logo-text span {
  color: var(--accent-cyan);
  -webkit-text-fill-color: initial;
}

/* Gap between logo and nav — pushes menu away from logo */
.dark-theme-template .site-header nav {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: 48px;
}

.dark-theme-template .nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 36px;
  padding: 0;
  margin: 0;
}

.dark-theme-template .nav-link {
  color: rgba(255,255,255,0.65);
  font-weight: 600;
  font-size: 1.0rem;
  letter-spacing: 0.01em;
  font-family: 'Space Grotesk', sans-serif;
  position: relative;
  padding: 6px 0;
  transition: color 0.22s ease;
  white-space: nowrap;
}

.dark-theme-template .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 6px rgba(0,245,212,0.6);
}

.dark-theme-template .nav-link:hover,
.dark-theme-template .current-menu-item > .nav-link {
  color: #fff;
  opacity: 1;
}

.dark-theme-template .nav-link:hover::after,
.dark-theme-template .current-menu-item > .nav-link::after {
  width: 100%;
}

/* Current page dot indicator */
.dark-theme-template .current-menu-item > .nav-link {
  color: var(--accent-cyan);
}


.dark-theme-template .nav-actions {
  display: flex !important;
  align-items: center;
  gap: 20px;
  flex-shrink: 0 !important;
  margin-left: auto;
}

/* Ensure wp_nav_menu ul inherits the flex row layout */
.dark-theme-template .site-header nav > .nav-menu {
  display: flex !important;
  list-style: none;
  align-items: center;
  gap: 36px;
  flex-wrap: nowrap;
  padding: 0;
  margin: 0;
}


/* Language selector — premium pill style */
.dark-theme-template .lang-selector {
  position: relative;
}

.dark-theme-template .lang-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.dark-theme-template .lang-btn:hover {
  border-color: var(--accent-cyan);
  background: rgba(0,245,212,0.08);
  color: #fff;
}

.dark-theme-template .lang-btn[aria-expanded="true"] {
  border-color: var(--accent-cyan);
  background: rgba(0,245,212,0.10);
  color: #fff;
}

.dark-theme-template .lang-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 8px;
  width: 175px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 9999;
  animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dark-theme-template .lang-dropdown.show {
  display: flex;
}

.dark-theme-template .lang-option {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 12px;
  text-align: left;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.dark-theme-template .lang-option:hover {
  background: var(--bg-tertiary);
  color: #fff;
}

/* Hero */
.dark-theme-template .hero-section {
  padding: 80px 0 120px 0;
  position: relative;
  overflow: hidden;
}

.dark-theme-template .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.dark-theme-template .hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dark-theme-template .hero-eyebrow {
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 0.85rem;
}

.dark-theme-template .hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
}

.dark-theme-template .hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
}

.dark-theme-template .hero-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.dark-theme-template .app-badge {
  display: inline-block;
  height: 48px;
  transition: transform 0.2s ease;
}

.dark-theme-template .app-badge img {
  height: 100%;
  border-radius: var(--border-radius-sm);
}

.dark-theme-template .app-badge:hover {
  transform: translateY(-2px);
}

.dark-theme-template .hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero Image Placeholder (replaces phone mockup) */
.dark-theme-template .hero-image-wrap {
  position: relative;
  width: 100%;
  z-index: 2;
}

.dark-theme-template .hero-preview-img {
  width: 100%;
  height: auto;
  display: block;
}


.dark-theme-template .screen-header {
  padding: 30px 16px 12px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dark-theme-template .screen-header .app-logo {
  font-weight: 800;
  color: #fff;
  font-size: 1.1rem;
}

.dark-theme-template .screen-header .app-logo span {
  color: var(--accent-cyan);
}

.dark-theme-template .screen-body {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.dark-theme-template .screen-card {
  background: var(--bg-tertiary);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--border-radius-sm);
  padding: 14px;
}

.dark-theme-template .screen-card .label {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.dark-theme-template .screen-card .value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
}

.dark-theme-template .invoice-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.dark-theme-template .invoice-item:last-child {
  border: none;
}

.dark-theme-template .invoice-details {
  display: flex;
  flex-direction: column;
}

.dark-theme-template .invoice-client {
  font-weight: 600;
  color: #fff;
}

.dark-theme-template .invoice-num {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.dark-theme-template .invoice-amount {
  font-weight: 700;
  color: var(--accent-cyan);
}

.dark-theme-template .screen-btn {
  background: var(--grad-primary);
  color: #000;
  padding: 8px 0;
  text-align: center;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  margin-top: auto;
  box-shadow: 0 4px 10px rgba(0, 245, 212, 0.25);
}

.dark-theme-template .glow-blur-orange {
  position: absolute;
  width: 250px;
  height: 250px;
  background: var(--accent-cyan);
  filter: blur(100px);
  border-radius: 50%;
  opacity: 0.2;
  top: 10%;
  right: 10%;
  z-index: 1;
}

.dark-theme-template .glow-blur-purple {
  position: absolute;
  width: 250px;
  height: 250px;
  background: var(--accent-purple);
  filter: blur(100px);
  border-radius: 50%;
  opacity: 0.2;
  bottom: 10%;
  left: 10%;
  z-index: 1;
}

/* Features */
.dark-theme-template .features-section {
  padding: 100px 0;
  background: var(--bg-secondary);
  position: relative;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.dark-theme-template .section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px auto;
}

.dark-theme-template .section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.dark-theme-template .section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.dark-theme-template .features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.dark-theme-template .feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 40px 32px;
  backdrop-filter: var(--glass-blur);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.dark-theme-template .feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.dark-theme-template .feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 245, 212, 0.3);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 1px 1px rgba(0, 245, 212, 0.1);
}

.dark-theme-template .feature-card:hover::before {
  opacity: 1;
}

.dark-theme-template .feature-icon-wrapper {
  width: 56px;
  height: 56px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.dark-theme-template .feature-card:hover .feature-icon-wrapper {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.4);
}

.dark-theme-template .feature-title {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.dark-theme-template .feature-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Carousel */
.dark-theme-template .carousel-section {
  padding: 100px 0;
  position: relative;
}

.dark-theme-template .carousel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.dark-theme-template .carousel-left {
  position: relative;
  /* CSS grid: [prev arrow] [image] [next arrow] on row 1, dots span all on row 2 */
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 20px 16px;
}

.dark-theme-template .carousel-container {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: 360px;
  justify-self: center;
  position: relative;
  background: transparent;
}

/* Remove the old phone pill notch */
.dark-theme-template .carousel-container::before {
  display: none;
}

.dark-theme-template .carousel-track-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 0;
}

.dark-theme-template .carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-theme-template .carousel-slide {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-theme-template .carousel-slide-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Nav arrows — grid col 1 and col 3, normal flow (no absolute positioning) */
.dark-theme-template .carousel-nav-btn {
  grid-row: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(8, 10, 28, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  justify-self: center;
  flex-shrink: 0;
}

.dark-theme-template .carousel-nav-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(0, 245, 212, 0.4);
}

.dark-theme-template .carousel-btn-prev { grid-column: 1; }
.dark-theme-template .carousel-btn-next { grid-column: 3; }

.dark-theme-template .carousel-dots {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dark-theme-template .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark-theme-template .dot.active {
  background: var(--accent-cyan);
  width: 24px;
  border-radius: 4px;
}

.dark-theme-template .carousel-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Footer styling */
.dark-theme-template .footer-section {
  background: #05060b;
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 32px 0;
  position: relative;
  z-index: 1;
}

.dark-theme-template .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.dark-theme-template .footer-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dark-theme-template .footer-description {
  color: var(--text-secondary);
  max-width: 360px;
  font-size: 0.95rem;
}

.dark-theme-template .social-links {
  display: flex;
  gap: 16px;
}

.dark-theme-template .social-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.dark-theme-template .social-icon:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.dark-theme-template .footer-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dark-theme-template .footer-nav-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.dark-theme-template .footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.dark-theme-template .footer-nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.dark-theme-template .footer-nav-link:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

.dark-theme-template .footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.dark-theme-template .footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dark-theme-template .footer-bottom-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.dark-theme-template .footer-bottom-link {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dark-theme-template .footer-bottom-link:hover {
  color: var(--accent-cyan);
}

/* Modals & Overlays */
.dark-theme-template .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 10, 16, 0.8);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-theme-template .modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.dark-theme-template .modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.dark-theme-template .modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.1rem;
}

.dark-theme-template .modal-close:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
}

.dark-theme-template .modal-eyebrow {
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.dark-theme-template .modal-title {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.dark-theme-template .modal-subtitle {
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.dark-theme-template .modal-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dark-theme-template .action-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-theme-template .action-card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-primary);
  transform: translateY(-2px);
}

.dark-theme-template .action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 245, 212, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.dark-theme-template .action-card:hover .action-icon {
  background: var(--accent-cyan);
  color: #000;
}

.dark-theme-template .action-text {
  flex-grow: 1;
}

.dark-theme-template .action-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.dark-theme-template .action-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.dark-theme-template .action-arrow {
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.dark-theme-template .action-card:hover .action-arrow {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

/* Animations */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Toggle Hamburger */
.dark-theme-template .mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
  width: 28px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.dark-theme-template .mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left center;
}

.dark-theme-template .mobile-nav-toggle.open .bar1 {
  transform: rotate(45deg) translate(2px, -2px);
  background-color: var(--accent-cyan);
}

.dark-theme-template .mobile-nav-toggle.open .bar2 {
  width: 0%;
  opacity: 0;
}

.dark-theme-template .mobile-nav-toggle.open .bar3 {
  transform: rotate(-45deg) translate(2px, 2px);
  background-color: var(--accent-cyan);
}

/* Mobile Menu Panel */
/* =============================================
   MOBILE MENU OVERLAY — Full-Screen Redesign
   ============================================= */

.dark-theme-template .mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s ease;
}

.dark-theme-template .mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Full-screen dark panel */
.dark-theme-template .mobile-menu-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(165deg, #0c0f26 0%, #080a1c 50%, #050711 100%);
  border: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: scale(0.97) translateY(-10px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Top accent gradient line */
.dark-theme-template .mobile-menu-container::before {
  display: block !important;
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7c3aed 30%, #00f5d4 70%, transparent);
  z-index: 2;
  pointer-events: none;
}

.dark-theme-template .mobile-menu-container::after {
  display: none;
}

.dark-theme-template .mobile-menu-overlay.open .mobile-menu-container {
  transform: scale(1) translateY(0);
}

/* Header row: logo + close */
.dark-theme-template .mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 24px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Perfect circle close button */
.dark-theme-template .mobile-menu-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease,
              transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  line-height: 1;
  font-size: 0; /* suppress &times; fallback if SVG is present */
}

.dark-theme-template .mobile-menu-close svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.dark-theme-template .mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: rotate(90deg);
}

/* Strip logo-icon glow inside the mobile drawer */
.dark-theme-template .mobile-menu-header .logo-icon {
  box-shadow: none !important;
}

.dark-theme-template .mobile-menu-header .logo-wrap:hover .logo-icon {
  box-shadow: none !important;
  transform: none !important;
}

/* Strip logo-icon glow in the footer */
.dark-theme-template .footer-section .logo-icon {
  box-shadow: none !important;
  background: transparent !important;
}

.dark-theme-template .footer-section .logo-wrap:hover .logo-icon {
  box-shadow: none !important;
  transform: none !important;
}

/* Nav body — center items vertically */
.dark-theme-template .mobile-menu-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0;
  position: relative;
  z-index: 1;
}

/* Items list */
.dark-theme-template .mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

/* Hide plugin-injected items */
.dark-theme-template .mobile-menu-links li.ig-menu-btn-group,
.dark-theme-template .mobile-menu-links li.ig-translate-nav-item {
  display: none !important;
}

.dark-theme-template .mobile-menu-links li {
  opacity: 0;
  transform: translateY(22px);
  border-radius: 0;
  overflow: visible;
}

/* Staggered enter */
.dark-theme-template .mobile-menu-overlay.open .mobile-menu-links li {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--delay, 1) * 0.08s + 0.1s);
}

.dark-theme-template .mobile-menu-link {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.75rem, 7vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.65) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none !important;
  width: 100%;
  position: relative;
  box-sizing: border-box;
  background: transparent !important;
  transition: color 0.2s ease;
}

/* Top border only on first list item */
.dark-theme-template .mobile-menu-links li:first-of-type .mobile-menu-link {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* No ::before left bar */
.dark-theme-template .mobile-menu-link::before {
  display: none;
}

/* Hide inline SVG icons — clean typographic layout */
.dark-theme-template .mobile-menu-link svg {
  display: none;
}

/* Chevron arrow indicator */
.dark-theme-template .mobile-menu-link::after {
  content: '';
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300f5d4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.dark-theme-template .mobile-menu-link:hover::after,
.dark-theme-template .mobile-menu-links li.current-menu-item .mobile-menu-link::after {
  opacity: 1;
  transform: translateX(0);
}

.dark-theme-template .mobile-menu-link:hover,
.dark-theme-template .mobile-menu-link:focus {
  color: #fff !important;
  background: transparent !important;
  text-decoration: none !important;
}

/* Current page highlight — cyan text, no background */
.dark-theme-template .mobile-menu-links li.current-menu-item .mobile-menu-link {
  color: #00f5d4 !important;
  background: transparent !important;
  text-decoration: none !important;
}

/* Footer section: language + CTA */
.dark-theme-template .mobile-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* Divider hidden — border-top on footer covers it */
.dark-theme-template .mobile-drawer-divider {
  display: none;
}

/* Language selector wrapper */
.dark-theme-template .mobile-drawer-lang {
  position: relative;
}

/* Language pill button */
.dark-theme-template .mobile-drawer-lang-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-main);
  padding: 13px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.22s ease;
  text-align: left;
}

.dark-theme-template .mobile-drawer-lang-btn:hover {
  background: rgba(0, 245, 212, 0.06);
  border-color: rgba(0, 245, 212, 0.25);
}

.dark-theme-template .mobile-drawer-lang-btn.open {
  border-color: var(--accent-cyan);
  background: rgba(0, 245, 212, 0.05);
}

.dark-theme-template .mdlb-flag {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.dark-theme-template .mdlb-name {
  flex: 1;
  color: var(--text-main) !important;
}

.dark-theme-template .mobile-drawer-lang-btn svg {
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.dark-theme-template .mobile-drawer-lang-btn.open svg {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

/* CTA button — full-width gradient */
.dark-theme-template .mobile-drawer-cta {
  width: 100%;
  justify-content: center;
  padding: 15px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  gap: 10px;
  background: var(--grad-primary) !important;
  color: #000 !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(0, 245, 212, 0.22);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dark-theme-template .mobile-drawer-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 28px rgba(0, 245, 212, 0.38) !important;
}

/* Hide plugin-injected items from desktop nav */
.dark-theme-template .site-header nav .ig-translate-nav-item,
.dark-theme-template .site-header nav li.ig-translate-nav-item,
.dark-theme-template .site-header nav .ig-menu-btn-group,
.dark-theme-template .site-header nav li.ig-menu-btn-group {
  display: none !important;
}

/* Accordion — hidden, kept for legacy safety */
.dark-theme-template .mobile-lang-accordion { display: none; }

.dark-theme-template .mobile-lang-acc-trigger {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--border-radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.dark-theme-template .mobile-lang-acc-trigger:hover,
.dark-theme-template .mobile-lang-acc-trigger.active {
  border-color: var(--accent-cyan);
  background: var(--bg-primary);
}

.dark-theme-template .mobile-lang-acc-trigger svg { transition: transform 0.3s ease; }
.dark-theme-template .mobile-lang-acc-trigger.active svg {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.dark-theme-template .mobile-lang-acc-content {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.dark-theme-template .mobile-lang-acc-content.show {
  display: flex;
  animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dark-theme-template .mobile-lang-acc-option {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 10px 14px;
  text-align: left;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.dark-theme-template .mobile-lang-acc-option:hover { background: var(--bg-secondary); color: #fff; }
.dark-theme-template .mobile-lang-acc-option.active { color: var(--accent-cyan); font-weight: 600; }

.dark-theme-template .hide-on-mobile {
  display: inline-flex;
}

/* Media Queries Override for Template scope */
@media (max-width: 1024px) {
  .dark-theme-template .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .dark-theme-template .hero-description { margin: 0 auto; }
  .dark-theme-template .hero-badge-wrap { justify-content: center; }
  .dark-theme-template .features-grid { grid-template-columns: 1fr 1fr; }
  .dark-theme-template .carousel-grid { grid-template-columns: 1fr; gap: 64px; }
  .dark-theme-template .carousel-content { text-align: center; }
  .dark-theme-template .carousel-left { order: 2; grid-template-columns: 44px 1fr 44px; gap: 16px 10px; }
  .dark-theme-template .carousel-content { order: 1; }
  /* Keep arrows visible on mobile since they're in the grid */
}

@media (max-width: 1024px) {
  /* Hide desktop nav, lang pill, and Get Started — shown in mobile drawer instead */
  /* Extra selectors for robustness against parent theme high-specificity overrides */
  .dark-theme-template .site-header nav,
  body.dark-theme-template .site-header nav,
  body.dark-theme-template .site-header nav ul,
  body.dark-theme-template .site-header .nav-menu,
  body.dark-theme-template .navbar-container > nav { display: none !important; }
  .dark-theme-template .lang-selector   { display: none !important; }
  .dark-theme-template .hide-on-mobile  { display: none !important; }
  .dark-theme-template .mobile-nav-toggle { display: flex; }
}

@media (max-width: 768px) {
  .dark-theme-template .hero-title { font-size: 2.8rem; }
  .dark-theme-template .features-grid { grid-template-columns: 1fr; }
  .dark-theme-template .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .dark-theme-template .modal-content { padding: 32px 24px; }
}

/* ==========================================================================
   SUPPORT & STYLE OTHER PAGES (TUTORIALS, FAQ, CONTACT, PRIVACY, TERMS)
   ========================================================================== */

/* Page content layout & general styles */
.dark-theme-template .page-content-wrapper {
  padding: 80px 0 120px 0;
  position: relative;
  z-index: 1;
}

.dark-theme-template .page-header-standard {
  margin-bottom: 48px;
  text-align: center;
}

.dark-theme-template .page-title {
  font-size: 3rem;
  line-height: 1.2;
}

.dark-theme-template .entry-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

.dark-theme-template .entry-content h1,
.dark-theme-template .entry-content h2,
.dark-theme-template .entry-content h3,
.dark-theme-template .entry-content h4,
.dark-theme-template .entry-content h5,
.dark-theme-template .entry-content h6 {
  margin-top: 40px;
  margin-bottom: 16px;
  color: #fff;
}

.dark-theme-template .entry-content h2 {
  font-size: 1.8rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 8px;
}

.dark-theme-template .entry-content h3 {
  font-size: 1.4rem;
}

.dark-theme-template .entry-content p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.dark-theme-template .entry-content ul,
.dark-theme-template .entry-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
  color: var(--text-secondary);
}

.dark-theme-template .entry-content li {
  margin-bottom: 8px;
}

.dark-theme-template .entry-content a {
  color: var(--accent-cyan);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 245, 212, 0.4);
  transition: border-color 0.2s ease;
}

.dark-theme-template .entry-content a:hover {
  border-bottom-style: solid;
}

.dark-theme-template .entry-content hr {
  border: 0;
  height: 1px;
  background: var(--glass-border);
  margin: 40px 0;
}

/* Hide breadcrumbs from the parent theme */
.dark-theme-template .blog-breadcrumb {
  display: none !important;
}

/* Hardcoded Light Theme Inline Color Overrides (using !important to beat inline styles) */
.dark-theme-template [style*="color:#333"],
.dark-theme-template [style*="color: #333"],
.dark-theme-template [style*="color:rgb(51,51,51)"] {
  color: #fff !important;
}

.dark-theme-template [style*="color:#555"],
.dark-theme-template [style*="color: #555"],
.dark-theme-template [style*="color:rgb(85,85,85)"] {
  color: var(--text-secondary) !important;
}

.dark-theme-template [style*="color:#666"],
.dark-theme-template [style*="color: #666"] {
  color: var(--text-muted) !important;
}

.dark-theme-template [style*="border-bottom"] {
  border-bottom-color: var(--glass-border) !important;
}

/* Tutorials Page Override */
.dark-theme-template .ig-tut-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  margin-bottom: 32px !important;
  margin-top: 24px !important;
}

.dark-theme-template .ig-tut-card {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--border-radius-md) !important;
  padding: 24px 28px !important;
  text-decoration: none !important;
  color: var(--text-main) !important;
  display: block !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: none !important;
}

.dark-theme-template .ig-tut-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--accent-cyan) !important;
  background: var(--bg-tertiary) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 1px 1px rgba(0, 245, 212, 0.1) !important;
}

.dark-theme-template .ig-tut-icon {
  font-size: 32px !important;
  margin-bottom: 12px !important;
  display: block !important;
}

.dark-theme-template .ig-tut-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.3 !important;
  display: block !important;
  font-family: 'Space Grotesk', sans-serif !important;
}

.dark-theme-template .ig-tut-desc {
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  display: block !important;
}

.dark-theme-template .ig-tut-card-danger {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
}

.dark-theme-template .ig-tut-card-danger:hover {
  border-color: rgba(239, 68, 68, 0.5) !important;
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.15) !important;
}

.dark-theme-template .ig-tut-title-danger {
  color: #fca5a5 !important;
}

/* FAQ Page Accordion Override */
.dark-theme-template .ig-faq-wrap {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.dark-theme-template .ig-faq-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 110px;
}

.dark-theme-template .ig-faq-sidebar h3 {
  font-size: 1.15rem;
  margin-bottom: 18px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 10px;
}

.dark-theme-template .ig-faq-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dark-theme-template .ig-faq-nav-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: block;
}

.dark-theme-template .ig-faq-nav-list a:hover {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

.dark-theme-template .ig-faq-main {
  flex-grow: 1;
}

.dark-theme-template .ig-faq-section {
  margin-bottom: 48px;
  scroll-margin-top: 120px;
}

.dark-theme-template .ig-faq-section h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 12px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
}

.dark-theme-template .ig-faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.dark-theme-template .ig-faq-item:hover {
  border-color: rgba(0, 245, 212, 0.3);
}

.dark-theme-template .ig-faq-q {
  width: 100%;
  text-align: left;
  background: transparent !important;
  border: none;
  color: #fff !important;
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: 'Space Grotesk', sans-serif !important;
  transition: all 0.2s ease;
}

.dark-theme-template .ig-faq-q:hover {
  color: var(--accent-cyan) !important;
}

.dark-theme-template .ig-faq-chevron {
  color: var(--accent-cyan);
  transition: transform 0.3s ease;
  display: inline-flex;
}

.dark-theme-template .ig-faq-q[aria-expanded="true"] .ig-faq-chevron {
  transform: rotate(180deg);
}

.dark-theme-template .ig-faq-a {
  background: rgba(8, 10, 16, 0.35);
  border-top: 1px solid var(--glass-border);
  padding: 20px 24px;
  color: var(--text-secondary) !important;
  font-size: 0.95rem;
  line-height: 1.6;
}

.dark-theme-template .ig-faq-a p {
  margin-bottom: 14px;
  color: var(--text-secondary) !important;
}

.dark-theme-template .ig-faq-a p:last-child {
  margin-bottom: 0;
}

.dark-theme-template .ig-faq-a a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.dark-theme-template .ig-faq-nav-select-wrap {
  display: none;
}

/* Contact Page (Gravity Forms) Overrides */
.dark-theme-template .gform_wrapper {
  max-width: 700px;
  margin: 40px auto 0 auto;
}

.dark-theme-template .gform_wrapper form {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--border-radius-lg) !important;
  padding: 48px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6) !important;
}

.dark-theme-template .gform_wrapper h2.gform_title {
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 12px !important;
  font-family: 'Space Grotesk', sans-serif !important;
}

.dark-theme-template .gform_wrapper .gform_description {
  color: var(--text-secondary) !important;
  font-size: 1.05rem !important;
  margin-bottom: 36px !important;
  line-height: 1.6 !important;
}

.dark-theme-template .gfield_label {
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  color: #fff !important;
  margin-bottom: 10px !important;
  display: block !important;
  font-family: 'Space Grotesk', sans-serif !important;
}

.dark-theme-template .gfield_required {
  color: var(--accent-cyan) !important;
  margin-left: 4px;
}

/* Style all standard form inputs globally inside the dark theme template */
.dark-theme-template input[type="text"],
.dark-theme-template input[type="email"],
.dark-theme-template input[type="tel"],
.dark-theme-template input[type="url"],
.dark-theme-template input[type="password"],
.dark-theme-template input[type="number"],
.dark-theme-template textarea,
.dark-theme-template select {
  background-color: var(--bg-tertiary) !important;
  color: #fff !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--border-radius-sm) !important;
  padding: 14px 18px !important;
  font-size: 0.95rem !important;
  width: 100% !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
}

.dark-theme-template input[type="text"]:focus,
.dark-theme-template input[type="email"]:focus,
.dark-theme-template input[type="tel"]:focus,
.dark-theme-template textarea:focus,
.dark-theme-template select:focus {
  border-color: var(--accent-cyan) !important;
  outline: none !important;
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.25) !important;
}

.dark-theme-template textarea {
  min-height: 140px;
  resize: vertical;
}

.dark-theme-template .gform_button,
.dark-theme-template button[type="submit"],
.dark-theme-template input[type="submit"] {
  background: var(--grad-primary) !important;
  color: #000 !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: var(--border-radius-sm) !important;
  padding: 16px 36px !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 245, 212, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  font-family: 'Space Grotesk', sans-serif !important;
}

.dark-theme-template .gform_button:hover,
.dark-theme-template button[type="submit"]:hover,
.dark-theme-template input[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 245, 212, 0.5) !important;
  opacity: 1 !important;
}

.dark-theme-template .gform_validation_errors,
.dark-theme-template .validation_message {
  color: #ef4444 !important;
  font-size: 0.9rem !important;
  margin-top: 6px !important;
  font-family: inherit !important;
}

/* Premium styled tables for Privacy/Terms pages */
.dark-theme-template table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.dark-theme-template th,
.dark-theme-template td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.dark-theme-template th {
  background-color: var(--bg-tertiary);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.dark-theme-template td {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.dark-theme-template tr:last-child td {
  border-bottom: none;
}

.dark-theme-template tr:nth-child(even) td {
  background-color: rgba(255, 255, 255, 0.015);
}

/* Responsive Overrides for Other Pages */
@media (max-width: 1024px) {
  .dark-theme-template .ig-faq-wrap {
    flex-direction: column;
    gap: 32px;
  }
  .dark-theme-template .ig-faq-sidebar {
    display: none;
  }
  .dark-theme-template .ig-faq-nav-select-wrap {
    display: block;
    margin-bottom: 32px;
  }
}

@media (max-width: 768px) {
  .dark-theme-template .page-content-wrapper {
    padding: 60px 0 80px 0;
  }
  .dark-theme-template .page-title {
    font-size: 2.2rem;
  }
  .dark-theme-template .ig-tut-grid {
    grid-template-columns: 1fr !important;
  }
  .dark-theme-template .gform_wrapper form {
    padding: 24px !important;
  }
}

