/* Common Styles for Engineer Technical Deck */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0066FF;
  --secondary: #00D9FF;
  --dark: #0A0E27;
  --darker: #060920;
  --light: #F8FAFC;
  --code-bg: #1E1E1E;
  --success: #00FF88;
  --warning: #FFB800;
  --danger: #FF3366;

  /* Dark theme (default) */
  --bg-main: #0A0E27;
  --bg-page: rgba(17, 24, 39, 0.97);
  --bg-card: rgba(30, 41, 59, 0.6);
  --bg-hover: rgba(0, 102, 255, 0.15);
  --text-primary: #F8FAFC;
  --text-secondary: rgba(248, 250, 252, 0.7);
  --text-muted: rgba(248, 250, 252, 0.5);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 102, 255, 0.4);
  --shadow-color: rgba(0, 0, 0, 0.6);
  --gradient-1: rgba(0, 102, 255, 0.12);
  --gradient-2: rgba(0, 217, 255, 0.08);
  --table-header-bg: rgba(0, 102, 255, 0.2);
  --table-row-hover: rgba(0, 102, 255, 0.1);
  --highlight-bg: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 217, 255, 0.1));
}

/* Light Blue theme */
[data-theme="light"] {
  --bg-main: #E8F4FC;
  --bg-page: rgba(230, 244, 255, 0.97);
  --bg-card: rgba(200, 230, 255, 0.5);
  --bg-hover: rgba(0, 102, 255, 0.15);
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --border-color: rgba(0, 102, 255, 0.2);
  --border-hover: rgba(0, 102, 255, 0.5);
  --shadow-color: rgba(0, 80, 180, 0.15);
  --gradient-1: rgba(0, 140, 255, 0.12);
  --gradient-2: rgba(0, 200, 255, 0.08);
  --table-header-bg: rgba(0, 120, 255, 0.15);
  --table-row-hover: rgba(0, 120, 255, 0.08);
  --highlight-bg: linear-gradient(135deg, rgba(0, 140, 255, 0.15), rgba(0, 200, 255, 0.1));
  --code-bg: #D6EAFF;
  --success: #047857;
  --warning: #B45309;
  --danger: #B91C1C;
  --light: #0F172A;
}

[data-theme="light"] body,
[data-theme="light"] .page,
[data-theme="light"] .content,
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3,
[data-theme="light"] p, [data-theme="light"] li, [data-theme="light"] span,
[data-theme="light"] .title, [data-theme="light"] .subtitle,
[data-theme="light"] .section-title, [data-theme="light"] .card-title,
[data-theme="light"] .stat-value, [data-theme="light"] .stat-label,
[data-theme="light"] .list li, [data-theme="light"] .highlight-title,
[data-theme="light"] td, [data-theme="light"] th {
  color: #0F172A !important;
}

[data-theme="light"] .text-secondary,
[data-theme="light"] .meta span,
[data-theme="light"] small {
  color: #334155 !important;
}

[data-theme="light"] .tag {
  background: rgba(0, 102, 255, 0.15) !important;
  color: #0052CC !important;
}

[data-theme="light"] .badge {
  background: rgba(0, 180, 255, 0.15) !important;
  color: #0077B6 !important;
}

/* Light theme - Headers, Titles, Popups */
[data-theme="light"] .title,
[data-theme="light"] .hero-title,
[data-theme="light"] h1.title,
[data-theme="light"] .header .title,
[data-theme="light"] .page .title {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #0F172A !important;
  background-clip: unset !important;
  color: #0F172A !important;
}

[data-theme="light"] .subtitle,
[data-theme="light"] .header .subtitle,
[data-theme="light"] .page .subtitle {
  color: #334155 !important;
}

[data-theme="light"] .detail-popup-content {
  background: #E8F4FC !important;
  color: #0F172A !important;
}

[data-theme="light"] .detail-popup-title {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #0F172A !important;
  background-clip: unset !important;
  color: #0F172A !important;
}

[data-theme="light"] .detail-popup-header {
  background: rgba(0, 102, 255, 0.1) !important;
  border-color: rgba(0, 102, 255, 0.2) !important;
}

