/** ========================================================================== */
:root {
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-code: 'Fira Code', 'Courier New', monospace;
  --bg-primary: #0a0f1d;
  --bg-secondary: #0f172a;
  --bg-surface: #131c31;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-body: #cbd5e1;
  --text-muted: #64748b;
  --color-primary: #6366f1;
  --color-primary-light: #818cf8;
  --color-secondary: #8b5cf6;
  --color-accent: #38bdf8;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --sidebar-width: 310px;
  --header-height: 70px;
  --radius-md: 12px;
  --radius-sm: 8px;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 15px;
}
body {
  font-family: var(--font-base);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 12% 10%, rgba(99, 102, 241, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 88% 85%, rgba(139, 92, 246, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: #c7d2fe;
  text-decoration: underline;
}
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
/* ==========================================================================
   TOP READING PROGRESS BAR
   ========================================================================== */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1100;
  background: transparent;
}
.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #38bdf8);
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.7);
}
/* ==========================================================================
   HEADER (CLEAN EDITORIAL NAV)
   ========================================================================== */
.overview-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(10, 15, 29, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 16px;
}
.overview-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}
.logo-text-block {
  display: flex;
  flex-direction: column;
}
.logo-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.logo-title .accent-text {
  color: var(--color-primary-light);
}
.logo-subtitle {
  font-size: 0.72rem;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 14px;
  width: 320px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.search-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-focus);
}
.search-trigger i {
  color: var(--text-muted);
  font-size: 1rem;
}
.search-placeholder {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-grow: 1;
}
.search-shortcut {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text-muted);
  font-family: var(--font-code);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-nav-link {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.header-nav-link:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #ffffff;
  text-decoration: none;
}
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 1.3rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.mobile-menu-btn .close-icon {
  display: none;
}
.mobile-menu-btn.active .menu-icon {
  display: none;
}
.mobile-menu-btn.active .close-icon {
  display: block;
}
/* ==========================================================================
   APP LAYOUT: SIDEBAR & MAIN CONTAINER
   ========================================================================== */
.overview-layout-container {
  display: flex;
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.overview-sidebar {
  width: var(--sidebar-width);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-right: 1px solid var(--border-subtle);
  height: calc(100vh - var(--header-height));
  position: fixed;
  top: var(--header-height);
  left: 0;
  overflow-y: auto;
  z-index: 950;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sidebar-header-box {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
.sidebar-search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.sidebar-search-box i {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}
.sidebar-search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 9px 12px 9px 36px;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.sidebar-search-input:focus {
  border-color: var(--color-primary);
  background: rgba(0, 0, 0, 0.5);
}
.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.group-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 4px 10px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.group-title i {
  color: var(--color-primary-light);
  font-size: 0.85rem;
}
.sidebar-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sidebar-tab-item {
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.sidebar-tab-btn {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  transition: all 0.2s ease;
  gap: 10px;
}
.sidebar-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}
.sidebar-tab-item.active .sidebar-tab-btn {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(139, 92, 246, 0.16));
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #ffffff;
}
.tab-btn-main {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}
.tab-btn-icon {
  font-size: 1.15rem;
  color: var(--color-primary-light);
  flex-shrink: 0;
}
.sidebar-tab-item.active .tab-btn-icon {
  color: #c7d2fe;
}
.tab-btn-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85rem;
}
.tab-btn-badge {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-shrink: 0;
  font-weight: 700;
}
.sidebar-tab-item.active .tab-btn-badge {
  background: rgba(99, 102, 241, 0.35);
  color: #ffffff;
}
.sidebar-footer {
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  background: rgba(10, 15, 29, 0.5);
}
.footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 4px;
}
.footer-copy {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 940;
}
/* ==========================================================================
   MAIN CONTENT: SIMPLE BLOG ARCHITECTURE (NO CARD IN BLOG)
   ========================================================================== */
.overview-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 2.5rem 3rem 6rem;
  max-width: calc(100% - var(--sidebar-width));
  width: 100%;
  box-sizing: border-box;
}
.loading-state-card {
  text-align: center;
  padding: 5rem 1.5rem;
  color: var(--text-muted);
}
.loading-state-card i {
  font-size: 2.2rem;
  color: var(--color-primary-light);
  display: inline-block;
  margin-bottom: 1rem;
}
.breadcrumbs-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.breadcrumbs-bar a {
  color: var(--text-muted);
}
.breadcrumbs-bar a:hover {
  color: var(--color-primary-light);
}
/* ==========================================================================
   BLOG ARTICLE TYPOGRAPHY & LAYOUT (NO BOXED CARDS)
   ========================================================================== */
