/**
 * site.css — Quantum Vanguard Master Stylesheet
 * Responsive Multi-Device Architecture (Galaxy Z Fold, Surface Duo, Mobile, Tablet, Desktop)
 * Adheres to oil-ui-pro Design Guidelines
 */

@import url("./tokens.css");

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--l512-paper);
  color: var(--l512-ink);
  font-family: var(--l512-font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100%;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: var(--l512-primary);
  text-decoration: none;
  transition: opacity 0.15s ease, color 0.15s ease;
}

a:hover {
  opacity: 0.85;
}

button {
  font-family: inherit;
  font-size: inherit;
}

.tabular {
  font-family: var(--l512-mono);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Laser Calibration Strip
   ========================================================================== */
.calibration-laser-strip {
  height: 3px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--l512-calib-red) 0%,
    var(--l512-calib-green) 20%,
    var(--l512-calib-blue) 40%,
    var(--l512-calib-cyan) 60%,
    var(--l512-calib-magenta) 80%,
    var(--l512-calib-yellow) 100%
  );
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.45);
}

/* ==========================================================================
   Header & Navigation (/oil-ui-pro Standardized Architecture)
   ========================================================================== */
.site-header,
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  width: 100%;
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  height: 64px;
  padding: 0 clamp(12px, 2vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.2vw, 16px);
  width: 100%;
  box-sizing: border-box;
}

/* Brand Logo */
.header-brand,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: #FFFFFF !important;
  text-decoration: none !important;
  flex-shrink: 0;
  user-select: none;
}

.brand-strip {
  display: inline-flex;
  width: 22px;
  height: 12px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.45);
  flex-shrink: 0;
}
.b-strip {
  flex: 1;
  height: 100%;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.brand-accent {
  background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #3B82F6;
  font-weight: 800;
}

/* Primary Desktop Navigation */
.header-nav,
.nav-links,
.nav-links-box {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.1vw, 14px);
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-item,
.nav-link-desktop {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #94A3B8 !important;
  text-decoration: none !important;
  padding: 5px 3px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
  position: relative;
  white-space: nowrap;
}

.nav-item:hover,
.nav-link-desktop:hover {
  color: #FFFFFF !important;
}

.nav-item.active,
.nav-link-desktop.active {
  color: #38BDF8 !important;
  font-weight: 600;
}

.nav-item.active::after,
.nav-link-desktop.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 3px;
  right: 3px;
  height: 2px;
  background: #38BDF8;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

/* Nav Micro Badges */
.nav-badge,
.nav-links .badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  line-height: 1.3;
  margin-left: 2px;
  letter-spacing: 0.02em;
}

.badge-blue {
  background: rgba(59, 130, 246, 0.14);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-indigo {
  background: rgba(99, 102, 241, 0.14);
  color: #818CF8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.14);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Header Right Actions */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #E2E8F0 !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.header-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF !important;
}

.header-btn-primary {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF !important;
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.header-btn-primary:hover {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

/* Global Language Selector & Custom Flag Dropdown (/oil-ui-pro) */
.lang-selector-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lang-select {
  background: var(--l512-surface);
  color: var(--l512-ink);
  border: 1px solid var(--l512-line);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}
.lang-select:hover {
  border-color: var(--l512-control);
}
.lang-select:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.l512-custom-lang-wrap {
  position: relative;
  display: inline-block;
}

.l512-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--l512-surface);
  color: var(--l512-ink);
  border: 1px solid var(--l512-line);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.l512-lang-btn:hover {
  border-color: var(--l512-primary);
  background: var(--l512-card-subtle);
}

.l512-lang-btn.open {
  border-color: var(--l512-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.l512-lang-chevron {
  color: var(--l512-ink-3);
  transition: transform 0.2s ease;
}

.l512-lang-btn.open .l512-lang-chevron {
  transform: rotate(180deg);
}

.l512-flag {
  display: inline-block;
  vertical-align: middle;
  border-radius: 2.5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.l512-lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 195px;
  max-height: 380px;
  overflow-y: auto;
  background: var(--l512-surface);
  border: 1px solid var(--l512-line);
  border-radius: 10px;
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.18), 0 4px 12px -2px rgba(0, 0, 0, 0.08);
  padding: 6px;
  z-index: 2000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.l512-lang-menu.open {
  display: block;
  animation: l512LangFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes l512LangFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.l512-lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--l512-ink);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.l512-lang-item:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--l512-primary);
}

.l512-lang-item.active {
  background: rgba(37, 99, 235, 0.12);
  color: var(--l512-primary);
  font-weight: 700;
}

.l512-lang-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.l512-lang-check {
  display: none;
  color: var(--l512-primary);
}

.l512-lang-item.active .l512-lang-check {
  display: inline-flex;
}
.live-tz-clock {
  display: none !important;
}

/* ==========================================================================
   Responsive Nav & Breakpoint Compaction (/oil-ui-pro)
   ========================================================================== */
@media (max-width: 1320px) {
  .header-nav,
  .nav-links,
  .nav-links-box {
    gap: 8px;
  }
  .nav-item,
  .nav-link-desktop {
    font-size: 12.5px;
    padding: 5px 2px;
  }
  .nav-badge,
  .nav-links .badge {
    display: none !important;
  }
}

@media (max-width: 1160px) {
  .header-btn-secondary {
    display: none !important;
  }
  .header-nav,
  .nav-links,
  .nav-links-box {
    gap: 6px;
  }
  .nav-item,
  .nav-link-desktop {
    font-size: 12px;
    padding: 4px 2px;
  }
}

@media (max-width: 1023px) {
  .header-nav,
  .nav-links,
  .nav-links-box {
    display: none !important;
  }
  .header-btn,
  .nav-portal-desktop,
  .nav-docs-desktop {
    display: none !important;
  }
  .mobile-menu-btn {
    display: inline-flex !important;
  }
  .header-inner {
    height: 58px;
    padding: 0 16px;
  }
  [data-i18n="legal_brand_sub"] {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .header-inner {
    height: 54px;
    padding: 0 14px;
  }
  .header-brand,
  .brand {
    font-size: 17px;
    gap: 8px;
  }
  .lang-select,
  .l512-lang-btn {
    padding: 4px 6px;
    font-size: 11.5px;
    max-width: 110px;
  }
}

@media (max-width: 360px) {
  .header-inner {
    height: 52px;
    padding: 0 10px;
  }
  .brand-strip {
    display: none;
  }
}

/* Mobile Hamburger Menu Button */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--l512-surface);
  border: 1px solid var(--l512-line);
  color: var(--l512-ink);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1023px) {
  .mobile-menu-btn {
    display: inline-flex !important;
  }
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
  border-color: var(--l512-primary);
  background: var(--l512-card-subtle);
  outline: none;
}

.mobile-menu-btn.open {
  background: rgba(37, 99, 235, 0.12);
  border-color: var(--l512-primary);
  color: var(--l512-primary);
}

.hamburger-box {
  width: 18px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  transform-origin: center;
}

.mobile-menu-btn.open .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.open .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Navigation Drawer Overlay */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(11, 15, 25, 0.96);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--l512-line);
  position: sticky;
  top: 0;
  background: rgba(11, 15, 25, 0.98);
  z-index: 2;
}

.mobile-drawer-brand {
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #FFFFFF !important;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--l512-primary);
  color: var(--l512-primary) !important;
}