[data-theme="light"] .detail-popup-body,
[data-theme="light"] .detail-popup-body * {
  color: #0F172A !important;
}

[data-theme="light"] .detail-popup-body .detail-section-title {
  color: #0052CC !important;
}

[data-theme="light"] .detail-popup-close {
  color: #0F172A !important;
}

[data-theme="light"] .global-menu-content {
  background: #E8F4FC !important;
}

[data-theme="light"] .global-menu-header h2,
[data-theme="light"] .menu-section-header,
[data-theme="light"] .menu-section-header span,
[data-theme="light"] .menu-link,
[data-theme="light"] .menu-link-title,
[data-theme="light"] .menu-link-subtitle {
  color: #0F172A !important;
}

[data-theme="light"] .menu-description {
  color: #334155 !important;
}

[data-theme="light"] .menu-search {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(0, 102, 255, 0.2) !important;
  color: #0F172A !important;
}

[data-theme="light"] .menu-search::placeholder {
  color: #64748B !important;
}

[data-theme="light"] .highlight {
  background: rgba(0, 120, 255, 0.1) !important;
  border-color: rgba(0, 102, 255, 0.3) !important;
}

[data-theme="light"] .highlight-title,
[data-theme="light"] .highlight li {
  color: #0F172A !important;
}

/* Light theme - AAS Definition & other elements */
[data-theme="light"] .aas-definition,
[data-theme="light"] .aas-definition div,
[data-theme="light"] .aas-definition strong {
  color: #0F172A !important;
}

[data-theme="light"] .card,
[data-theme="light"] .card-title,
[data-theme="light"] .card-content,
[data-theme="light"] .card p,
[data-theme="light"] .card li {
  color: #0F172A !important;
}

[data-theme="light"] .stat,
[data-theme="light"] .stat-value,
[data-theme="light"] .stat-label {
  color: #0F172A !important;
}

[data-theme="light"] .list li,
[data-theme="light"] .list-check li,
[data-theme="light"] ul li,
[data-theme="light"] ol li {
  color: #0F172A !important;
}

[data-theme="light"] strong,
[data-theme="light"] b {
  color: #0F172A !important;
}

[data-theme="light"] a {
  color: #0052CC !important;
}

[data-theme="light"] .nav-button {
  color: #0F172A !important;
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(0, 102, 255, 0.2) !important;
}

[data-theme="light"] .nav-button:hover {
  background: var(--primary) !important;
  color: white !important;
}

[data-theme="light"] .page-number {
  color: #0F172A !important;
}

/* Light theme - Global text color override */
[data-theme="light"],
[data-theme="light"] * {
  --light: #0F172A;
}

[data-theme="light"] .section-title,
[data-theme="light"] h2.section-title {
  color: #0F172A !important;
}

[data-theme="light"] .card-title,
[data-theme="light"] .highlight-title {
  color: #0F172A !important;
}

/* Ensure all gradient texts are visible in light theme */
[data-theme="light"] [style*="background-clip"],
[data-theme="light"] [style*="-webkit-text-fill-color"] {
  -webkit-text-fill-color: #0F172A !important;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

body::before {
  content: '';
  position: fixed;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background:
    radial-gradient(circle at 20% 30%, var(--gradient-1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, var(--gradient-2) 0%, transparent 50%);
  animation: gradient-shift 25s ease infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gradient-shift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-5%, -5%) rotate(2deg); }
}

.container {
  max-width: 95vw;
  height: 100vh;
  margin: 0 auto;
  padding: 25px 50px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page {
  background: var(--bg-page);
  backdrop-filter: blur(25px);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  padding: 24px 45px;
  height: calc(100vh - 50px);
  max-height: calc(100vh - 50px);
  width: 100%;
  box-shadow: 0 30px 60px -15px var(--shadow-color);
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 102, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  border-radius: 28px;
  pointer-events: none;
}

/* Header Styles */
.header {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  padding: 5px 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  color: #9CA3AF;
}

.title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #FFF 0%, #D1D5DB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 14px;
  color: #9CA3AF;
  font-weight: 500;
  line-height: 1.4;
}