.overview-blog-article {
  max-width: 920px;
  margin: 0 auto;
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.85;
}
.blog-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}
.blog-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.blog-main-title {
  font-family: var(--font-heading);
  font-size: 2.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.blog-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.blog-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-lead-paragraph {
  font-size: 1.15rem;
  color: #e2e8f0;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.blog-tech-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}
.tech-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #a5b4fc;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-code);
}
.blog-body {
  margin-top: 1.5rem;
}
.blog-body h2 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  margin: 3.5rem 0 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.blog-body h2:first-of-type {
  margin-top: 1rem;
}
.blog-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 2rem 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-body p {
  margin-bottom: 1.5rem;
  color: var(--text-body);
}
.blog-body ul, .blog-body ol {
  margin: 1.25rem 0 1.75rem;
  padding-left: 1.5rem;
}
.blog-body li {
  margin-bottom: 0.65rem;
  line-height: 1.75;
}
.blog-body strong {
  color: #ffffff;
}
.tutorial-steps-list {
  counter-reset: blog-step;
  list-style: none;
  padding-left: 0;
  margin: 1.75rem 0;
}
.tutorial-steps-list > li {
  counter-increment: blog-step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 1.5rem;
  line-height: 1.75;
}
.tutorial-steps-list > li::before {
  content: counter(blog-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #a5b4fc;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.callout-box {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
  border-left: 4px solid;
  position: relative;
}
.callout-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.callout-srs {
  background: rgba(56, 189, 248, 0.08);
  border-color: #0284c7;
  color: #e0f2fe;
}
.callout-srs .callout-title { color: #38bdf8; }
.callout-tutorial {
  background: rgba(99, 102, 241, 0.08);
  border-color: #6366f1;
  color: #e0e7ff;
}
.callout-tutorial .callout-title { color: #818cf8; }
.callout-security {
  background: rgba(234, 179, 8, 0.08);
  border-color: #eab308;
  color: #fef08a;
}
.callout-security .callout-title { color: #facc15; }
.code-block-wrap {
  margin: 2rem 0;
  background: #060912;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.code-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.code-header i {
  color: var(--color-primary-light);
  margin-right: 6px;
}
.code-copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.code-copy-btn:hover {
  color: #ffffff;
}
.code-block {
  padding: 1.25rem 1.4rem;
  font-family: var(--font-code);
  font-size: 0.86rem;
  line-height: 1.65;
  color: #cbd5e1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
code {
  font-family: var(--font-code);
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.86em;
}
.tech-spec-accordion {
  margin: 2rem 0;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.tech-spec-accordion:hover, .tech-spec-accordion[open] {
  border-color: rgba(99, 102, 241, 0.35);
}
.tech-spec-summary {
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}
.tech-spec-summary:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}
.tech-spec-summary i {
  color: var(--color-primary-light);
  font-size: 1rem;
}
.tech-spec-summary .chevron {
  transition: transform 0.2s ease;
}
.tech-spec-accordion[open] .tech-spec-summary .chevron {
  transform: rotate(180deg);
}
.tech-spec-content {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 9, 18, 0.6);
  font-size: 0.88rem;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.overview-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
}
.overview-data-table th {
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 700;
  white-space: nowrap;
}
.overview-data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}
.overview-data-table tr:last-child td {
  border-bottom: none;
}
.overview-data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
/* ==========================================================================
   NATIVE ADS CONTAINER
   ========================================================================== */
.native-ads {
  margin: 2.5rem 0 2rem;
  width: 100%;
  display: block;
}
.btn-scroll-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  color: #ffffff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  transform: translateY(10px);
}
.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.btn-scroll-top:hover {
  transform: translateY(-3px);
  filter: brightness(1.15);
}
.blog-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
/* ==========================================================================
   CLEARANCE GATE OVERLAY (CONFIDENTIALITY GATE)
   ========================================================================== */
.clearance-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 29, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.gate-card {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.15);
  position: relative;
}
.gate-icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  border: 2px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.gate-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.gate-desc {
  font-size: 0.92rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.gate-status-alert {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  text-align: left;
}
.gate-field-label {
  display: block;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.gate-input-field {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  outline: none;
  resize: vertical;
}
.gate-btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.gate-btn-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}
.gate-footer-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.85rem;
}
.gate-footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gate-footer-links a:hover {
  color: #ffffff;
}
.gate-btn-social {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0.85rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.gate-btn-social:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.gate-btn-primary-auth {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  color: #ffffff;
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  transition: all 0.2s;
}
.gate-btn-primary-auth:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}
/* ==========================================================================
   LEGAL CENTER-STYLE SEARCH MODAL FOR OVERVIEW
   ========================================================================== */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 15, 29, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.search-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.search-modal-box {
  background-color: #0f172a;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  width: 92%;
  max-width: 620px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.15);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.search-modal.active .search-modal-box {
  transform: translateY(0);
}
.search-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.85);
}
.search-modal-header i {
  font-size: 1.3rem;
  color: #818cf8;
}
.search-modal-header input {
  flex-grow: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 1.05rem;
  color: #ffffff;
  font-family: var(--font-body);
}
.search-modal-header input::placeholder {
  color: #64748b;
}
.close-search-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-search-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}
.search-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.8rem;
}
.search-result-item {
  display: block;
  text-decoration: none;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.45rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.18s ease;
  cursor: pointer;
}
.search-result-item:hover, .search-result-item.selected {
  background-color: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
}
.search-result-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #f8fafc;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-result-title .badge-mod {
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  padding: 2px 6px;
  border-radius: 4px;
}
.search-result-snippet {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
}
.search-result-snippet mark {
  background: #fef08a;
  color: #0f172a;
  font-weight: 700;
  padding: 0 3px;
  border-radius: 3px;
}
.no-results {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #64748b;
  font-size: 0.92rem;
}
.search-modal-footer {
  padding: 0.75rem 1.4rem;
  background-color: #0b1120;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: #64748b;
}
.search-modal-footer kbd {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  font-size: 0.72rem;
  color: #cbd5e1;
}
/* ==========================================================================
   ER DIAGRAM & ARCHITECTURAL WORKFLOW VISUALIZER
   ========================================================================== */