.mobile-drawer-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.mobile-drawer-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-drawer-section-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8 !important;
  margin-bottom: 6px;
  padding-left: 6px;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #F1F5F9 !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.18s ease;
  min-height: 48px;
}

.mobile-drawer-link:hover,
.mobile-drawer-link:active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF !important;
}

.mobile-drawer-link.active {
  background: rgba(37, 99, 235, 0.25) !important;
  border-color: rgba(37, 99, 235, 0.5) !important;
  color: #93C5FD !important;
}

.mobile-drawer-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.mobile-drawer-tag {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.2);
  color: var(--l512-primary);
  border: 1px solid rgba(37, 99, 235, 0.35);
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--l512-line);
  margin-top: auto;
}

.mobile-drawer-actions .btn {
  width: 100%;
  justify-content: center;
  min-height: 46px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
}

/* Edge Margins & Breathing Room Refinements (/oil-ui-pro) */
.legal-main-container {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(18px, 4.5vw, 28px);
}
.legal-card-panel {
  background: var(--l512-surface);
  border: 1px solid var(--l512-line);
  border-radius: var(--l512-radius-panel);
  padding: clamp(20px, 4.5vw, 44px);
  box-shadow: var(--l512-shadow-sm);
}

@media (max-width: 640px) {
  .pricing-table-container {
    padding: 0 18px !important;
  }
}

@media (max-width: 480px) {
  .demo-card {
    padding: 20px 16px !important;
    border-radius: 14px;
    margin-bottom: 28px;
  }
  .price-card {
    padding: 22px 18px !important;
    border-radius: 14px;
  }
  .legal-main-container {
    padding: 24px 18px !important;
  }
  .legal-card-panel {
    padding: 20px 16px !important;
    border-radius: 14px;
  }
}

@media (max-width: 360px) {
  .demo-card {
    padding: 16px 14px !important;
  }
  .price-card {
    padding: 18px 14px !important;
  }
  .legal-main-container {
    padding: 20px 14px !important;
  }
  .legal-card-panel {
    padding: 16px 14px !important;
  }
  .pricing-table-container {
    padding: 0 14px !important;
  }
}

.text-nowrap {
  white-space: nowrap !important;
}

/* ==========================================================================
   Buttons & Touch Targets
   ========================================================================== */
.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--l512-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn-primary,
.nav-links a.btn-primary,
a.btn-primary {
  background-color: var(--l512-primary) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border: 1px solid var(--l512-primary) !important;
  box-shadow: 0 2px 8px var(--l512-primary-glow) !important;
  text-decoration: none !important;
}
.btn-primary:hover,
.nav-links a.btn-primary:hover,
a.btn-primary:hover {
  background-color: var(--l512-primary-hover) !important;
  color: #FFFFFF !important;
  border-color: var(--l512-primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--l512-primary-glow) !important;
  opacity: 1 !important;
}
.btn-primary:active,
.nav-links a.btn-primary:active,
a.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary,
.nav-links a.btn-secondary,
a.btn-secondary {
  background-color: var(--l512-surface) !important;
  color: var(--l512-ink) !important;
  font-weight: 600 !important;
  border: 1px solid var(--l512-line) !important;
  text-decoration: none !important;
}
.btn-secondary:hover,
.nav-links a.btn-secondary:hover,
a.btn-secondary:hover {
  background-color: var(--l512-hover) !important;
  border-color: var(--l512-control) !important;
  color: var(--l512-ink) !important;
  opacity: 1 !important;
}

/* ==========================================================================
   Container & Layout
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4.5vw, 36px);
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px !important;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 14px !important;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: clamp(36px, 8vw, 84px) 0 clamp(28px, 6vw, 64px);
  text-align: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--l512-card-subtle);
  border: 1px solid var(--l512-line);
  border-radius: var(--l512-radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--l512-ink-2);
  margin-bottom: clamp(14px, 3vw, 24px);
  max-width: 95%;
  word-break: break-word;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--l512-success);
  box-shadow: 0 0 8px var(--l512-success);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(26px, 5.2vw, 50px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: clamp(14px, 2.5vw, 22px);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  color: var(--l512-ink);
  word-break: normal;
  overflow-wrap: break-word;
}

.hero-desc {
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.65;
  color: var(--l512-ink-2);
  max-width: 680px;
  margin: 0 auto clamp(20px, 4vw, 32px);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(24px, 5vw, 48px);
}

.hero-actions .btn-sm {
  min-height: 46px;
  padding: 0 24px;
  font-size: 14px;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn-sm {
    width: 100%;
  }
}

/* ==========================================================================
   Live Demo Interactive Card
   ========================================================================== */
.demo-card {
  background: var(--l512-surface);
  border: 1px solid var(--l512-line);
  border-radius: var(--l512-radius-panel);
  box-shadow: var(--l512-shadow-lg);
  padding: clamp(16px, 3.5vw, 32px);
  max-width: 1060px;
  margin: 0 auto clamp(32px, 6vw, 80px);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--l512-line);
  padding-bottom: clamp(12px, 2.5vw, 18px);
  margin-bottom: clamp(16px, 3vw, 24px);
  gap: 12px;
}

.demo-header-info {
  flex: 1;
  min-width: 0;
}

.demo-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-card-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.demo-title {
  font-size: clamp(17px, 2.6vw, 22px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--l512-ink);
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: break-word;
}

.demo-subtitle {
  font-size: 13px;
  color: var(--l512-ink-2);
  margin-top: 4px;
  line-height: 1.45;
}

.demo-status-wrapper {
  flex-shrink: 0;
}

/* Sleek Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--l512-radius-pill);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-idle {
  background: var(--l512-card-subtle);
  border: 1px solid var(--l512-line);
  color: var(--l512-ink-2);
}
.status-idle .status-dot {
  background: var(--l512-ink-3);
}

.status-running {
  background: var(--l512-info-bg);
  border: 1px solid var(--l512-info-border);
  color: var(--l512-primary);
}
.status-running .status-dot {
  background: var(--l512-primary);
  box-shadow: 0 0 8px var(--l512-primary);
  animation: pulse-dot 1.2s infinite ease-in-out;
}

.status-success {
  background: var(--l512-success-bg);
  border: 1px solid var(--l512-success-border);
  color: var(--l512-success);
}
.status-success .status-dot {
  background: var(--l512-success);
  box-shadow: 0 0 8px var(--l512-success);
}

.status-error {
  background: var(--l512-danger-bg);
  border: 1px solid var(--l512-danger-border);
  color: var(--l512-danger);
}
.status-error .status-dot {
  background: var(--l512-danger);
  box-shadow: 0 0 8px var(--l512-danger);
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}

/* ==========================================================================
   Demo Grid Layout (Dual Column / Multi-Device)
   ========================================================================== */
.demo-grid {
  display: grid;
  grid-template-columns: minmax(320px, 390px) 1fr;
  gap: clamp(16px, 3.5vw, 28px);
  align-items: start;
}