.hero-title {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #FFF 0%, var(--primary) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 24px;
  color: #9CA3AF;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 40px;
}

/* Content Styles */
.content {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
}

.content::-webkit-scrollbar {
  width: 6px;
}

.content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 10px;
}

.content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--secondary), var(--primary));
}

.section {
  margin-bottom: 35px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 4px;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 20px;
  margin: 25px 0;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Card Styles */
.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s;
  position: relative;
}

.card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-3px);
  border-color: rgba(0, 102, 255, 0.3);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 217, 255, 0.15));
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFF;
}

.card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #9CA3AF;
}

/* Code Blocks */
.code-block {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-left: 4px solid rgba(59, 130, 246, 0.6);
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #E5E7EB;
  overflow-x: auto;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.code-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.code-block strong {
  color: #60A5FA;
  font-weight: 600;
  display: block;
  margin-top: 12px;
  margin-bottom: 8px;
}

.code-block strong:first-child {
  margin-top: 0;
}

.code-inline {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.2);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--secondary);
}

/* Lists */
.list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.list li {
  font-size: 15px;
  line-height: 1.8;
  color: #D1D5DB;
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
}

.list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
}

.list-check li::before {
  content: '✓';
  color: var(--success);
}

.list-number {
  counter-reset: item;
}

.list-number li::before {
  content: counter(item) '.';
  counter-increment: item;
  color: var(--primary);
  font-weight: 700;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.01);
  font-size: 14px;
}

.table thead {
  background: rgba(0, 102, 255, 0.08);
}

.table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(0, 102, 255, 0.15);
}

.table td {
  padding: 14px 16px;
  color: #D1D5DB;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* AAS Definition Box */
.aas-definition {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 217, 255, 0.05));
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0 20px 0;
  font-size: 14px;
  line-height: 1.7;
  color: #D1D5DB;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.aas-definition::before {
  content: '💡';
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.aas-definition strong {
  color: var(--primary);
  font-weight: 700;
}

/* Highlight Boxes */
.highlight {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(0, 217, 255, 0.04));
  border: 1px solid rgba(0, 102, 255, 0.15);
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  padding: 24px;
  margin: 25px 0;
}

.highlight-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.highlight-success {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(0, 217, 255, 0.04));
  border-color: rgba(0, 255, 136, 0.15);
  border-left-color: var(--success);
}

.highlight-success .highlight-title {
  color: var(--success);
}

.highlight-warning {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.08), rgba(255, 102, 0, 0.04));
  border-color: rgba(255, 184, 0, 0.15);
  border-left-color: var(--warning);
}

.highlight-warning .highlight-title {
  color: var(--warning);
}

/* Architecture Diagram */
.arch-diagram {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 30px;
  margin: 25px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: #D1D5DB;
  overflow-x: auto;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin: 25px 0;
}

.stat {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.12), rgba(0, 217, 255, 0.08));
  border: 1px solid rgba(0, 102, 255, 0.25);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  position: relative;
}

.stat-value {
  font-size: 38px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  color: #9CA3AF;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Flow Diagram */
.flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0;
  padding: 30px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  gap: 15px;
  flex-wrap: wrap;
}

.flow-step {
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.flow-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 217, 255, 0.15));
  border: 2px solid rgba(0, 102, 255, 0.3);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.flow-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #FFF;
}

.flow-desc {
  font-size: 11px;
  color: #6B7280;
  line-height: 1.4;
}

.flow-arrow {
  width: 35px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  position: relative;
  flex-shrink: 0;
}

.flow-arrow::after {
  content: '';
  position: absolute;
  right: -7px;
  top: -4px;
  border-left: 7px solid var(--secondary);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 20px 0;
}

.col {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 24px;
}

/* Labels */
.label {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #9CA3AF;
  margin-right: 6px;
}

.label-primary {
  background: rgba(0, 102, 255, 0.1);
  border-color: rgba(0, 102, 255, 0.2);
  color: var(--primary);
}

.label-success {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.2);
  color: var(--success);
}

