/* Helix Studio Documentation Theme - GitBook Monochrome Style */
/* ========================================================================= */

:root {
  --bg-primary: #030303;     /* Main content lane background */
  --bg-secondary: #080808;   /* Sidebar and card background */
  --bg-tertiary: #0d0d0f;    /* Code blocks, inputs, and deep overlays */
  --border-color: rgba(255, 255, 255, 0.04);
  --border-glow: rgba(255, 255, 255, 0.08);
  
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  
  --accent-color: #ffffff;
  --accent-rgb: 255, 255, 255;
  
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-title: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  
  --sidebar-width: 280px;
  --header-height: 64px;
  --toc-width: 240px;
}

/* Reset & Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border-radius: 9999px;
  border: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Layout Framework */
.docs-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* Left Navigation Sidebar (Full Height, Fixed) */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100%;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-brand {
  padding: 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.brand-dot {
  color: var(--text-primary);
  font-size: 1.6rem;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.4);
  line-height: 1;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-version {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Left Sidebar Navigation Groups */
.sidebar-nav {
  flex: 1;
  padding: 24px 16px;
}

.nav-group {
  margin-bottom: 24px;
}

.group-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: 16px;
  margin-bottom: 10px;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 3px;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.nav-item:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.02);
}

.nav-item.active {
  color: var(--text-primary);
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.03);
  border-left-color: var(--text-primary);
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Right Side Wrapper */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Top Navigation Bar */
.top-bar {
  height: var(--header-height);
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(3, 3, 3, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 90;
  position: relative;
}

/* Breadcrumbs styling */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.crumb {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.crumb-separator {
  color: var(--border-color);
  font-size: 0.7rem;
}

.crumb.active {
  color: var(--text-primary);
  font-weight: 600;
}

/* Search Box (GitBook Pill) */
.top-bar .search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 240px;
  transition: width 0.3s ease;
}

.top-bar .search-box:focus-within {
  width: 320px;
}

.top-bar .search-icon {
  position: absolute;
  left: 12px;
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.top-bar #docsSearch {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 8px 36px 8px 36px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.top-bar #docsSearch:focus {
  outline: none;
  background: var(--bg-tertiary);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.search-shortcut {
  position: absolute;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  line-height: 1;
}

/* Three-Column Content Container */
.content-container {
  display: flex;
  flex: 1;
  height: calc(100vh - var(--header-height));
  overflow: hidden;
  position: relative;
}

/* Center Content Lane (Reading Column) */
.content-lane {
  flex: 1;
  overflow-y: auto;
  padding: 48px 60px 80px 60px;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Restrict maximum width inside reading lane for optimal readability */
.docs-section {
  width: 100%;
  max-width: 720px;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.docs-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Page Header */
.page-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.page-header h1 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.1;
  color: var(--text-primary);
}

.page-lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 16px;
}

/* Clean, Spacious Content Cards */
.card {
  background-color: transparent; /* GitBook flat layout */
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  padding: 40px 0;
  margin-bottom: 0;
  box-shadow: none;
}

.card:last-child {
  border-bottom: none;
}

.card h2 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  scroll-margin-top: calc(var(--header-height) + 20px); /* Padding for smooth jumps */
}

.card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.card ul, .card ol {
  margin-left: 20px;
  margin-bottom: 18px;
}

.card li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* Custom Lists & Steps */
.step-list {
  list-style: none !important;
  margin-left: 0 !important;
}

.step-list > li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 24px;
}

.step-list > li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 24px;
  bottom: -24px;
  width: 1px;
  background-color: var(--border-color);
}

.step-list > li:last-child::before {
  display: none;
}

.step-list > li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--text-primary);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}

.step-list > li strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* GitBook-Style Alert Boxes */
.alert {
  border-left: 4px solid var(--text-secondary);
  background: var(--bg-secondary);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.alert-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.alert.note {
  border-left-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.01);
}

.alert.tip {
  border-left-color: #ffffff;
  background: rgba(255, 255, 255, 0.02);
}

.alert.important {
  border-left-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.01);
}

/* Elegant Code Blocks with Header Bars */
.code-wrapper {
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
}

.code-header {
  height: 38px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.code-lang {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.code-wrapper pre {
  padding: 16px 20px;
  overflow-x: auto;
}

.code-wrapper code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #e4e4e7;
  line-height: 1.5;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.copy-btn.copied {
  color: var(--text-primary);
  font-weight: 600;
}

code.file-path {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--text-primary);
}

/* File Tree View */
.file-tree {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow-x: auto;
  margin-top: 12px;
}

.file-tree ul {
  list-style: none !important;
  margin-left: 0 !important;
}

.file-tree li {
  margin-bottom: 5px;
  color: var(--text-secondary);
}

.file-tree ul ul {
  margin-left: 20px;
  border-left: 1px solid var(--border-color);
  padding-left: 14px;
  margin-top: 5px;
}

.file-tree .icon {
  margin-right: 6px;
  opacity: 0.7;
}

/* Tab Component */
.tab-container {
  margin: 24px 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-tertiary);
}