@media (max-width: 900px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Biometric Hub Cards (Face vs Passkey)
   ========================================================================== */
.auth-hub-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-hub-card {
  background: var(--l512-card-subtle);
  border: 1px solid var(--l512-line);
  border-radius: var(--l512-radius-md);
  padding: clamp(12px, 2.5vw, 16px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-hub-card:focus-within,
.auth-hub-card:hover {
  border-color: var(--l512-control);
}

.auth-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.auth-hub-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--l512-ink);
  letter-spacing: -0.01em;
}

.auth-hub-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-face {
  background: rgba(59, 130, 246, 0.12);
  color: var(--l512-primary);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-passkey {
  background: var(--l512-accent-emerald-bg);
  color: var(--l512-accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.auth-hub-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Modern Action Tile Button */
.auth-action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border-radius: var(--l512-radius);
  background: var(--l512-surface);
  border: 1px solid var(--l512-line);
  color: var(--l512-ink);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease-in-out;
  position: relative;
  user-select: none;
}

.auth-action-btn:hover {
  border-color: var(--l512-primary);
  background: var(--l512-hover);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.auth-action-btn:active {
  transform: translateY(0);
}

.btn-face-primary {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border-color: #3B82F6;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.btn-face-primary:hover {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  border-color: #60A5FA;
  color: #FFFFFF;
}
.btn-face-primary .auth-btn-title {
  color: #FFFFFF !important;
}
.btn-face-primary .auth-btn-sub {
  color: rgba(255, 255, 255, 0.9) !important;
}
.btn-face-primary .auth-btn-arrow {
  color: rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   Portal Gate Command Center Specific Styling (/oil-ui-pro)
   ========================================================================== */
.portal-gate-wrapper {
  min-height: calc(100vh - 80px);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(24px, 4vw, 48px) 16px;
  width: 100%;
  box-sizing: border-box;
  background-color: #070A12;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.18) 0%, transparent 65%),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
}

.portal-gate-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto !important;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 24px;
  padding: clamp(24px, 5vw, 40px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75), 0 0 50px rgba(37, 99, 235, 0.16);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.portal-brand-shield {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.brand-strip-compact {
  display: flex;
  gap: 3px;
  width: 140px;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}
.brand-strip-compact span {
  flex: 1;
  height: 100%;
}

.shield-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(6, 182, 212, 0.15) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
}

.portal-sec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 20px;
  font-size: 11.5px;
  color: #34D399;
  font-family: var(--l512-mono, monospace);
  font-weight: 600;
  margin-bottom: 12px;
}

.pulse-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-dot-anim 1.8s infinite;
}

@keyframes pulse-dot-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.portal-gate-tabs {
  display: flex;
  background: rgba(30, 41, 59, 0.65);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
  gap: 4px;
}

.portal-gate-tab {
  flex: 1;
  padding: 10px 14px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  color: #94A3B8;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.portal-gate-tab:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
}

.portal-gate-tab.active {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.45);
}

.portal-gate-card .auth-action-btn {
  width: 100%;
  min-height: 72px;
  height: auto !important;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.portal-gate-card .auth-action-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: #38BDF8;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
  transform: translateY(-2px);
}

.portal-gate-card .auth-action-btn.btn-face-primary {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(30, 41, 59, 0.85) 100%);
  border-color: rgba(56, 189, 248, 0.45);
}

.portal-gate-card .auth-action-btn.btn-face-primary:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.38) 0%, rgba(30, 41, 59, 0.98) 100%);
  border-color: #38BDF8;
}

.portal-gate-card .auth-btn-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-wrap-face {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38BDF8;
}

.icon-wrap-passkey {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34D399;
}

.portal-gate-card .auth-btn-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.portal-gate-card .auth-btn-title {
  color: #FFFFFF !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  display: block;
}

.portal-gate-card .auth-btn-sub {
  color: #94A3B8 !important;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 3px;
  display: block;
}

.portal-gate-card .btn-face-primary .auth-btn-sub {
  color: #BAE6FD !important;
}

.portal-gate-card .auth-btn-arrow {
  color: #38BDF8;
  font-size: 18px;
  font-weight: 700;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.portal-gate-card .auth-action-btn:hover .auth-btn-arrow {
  transform: translateX(4px);
}

.portal-gate-tip-box {
  margin-top: 22px;
  padding: 14px 16px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 14px;
  font-size: 12.5px;
  color: #94A3B8;
  line-height: 1.5;
}

.auth-btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--l512-card-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  border: 1px solid var(--l512-line);
}
.btn-face-primary .auth-btn-icon {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
}

.auth-btn-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.auth-btn-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  word-break: normal;
  overflow-wrap: break-word;
}

.auth-btn-sub {
  font-size: 11px;
  color: var(--l512-ink-2);
  line-height: 1.35;
  margin-top: 2px;
}

.auth-btn-arrow {
  font-size: 15px;
  color: var(--l512-ink-3);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.auth-action-btn:hover .auth-btn-arrow {
  transform: translateX(3px);
  color: var(--l512-primary);
}

/* Reset Demo Button */
.btn-reset-demo {
  min-height: 38px;
  width: 100%;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--l512-radius);
  background: transparent;
  border: 1px dashed var(--l512-line);
  color: var(--l512-ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 4px;
}

.btn-reset-demo:hover {
  background: var(--l512-danger-bg);
  border-color: var(--l512-danger-border);
  color: var(--l512-danger);
}

/* ==========================================================================
   Alert / Feedback Banner (Theme-Aware, Zero-Squish)
   ========================================================================== */
.auth-feedback-banner {
  border-radius: var(--l512-radius);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.5;
  display: none;
  animation: banner-slide-in 0.2s ease-out;
  word-break: break-word;
}

@keyframes banner-slide-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-feedback-banner.banner-info {
  background: var(--l512-info-bg);
  border: 1px solid var(--l512-info-border);
  color: var(--l512-primary);
}

.auth-feedback-banner.banner-success {
  background: var(--l512-success-bg);
  border: 1px solid var(--l512-success-border);
  color: var(--l512-success);
}

.auth-feedback-banner.banner-error {
  background: var(--l512-danger-bg);
  border: 1px solid var(--l512-danger-border);
  color: var(--l512-danger);
}

/* ==========================================================================
   Diagnostic Log & Frame Inspector
   ========================================================================== */
.diagnostic-card {
  margin-bottom: 16px;
  padding: 12px 14px;
  background: var(--l512-card-subtle);
  border-radius: var(--l512-radius-md);
  border: 1px solid var(--l512-line);
  font-size: 12px;
}

.diagnostic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.diagnostic-title {
  font-weight: 700;
  color: var(--l512-ink);
  font-size: 12.5px;
}

.btn-refresh-log {
  background: none;
  border: none;
  color: var(--l512-primary);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  transition: opacity 0.15s;
}
.btn-refresh-log:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.diagnostic-log-body {
  color: var(--l512-ink-2);
  font-family: var(--l512-mono);
  font-size: 11.5px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 140px;
  overflow-y: auto;
  line-height: 1.5;
  padding: 8px;
  background: var(--l512-surface);
  border: 1px solid var(--l512-line);
  border-radius: var(--l512-radius-sm);
}

/* Frame Viewer */
.frame-viewer-box {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--l512-line);
  display: none;
}

.frame-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.frame-viewer-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--l512-ink);
}

.btn-close-frame-viewer {
  background: none;
  border: none;
  color: var(--l512-ink-3);
  font-size: 11px;
  cursor: pointer;
}
.btn-close-frame-viewer:hover {
  color: var(--l512-ink);
}

.frame-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  background: var(--l512-surface);
  border: 1px solid var(--l512-line);
  border-radius: var(--l512-radius-sm);
}

.diag-frame-card {
  text-align: center;
  background: var(--l512-card-subtle);
  border: 1px solid var(--l512-line);
  border-radius: 4px;
  padding: 3px;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.15s;
}
.diag-frame-card:hover {
  border-color: var(--l512-primary);
  transform: scale(1.04);
}