.version {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 217, 255, 0.15));
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
}

/* Footer/Navigation */
.footer {
  flex-shrink: 0;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap !important;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.navigation::-webkit-scrollbar {
  display: none;
}

.nav-button {
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 217, 255, 0.1));
  border: 1px solid rgba(0, 102, 255, 0.3);
  border-radius: 6px;
  color: #FFF;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.nav-button:hover {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.25), rgba(0, 217, 255, 0.2));
  border-color: rgba(0, 217, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.page-number {
  font-size: 11px;
  font-weight: 600;
  color: #9CA3AF;
  padding: 0 6px;
  white-space: nowrap !important;
  flex-shrink: 0;
}

/* Navigation Home Button - 목차 */
.nav-home {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 217, 255, 0.1));
  border: 1px solid rgba(0, 255, 136, 0.4);
  color: #00ff88;
}

.nav-home:hover {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 217, 255, 0.2));
  border-color: rgba(0, 255, 136, 0.7);
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

[data-theme="light"] .nav-home {
  background: rgba(0, 200, 100, 0.15) !important;
  border-color: rgba(0, 150, 80, 0.4) !important;
  color: #047857 !important;
}

[data-theme="light"] .nav-home:hover {
  background: rgba(0, 200, 100, 0.3) !important;
  color: white !important;
}

/* Navigation responsive - 작은 화면에서도 한 줄 유지 */
@media (max-width: 768px) {
  .navigation {
    gap: 8px;
    justify-content: flex-start;
    padding: 0 10px;
  }
  .nav-button {
    padding: 8px 12px;
    font-size: 12px;
  }
  .page-number {
    padding: 0 8px;
    font-size: 12px;
  }
}

.logo {
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-num {
  font-size: 13px;
  font-weight: 600;
  color: #6B7280;
}

.nav {
  position: fixed;
  top: 76px;
  right: 24px;
  display: flex;
  gap: 12px;
  z-index: 1000;
}

.btn {
  padding: 12px 26px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 10px;
  color: #FFF;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -8px rgba(0, 102, 255, 0.5);
}

.btn.disabled {
  background: rgba(255, 255, 255, 0.04);
  color: #4B5563;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

/* Text Utilities */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-muted { color: #6B7280; }
.text-center { text-align: center; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }

/* Index Page */
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.index-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  display: block;
}

.index-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-3px);
  border-color: rgba(0, 102, 255, 0.3);
}

.index-card-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.index-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #FFF;
}

.index-card-desc {
  font-size: 14px;
  color: #9CA3AF;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 20px; }
  .page { padding: 30px 25px; }
  .title { font-size: 32px; }
  .hero-title { font-size: 42px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); margin: 10px 0; }
}


.menu-toggle.active {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  box-shadow: 0 10px 20px -8px rgba(0, 217, 255, 0.6);
}

.global-menu {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 22, 0.92);
  backdrop-filter: blur(10px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  z-index: 2500;
}

.global-menu.open {
  display: flex;
}

.global-menu-panel {
  width: min(1200px, 100%);
  background: rgba(13, 18, 35, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  max-height: calc(100vh - 80px);
  overflow: hidden;
}

.global-menu-header {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.global-menu-header h2 {
  font-size: 22px;
  font-weight: 700;
}

.menu-count {
  font-size: 12px;
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  padding: 4px 12px;
}

.menu-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--light);
  font-size: 22px;
  cursor: pointer;
}

.menu-description {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.menu-search {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 14px;
  margin-bottom: 18px;
}

.menu-search::placeholder {
  color: rgba(226, 232, 240, 0.6);
}

.global-menu-sections {
  overflow-y: auto;
  max-height: calc(100vh - 210px);
  padding-right: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.menu-section {
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(0, 217, 255, 0.02));
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.menu-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s;
}

.menu-section:hover {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 217, 255, 0.05));
  border-color: rgba(0, 102, 255, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

.menu-section:hover::before {
  opacity: 1;
}

.menu-section.expanded {
  border-color: rgba(0, 217, 255, 0.8);
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.12), rgba(0, 217, 255, 0.08));
}