.er-diagram-container {
  background: #090d16;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}
.er-diagram-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}
.er-diagram-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.er-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 1.5rem;
}
.er-entity-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
}
.er-entity-header {
  background: rgba(99, 102, 241, 0.15);
  border-bottom: 1px solid rgba(99, 102, 241, 0.25);
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #a5b4fc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.er-field-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-family: monospace;
}
.er-field-name {
  color: #f1f5f9;
}
.er-field-type {
  color: #94a3b8;
}
.er-field-pk {
  color: #eab308;
  font-weight: 700;
}
.er-field-fk {
  color: #38bdf8;
  font-weight: 700;
}
.arch-flow-diagram {
  background: #020617;
  border: 1px dashed rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  padding: 1.25rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}
/* ==========================================================================
   RESPONSIVENESS (MOBILE, TABLET, FOLDABLE & SMALL PHONES)
   ========================================================================== */
@media (max-width: 1200px) {
  :root {
    --sidebar-width: 280px;
  }
  .overview-main {
    padding: 2rem 2rem 5rem;
  }
}
@media (max-width: 991px) {
  .search-trigger {
    width: 220px;
  }
  .search-shortcut {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .overview-sidebar {
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: -100%;
    width: min(320px, 85vw);
    z-index: 999;
    box-shadow: none;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .overview-sidebar.active {
    left: 0;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.7);
  }
  .sidebar-backdrop.active {
    display: block;
  }
  .overview-main {
    margin-left: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 2rem 1.5rem 4rem;
  }
  .blog-main-title {
    font-size: 2rem;
  }
}
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
    gap: 8px;
  }
  .logo-title {
    font-size: 1.1rem;
  }
  .logo-subtitle {
    display: none;
  }
  .search-trigger {
    display: none;
  }
  .header-actions {
    gap: 6px;
  }
  .header-nav-link {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  .header-nav-link .nav-text {
    display: none;
  }
  .overview-main {
    padding: 1.5rem 1.25rem 4rem;
  }
  .blog-main-title {
    font-size: 1.7rem;
  }
  .blog-body h2 {
    font-size: 1.4rem;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .overview-main {
    padding: 1.25rem 1rem 3.5rem;
  }
  .blog-main-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  .blog-lead-paragraph {
    font-size: 1.02rem;
  }
  .code-block {
    padding: 1rem;
    font-size: 0.78rem;
  }
  .tutorial-steps-list > li {
    padding-left: 36px;
  }
  .tutorial-steps-list > li::before {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
}
@media (max-width: 360px) {
  .logo-title {
    font-size: 0.95rem;
  }
  .overview-main {
    padding: 1rem 0.75rem 3rem;
  }
  .blog-main-title {
    font-size: 1.3rem;
  }
  .blog-body h2 {
    font-size: 1.25rem;
  }
}