/* ==========================================================================
   Signal Path Readout
   ========================================================================== */
.signal-path-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--l512-ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.signal-path {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signal-step {
  background: var(--l512-card-subtle);
  border: 1px solid var(--l512-line);
  border-radius: var(--l512-radius-sm);
  padding: 9px 12px;
}

.signal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--l512-ink);
}

.signal-desc {
  font-size: 11.5px;
  color: var(--l512-ink-2);
  line-height: 1.35;
}

.meter-bar {
  height: 5px;
  background: var(--l512-line);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}

.meter-fill {
  height: 100%;
  background: var(--l512-success);
  border-radius: 3px;
  transition: width 0.35s ease;
}

/* ==========================================================================
   Token Inspector View (Right Column)
   ========================================================================== */
.token-inspector-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.token-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--l512-ink);
}

.token-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-copy-token {
  background: var(--l512-card-subtle);
  border: 1px solid var(--l512-line);
  color: var(--l512-ink-2);
  border-radius: var(--l512-radius-sm);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-copy-token:hover {
  background: var(--l512-hover);
  border-color: var(--l512-primary);
  color: var(--l512-primary);
}

.token-box {
  background: var(--l512-surface);
  border: 1px solid var(--l512-control);
  border-radius: var(--l512-radius);
  padding: 14px;
  font-family: var(--l512-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--l512-ink);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 220px;
  max-height: 360px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.token-security-badge {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--l512-card-subtle);
  border: 1px solid var(--l512-line);
  border-radius: var(--l512-radius);
  font-size: 12.5px;
  color: var(--l512-ink-2);
  line-height: 1.55;
}

/* ==========================================================================
   Feature Pillars
   ========================================================================== */
.features-section {
  padding: clamp(36px, 6vw, 72px) 0;
  border-top: 1px solid var(--l512-line);
}

.section-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--l512-ink);
}

.section-subtitle {
  color: var(--l512-ink-2);
  font-size: 15px;
  margin-top: 8px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(14px, 2.5vw, 24px);
  margin-top: clamp(24px, 4vw, 40px);
}

.feature-card {
  background: var(--l512-surface);
  border: 1px solid var(--l512-line);
  border-radius: var(--l512-radius-panel);
  padding: clamp(16px, 3vw, 24px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--l512-control);
  box-shadow: var(--l512-shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--l512-card-subtle);
  border: 1px solid var(--l512-line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--l512-ink);
}

.feature-desc {
  font-size: 13.5px;
  color: var(--l512-ink-2);
  line-height: 1.55;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-section {
  padding: clamp(36px, 6vw, 72px) 0;
  border-top: 1px solid var(--l512-line);
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 2.5vw, 24px);
  margin-top: clamp(24px, 4vw, 40px);
  text-align: left;
}

.price-card {
  background: var(--l512-surface);
  border: 1px solid var(--l512-line);
  border-radius: var(--l512-radius-panel);
  padding: clamp(18px, 3vw, 28px);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--l512-shadow-md);
}

.price-card.featured {
  border: 1.5px solid var(--l512-primary);
  box-shadow: 0 12px 28px -4px var(--l512-primary-glow);
}

.price-badge {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--l512-primary);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px var(--l512-primary-glow);
}

.price-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--l512-ink);
  margin-bottom: 4px;
}

.price-val {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--l512-ink);
  margin-bottom: 4px;
}

.price-val span {
  font-size: 14px;
  font-weight: 500;
  color: var(--l512-ink-2);
}

.price-meta {
  font-size: 13px;
  color: var(--l512-ink-2);
  margin-bottom: 20px;
}

.price-features {
  list-style: none;
  font-size: 13.5px;
  color: var(--l512-ink-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-features li::before {
  content: "✓";
  color: var(--l512-success);
  font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--l512-line);
  padding: clamp(36px, 5vw, 56px) 0 clamp(24px, 3vw, 32px);
  margin-top: clamp(44px, 6vw, 80px);
  background: var(--l512-surface);
}

.l512-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(140px, 1fr));
  gap: 36px 28px;
  align-items: start;
}

.l512-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.l512-footer-logo-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--l512-ink);
  letter-spacing: -0.02em;
}

.l512-footer-logo-row .brand-name {
  color: var(--l512-ink);
  font-size: 18px;
}

.l512-footer-pqc-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.28);
  letter-spacing: 0.03em;
}

.l512-footer-tagline {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--l512-ink-2);
  max-width: 340px;
  margin: 0;
}

.l512-footer-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.l512-footer-spec-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--l512-ink-2);
  background: var(--l512-bg);
  border: 1px solid var(--l512-line);
  padding: 3px 9px;
  border-radius: 6px;
}

.l512-footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.l512-footer-linkedin,
.l512-footer-x {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.l512-footer-linkedin {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.26);
  color: var(--l512-primary);
}

.l512-footer-linkedin:hover {
  background: rgba(37, 99, 235, 0.14);
  border-color: var(--l512-primary);
  transform: translateY(-1px);
}

.l512-footer-x {
  background: var(--l512-bg);
  border: 1px solid var(--l512-line);
  color: var(--l512-ink);
}

.l512-footer-x:hover {
  border-color: var(--l512-ink);
  transform: translateY(-1px);
}

.l512-footer-col-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--l512-ink);
  margin: 0 0 12px;
}

.l512-footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.l512-footer-col-links a {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--l512-ink-2);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.l512-footer-col-links a:hover {
  color: var(--l512-primary);
  transform: translateX(2px);
}

.l512-footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--l512-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--l512-ink-2);
}

.l512-footer-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--l512-ink);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--l512-bg);
  border: 1px solid var(--l512-line);
  font-size: 12px;
}

.l512-footer-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

@media (max-width: 960px) {
  .l512-footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 20px;
  }

  .l512-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer {
    padding: 32px 0 24px;
    margin-top: 36px;
  }

  .l512-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  .l512-footer-brand {
    grid-column: 1 / -1;
  }

  .l512-footer-col-legal {
    grid-column: 1 / -1;
    padding-top: 6px;
    border-top: 1px dashed var(--l512-line);
  }

  .l512-footer-col-legal .l512-footer-col-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 14px;
  }

  .l512-footer-col-links a {
    min-height: 32px;
  }

  .l512-footer-bottom {
    margin-top: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ==========================================================================
   Modals (Responsive & Theme-Adaptive)
   ========================================================================== */
.modal-backdrop-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
}

.modal-content-card {
  background: var(--l512-surface);
  border: 1px solid var(--l512-line);
  border-radius: var(--l512-radius-panel);
  padding: clamp(20px, 4vw, 28px);
  max-width: 460px;
  width: 100%;
  box-shadow: var(--l512-shadow-lg);
  text-align: center;
  position: relative;
  animation: modal-pop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  margin-bottom: 14px;
}

.modal-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--l512-ink);
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 13.5px;
  color: var(--l512-ink-2);
  margin-bottom: 18px;
  line-height: 1.5;
}