.tab-headers {
  display: flex;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 20px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.01);
}

.tab-content {
  display: none;
  padding: 24px;
}

.tab-content.active {
  display: block;
}

.tab-lead {
  font-size: 0.95rem;
  color: var(--text-primary) !important;
  margin-bottom: 16px !important;
  font-weight: 600;
}

/* Right Sidebar (Table of Contents) */
.toc-sidebar {
  width: var(--toc-width);
  border-left: 1px solid var(--border-color);
  padding: 48px 24px;
  overflow-y: auto;
  flex-shrink: 0;
  z-index: 80;
}

.toc-container {
  position: sticky;
  top: 0;
}

.toc-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-link {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.4;
  transition: color 0.2s ease, border-left-color 0.2s ease;
  padding-left: 12px;
  border-left: 1px solid transparent;
  cursor: pointer;
}

.toc-link:hover {
  color: var(--text-primary);
}

.toc-link.active {
  color: var(--text-primary);
  font-weight: 600;
  border-left-color: var(--text-primary);
}

/* Search Highlights (Pure Black on White) */
.search-highlight {
  background-color: rgba(255, 255, 255, 0.95);
  color: #000000;
  font-weight: 600;
  border-radius: 3px;
  padding: 0 3px;
}

/* Menu Toggle Icons (Hamburger) */
.menu-toggle {
  display: none;
}

/* Responsive Grid Adjustments */
@media (max-width: 1200px) {
  /* Hide Right TOC Sidebar on smaller screens, leaving left nav + content */
  .toc-sidebar {
    display: none;
  }
  
  .content-panel {
    padding: 48px 40px;
  }
}

@media (max-width: 768px) {
  /* Tablet/Mobile Adjustments */
  .top-bar {
    padding: 0 20px;
  }
  
  .menu-toggle {
    display: flex;
  }

  .sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.9);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }

  .content-lane {
    padding: 32px 20px;
  }
  
  .page-header h1 {
    font-size: 2.1rem;
  }
  
  .top-bar .search-box {
    width: 160px;
  }
  
  .top-bar .search-box:focus-within {
    width: 200px;
  }
}

/* ========================================================================= */
/* 10. SEQUENTIAL PAGE NAVIGATION FOOTER */
/* ========================================================================= */
.page-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px 0;
  margin-top: 60px;
  gap: 24px;
}

.nav-prev-btn, .nav-next-btn {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  width: 48%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 24px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-prev-btn {
  align-items: flex-start;
}

.nav-next-btn {
  align-items: flex-end;
}

.nav-prev-empty, .nav-next-empty {
  width: 48%;
  display: block;
}

.nav-dir-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.nav-page-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.nav-prev-btn:hover, .nav-next-btn:hover {
  background-color: var(--bg-tertiary);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-prev-btn:hover .nav-page-title, .nav-next-btn:hover .nav-page-title {
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .page-nav-footer {
    flex-direction: column;
    gap: 16px;
  }
  .nav-prev-btn, .nav-next-btn, .nav-prev-empty, .nav-next-empty {
    width: 100%;
  }
}

/* ========================================================================= */
/* 11. SUPPORT & HELP PAGE STYLING */
/* ========================================================================= */
.grid-layout-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
  width: 100%;
}

.support-info-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
  padding: 28px !important;
  transition: all 0.25s ease;
}

.support-info-card:hover {
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.support-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.support-card-icon {
  width: 22px;
  height: 22px;
  color: var(--text-primary);
}

.support-card-header h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 !important;
}

.contact-highlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.contact-value {
  color: var(--text-primary);
  word-break: break-all;
  padding-right: 12px;
}

.copy-contact-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.copy-contact-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Monochrome Ticket Form Card */
.form-card {
  background-color: var(--bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
  padding: 40px !important;
  width: 100%;
}

.support-form {
  margin-top: 28px;
}

.form-group-row {
  display: flex;
  gap: 20px;
  margin-bottom: 4px;
}

.form-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  margin-bottom: 20px;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  transition: all 0.2s ease;
  width: 100%;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.02);
}

/* Override default select arrow styling for premium look */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background-color: #0d0d0f;
  color: #ffffff;
}

.form-textarea {
  resize: vertical;
}

.form-submit-btn {
  background-color: #ffffff;
  color: #000000;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  border: 1px solid #ffffff;
  padding: 14px 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  margin-top: 8px;
}