.menu-section.expanded::before {
  opacity: 1;
}

.menu-section-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.menu-section-header span:first-child {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e2e8f0;
  font-weight: 700;
}

.menu-section-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #94a3b8;
  padding: 4px 10px;
  background: rgba(0, 102, 255, 0.15);
  border-radius: 8px;
  border: 1px solid rgba(0, 102, 255, 0.3);
  align-self: flex-start;
}

.menu-section-range::before {
  content: '📄';
  font-size: 14px;
}

.menu-links {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  max-height: 400px;
  overflow-y: auto;
}

.menu-section.expanded .menu-links {
  display: flex;
}

.menu-link {
  display: flex;
  gap: 14px;
  text-decoration: none;
  color: var(--light);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.menu-link:hover {
  border-color: rgba(0, 102, 255, 0.4);
  background: rgba(0, 102, 255, 0.08);
  transform: translateX(2px);
}

.menu-link.active {
  border-color: rgba(0, 217, 255, 0.8);
  background: rgba(0, 217, 255, 0.12);
}

.menu-link-num {
  font-weight: 800;
  font-size: 14px;
  color: var(--secondary);
  min-width: 32px;
}

.menu-link-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.menu-link-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

.menu-link.hidden {
  display: none;
}

.menu-section-hidden {
  display: none;
}

@media (max-width: 960px) {
  .menu-toggle {
    top: 16px;
    right: 16px;
  }
  .global-menu-panel {
    padding: 20px;
    border-radius: 20px;
  }
  .global-menu-sections {
    max-height: calc(100vh - 180px);
  }
}

body.menu-open {
  overflow: hidden;
}

/* Detail Popup Modal */
.detail-popup {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 22, 0.95);
  backdrop-filter: blur(15px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  padding: 40px;
  animation: fadeIn 0.3s ease;
}

.detail-popup.open {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.detail-popup-content {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(10, 14, 27, 0.98));
  border: 2px solid rgba(0, 102, 255, 0.3);
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-popup-header {
  padding: 30px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(0, 217, 255, 0.04));
}

.detail-popup-title {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #FFF, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.detail-popup-close {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFF;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-popup-close:hover {
  background: rgba(255, 51, 102, 0.2);
  transform: rotate(90deg);
}

.detail-popup-body {
  padding: 40px;
  overflow-y: auto;
  max-height: calc(85vh - 120px);
}

.detail-popup-body::-webkit-scrollbar {
  width: 6px;
}

.detail-popup-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.detail-popup-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 10px;
}

.detail-section {
  margin-bottom: 32px;
}

.detail-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 4px;
}

.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.detail-list li {
  font-size: 15px;
  color: #D1D5DB;
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
  line-height: 1.7;
}

.detail-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.detail-table th,
.detail-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-table th {
  background: rgba(124, 58, 237, 0.2);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-table td {
  color: #D1D5DB;
  line-height: 1.6;
}

.detail-table td strong {
  color: #00f0ff;
  font-weight: 600;
}

.detail-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.detail-table tbody tr:last-child td {
  border-bottom: none;
}

.detail-diagram {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: #D1D5DB;
  overflow-x: auto;
  margin: 20px 0;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.detail-stat {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 217, 255, 0.1));
  border: 1px solid rgba(0, 102, 255, 0.25);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}