.modal-details-card {
  background: var(--l512-card-subtle);
  border: 1px solid var(--l512-line);
  border-radius: var(--l512-radius-sm);
  padding: 14px;
  font-size: 13px;
  text-align: left;
  margin-bottom: 20px;
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

@media (max-width: 360px) {
  .modal-actions {
    flex-direction: column;
  }
}

/* ==========================================================================
   Ultra-Narrow Viewports & Foldables (Galaxy Z Fold Cover Screen <= 360px)
   ========================================================================== */
@media (max-width: 360px) {
  .hero-title {
    font-size: 22px;
  }
  .header-inner {
    padding: 0 14px;
  }
  .brand {
    font-size: 17px;
  }
  .demo-card {
    padding: 16px 14px !important;
  }
  .auth-action-btn {
    padding: 8px 10px;
    gap: 8px;
  }
  .auth-btn-title {
    font-size: 12.5px;
  }
  .auth-btn-sub {
    font-size: 10px;
  }
  .auth-btn-icon {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
  .signal-head {
    font-size: 11.5px;
  }
  .signal-desc {
    font-size: 10.5px;
  }
  .token-box {
    font-size: 11px;
    padding: 10px;
  }
}

/* ==========================================================================
   Hero Live Global Stats Strip
   ========================================================================== */
.hero-stats-strip {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  margin-bottom: 8px;
  padding: 0 12px;
}

.hero-stats-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 4px;
  column-gap: 8px;
  background: var(--l512-surface);
  border: 1px solid var(--l512-line);
  box-shadow: var(--l512-shadow-sm);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--l512-ink-2);
  line-height: 1.45;
  text-align: center;
}

.hero-stats-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.hero-stats-metrics {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.hero-stat-pair {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.hero-stat-sep {
  color: var(--l512-control, #8C887F);
  opacity: 0.6;
  user-select: none;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--l512-success);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   Portal Biometric Gate Screen
   ========================================================================== */


/* ==========================================================================
   Full Feature Pricing Comparison Page & Matrix (Multi-Device Responsive)
   ========================================================================== */
.pricing-page-hero {
  text-align: center;
  padding: clamp(36px, 6vw, 64px) clamp(16px, 4vw, 24px) 24px;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}

.pricing-page-hero h1 {
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--l512-ink);
  margin-bottom: 12px;
  line-height: 1.25;
}

.pricing-page-hero p {
  font-size: clamp(14px, 2vw, 17px);
  color: var(--l512-ink-2);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
}

.billing-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--l512-card-subtle);
  border: 1px solid var(--l512-line);
  padding: 4px;
  border-radius: var(--l512-radius-pill);
  margin-top: 24px;
}

.billing-toggle-btn {
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--l512-radius-pill);
  border: none;
  background: transparent;
  color: var(--l512-ink-2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.billing-toggle-btn.active {
  background: var(--l512-surface);
  color: var(--l512-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.discount-badge {
  background: var(--l512-success-bg);
  color: var(--l512-success);
  border: 1px solid var(--l512-success-border);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-left: 4px;
}

.pricing-cta-full {
  margin-top: 32px;
  text-align: center;
}

.pricing-table-container {
  max-width: 1240px;
  margin: 36px auto 64px;
  padding: 0 clamp(18px, 4.5vw, 32px);
}

/* Controls Above Matrix: Title, Mobile Plan Tabs & Swipe Indicator */
.pricing-matrix-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.matrix-mobile-tabs {
  display: none;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px;
  background: var(--l512-card-subtle);
  border: 1px solid var(--l512-line);
  border-radius: 999px;
  scrollbar-width: none;
}
.matrix-mobile-tabs::-webkit-scrollbar {
  display: none;
}

.matrix-tab-btn {
  border: none;
  background: transparent;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--l512-ink-2);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.matrix-tab-btn.active {
  background: var(--l512-surface);
  color: var(--l512-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.matrix-swipe-hint {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--l512-primary);
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 6px;
  padding: 6px 12px;
}

@media (max-width: 900px) {
  .matrix-mobile-tabs {
    display: inline-flex;
    width: 100%;
    justify-content: flex-start;
  }
  .matrix-swipe-hint {
    display: inline-flex;
  }
}

/* Scrollable Wrapper with Elevation */
.pricing-table-scroll-wrapper {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--l512-line);
  border-radius: var(--l512-radius-panel);
  box-shadow: var(--l512-shadow-md);
  background: var(--l512-surface);
}

.pricing-matrix {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--l512-surface);
}

.pricing-matrix th,
.pricing-matrix td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--l512-line);
  text-align: center;
  font-size: 13.5px;
  vertical-align: middle;
}

/* Sticky First Column */
.pricing-matrix th:first-child,
.pricing-matrix td:first-child {
  position: sticky;
  left: 0;
  z-index: 12;
  background: var(--l512-surface);
  border-right: 2px solid var(--l512-line);
  box-shadow: 4px 0 12px -3px rgba(0, 0, 0, 0.07);
  text-align: left;
  width: 320px;
  min-width: 250px;
  max-width: 350px;
}

/* Sticky Thead */
.pricing-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--l512-card-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--l512-line);
  padding: 18px 16px;
}

.pricing-matrix thead th:first-child {
  z-index: 28;
  background: var(--l512-surface);
}

/* Column Highlighting */
.pricing-matrix th.col-pro,
.pricing-matrix td.col-pro {
  background: rgba(37, 99, 235, 0.035);
  border-left: 2px solid rgba(37, 99, 235, 0.3);
  border-right: 2px solid rgba(37, 99, 235, 0.3);
}

.pricing-matrix thead th.col-pro {
  background: rgba(37, 99, 235, 0.06);
}

.pricing-matrix tr:hover td {
  background: rgba(0, 0, 0, 0.015);
}
.pricing-matrix tr:hover td:first-child {
  background: var(--l512-card-subtle);
}
.pricing-matrix tr:hover td.col-pro {
  background: rgba(37, 99, 235, 0.065);
}

.matrix-plan-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--l512-ink);
  margin-bottom: 4px;
}

.matrix-plan-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--l512-ink);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.matrix-plan-price span {
  font-size: 12px;
  font-weight: 500;
  color: var(--l512-ink-2);
}

/* Category Headers */
.matrix-category-header td {
  background: var(--l512-card-subtle) !important;
  padding: 0 !important;
  border-top: 1.5px solid var(--l512-line);
}

.matrix-category-sticky-title {
  position: sticky;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--l512-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--l512-card-subtle);
}

.feature-title {
  font-weight: 600;
  color: var(--l512-ink);
  display: block;
  font-size: 14px;
}

.feature-sub {
  font-size: 11.5px;
  color: var(--l512-ink-2);
  display: block;
  margin-top: 2px;
  line-height: 1.4;
}

/* Modern SVG Pill Checkmarks & Dash */
.matrix-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  vertical-align: middle;
}

.matrix-dash {
  color: var(--l512-ink-3);
  font-size: 16px;
  font-weight: 600;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--l512-success);
  font-weight: 600;
  font-size: 13.5px;
}

.cross-pill {
  color: var(--l512-ink-3);
  font-size: 13.5px;
  font-weight: 500;
}