.form-submit-btn:hover:not(:disabled) {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.form-submit-btn:disabled {
  background-color: #27272a;
  border-color: #27272a;
  color: #71717a;
  cursor: not-allowed;
}

.form-status-alert {
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-top: 20px;
  font-weight: 500;
  line-height: 1.5;
  animation: fadeIn 0.25s ease;
}

.form-status-alert.success {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.form-status-alert.error {
  background: rgba(239, 68, 68, 0.03);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .grid-layout-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .form-card {
    padding: 24px !important;
  }
  .form-group-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ========================================================================= */
/* 12. SMART SEARCH INTERCEPT CARD */
/* ========================================================================= */
.smart-search-card {
  width: 100%;
  max-width: 720px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 24px 32px;
  margin-bottom: 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.smart-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.smart-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.smart-beacon {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #ffffff;
  animation: beaconPulse 2s infinite;
}

@keyframes beaconPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.smart-search-card h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px 0 !important;
  color: var(--text-primary);
}

.smart-search-card p {
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
  color: var(--text-secondary) !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
  border: none !important;
}

.smart-card-btn {
  display: inline-block;
  background-color: #ffffff;
  color: #000000;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid #ffffff;
  transition: all 0.2s ease;
}

.smart-card-btn:hover {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* ========================================================================= */
/* 13. MULTI-LANGUAGE TRANSLATION SWITCHER & GOOGLE OVERRIDES */
/* ========================================================================= */
.lang-switcher-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 6px;
  width: 100%;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.lang-switcher-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.04);
}

.lang-icon {
  width: 15px;
  height: 15px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.dropdown-arrow {
  margin-left: auto;
  font-size: 0.6rem;
  opacity: 0.6;
  transition: transform 0.2s ease;
  color: var(--text-secondary);
}

.lang-switcher-btn[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

/* Floating Searchable Popover Picker */
.lang-picker-popover {
  position: absolute;
  bottom: calc(100% + 8px); /* Open upwards above the button */
  left: 0;
  width: 100%;
  background-color: #080808;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
  z-index: 999;
  display: flex;
  flex-direction: column;
  max-height: 260px;
  overflow: hidden;
  animation: popoverSlideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popoverSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-search-wrapper {
  position: relative;
  padding: 8px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
}

.lang-search-wrapper input {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px 8px 30px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.lang-search-wrapper input:focus {
  border-color: rgba(255, 255, 255, 0.15);
}

.lang-search-wrapper .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.lang-options-list {
  overflow-y: auto;
  flex: 1;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
}

.lang-option-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-option-item:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.03);
}

.lang-option-item.active {
  color: #000000 !important;
  background-color: #ffffff !important;
  font-weight: 600;
}


/* ========================================================================= */
/* Google Translate Branding & Top Banner Interceptions (Strict Monochrome) */
/* ========================================================================= */
body {
  top: 0 !important; /* Force body to top, overriding Google's 40px push */
}

/* Completely hide the Google Translate top banner frame */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
.translation-icons,
.goog-te-menu-value,
.goog-te-gadget-icon {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
}

/* Hide tooltips and translation widgets */
#goog-gt-tt {
  display: none !important;
}

.goog-te-banner {
  display: none !important;
}

/* Prevent highlights of translated text */
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

/* Hide the powered by google gadgets */
.goog-te-gadget {
  font-size: 0 !important;
  color: transparent !important;
}

.goog-te-gadget .goog-logo-link {
  display: none !important;
}

/* ========================================================================= */
/* 14. LEAVE A 5-STAR REVIEW PAGE STYLING */
/* ========================================================================= */
.review-card {
  text-align: center;
  padding: 48px 40px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.review-icon-container {
  margin-bottom: 24px;
}

.star-rating {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.star {
  font-size: 2.6rem;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
  animation: starPulse 2.5s infinite ease-in-out;
}

/* Give the stars a staggered pulsation wave */
.star:nth-child(2) { animation-delay: 0.2s; }
.star:nth-child(3) { animation-delay: 0.4s; }
.star:nth-child(4) { animation-delay: 0.6s; }
.star:nth-child(5) { animation-delay: 0.8s; }

@keyframes starPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.8);
  }
}

.review-card h2 {
  font-size: 1.6rem !important;
  margin-bottom: 14px !important;
}

.review-card p {
  max-width: 580px;
  margin-bottom: 16px !important;
}

.review-actions {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 500px;
  margin-top: 24px;
}

.review-btn-primary, .review-btn-secondary {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
}

.review-btn-primary {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
}

.review-btn-primary:hover {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
}

.review-btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid var(--border-color);
}

.review-btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  .review-actions {
    flex-direction: column;
    gap: 12px;
  }
  .review-card {
    padding: 32px 20px !important;
  }
  .star {
    font-size: 2.1rem;
  }
}