.detail-stat-value {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.detail-stat-label {
  font-size: 12px;
  color: #9CA3AF;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Clickable indicators */
.clickable {
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.card.clickable,
.table td.clickable {
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.card.clickable::after,
.table td.clickable::after {
  content: '🔍';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
}

.card.clickable:hover,
.table td.clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 102, 255, 0.5);
  background: rgba(0, 102, 255, 0.08);
}

.card.clickable:hover::after,
.table td.clickable:hover::after {
  opacity: 1;
}

/* List item clickable */
li.clickable {
  cursor: pointer;
  padding: 8px 12px;
  margin: 4px 0;
  border-radius: 8px;
  transition: all 0.3s;
  border: 1px solid transparent;
}

li.clickable:hover {
  background: rgba(0, 102, 255, 0.08);
  border-color: rgba(0, 102, 255, 0.3);
  transform: translateX(4px);
}

li.clickable::after {
  content: ' 🔍';
  font-size: 0.8em;
  opacity: 0;
  transition: opacity 0.3s;
}

li.clickable:hover::after {
  opacity: 1;
}

/* Section title clickable */
.section-title.clickable,
h2.clickable {
  cursor: pointer;
  padding: 8px 16px;
  margin: -8px -16px;
  border-radius: 8px;
  transition: all 0.3s;
}

.section-title.clickable:hover,
h2.clickable:hover {
  background: rgba(0, 102, 255, 0.08);
}

.section-title.clickable::after,
h2.clickable::after {
  content: ' 🔍';
  font-size: 0.7em;
  opacity: 0;
  transition: opacity 0.3s;
}

.section-title.clickable:hover::after,
h2.clickable:hover::after {
  opacity: 1;
}

/* Section-specific background colors */
/* Section A - Blue */
body.section-a::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 102, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 240, 255, 0.08) 0%, transparent 50%);
}

/* Section B - Purple */
body.section-b::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.08) 0%, transparent 50%);
}

/* Section C - Cyan */
body.section-c::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(8, 145, 178, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
}

/* Section D - Red */
body.section-d::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(239, 68, 68, 0.08) 0%, transparent 50%);
}

/* Section E - Orange */
body.section-e::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(234, 88, 12, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(249, 115, 22, 0.08) 0%, transparent 50%);
}

/* Section F - Green */
body.section-f::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(5, 150, 105, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
}

/* Section-specific page borders and accents */
body.section-a .page {
  border-color: rgba(0, 102, 255, 0.15);
}

body.section-b .page {
  border-color: rgba(124, 58, 237, 0.15);
}

body.section-c .page {
  border-color: rgba(8, 145, 178, 0.15);
}

body.section-d .page {
  border-color: rgba(220, 38, 38, 0.15);
}

body.section-e .page {
  border-color: rgba(234, 88, 12, 0.15);
}

body.section-f .page {
  border-color: rgba(5, 150, 105, 0.15);
}

/* Section-specific grid pattern */
body.section-a .page::before {
  background-image:
    linear-gradient(rgba(0, 102, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.02) 1px, transparent 1px);
}

body.section-b .page::before {
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.02) 1px, transparent 1px);
}

body.section-c .page::before {
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.02) 1px, transparent 1px);
}

body.section-d .page::before {
  background-image:
    linear-gradient(rgba(220, 38, 38, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 38, 38, 0.02) 1px, transparent 1px);
}

body.section-e .page::before {
  background-image:
    linear-gradient(rgba(234, 88, 12, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 88, 12, 0.02) 1px, transparent 1px);
}

body.section-f .page::before {
  background-image:
    linear-gradient(rgba(5, 150, 105, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 150, 105, 0.02) 1px, transparent 1px);
}

/* Theme Toggle Button - positioned at top right */
.theme-toggle {
  position: fixed;
  top: 18px;
  right: 100px;
  z-index: 1000;
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3px;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: all 0.3s ease;
}

.theme-toggle button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle button:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.theme-toggle button.active {
  background: var(--primary);
  color: white;
}

/* Light theme specific overrides */
[data-theme="light"] .card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="light"] .stat {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="light"] .highlight {
  background: var(--highlight-bg);
  border-color: var(--border-color);
}

[data-theme="light"] .table th {
  background: var(--table-header-bg);
}

[data-theme="light"] .table tr:hover {
  background: var(--table-row-hover);
}

[data-theme="light"] .tag,
[data-theme="light"] .badge {
  background: rgba(0, 102, 255, 0.1);
  color: var(--primary);
}

[data-theme="light"] .nav-button {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="light"] .nav-button:hover {
  background: var(--primary);
  color: white;
}

[data-theme="light"] code {
  background: var(--code-bg);
  color: var(--text-primary);
}