.val-pill {
  font-family: var(--l512-font-mono, monospace);
  font-size: 13px;
  font-weight: 600;
  color: var(--l512-ink);
  background: rgba(0, 0, 0, 0.03);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

.badge-feature-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.badge-tag-pqc {
  background: rgba(139, 92, 246, 0.15);
  color: #7C3AED;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-tag-new {
  background: var(--l512-success-bg);
  color: var(--l512-success);
  border: 1px solid var(--l512-success-border);
}

.badge-tag-lock {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.pricing-faq-section {
  max-width: 900px;
  margin: 0 auto clamp(40px, 6vw, 80px);
  padding: 0 16px;
}

.faq-title {
  text-align: center;
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 800;
  color: var(--l512-ink);
  margin-bottom: 24px;
}

.faq-card {
  background: var(--l512-surface);
  border: 1px solid var(--l512-line);
  border-radius: var(--l512-radius-md);
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-card:hover {
  box-shadow: var(--l512-shadow-sm);
  border-color: rgba(37, 99, 235, 0.3);
}

.faq-q {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--l512-ink);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-a {
  font-size: 13.5px;
  color: var(--l512-ink-2);
  line-height: 1.6;
}

.enterprise-banner {
  max-width: 1200px;
  margin: 0 auto clamp(40px, 6vw, 80px);
  padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--l512-radius-panel);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.enterprise-banner h3 {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 800;
  color: var(--l512-ink);
  margin-bottom: 6px;
}

.enterprise-banner p {
  font-size: 14px;
  color: var(--l512-ink-2);
  max-width: 650px;
  line-height: 1.5;
}

/* ==========================================================================
   Comprehensive System & Developer Guide (/guide.html)
   ========================================================================== */
.guide-hero {
  text-align: center;
  padding: clamp(36px, 6vw, 64px) clamp(16px, 4vw, 24px) 24px;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  border-bottom: 1px solid var(--l512-line);
}

.guide-hero h1 {
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--l512-ink);
  margin-bottom: 12px;
  line-height: 1.25;
}

.guide-hero p {
  font-size: clamp(14px, 2vw, 17px);
  color: var(--l512-ink-2);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
}

.guide-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(20px, 4vw, 40px);
  max-width: 1280px;
  margin: 32px auto 80px;
  padding: 0 clamp(16px, 3vw, 24px);
  align-items: start;
}

@media (max-width: 960px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }
}

.guide-sidebar {
  position: sticky;
  top: 76px;
  background: var(--l512-surface);
  border: 1px solid var(--l512-line);
  border-radius: var(--l512-radius-panel);
  padding: 20px;
  box-shadow: var(--l512-shadow-sm);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.guide-nav-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--l512-primary);
  margin-bottom: 12px;
}

.guide-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.guide-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--l512-radius-md);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--l512-ink-2);
  text-decoration: none;
  transition: all 0.15s ease;
}

.guide-nav-link:hover,
.guide-nav-link.active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--l512-primary);
}

.guide-content {
  min-width: 0;
}

.guide-chapter {
  background: var(--l512-surface);
  border: 1px solid var(--l512-line);
  border-radius: var(--l512-radius-panel);
  padding: clamp(24px, 4vw, 36px);
  margin-bottom: 32px;
  box-shadow: var(--l512-shadow-sm);
  scroll-margin-top: 80px;
}

.guide-chapter-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--l512-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.guide-chapter h2 {
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 800;
  color: var(--l512-ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-chapter h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--l512-ink);
  margin: 24px 0 10px;
}

.guide-chapter p {
  font-size: 14.5px;
  color: var(--l512-ink-2);
  line-height: 1.65;
  margin-bottom: 16px;
}

.guide-step-card {
  background: var(--l512-card-subtle);
  border: 1px solid var(--l512-line);
  border-radius: var(--l512-radius-md);
  padding: 16px 20px;
  margin-bottom: 14px;
}

.guide-step-title {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--l512-ink);
  margin-bottom: 6px;
}

.guide-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--l512-primary);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
}

.guide-code-box {
  background: #0F172A;
  color: #F8FAFC;
  border-radius: var(--l512-radius-md);
  padding: 16px;
  margin: 16px 0;
  overflow-x: auto;
  font-family: var(--l512-font-mono, monospace);
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid #1E293B;
}

.guide-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #334155;
  font-size: 12px;
  color: #94A3B8;
}

.guide-copy-btn {
  background: #1E293B;
  border: 1px solid #475569;
  color: #E2E8F0;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.guide-copy-btn:hover {
  background: #334155;
  color: #FFFFFF;
}

.guide-alert-box {
  background: rgba(37, 99, 235, 0.06);
  border-left: 4px solid var(--l512-primary);
  border-radius: 0 var(--l512-radius-md) var(--l512-radius-md) 0;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 13.5px;
  color: var(--l512-ink);
  line-height: 1.6;
}

/* ==========================================================================
   OIL-UI-PRO: Model Context Protocol (MCP) Specialized Styles
   Interactive Platform Grid, Beam Architecture Diagram, & High-Tech Code Boxes
   ========================================================================== */

.mcp-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0 28px;
}

.mcp-filter-chip {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #475569;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mcp-filter-chip:hover {
  border-color: #2563EB;
  color: #2563EB;
  background: rgba(37, 99, 235, 0.04);
}

.mcp-filter-chip.active {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.mcp-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0 36px;
}

.mcp-platform-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mcp-platform-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563EB, #10B981);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mcp-platform-card:hover {
  transform: translateY(-4px);
  border-color: #93C5FD;
  box-shadow: 0 12px 24px -6px rgba(37, 99, 235, 0.12);
}

.mcp-platform-card:hover::before {
  opacity: 1;
}

.mcp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mcp-card-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mcp-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.mcp-card-name {
  font-weight: 700;
  font-size: 15.5px;
  color: #0F172A;
  line-height: 1.25;
}

.mcp-card-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.08);
  color: #1D4ED8;
  letter-spacing: 0.02em;
}

.mcp-card-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.mcp-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #2563EB;
  transition: gap 0.15s ease;
}

.mcp-platform-card:hover .mcp-card-action {
  gap: 10px;
  color: #1D4ED8;
}

/* ==========================================================================
   Official GitHub MCP Showcase Banner (/oil-ui-pro)
   ========================================================================== */
.mcp-github-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 16px;
  padding: 16px 22px;
  margin: 22px auto 26px;
  max-width: 860px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(56, 189, 248, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  text-align: left;
}

.mcp-github-banner-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.mcp-github-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mcp-github-content {
  flex: 1;
  min-width: 0;
}

.mcp-github-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.mcp-github-repo-name {
  font-family: var(--l512-mono, monospace);
  font-weight: 700;
  font-size: 15px;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.mcp-github-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.mcp-github-pill.pill-open {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.mcp-github-pill.pill-ver {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.mcp-github-caption {
  font-size: 12.5px;
  color: #94A3B8;
  line-height: 1.4;
}

.mcp-github-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-github-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #0284C7;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(56, 189, 248, 0.4);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-github-primary:hover {
  background: #0369A1;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-github-clone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  font-size: 12.5px;
  font-family: var(--l512-mono, monospace);
  padding: 9px 13px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-github-clone:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
  .mcp-github-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 14px 16px !important;
    gap: 12px !important;
    margin: 16px auto 22px !important;
  }
  .mcp-github-banner-main {
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .mcp-github-actions {
    width: 100% !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .btn-github-primary,
  .btn-github-clone {
    width: 100% !important;
    justify-content: center !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
  }
  .mcp-github-caption {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }
}

/* Architecture Beam Diagram */
.mcp-diagram-card {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: clamp(20px, 4vw, 32px);
  margin: 28px 0 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.mcp-diagram-header {
  text-align: center;
  margin-bottom: 24px;
}

.mcp-diagram-title {
  font-size: clamp(18px, 3vw, 23px);
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
}

.mcp-diagram-desc {
  font-size: 14px;
  color: #475569;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.mcp-diagram-flow {
  display: grid;
  grid-template-columns: 1fr auto 1.3fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

@media (max-width: 860px) {
  .mcp-diagram-flow {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mcp-flow-connector {
    transform: rotate(90deg);
    margin: 4px auto;
  }
}

.mcp-flow-node {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.mcp-flow-node.hub {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(16, 185, 129, 0.06));
  border: 2px solid #2563EB;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.12);
}

.mcp-node-icon {
  font-size: 26px;
  margin-bottom: 8px;
}

.mcp-node-title {
  font-weight: 700;
  font-size: 14.5px;
  color: #0F172A;
  margin-bottom: 4px;
}

.mcp-node-desc {
  font-size: 12px;
  color: #64748B;
  line-height: 1.45;
}

.mcp-flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #2563EB;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mcp-connector-line {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, #2563EB, #10B981);
  margin: 4px 0;
  position: relative;
}

/* Enhanced Code Box Header with Mac-style Dots */
.guide-code-header-dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-right: 8px;
}

.guide-code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.guide-code-dot.red { background: #EF4444; }
.guide-code-dot.yellow { background: #F59E0B; }
.guide-code-dot.green { background: #10B981; }

.guide-code-box pre {
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: #334155 #0F172A;
}

.guide-code-box pre::-webkit-scrollbar {
  height: 6px;
}

.guide-code-box pre::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}

kbd {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
  font-family: inherit;
  color: #1E293B;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   OIL-UI-PRO: Official SDKs & Plugins Catalog Styles
   High-Contrast, Frictionless Developer Ergonomics, Responsive Cards
   ========================================================================== */

.sdk-catalog-section {
  margin: 48px 0 24px;
}

.sdk-catalog-header {
  text-align: center;
  margin-bottom: 28px;
}

.sdk-catalog-title {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.sdk-catalog-subtitle {
  font-size: 15px;
  color: #334155;
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.65;
}

.sdk-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0 32px;
}

.sdk-filter-chip {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  color: #334155;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sdk-filter-chip:hover {
  border-color: #2563EB;
  color: #1D4ED8;
  background: rgba(37, 99, 235, 0.05);
}

.sdk-filter-chip.active {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.sdk-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.sdk-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.sdk-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563EB, #10B981);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sdk-card:hover {
  transform: translateY(-4px);
  border-color: #93C5FD;
  box-shadow: 0 14px 30px -8px rgba(37, 99, 235, 0.15);
}

.sdk-card:hover::before {
  opacity: 1;
}

.sdk-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sdk-card-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sdk-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.sdk-card-title {
  font-weight: 800;
  font-size: 16px;
  color: #0F172A;
  line-height: 1.25;
}

.sdk-card-version {
  font-size: 11.5px;
  color: #64748B;
  font-weight: 600;
}

.sdk-card-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.08);
  color: #1D4ED8;
  letter-spacing: 0.02em;
}

.sdk-card-desc {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.6;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.sdk-install-box {
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.sdk-install-box code {
  color: #38BDF8;
  font-family: var(--l512-font-mono, monospace);
  font-size: 12.5px;
  font-weight: 600;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.sdk-install-box code::-webkit-scrollbar {
  display: none;
}

.sdk-copy-btn {
  background: #1E293B;
  border: 1px solid #475569;
  color: #E2E8F0;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.sdk-copy-btn:hover {
  background: #334155;
  color: #FFFFFF;
}

.sdk-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}

.sdk-card-link {
  color: #2563EB;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s ease;
}

.sdk-card-link:hover {
  color: #1D4ED8;
  gap: 8px;
}

/* High Contrast Override for Guide Steps */
.guide-step-card {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 12px !important;
  padding: 18px 22px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

.guide-step-title {
  color: #0F172A !important;
  font-weight: 800 !important;
  font-size: 15.5px !important;
}

.guide-step-card p, .guide-step-card li {
  color: #1E293B !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

.guide-step-card li strong {
  color: #0F172A !important;
}

.guide-chapter {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

.guide-chapter h2, .guide-chapter h3 {
  color: #0F172A !important;
  font-weight: 800 !important;
}

.guide-chapter p {
  color: #334155 !important;
}

/* Dark Mode High-Contrast Rules */
@media (prefers-color-scheme: dark) {
  .guide-chapter, .guide-sidebar {
    background: #0F172A !important;
    border-color: #1E293B !important;
  }
  .guide-chapter h2, .guide-chapter h3, .guide-step-title, .mcp-card-name, .sdk-card-title, .sdk-catalog-title {
    color: #F8FAFC !important;
  }
  .guide-chapter p, .guide-step-card p, .guide-step-card li, .mcp-card-desc, .sdk-card-desc, .sdk-catalog-subtitle {
    color: #E2E8F0 !important;
  }
  .guide-step-card {
    background: #1E293B !important;
    border-color: #334155 !important;
  }
  .guide-step-card li strong {
    color: #FFFFFF !important;
  }
  .mcp-platform-card, .sdk-card {
    background: #1E293B !important;
    border-color: #334155 !important;
  }
  .sdk-filter-chip {
    background: #1E293B !important;
    border-color: #475569 !important;
    color: #F1F5F9 !important;
  }
  .mcp-diagram-card {
    background: #111827 !important;
    border-color: #1F2937 !important;
  }
  .mcp-diagram-title {
    color: #F8FAFC !important;
  }
  .mcp-diagram-desc {
    color: #CBD5E1 !important;
  }
  .mcp-flow-node {
    background: #1F2937 !important;
    border-color: #374151 !important;
  }
  .mcp-node-title {
    color: #F9FAFB !important;
  }
  .mcp-node-desc {
    color: #9CA3AF !important;
  }
}

/* ==========================================================================
   CHAPTER 6: OFFICIAL SDK & FRAMEWORK INTEGRATION GUIDES (HIGH CONTRAST & RESPONSIVE)
   ========================================================================== */
.sdk-guide-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: space-between;
  align-items: center;
}

.sdk-guide-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 480px;
}

.sdk-guide-search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #94A3B8;
  pointer-events: none;
}

.sdk-guide-search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  font-size: 14px;
  font-family: inherit;
  border-radius: 10px;
  border: 1px solid #CBD5E1;
  background-color: #FFFFFF;
  color: #0F172A;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.sdk-guide-search-box input:focus {
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.sdk-guide-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sdk-filter-tab {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sdk-filter-tab:hover {
  border-color: #CBD5E1;
  color: #0F172A;
}

.sdk-filter-tab.active {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #0284C7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.sdk-guides-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sdk-guide-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  scroll-margin-top: 100px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.sdk-guide-item:target,
.sdk-guide-item.sdk-highlight-target {
  scroll-margin-top: 100px;
  border-color: #0284C7 !important;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2), 0 10px 25px rgba(2, 132, 199, 0.1) !important;
  animation: targetPulse 2s ease-out;
}

@keyframes targetPulse {
  0% { transform: scale(1.01); border-color: #0284C7; box-shadow: 0 0 0 8px rgba(2, 132, 199, 0.35); }
  100% { transform: scale(1); }
}

.sdk-guide-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.sdk-guide-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sdk-guide-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(2, 132, 199, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sdk-guide-title {
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 4px 0;
}

.sdk-guide-meta {
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
}

.sdk-guide-badges {
  display: flex;
  gap: 6px;
  align-items: center;
}

.badge-official {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

.badge-pqc {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.sdk-guide-description {
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 20px;
}

.sdk-guide-install-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0F172A;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.sdk-guide-install-bar .install-label {
  color: #94A3B8;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.sdk-guide-install-bar code {
  color: #38BDF8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  flex: 1;
  white-space: pre-wrap;
  background: transparent;
  padding: 0;
}

.sdk-step-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.sdk-step-card .guide-step-title {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 10px;
}

.sdk-guide-footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #E2E8F0;
  font-size: 13px;
}

.sdk-back-top {
  color: #64748B;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.sdk-back-top:hover {
  color: #0F172A;
}

.sdk-hub-link {
  color: #0284C7;
  text-decoration: none;
  font-weight: 600;
  transition: text-decoration 0.15s ease;
}

.sdk-hub-link:hover {
  text-decoration: underline;
}

/* Dark Mode Overrides for Chapter 6 */
@media (prefers-color-scheme: dark) {
  .sdk-guide-item {
    background: #1E293B !important;
    border-color: #334155 !important;
  }
  .sdk-guide-title {
    color: #F8FAFC !important;
  }
  .sdk-guide-description {
    color: #CBD5E1 !important;
  }
  .sdk-step-card {
    background: #0F172A !important;
    border-color: #334155 !important;
  }
  .sdk-step-card .guide-step-title {
    color: #F8FAFC !important;
  }
  .sdk-filter-tab {
    background: #1E293B !important;
    border-color: #475569 !important;
    color: #E2E8F0 !important;
  }
  .sdk-filter-tab.active {
    background: #0284C7 !important;
    color: #FFFFFF !important;
  }
  .sdk-guide-search-box input {
    background: #1E293B !important;
    border-color: #475569 !important;
    color: #F8FAFC !important;
  }
  .sdk-guide-footer-links {
    border-top-color: #334155 !important;
  }
  .sdk-back-top:hover {
    color: #F8FAFC !important;
  }
}

/* ==========================================================================
   Standardized Form & Input Controls System (/oil-ui-pro)
   ========================================================================== */
.form-group {
  margin-bottom: 18px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}
.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.form-input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  min-height: 44px;
  background: #060911;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 10px;
  color: #F8FAFC;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}
.form-input::placeholder {
  color: #64748B;
}
.form-input:focus {
  border-color: #38BDF8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.28), inset 0 2px 4px rgba(0, 0, 0, 0.4);
  background: #0B1120;
}
textarea.form-input {
  min-height: 90px;
  resize: vertical;
  line-height: 1.5;
  font-family: var(--l512-mono, monospace);
  font-size: 13px;
}
select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2338BDF8' 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 14px center;
  padding-right: 40px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
select.form-input option {
  background: #0F172A;
  color: #F8FAFC;
}

/* ==========================================================================
   OIL-UI-PRO: Platform-wide Fluid Multi-Screen Responsive System
   Eliminates all horizontal squeezing, flex collisions, and text clipping
   ========================================================================== */
.portal-alert-banner {
  margin-bottom: 20px;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
  box-sizing: border-box;
  width: 100%;
}
.portal-alert-banner.banner-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.14) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.portal-alert-banner.banner-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
}
.portal-alert-banner.banner-info {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.45);
}
.portal-alert-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}
.portal-alert-icon {
  font-size: 26px;
  line-height: 1.2;
  flex-shrink: 0;
}
.portal-alert-body {
  flex: 1 1 auto;
  min-width: 0;
}
.portal-alert-title {
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.45;
  margin-bottom: 4px;
  word-break: normal;
  overflow-wrap: break-word;
}
.portal-alert-desc {
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.5;
  margin: 0;
  word-break: normal;
  overflow-wrap: break-word;
}
.portal-alert-action {
  flex-shrink: 0;
}

.panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.panel-header-row > div:first-child {
  flex: 1;
  min-width: 0;
}

.biometric-tile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.biometric-tile-header > span:first-child {
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  word-break: normal;
}

.gate-banner-action-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.gate-banner-msg {
  flex: 1;
  min-width: 0;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .portal-alert-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 12px 14px !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }
  .portal-alert-main {
    width: 100% !important;
    flex: none !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .portal-alert-icon {
    font-size: 22px !important;
    line-height: 1.2 !important;
  }
  .portal-alert-body {
    width: 100% !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .portal-alert-title {
    font-size: 13.5px !important;
    line-height: 1.35 !important;
    margin-bottom: 2px !important;
  }
  .portal-alert-desc {
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
  }
  .portal-alert-action {
    width: 100% !important;
    flex: none !important;
    margin-top: 2px !important;
  }
  .portal-alert-action .btn-sm {
    width: 100% !important;
    min-height: 42px !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
    font-size: 13px !important;
    padding: 8px 14px !important;
  }
  .portal-alert-action .tag {
    display: inline-flex !important;
    font-size: 11.5px !important;
    padding: 3px 10px !important;
    align-self: flex-start !important;
  }
  .story-teaser-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px !important;
  }
  .story-teaser-card .btn-sm {
    width: 100% !important;
    min-height: 42px !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
  }
  .sdk-catalog-banner,
  .cross-link-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 16px 14px !important;
  }
  .sdk-catalog-banner .btn-sm,
  .cross-link-banner .btn-sm {
    width: 100% !important;
    min-height: 42px !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
  }
}

@media (max-width: 640px) {
  .portal-page-header {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
  }
  .portal-page-header > div:first-child {
    flex: none !important;
    width: 100% !important;
  }
  .portal-page-title {
    font-size: 18px !important;
    line-height: 1.25 !important;
    margin-bottom: 2px !important;
  }
  .portal-page-sub {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }
  .portal-page-header .btn-sm {
    width: 100% !important;
    min-height: 40px !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
  }
  .panel-header-row {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
  }
  .panel-header-row > div:first-child {
    flex: none !important;
    width: 100% !important;
    min-height: 0 !important;
  }
  .panel-header-row .panel-title {
    font-size: 14.5px !important;
    line-height: 1.3 !important;
    margin-bottom: 2px !important;
  }
  .panel-header-row .panel-desc {
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin-bottom: 2px !important;
  }
  .panel-header-row .tag,
  .panel-header-row .auth-hub-badge {
    align-self: flex-start !important;
    margin-top: 2px !important;
  }
  .panel-card {
    padding: 14px 14px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
  }
  .biometrics-tiles-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .biometrics-tiles-grid > div,
  .biometric-tile {
    padding: 12px 14px !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    border-radius: 10px !important;
  }
  .biometric-tile-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    margin-bottom: 4px !important;
  }
  .biometric-tile-header > span:first-child {
    width: 100% !important;
    font-size: 13.5px !important;
    line-height: 1.3 !important;
  }
  .biometric-tile-header .tag {
    align-self: flex-start !important;
  }
  .biometrics-tiles-grid p {
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin-bottom: 2px !important;
  }
  .biometrics-tiles-grid > div > div:last-child {
    margin-top: 8px !important;
  }
  .telemetry-metrics-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .telemetry-metrics-grid > div {
    padding: 12px 14px !important;
  }
  .gate-banner-action-wrap {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }
  .gate-banner-msg {
    flex: none !important;
    width: 100% !important;
    line-height: 1.35 !important;
    font-size: 12.5px !important;
  }
  .gate-banner-action-wrap .btn-sm {
    width: 100% !important;
    min-height: 40px !important;
    justify-content: center !important;
  }
  .guide-code-header {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .form-label {
    flex-wrap: wrap !important;
    gap: 4px !important;
    font-size: 12.5px !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }
  .form-input {
    font-size: 13px !important;
    padding: 8px 12px !important;
  }
  .portal-content {
    padding: 12px 12px 32px !important;
  }
}