[data-theme="light"] .detail-popup-content {
  background: var(--bg-page);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="light"] .global-menu-overlay {
  background: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .global-menu-content {
  background: var(--bg-page);
  border-color: var(--border-color);
}

[data-theme="light"] .menu-section {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="light"] .menu-link {
  color: var(--text-primary);
}

[data-theme="light"] .menu-link:hover {
  background: var(--bg-hover);
}

[data-theme="light"] .mermaid {
  background: var(--bg-card) !important;
}

/* Language Switcher - positioned at top right */
.lang-switcher {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 4px 12px var(--shadow-color);
}

.lang-switcher button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-switcher button:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.lang-switcher button.active {
  background: var(--primary);
  color: white;
}

/* Hide Google Translate banner */
.goog-te-banner-frame,
.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* Language Toast */
.lang-toast {
  position: fixed;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10000;
  white-space: nowrap;
}

.lang-toast.show {
  opacity: 1;
  transform: translateY(0) !important;
}

/* ============================================================
   AAS UNIFIED COMPONENT SYSTEM - FHD Layout (1920x1080)
   ============================================================ */

/* Section Theme CSS Variables */
.section-a { --section-color: #00f0ff; --section-glow: rgba(0,240,255,0.3); }
.section-b { --section-color: #00ff88; --section-glow: rgba(0,255,136,0.3); }
.section-c { --section-color: #ff8800; --section-glow: rgba(255,136,0,0.3); }
.section-d { --section-color: #ff4444; --section-glow: rgba(255,68,68,0.3); }
.section-e { --section-color: #a78bfa; --section-glow: rgba(167,139,250,0.3); }
.section-f { --section-color: #ff69b4; --section-glow: rgba(255,105,180,0.3); }
.section-g { --section-color: #ffd700; --section-glow: rgba(255,215,0,0.3); }

/* AAS Card Component */
.aas-card {
  background: rgba(10, 15, 30, 0.8);
  border: 1px solid var(--section-color, #00f0ff);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px var(--section-glow, rgba(0,240,255,0.2));
  transition: all 0.3s ease;
}

.aas-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 40px var(--section-glow, rgba(0,240,255,0.4));
}

/* AAS Feature List */
.aas-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aas-feature-list li {
  padding: 12px 0;
  padding-left: 30px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #D1D5DB;
  font-size: 15px;
  line-height: 1.6;
}

.aas-feature-list li:last-child {
  border-bottom: none;
}

.aas-feature-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--section-color, #00f0ff);
  font-weight: bold;
}

/* AAS Stat Badge */
.aas-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--section-color, #00f0ff);
  border-radius: 20px;
  font-size: 14px;
  color: #fff;
}

/* AAS Glow Text */
.aas-glow-text {
  background: linear-gradient(135deg, var(--section-color, #00f0ff), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px var(--section-glow, rgba(0,240,255,0.5)));
}

/* AAS Neural Card */
.aas-neural-card {
  background: linear-gradient(135deg, rgba(10, 15, 30, 0.9), rgba(20, 30, 50, 0.8));
  border: 1px solid var(--section-color, #00f0ff);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(15px);
}

.aas-neural-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--section-color, #00f0ff), transparent);
  animation: scan-line 3s linear infinite;
}

/* AAS Metric Card */
.aas-metric-card {
  background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(10,20,40,0.6));
  border: 1px solid var(--section-color, #00f0ff);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.aas-metric-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--section-glow, rgba(0,240,255,0.1)), transparent);
  pointer-events: none;
}

.aas-metric-value {
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--section-color, #00f0ff), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.aas-metric-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

/* ============================================================
   FHD GRID SYSTEM (1920x1080)
   ============================================================ */

/* FHD Page Container */
.fhd-page {
  width: 100%;
  max-width: 1920px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 40px;
}

.fhd-content {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  max-width: 1840px;
  margin: 0 auto;
}

/* Grid Column Spans */
.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* FHD Typography */
.fhd-h1 { font-size: 48px; line-height: 1.2; font-weight: 900; }
.fhd-h2 { font-size: 36px; line-height: 1.3; font-weight: 800; }
.fhd-h3 { font-size: 28px; line-height: 1.4; font-weight: 700; }
.fhd-h4 { font-size: 22px; line-height: 1.4; font-weight: 600; }
.fhd-body { font-size: 18px; line-height: 1.6; }
.fhd-small { font-size: 14px; line-height: 1.5; }

/* Three.js Canvas - Standard */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   UNIFIED ANIMATIONS
   ============================================================ */

@keyframes aas-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes aas-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes aas-glow-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--section-glow, rgba(0,240,255,0.3)); }
  50% { box-shadow: 0 0 40px var(--section-glow, rgba(0,240,255,0.5)); }
}

@keyframes aas-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes scan-line {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Animation Utility Classes */
.anim-pulse { animation: aas-pulse 2s ease-in-out infinite; }
.anim-glow { animation: aas-glow-pulse 2s ease-in-out infinite; }
.anim-float { animation: aas-float 3s ease-in-out infinite; }
.anim-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}
.anim-rotate { animation: rotate 10s linear infinite; }
.anim-fadeInUp { animation: fadeInUp 0.6s ease-out; }
.anim-fadeInScale { animation: fadeInScale 0.5s ease-out; }

/* ============================================================
   AAS COMPARISON TABLE
   ============================================================ */

.aas-comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(10, 15, 30, 0.6);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--section-color, #00f0ff);
}

.aas-comparison-table thead {
  background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(20,30,50,0.8));
}

.aas-comparison-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  color: var(--section-color, #00f0ff);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--section-color, #00f0ff);
}

.aas-comparison-table td {
  padding: 14px 20px;
  color: #D1D5DB;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.aas-comparison-table tbody tr:hover {
  background: rgba(0,240,255,0.05);
}

.aas-comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   AAS HERO SECTION
   ============================================================ */

.aas-hero {
  text-align: center;
  padding: 60px 40px;
  position: relative;
}

.aas-hero-title {
  font-size: 56px;
  font-weight: 900;
  background: linear-gradient(135deg, #fff, var(--section-color, #00f0ff), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  line-height: 1.2;
}

.aas-hero-subtitle {
  font-size: 24px;
  color: rgba(255,255,255,0.7);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.aas-hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* ============================================================
   AAS SECTION CARDS
   ============================================================ */

.aas-section-card {
  background: linear-gradient(135deg, rgba(10, 15, 30, 0.9), rgba(20, 30, 50, 0.8));
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 30px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.aas-section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, var(--section-color, #00f0ff), transparent, var(--section-color, #00f0ff));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.aas-section-card:hover::before {
  opacity: 1;
}

.aas-section-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px var(--section-glow, rgba(0,240,255,0.3));
}

/* ============================================================
   AAS NAVIGATION HUB
   ============================================================ */

.aas-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.aas-nav-item {
  background: rgba(10, 15, 30, 0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 4px solid var(--section-color, #00f0ff);
  border-radius: 12px;
  padding: 20px 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: block;
}

.aas-nav-item:hover {
  background: rgba(20, 30, 50, 0.9);
  border-color: var(--section-color, #00f0ff);
  transform: translateX(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.aas-nav-item-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.aas-nav-item-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.aas-nav-item-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--section-color, #00f0ff);
  color: #000;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ============================================================
   RESPONSIVE FHD ADJUSTMENTS
   ============================================================ */

@media (max-width: 1920px) {
  .fhd-content {
    padding: 0 20px;
  }
}

@media (max-width: 1440px) {
  .col-6 { grid-column: span 12; }
  .col-4 { grid-column: span 6; }
  .col-3 { grid-column: span 6; }
}

@media (max-width: 1024px) {
  .col-4, .col-3 { grid-column: span 12; }
  .aas-hero-title { font-size: 42px; }
  .fhd-h1 { font-size: 36px; }
  .fhd-h2 { font-size: 28px; }
}

@media (max-width: 768px) {
  .fhd-page { padding: 15px 20px; }
  .fhd-content { gap: 16px; }
  .aas-hero-title { font-size: 32px; }
  .aas-hero-stats { gap: 20px; }
  .aas-nav-grid { grid-template-columns: 1fr; }
}
