/* ═══════════════════════════════════════════════════════════════════════════════ */
/* OPTIO SERVICES - Corporate Console v37                                           */
/* LCARS Frame: Modular Content Loading                                             */
/* ═══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* COLOR THEMES - Uncomment ONE theme at a time                                     */
/* ═══════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────── */
/* THEME 1: OPTIO GOLD (Default)                                                    */
/* ─────────────────────────────────────────────────────────────────────────────── */
:root {
  /* Primary */
  --gold: #D4AF37;
  --optio-navy: #1E3A5F;
  --gold-light: #E8C84A;
   --optio-light-navy: #8B5CF6;
  /* Backgrounds */
  --navy: #0A1628;
  --navy-light: #142238;
  --navy-dark: #060D18;
  /* Buttons */
  --grey: #6d748c;
  --grey-light: #9ea5ba;
  --grey-dark: #52596e;
  /* Semantic */
  --success: #4A9B6E;
  --error: #C45454;
  --white: #FFFFFF;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* THEME 2: STARFLEET BLUE                                                          */
/* ─────────────────────────────────────────────────────────────────────────────── 
:root {
  --gold: #4A90B8;
  --gold-light: #6BB3D9;
  --navy: #0A1525;
  --navy-light: #12243A;
  --navy-dark: #050D15;
  --grey: #5A7A8C;
  --grey-light: #7A9AAC;
  --grey-dark: #4A6A7C;
  --success: #4A9B6E;
  --error: #C45454;
  --white: #FFFFFF;
}
*/

/* ─────────────────────────────────────────────────────────────────────────────── */
/* THEME 3: COMMAND RED                                                             */
/* ─────────────────────────────────────────────────────────────────────────────── 
:root {
  --gold: #C45454;
  --gold-light: #D97878;
  --navy: #1A0A0A;
  --navy-light: #2A1515;
  --navy-dark: #0D0505;
  --grey: #8C6A6A;
  --grey-light: #AC8A8A;
  --grey-dark: #6C4A4A;
  --success: #4A9B6E;
  --error: #C45454;
  --white: #FFFFFF;
}
*/

/* ─────────────────────────────────────────────────────────────────────────────── */
/* THEME 4: SCIENCE PURPLE                                                          */
/* ─────────────────────────────────────────────────────────────────────────────── 
:root {
  --gold: #7B5AA5;
  --gold-light: #9B7AC5;
  --navy: #120A1A;
  --navy-light: #1E1428;
  --navy-dark: #08050D;
  --grey: #6A5A7C;
  --grey-light: #8A7A9C;
  --grey-dark: #4A3A5C;
  --success: #4A9B6E;
  --error: #C45454;
  --white: #FFFFFF;
}
*/

/* ─────────────────────────────────────────────────────────────────────────────── */
/* THEME 5: OPERATIONS ORANGE                                                       */
/* ─────────────────────────────────────────────────────────────────────────────── 
:root {
  --gold: #C97B2A;
  --gold-light: #E89B4A;
  --navy: #1A1008;
  --navy-light: #2A1A10;
  --navy-dark: #0D0804;
  --grey: #8C7A5A;
  --grey-light: #AC9A7A;
  --grey-dark: #6C5A3A;
  --success: #4A9B6E;
  --error: #C45454;
  --white: #FFFFFF;
}
*/

/* ─────────────────────────────────────────────────────────────────────────────── */
/* THEME 6: LCARS CLASSIC (TNG Beige/Salmon)                                        */
/* ─────────────────────────────────────────────────────────────────────────────── 
:root {
  --gold: #F1B864;
  --gold-light: #FFCC99;
  --navy: #000000;
  --navy-light: #1A1A2E;
  --navy-dark: #000000;
  --grey: #CC99CC;
  --grey-light: #DDAADD;
  --grey-dark: #9966AA;
  --success: #99CCFF;
  --error: #CC6666;
  --white: #FFFFFF;
}
*/

/* ─────────────────────────────────────────────────────────────────────────────── */
/* THEME 7: BORG GREEN                                                              */
/* ─────────────────────────────────────────────────────────────────────────────── 
:root {
  --gold: #00CC66;
  --gold-light: #33FF99;
  --navy: #0A1A0F;
  --navy-light: #102A18;
  --navy-dark: #050D08;
  --grey: #4A6A5A;
  --grey-light: #6A8A7A;
  --grey-dark: #3A5A4A;
  --success: #00CC66;
  --error: #CC3333;
  --white: #CCFFCC;
}
*/

/* ─────────────────────────────────────────────────────────────────────────────── */
/* THEME 8: MIDNIGHT SILVER                                                         */
/* ─────────────────────────────────────────────────────────────────────────────── 
:root {
  --gold: #A8B4C4;
  --gold-light: #C8D4E4;
  --navy: #0F1318;
  --navy-light: #1A2028;
  --navy-dark: #080A0D;
  --grey: #5A6270;
  --grey-light: #7A8290;
  --grey-dark: #4A5260;
  --success: #4A9B6E;
  --error: #C45454;
  --white: #FFFFFF;
}
*/

/* ─────────────────────────────────────────────────────────────────────────────── */
/* TYPOGRAPHY & DIMENSIONS                                                          */
/* ─────────────────────────────────────────────────────────────────────────────── */

:root {
  /* Typography */
  --font-display: 'Exo 2', 'Segoe UI', Tahoma, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* Dimensions - Collapsible Sidebar */
  --sidebar-collapsed: 18px;
  --sidebar-expanded: 80px;
  --mbs0-width: 148px;
  --mbs0-expanded: 200px;
  
  /* Dimensions - Collapsible Header */
  --header-banner-height: 170px;      /* Image banner - collapses */
  --header-banner-collapsed: 60px;    /* Banner on console hover */
  --header-nav-height: 30px;          /* MBS buttons row - stays same */
  --header-height: 200px;             /* Total: banner + nav */
  --header-collapsed: 90px;           /* Total on console hover */
  
  /* Footer & Elbows (Expandable) */
  --footer-height: 20px;              /* Collapsed - minimal status bar */
  --footer-expanded-height: 180px;    /* Expanded - Site Map Schematic */
  --elbow-radius: 40px;
  
  /* Animation */
  --transition-speed: 0.3s;
  --transition-delay: 0.15s;      /* PRE-delay: pause before collapsing/expanding */
  --transition-post-delay: 0.7s;  /* POST-delay: pause before returning to default */
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* RESET                                                                            */
/* ─────────────────────────────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* SCROLLBAR THEME                                                                  */
/* ─────────────────────────────────────────────────────────────────────────────── */

* {
  scrollbar-width: thin;
  scrollbar-color: var(--grey-dark) var(--navy-dark);
  /* scrollbar-gutter: stable; */
}

/* Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--navy-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--grey-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--grey);
}

/* ─────────────────────────────────────────────────────────────────────────────── */

input[type="radio"] {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* MAIN LAYOUT - 6 Row Grid with Collapsible Header & Sidebar                       */
/* Row 1: Header Banner (image area - collapses on console hover)                   */
/* Row 2: Header Nav (MBS buttons)                                                  */
/* Row 3: Top Elbow (② CONCAVE)                                                    */
/* Row 4: Main (Sidebar | Console)                                                  */
/* Row 5: Bottom Elbow (③ CONCAVE)                                                 */
/* Row 6: Footer                                                                    */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.console-container {
  display: grid;
  grid-template-columns: var(--sidebar-collapsed) 1fr;
  grid-template-rows: 
    var(--header-banner-height) 
    var(--header-nav-height) 
    var(--elbow-radius) 
    1fr 
    var(--elbow-radius) 
    auto;  /* Footer row - auto allows expansion */
  height: 100vh;
  background: var(--optio-navy);
  /* POST-DELAY: When leaving work area, wait before expanding back */
  transition: grid-template-rows var(--transition-speed) ease var(--transition-post-delay),
              grid-template-columns var(--transition-speed) ease var(--transition-post-delay);
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* COLLAPSE HEADER when hovering WORK AREA (everything below banner)                */
/* This prevents the "sea-sick" effect of constant expand/collapse                  */
/* ─────────────────────────────────────────────────────────────────────────────── */

.console-container:has(.header-row:hover),
.console-container:has(.elbow-top-gold:hover),
.console-container:has(.elbow-top-console:hover),
.console-container:has(.sidebar:hover),
.console-container:has(.console-viewport:hover),
.console-container:has(.elbow-bottom-gold:hover),
.console-container:has(.elbow-bottom-console:hover),
.console-container:has(.footer-row:hover) {
  grid-template-rows: 
    var(--header-banner-collapsed) 
    var(--header-nav-height) 
    var(--elbow-radius) 
    1fr 
    var(--elbow-radius) 
    auto;  /* Footer row - auto allows expansion */
  /* PRE-DELAY: When entering work area, quick collapse (0s = instant) */
  transition: grid-template-rows var(--transition-speed) ease var(--transition-delay),
              grid-template-columns var(--transition-speed) ease var(--transition-delay);
}

/* EXPAND SIDEBAR when hovering sidebar only */
.console-container:has(.sidebar:hover) {
  grid-template-columns: var(--sidebar-expanded) 1fr;
  /* PRE-DELAY for sidebar expand */
  transition: grid-template-rows var(--transition-speed) ease var(--transition-delay),
              grid-template-columns var(--transition-speed) ease var(--transition-delay);
}

/* EXPAND SIDEBAR when MBS is clicked (JS-triggered) */
.console-container.sidebar-expanded {
  grid-template-columns: var(--sidebar-expanded) 1fr;
  /* PRE-DELAY for sidebar expand */
  transition: grid-template-rows var(--transition-speed) ease var(--transition-delay),
              grid-template-columns var(--transition-speed) ease var(--transition-delay);
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* ROW 1: HEADER BANNER (Image Area)                                                */
/* ─────────────────────────────────────────────────────────────────────────────── */

.header-banner {
  grid-column: 1 / -1;
  grid-row: 1;
  background: var(--optio-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top-left-radius: var(--elbow-radius);
  transition: all var(--transition-speed) ease;
}

/* Placeholder for image - replace with actual image */
.header-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--optio-navy) 0%, var(--optio-light-navy) 100%);
  transition: all var(--transition-speed) ease;
}

.header-banner-content img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: all var(--transition-speed) ease;
}

/* Banner placeholder text (remove when you add image) */
.banner-placeholder {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--navy);
  letter-spacing: 0.3em;
  opacity: 0.4;
  transition: all var(--transition-speed) ease;
}

/* Shrink banner text when hovering work area */
.console-container:has(.header-row:hover) .banner-placeholder,
.console-container:has(.elbow-top-gold:hover) .banner-placeholder,
.console-container:has(.elbow-top-console:hover) .banner-placeholder,
.console-container:has(.sidebar:hover) .banner-placeholder,
.console-container:has(.console-viewport:hover) .banner-placeholder,
.console-container:has(.elbow-bottom-gold:hover) .banner-placeholder,
.console-container:has(.elbow-bottom-console:hover) .banner-placeholder,
.console-container:has(.footer-row:hover) .banner-placeholder {
  font-size: 1rem;
  opacity: 0.3;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* ROW 2: HEADER NAV (MBS Buttons)                                                  */
/* ─────────────────────────────────────────────────────────────────────────────── */

.header-row {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  background: var(--optio-navy);
}

/* MBS0 Logo - ① CONVEX top-left (now on nav row, not banner) */
.mbs0-logo {
  width: var(--mbs0-width);
  min-width: var(--mbs0-width);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--optio-navy);
  cursor: pointer;
  /* POST-DELAY: wait before collapsing back */
  transition: width var(--transition-speed) ease var(--transition-post-delay), 
              min-width var(--transition-speed) ease var(--transition-post-delay),
              background 0.15s ease;
  overflow: hidden;
}

/* MBS0 inactive state - when another service is selected */
.mbs0-logo.inactive {
  background: var(--grey);
}

.mbs0-logo.inactive:hover {
  background: var(--grey-light);
}

/* Expand MBS0 when sidebar hovers - PRE-DELAY */
/* Expand MBS0 when sidebar hovers OR when JS-triggered */
.console-container:has(.sidebar:hover) .mbs0-logo,
.console-container.sidebar-expanded .mbs0-logo {
  width: var(--mbs0-expanded);
  min-width: var(--mbs0-expanded);
  transition: width var(--transition-speed) ease var(--transition-delay), 
              min-width var(--transition-speed) ease var(--transition-delay),
              background 0.15s ease;
}

.mbs0-logo:hover {
  background: var(--gold-light);
}

.mbs0-logo.inactive:hover {
  background: var(--grey-light);
}

.logo-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* MBS Navigation Buttons - Compact 30px height */
.mbs-nav {
  display: flex;
}

.mbs-button {
  min-width: 120px;
  padding: 0 12px;
  background: var(--grey);
  border: none;
  border-left: 2px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mbs-button:hover {
  background: var(--grey-light);
}

.mbs-button .sp-mbs {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.mbs-button:has(input:checked) {
  background: var(--gold-light);
}

/* Status */
.mbs-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 15px;
  margin-left: auto;
  background: var(--gold);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

.status-text {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.1em;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* ROW 3: TOP ELBOW - ② CONCAVE                                                    */
/* Gold on left (under MBS0), Dark console area curves in with rounded top-left    */
/* ─────────────────────────────────────────────────────────────────────────────── */

.elbow-top-gold {
  grid-column: 1;
  grid-row: 3;
  background: var(--optio-navy);
  transition: all var(--transition-speed) ease;
}

.elbow-top-console {
  grid-column: 2;
  grid-row: 3;
  background: var(--navy-dark);
  border-top-left-radius: var(--elbow-radius);
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* ROW 4: MAIN CONTENT - Collapsible Sidebar                                        */
/* ─────────────────────────────────────────────────────────────────────────────── */

/* SIDEBAR (Column 1) - Collapsed by default, expands on hover */
.sidebar {
  grid-column: 1;
  grid-row: 4;
  background: var(--grey);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* POST-DELAY: sidebar element waits before collapsing back */
  transition: all var(--transition-speed) ease var(--transition-post-delay);
}

/* Override transition when hovering OR JS-triggered - PRE-DELAY for expand */
.console-container:has(.sidebar:hover) .sidebar,
.console-container.sidebar-expanded .sidebar {
  transition: all var(--transition-speed) ease var(--transition-delay);
}

.lts-nav, .ltc-nav {
  display: flex;
  flex-direction: column;
}

.lts-button, .ltc-button {
  height: 50px;
  background: var(--grey);
  border: none;
  border-bottom: 1px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
  overflow: hidden;
  position: relative;
}

/* Collapsed state indicator - small bar on left */
.lts-button::before, .ltc-button::before {
  content: '';
  position: absolute;
  left: 8px;
  width: 4px;
  height: 20px;
  background: var(--navy);
  border-radius: 2px;
  opacity: 0.4;
  transition: opacity var(--transition-speed) ease;
}

/* Disabled navigation items */
.lts-button.disabled,
.ltc-button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.lts-button.disabled .sp-lts,
.ltc-button.disabled .sp-ltc {
  color: #4A5568 !important;
}


/* Hide indicator when expanded (hover OR JS-triggered) */
.console-container:has(.sidebar:hover) .lts-button::before,
.console-container:has(.sidebar:hover) .ltc-button::before,
.console-container.sidebar-expanded .lts-button::before,
.console-container.sidebar-expanded .ltc-button::before {
  opacity: 0;
}

/* Active button indicator brighter */
.lts-button:has(input:checked)::before,
.ltc-button:has(input:checked)::before {
  background: var(--gold);
  opacity: 1;
}

.lts-button:hover, .ltc-button:hover {
  background: var(--grey-light);
}

/* Text hidden in collapsed state */
.lts-button .sp-lts, .ltc-button .sp-ltc {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
  white-space: nowrap;
}

/* Text visible when expanded (hover OR JS-triggered) */
.console-container:has(.sidebar:hover) .lts-button .sp-lts,
.console-container:has(.sidebar:hover) .ltc-button .sp-ltc,
.console-container.sidebar-expanded .lts-button .sp-lts,
.console-container.sidebar-expanded .ltc-button .sp-ltc {
  opacity: 1;
  transform: translateX(0);
}

.lts-button:has(input:checked), .ltc-button:has(input:checked) {
  background: var(--gold);
}

.sidebar-divider {
  height: 30px;
  background: var(--grey);
  border-top: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
}

.sidebar-fill {
  flex: 1;
  background: var(--grey);
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* SIDEBAR STICKY TOGGLE - LCARS Style Lock Button                                 */
/* ─────────────────────────────────────────────────────────────────────────────── */

.sidebar-sticky-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  margin-top: auto;
  background: var(--navy);
  border: none;
  border-top: 1px solid var(--navy-dark);
  cursor: pointer;
  transition: background 0.15s ease;
}

.sidebar-sticky-toggle:hover {
  background: var(--navy-light);
}

.sticky-indicator {
  width: 12px;
  height: 12px;
  background: var(--grey);
  border-radius: 50%;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-sticky-toggle.active .sticky-indicator {
  background: var(--optio-navy);
  box-shadow: 0 0 8px var(--optio-navy);
}

.sticky-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--grey);
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.sidebar-sticky-toggle.active .sticky-label {
  color: var(--optio-navy);
}

/* Show label when sidebar expanded */
.console-container:has(.sidebar:hover) .sticky-label,
.console-container.sidebar-expanded .sticky-label,
.console-container.sidebar-sticky .sticky-label {
  opacity: 1;
  transform: translateX(0);
}

/* SIDEBAR STICKY STATE - Keep sidebar expanded */
.console-container.sidebar-sticky {
  grid-template-columns: var(--sidebar-expanded) 1fr;
}

.console-container.sidebar-sticky .mbs0-logo {
  width: var(--mbs0-expanded);
  min-width: var(--mbs0-expanded);
}

.console-container.sidebar-sticky .footer-left {
  width: var(--mbs0-expanded);
  min-width: var(--mbs0-expanded);
}

.console-container.sidebar-sticky .lts-button::before,
.console-container.sidebar-sticky .ltc-button::before {
  opacity: 0;
}

.console-container.sidebar-sticky .lts-button .sp-lts,
.console-container.sidebar-sticky .ltc-button .sp-ltc {
  opacity: 1;
  transform: translateX(0);
}

/* CONSOLE (Column 2) */
.console-viewport {
  grid-column: 2;
  grid-row: 4;
  background: var(--navy-dark);
  padding: 20px;
  overflow-y: auto;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* ROW 5: BOTTOM ELBOW - ③ CONCAVE                                                 */
/* Gold on left (above footer), Dark console area curves out with rounded bot-left */
/* ─────────────────────────────────────────────────────────────────────────────── */

.elbow-bottom-gold {
  grid-column: 1;
  grid-row: 5;
  background: var(--optio-navy);
  transition: all var(--transition-speed) ease;
}

.elbow-bottom-console {
  grid-column: 2;
  grid-row: 5;
  background: var(--navy-dark);
  border-bottom-left-radius: var(--elbow-radius);
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* ROW 6: FOOTER (Expandable - Engineering Lower Decks)                             */
/* ─────────────────────────────────────────────────────────────────────────────── */

.footer-row {
  grid-column: 1 / -1;
  grid-row: 6;
  display: flex;
  flex-direction: column;
  background: var(--optio-navy);
  height: var(--footer-height);
  overflow: hidden;
  transition: height var(--transition-speed) ease var(--transition-post-delay);
}

/* Expand footer on hover */
.footer-row:hover {
  height: var(--footer-expanded-height, 120px);
  transition: height var(--transition-speed) ease var(--transition-delay);
}

/* Footer top bar wrapper */
.footer-top {
  display: flex;
  min-height: var(--footer-height);
}

/* Footer left block - ④ CONVEX bottom-left */
.footer-left {
  width: var(--mbs0-width);
  min-width: var(--mbs0-width);
  height: 100%;
  background: var(--optio-navy);
  border-bottom-left-radius: var(--elbow-radius);
  /* POST-DELAY: wait before collapsing back */
  transition: width var(--transition-speed) ease var(--transition-post-delay), 
              min-width var(--transition-speed) ease var(--transition-post-delay);
}

/* Expand footer left when sidebar hovers OR JS-triggered - PRE-DELAY */
.console-container:has(.sidebar:hover) .footer-left,
.console-container.sidebar-expanded .footer-left,
.console-container.sidebar-sticky .footer-left {
  width: var(--mbs0-expanded);
  min-width: var(--mbs0-expanded);
  transition: width var(--transition-speed) ease var(--transition-delay), 
              min-width var(--transition-speed) ease var(--transition-delay);
}

/* Footer bar (collapsed view) */
.footer-bar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  background: var(--optio-navy);
  min-height: var(--footer-height);
}

.footer-bar-left,
.footer-bar-right {
  flex: 1;
}

.footer-bar-right {
  text-align: right;
}

.footer-bar-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-legal-link {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-legal-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-legal-divider {
  font-size: 0.5rem;
  color: var(--gold);
  opacity: 0.5;
}

.frame-status, .frame-version {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* Hide status text in collapsed footer, but keep legal links visible */
.footer-row:not(:hover) .frame-status,
.footer-row:not(:hover) .frame-version {
  opacity: 0;
}

/* Footer expanded content */
.footer-expanded {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--navy-dark);
  opacity: 0;
  overflow-y: auto;
  transition: opacity var(--transition-speed) ease;
}

.footer-row:hover .footer-expanded {
  opacity: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* SITEMAP SCHEMATIC                                                               */
/* ─────────────────────────────────────────────────────────────────────────────── */

.sitemap-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 12px 20px;
  overflow-y: auto;
  max-height: calc(var(--footer-expanded-height) - 50px);
}

.sitemap-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 280px;
}

.sitemap-mbs {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
  padding: 3px 8px;
  background: var(--navy);
  border-left: 2px solid var(--optio-navy);
  cursor: pointer;
  transition: background 0.15s ease;
}

.sitemap-mbs:hover {
  background: var(--navy-light);
}

.sitemap-columns {
  display: flex;
  gap: 15px;
}

.sitemap-lts {
  display: flex;
  flex-direction: column;
  min-width: 85px;
}

.lts-header {
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--grey-light);
  letter-spacing: 0.08em;
  padding: 2px 0;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--grey-dark);
  cursor: pointer;
  transition: color 0.15s ease;
}

.lts-header:hover {
  color: var(--optio-navy);
}

.ltc-item {
  font-size: 0.5rem;
  font-weight: 400;
  color: var(--grey);
  font-family: var(--font-mono);
  padding: 1px 0;
  cursor: pointer;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.ltc-item:hover {
  color: var(--gold-light);
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* FOOTER LEGAL BAR                                                                */
/* ─────────────────────────────────────────────────────────────────────────────── */

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px;
  background: var(--navy);
  border-top: 1px solid var(--grey-dark);
  margin-top: auto;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-link {
  font-size: 0.5rem;
  font-weight: 500;
  color: var(--grey);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.15s ease;
}

.legal-link:hover {
  color: var(--gold);
}

.legal-divider {
  font-size: 0.5rem;
  color: var(--grey-dark);
}

.legal-copyright {
  font-size: 0.45rem;
  color: var(--grey);
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* CONTENT CONTAINER - Dynamic Loading                                             */
/* ─────────────────────────────────────────────────────────────────────────────── */

#content-container {
  min-height: 200px;
}

/* Loading Indicator */
.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  color: var(--grey);
}

.loading-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 1s ease-in-out infinite;
}

.loading-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Placeholder for missing content */
.placeholder-path {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--grey);
  margin-top: 10px;
}

.placeholder-hint {
  font-size: 0.75rem;
  color: var(--gold);
  margin-top: 5px;
}

.panel-status.error {
  background: var(--error);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--grey-dark);
}

.panel-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.panel-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--success);
  color: var(--white);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--navy-light);
  border-radius: 6px;
  padding: 15px;
  border: 1px solid var(--grey-dark);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--grey-light);
  letter-spacing: 0.1em;
  margin-top: 5px;
  text-transform: uppercase;
}

.stat-bar {
  height: 4px;
  border-radius: 2px;
  margin-top: 10px;
  background: var(--gold);
}

.stat-bar.green { background: var(--success); }

/* Activity List */
.activity-section {
  background: var(--navy-light);
  border-radius: 6px;
  padding: 15px;
  border: 1px solid var(--grey-dark);
}

.activity-section h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--navy);
  border-radius: 4px;
  border-left: 3px solid var(--success);
}

.activity-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--grey-light);
  min-width: 80px;
}

.activity-text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--white);
}

.activity-id {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--success);
  font-weight: 600;
}

.placeholder-text {
  color: var(--grey-light);
  font-size: 0.95rem;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* PRODUCT CARDS                                                                    */
/* ─────────────────────────────────────────────────────────────────────────────── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.product-card {
  background: var(--navy-light);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--grey-dark);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.product-card.coming-soon {
  opacity: 0.7;
  border-style: dashed;
}

.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.product-icon {
  font-size: 1.5rem;
  color: var(--gold);
}

.product-icon.trust { color: #D4AF37; }
.product-icon.guard { color: #4A9B6E; }
.product-icon.vault { color: #4A90B8; }
.product-icon.auth { color: #9B6E4A; }
.product-icon.con { color: #B84A90; }   /* OptioCon - Magenta */
.product-icon.wire { color: #4AB890; }  /* OptioWire - Teal */
.product-icon.shield { color: var(--grey); }  /* OptioShield - Coming Soon */
.product-icon.soon { color: var(--grey); }

.product-badge {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--gold);
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.08em;
}

.product-badge.soon {
  background: var(--grey);
}

.product-meta {
  margin-bottom: 12px;
}

.patent-badge {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.product-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.product-description {
  font-size: 0.85rem;
  color: var(--grey-light);
  line-height: 1.5;
  margin-bottom: 15px;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.product-features li {
  font-size: 0.75rem;
  color: var(--grey);
  padding: 4px 0;
  padding-left: 15px;
  position: relative;
}

.product-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.product-actions {
  display: flex;
  gap: 10px;
}

.btn-primary, .btn-secondary, .btn-notify {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-light);
}

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

.btn-secondary:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn-notify {
  background: var(--grey-dark);
  color: var(--grey-light);
}

.btn-notify:hover {
  background: var(--grey);
  color: var(--white);
}

.catalog-cta {
  text-align: center;
  padding: 15px;
  background: var(--navy);
  border-radius: 6px;
}

.catalog-cta p {
  font-size: 0.85rem;
  color: var(--grey-light);
}

.catalog-cta a {
  color: var(--gold);
  text-decoration: none;
}

.catalog-cta a:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* ABOUT PAGE                                                                       */
/* ─────────────────────────────────────────────────────────────────────────────── */

.about-hero {
  background: var(--navy-light);
  border-left: 3px solid var(--gold);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 0 6px 6px 0;
}

.about-hero h3 {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.about-hero .lead {
  font-size: 1rem;
  color: var(--white);
  line-height: 1.6;
}

.about-section {
  margin-bottom: 25px;
}

.about-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.about-section p {
  font-size: 0.9rem;
  color: var(--grey-light);
  line-height: 1.6;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.approach-item {
  background: var(--navy);
  padding: 15px;
  border-radius: 6px;
  text-align: center;
}

.approach-icon {
  font-size: 1.5rem;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.approach-item h5 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 5px;
}

.approach-item p {
  font-size: 0.75rem;
  color: var(--grey);
}

.about-cta {
  background: var(--navy);
  padding: 15px;
  border-radius: 6px;
  text-align: center;
}

.about-cta p {
  font-size: 0.85rem;
  color: var(--grey-light);
}

.about-cta a {
  color: var(--gold);
  text-decoration: none;
}

.about-cta a:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* WELCOME MESSAGE                                                                  */
/* ─────────────────────────────────────────────────────────────────────────────── */

.welcome-message {
  background: var(--navy-light);
  border-radius: 6px;
  padding: 20px;
  margin-top: 20px;
  border: 1px solid var(--grey-dark);
}

.welcome-message h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.welcome-message p {
  font-size: 0.9rem;
  color: var(--grey-light);
  line-height: 1.6;
  margin-bottom: 10px;
}

.welcome-message a {
  color: var(--gold);
  text-decoration: none;
}

.welcome-message a:hover {
  text-decoration: underline;
}

.activity-id.online {
  color: var(--success);
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* HERO SECTION                                                                     */
/* ─────────────────────────────────────────────────────────────────────────────── */

.hero-section {
  text-align: center;
  padding: 30px 20px;
  margin-bottom: 25px;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
  border-radius: 8px;
  border: 1px solid var(--grey-dark);
}

.hero-tagline {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--grey-light);
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* PILLARS / THREE COLUMN GRID                                                      */
/* ─────────────────────────────────────────────────────────────────────────────── */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.pillar-card {
  background: var(--navy-light);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  border: 1px solid var(--grey-dark);
  transition: border-color 0.2s ease;
}

.pillar-card:hover {
  border-color: var(--gold);
}

.pillar-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.pillar-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.pillar-card p {
  font-size: 0.8rem;
  color: var(--grey-light);
  line-height: 1.5;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* WELCOME / STATUS SECTIONS                                                        */
/* ─────────────────────────────────────────────────────────────────────────────── */

.welcome-section {
  margin-bottom: 25px;
}

.welcome-section h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.welcome-section p {
  font-size: 0.9rem;
  color: var(--grey-light);
  line-height: 1.6;
}

.status-section {
  background: var(--navy-light);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  border: 1px solid var(--grey-dark);
}

.status-section h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.status-section > p {
  font-size: 0.85rem;
  color: var(--grey-light);
  line-height: 1.6;
  margin-bottom: 15px;
}

.status-items {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-item .status-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--grey);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-item .status-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-mono);
}

.welcome-cta {
  text-align: center;
  padding: 15px;
  background: var(--navy);
  border-radius: 6px;
}

.welcome-cta p {
  font-size: 0.85rem;
  color: var(--grey-light);
  margin: 0;
}

.welcome-cta a {
  color: var(--gold);
  text-decoration: none;
}

.welcome-cta a:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* THE OPTIO WAY GRID                                                               */
/* ─────────────────────────────────────────────────────────────────────────────── */

.optio-way-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.way-item {
  background: var(--navy);
  padding: 20px;
  border-radius: 6px;
  border-left: 3px solid var(--gold);
}

.way-icon {
  font-size: 1.5rem;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.way-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.way-item p {
  font-size: 0.8rem;
  color: var(--grey-light);
  line-height: 1.5;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* LOCATIONS GRID                                                                   */
/* ─────────────────────────────────────────────────────────────────────────────── */

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.location-card {
  background: var(--navy);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--grey-dark);
}

.location-card.hq {
  border-color: var(--gold);
}

.location-badge {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.location-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.location-function {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
}

.location-desc {
  font-size: 0.8rem;
  color: var(--grey-light);
  line-height: 1.5;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* CONTACT PAGE                                                                     */
/* ─────────────────────────────────────────────────────────────────────────────── */

.contact-hero {
  margin-bottom: 25px;
}

.contact-hero h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
}

.contact-hero p {
  font-size: 0.9rem;
  color: var(--grey-light);
  line-height: 1.6;
}

.contact-section {
  margin-bottom: 25px;
}

.contact-section h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--navy-light);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--grey-dark);
}

.contact-card.primary {
  border-color: var(--gold);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--gold);
  width: 40px;
  text-align: center;
}

.contact-email {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

.contact-note {
  font-size: 0.75rem;
  color: var(--grey);
  margin-top: 4px;
}

.contact-location {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* SOCIAL MEDIA GRID                                                                */
/* ─────────────────────────────────────────────────────────────────────────────── */

.social-intro {
  font-size: 0.85rem;
  color: var(--grey-light);
  margin-bottom: 15px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  border-radius: 8px;
  padding: 15px 10px;
  border: 1px solid var(--grey-dark);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.social-icon.linkedin { background: #0A66C2; }
.social-icon.x { background: #000; }
.social-icon.youtube { background: #FF0000; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon.tiktok { background: #000; }

.social-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
}

.social-handle {
  font-size: 0.65rem;
  color: var(--grey);
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* NEWSLETTER SECTION                                                               */
/* ─────────────────────────────────────────────────────────────────────────────── */

.newsletter-section {
  background: var(--navy-light);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--grey-dark);
  text-align: center;
}

.newsletter-section h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.newsletter-section > p {
  font-size: 0.85rem;
  color: var(--grey-light);
  margin-bottom: 15px;
}

.newsletter-cta {
  font-size: 0.85rem;
  color: var(--grey-light);
}

.newsletter-cta a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.newsletter-cta a:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* COMING SOON PAGE                                                                 */
/* ─────────────────────────────────────────────────────────────────────────────── */

.panel-status.building {
  background: var(--grey-dark);
}

.coming-soon-container {
  text-align: center;
  padding: 40px 20px;
}

.coming-soon-icon {
  font-size: 4rem;
  color: var(--grey);
  margin-bottom: 20px;
  opacity: 0.5;
}

.coming-soon-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 15px;
}

.coming-soon-message {
  font-size: 0.9rem;
  color: var(--grey-light);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 25px;
}

.coming-soon-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.btn-notify-me {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-notify-me:hover {
  background: var(--gold-light);
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 6px;
  border: 1px solid var(--gold);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-back-home:hover {
  background: var(--gold);
  color: var(--navy);
}

.coming-soon-social {
  border-top: 1px solid var(--grey-dark);
  padding-top: 20px;
}

.coming-soon-social p {
  font-size: 0.75rem;
  color: var(--grey);
  margin-bottom: 8px;
}

.social-links-inline {
  font-size: 0.8rem;
}

.social-links-inline a {
  color: var(--gold);
  text-decoration: none;
}

.social-links-inline a:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* DOCUMENTATION INDEX                                                              */
/* ─────────────────────────────────────────────────────────────────────────────── */

.docs-intro {
  margin-bottom: 25px;
}

.docs-intro p {
  font-size: 0.9rem;
  color: var(--grey-light);
  line-height: 1.6;
}

.docs-section {
  margin-bottom: 30px;
}

.docs-section h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.docs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: var(--navy-light);
  border-radius: 6px;
  border: 1px solid var(--grey-dark);
  text-decoration: none;
  transition: all 0.2s ease;
}

.doc-item:hover {
  border-color: var(--gold);
  background: var(--navy);
}

.doc-icon {
  font-size: 1.2rem;
}

.doc-info {
  flex: 1;
}

.doc-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.doc-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--grey);
}

.doc-arrow {
  color: var(--gold);
  font-size: 1.1rem;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.docs-product-card {
  background: var(--navy-light);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--grey-dark);
}

.docs-product-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.docs-product-icon {
  font-size: 1.3rem;
  color: var(--gold);
}

.docs-product-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.docs-product-card > p {
  font-size: 0.75rem;
  color: var(--grey);
  margin-bottom: 12px;
}

.docs-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.docs-links a {
  font-size: 0.8rem;
  color: var(--gold);
  text-decoration: none;
  padding: 4px 0;
}

.docs-links a:hover {
  text-decoration: underline;
}

.docs-links a::before {
  content: '→ ';
  opacity: 0.5;
}

.docs-help {
  background: var(--navy);
  border-radius: 6px;
  padding: 15px;
  text-align: center;
}

.docs-help p {
  font-size: 0.85rem;
  color: var(--grey-light);
  margin: 0;
}

.docs-help a {
  color: var(--gold);
  text-decoration: none;
}

.docs-help a:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* DOCUMENTATION PAGES                                                              */
/* ─────────────────────────────────────────────────────────────────────────────── */

.doc-breadcrumb {
  font-size: 0.75rem;
  color: var(--grey);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--grey-dark);
}

.doc-breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

.doc-breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--grey-dark);
}

.doc-content {
  max-width: 800px;
}

.doc-content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 15px;
}

.doc-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 30px;
  margin-bottom: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--grey-dark);
}

.doc-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.doc-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 20px;
  margin-bottom: 10px;
}

.doc-content p {
  font-size: 0.9rem;
  color: var(--grey-light);
  line-height: 1.7;
  margin-bottom: 15px;
}

.doc-lead {
  font-size: 1rem !important;
  color: var(--white) !important;
  border-left: 3px solid var(--gold);
  padding-left: 15px;
  margin-bottom: 25px !important;
}

.doc-content a {
  color: var(--gold);
  text-decoration: none;
}

.doc-content a:hover {
  text-decoration: underline;
}

/* Documentation Callout */
.doc-callout {
  background: var(--navy-light);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid var(--grey-dark);
}

.callout-item {
  font-size: 0.85rem;
  color: var(--grey-light);
  line-height: 1.6;
  padding: 8px 0;
  border-bottom: 1px solid var(--grey-dark);
}

.callout-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.callout-item:first-child {
  padding-top: 0;
}

.callout-item strong {
  color: var(--gold);
}

/* Info/Warning Boxes */
.doc-info, .doc-warning {
  font-size: 0.85rem;
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
  line-height: 1.6;
}

.doc-info {
  background: rgba(74, 144, 184, 0.1);
  border-left: 3px solid #4A90B8;
  color: var(--grey-light);
}

.doc-info strong {
  color: #4A90B8;
}

.doc-warning {
  background: rgba(212, 175, 55, 0.1);
  border-left: 3px solid var(--gold);
  color: var(--grey-light);
}

.doc-warning strong {
  color: var(--gold);
}

/* Code Blocks */
.doc-code {
  background: var(--navy);
  border-radius: 6px;
  padding: 15px;
  margin: 20px 0;
  border: 1px solid var(--grey-dark);
  overflow-x: auto;
}

.doc-code pre {
  margin: 0;
}

.doc-code code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--grey-light);
  line-height: 1.5;
}

/* Tables */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.85rem;
}

.doc-table th {
  text-align: left;
  padding: 12px;
  background: var(--navy-light);
  color: var(--gold);
  font-weight: 600;
  border-bottom: 2px solid var(--grey-dark);
}

.doc-table td {
  padding: 12px;
  color: var(--grey-light);
  border-bottom: 1px solid var(--grey-dark);
}

.doc-table tr:hover td {
  background: var(--navy-light);
}

.doc-table td strong {
  color: var(--white);
}

/* Lists */
.doc-list {
  margin: 15px 0;
  padding-left: 20px;
}

.doc-list li {
  font-size: 0.9rem;
  color: var(--grey-light);
  line-height: 1.6;
  margin-bottom: 8px;
}

.doc-list li a {
  color: var(--gold);
  font-weight: 500;
}

/* Document Footer */
.doc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--grey-dark);
}

.doc-meta {
  font-size: 0.7rem;
  color: var(--grey);
}

.doc-nav-link {
  font-size: 0.8rem;
  color: var(--gold);
  text-decoration: none;
}

.doc-nav-link:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* SITEMAP TITLE                                                                    */
/* ─────────────────────────────────────────────────────────────────────────────── */

.sitemap-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-align: center;
  padding: 8px 0 12px;
  border-bottom: 1px solid var(--grey-dark);
  margin-bottom: 12px;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* LEGAL PAGES                                                                      */
/* ─────────────────────────────────────────────────────────────────────────────── */

.legal-nav {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--grey-dark);
}

.legal-nav a {
  font-size: 0.85rem;
  color: var(--gold);
  text-decoration: none;
}

.legal-nav a:hover {
  text-decoration: underline;
}

.legal-content {
  max-width: 800px;
}

.legal-effective {
  font-size: 0.8rem;
  color: var(--grey);
  margin-bottom: 25px;
  font-style: italic;
}

.legal-content h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 25px;
  margin-bottom: 10px;
  padding-top: 15px;
  border-top: 1px solid var(--grey-dark);
}

.legal-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.legal-content h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 15px;
  margin-bottom: 8px;
}

.legal-content p {
  font-size: 0.85rem;
  color: var(--grey-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul {
  margin: 12px 0;
  padding-left: 20px;
}

.legal-content li {
  font-size: 0.85rem;
  color: var(--grey-light);
  line-height: 1.6;
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--gold);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* COOKIE SETTINGS                                                                  */
/* ─────────────────────────────────────────────────────────────────────────────── */

.cookie-category {
  background: var(--navy-light);
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
  border: 1px solid var(--grey-dark);
}

.cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cookie-header h3 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--white);
}

.cookie-status {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.cookie-status.required {
  background: var(--grey-dark);
  color: var(--grey-light);
}

.cookie-status.optional {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.cookie-category > p {
  font-size: 0.8rem;
  color: var(--grey);
  margin-bottom: 15px;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--grey-dark);
  border-radius: 24px;
  transition: 0.3s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--white);
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--gold);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.toggle-label {
  font-size: 0.8rem;
  color: var(--grey-light);
}

.cookie-actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--grey-dark);
}

.btn-save-cookies,
.btn-accept-all {
  padding: 12px 24px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-save-cookies {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-save-cookies:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn-accept-all {
  background: var(--gold);
  color: var(--navy);
}

.btn-accept-all:hover {
  background: var(--gold-light);
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* AUTHENTICATION OVERVIEW - Stack Diagram                                          */
/* ─────────────────────────────────────────────────────────────────────────────── */

.stack-diagram {
  background: var(--navy-light);
  border-radius: 12px;
  padding: 30px;
  margin: 25px 0;
  border: 1px solid var(--grey-dark);
}

.stack-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.stack-entity {
  background: var(--navy);
  border: 2px solid var(--grey-dark);
  border-radius: 10px;
  padding: 20px 25px;
  text-align: center;
  min-width: 140px;
  transition: border-color 0.2s ease;
}

.stack-entity:hover {
  border-color: var(--gold);
}

.stack-entity.stack-ua {
  border-color: var(--gold);
}

.stack-entity.stack-op {
  border-color: var(--gold);
}

.stack-icon {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.stack-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.stack-role {
  font-size: 0.7rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stack-arrow {
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.7;
}

.stack-engine {
  text-align: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed var(--grey-dark);
}

.stack-engine span {
  font-size: 0.75rem;
  color: var(--grey);
  font-style: italic;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* RELYING PARTY GRID                                                               */
/* ─────────────────────────────────────────────────────────────────────────────── */

.rp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.rp-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--navy-light);
  border: 1px solid var(--grey-dark);
  border-radius: 8px;
  padding: 15px;
  transition: border-color 0.2s ease;
}

.rp-card:hover {
  border-color: var(--gold);
}

.rp-icon {
  font-size: 1.3rem;
  color: var(--gold);
  width: 30px;
  text-align: center;
}

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

.rp-info strong {
  font-size: 0.85rem;
  color: var(--white);
}

.rp-info span {
  font-size: 0.7rem;
  color: var(--grey);
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* SOLUTIONS GRID                                                                   */
/* ─────────────────────────────────────────────────────────────────────────────── */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.solution-card {
  background: var(--navy-light);
  border: 1px solid var(--grey-dark);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.solution-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.solution-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.solution-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
}

.solution-card p {
  font-size: 0.8rem;
  color: var(--grey-light);
  line-height: 1.5;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* FLOW STEPS                                                                       */
/* ─────────────────────────────────────────────────────────────────────────────── */

.flow-steps {
  counter-reset: flow-counter;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.flow-steps li {
  counter-increment: flow-counter;
  position: relative;
  padding: 15px 15px 15px 50px;
  margin-bottom: 10px;
  background: var(--navy-light);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
  font-size: 0.85rem;
  color: var(--grey-light);
  line-height: 1.5;
}

.flow-steps li::before {
  content: counter(flow-counter);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-steps li strong {
  color: var(--white);
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* FEATURED PAGE - Marketing/Sales Theme                                            */
/* ─────────────────────────────────────────────────────────────────────────────── */

/* Hero Section */
.featured-hero {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 16px;
  margin-bottom: 30px;
  border: 1px solid var(--gold);
}

.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 15px;
  padding: 6px 15px;
  border: 1px solid var(--gold);
  border-radius: 20px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--grey-light);
  max-width: 600px;
  margin: 0 auto 25px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* Featured Sections */
.featured-section {
  margin-bottom: 35px;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grey-dark);
}

.section-lead {
  font-size: 0.9rem;
  color: var(--grey-light);
  margin-bottom: 20px;
}

/* Problem Grid */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.problem-card {
  background: var(--navy-light);
  border: 1px solid var(--grey-dark);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s ease;
}

.problem-card:hover {
  border-color: var(--gold);
}

.problem-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.problem-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.problem-card p {
  font-size: 0.85rem;
  color: var(--grey-light);
  line-height: 1.5;
  margin: 0;
}

/* Protection Stack */
.protection-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stack-layer {
  display: flex;
  align-items: stretch;
  background: var(--navy-light);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--grey-dark);
}

.stack-layer:hover {
  border-color: var(--gold);
}

.layer-badge {
  width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  flex-shrink: 0;
}

.stack-layer.foundation .layer-badge { background: var(--gold); }
.stack-layer.layer-1 .layer-badge { background: #5B9BD5; }
.stack-layer.layer-2 .layer-badge { background: #70C1B3; }
.stack-layer.layer-3 .layer-badge { background: #F4A261; }

.layer-content {
  padding: 15px 20px;
  flex: 1;
}

.layer-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 5px;
}

.layer-content p {
  font-size: 0.8rem;
  color: var(--grey-light);
  margin: 0;
}

/* Featured Callout */
.featured-callout {
  display: flex;
  gap: 20px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
}

.callout-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.callout-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
}

.callout-content p {
  font-size: 0.9rem;
  color: var(--grey-light);
  line-height: 1.6;
  margin: 0;
}

.callout-content strong {
  color: var(--white);
}

/* Use Case Grid */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.usecase-card {
  background: var(--navy-light);
  border: 1px solid var(--grey-dark);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  transition: all 0.2s ease;
}

.usecase-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.usecase-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.usecase-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.usecase-card p {
  font-size: 0.75rem;
  color: var(--grey);
  line-height: 1.4;
  margin: 0;
}

/* Trust Chain */
.trust-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 25px;
  background: var(--navy-light);
  border-radius: 12px;
  border: 1px solid var(--grey-dark);
}

.chain-node {
  text-align: center;
  min-width: 100px;
}

.node-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.node-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.node-desc {
  font-size: 0.7rem;
  color: var(--grey);
}

.chain-arrow {
  font-size: 1.5rem;
  color: var(--gold);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.stat-card {
  background: var(--navy-light);
  border: 1px solid var(--grey-dark);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.stat-card:hover {
  border-color: var(--gold);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--grey-light);
  line-height: 1.4;
}

/* Patent Grid */
.patent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.patent-card {
  background: var(--navy-light);
  border: 1px solid var(--grey-dark);
  border-radius: 10px;
  padding: 20px;
  border-left: 4px solid var(--gold);
}

.patent-number {
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  color: var(--gold);
  margin-bottom: 8px;
}

.patent-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.patent-coverage {
  font-size: 0.75rem;
  color: var(--grey);
}

/* CTA Section */
.featured-cta {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--gold) 0%, #B8860B 100%);
  border-radius: 16px;
  margin: 30px 0;
}

.featured-cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.featured-cta > p {
  font-size: 0.95rem;
  color: var(--navy);
  opacity: 0.8;
  margin-bottom: 20px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.btn-cta-primary,
.btn-cta-secondary {
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-cta-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-cta-primary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}

.btn-cta-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-cta-secondary:hover {
  background: rgba(10, 22, 40, 0.1);
}

.cta-note {
  font-size: 0.8rem;
  color: var(--navy);
  opacity: 0.7;
  margin: 0;
}

/* Featured Links */
.featured-links {
  padding: 20px;
  background: var(--navy-light);
  border-radius: 10px;
  border: 1px solid var(--grey-dark);
}

.featured-links h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--grey-dark);
}

.link-list li:last-child {
  border-bottom: none;
}

.link-list a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.link-list a:hover {
  color: var(--gold-light);
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* OPTIOTRUST & ICLM DOCUMENTATION STYLES                                           */
/* ─────────────────────────────────────────────────────────────────────────────── */

/* Protection Layers (OptioTrust) */
.protection-layers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.layer-row {
  display: flex;
  align-items: stretch;
  background: var(--navy-light);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--grey-dark);
}

.layer-marker {
  width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  flex-shrink: 0;
}

.layer-marker.foundation { background: var(--gold); }
.layer-marker.l1 { background: #5B9BD5; }
.layer-marker.l2 { background: #70C1B3; }
.layer-marker.l3 { background: #F4A261; }

.layer-detail {
  padding: 12px 15px;
  flex: 1;
}

.layer-detail strong {
  display: block;
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 3px;
}

.layer-detail span {
  font-size: 0.8rem;
  color: var(--grey-light);
}

/* Trust Hierarchy */
.trust-hierarchy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 20px 0;
  padding: 25px;
  background: var(--navy-light);
  border-radius: 12px;
  border: 1px solid var(--grey-dark);
}

.trust-level {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 500px;
  padding: 15px;
  background: var(--navy);
  border-radius: 10px;
  border: 1px solid var(--grey-dark);
}

.trust-level.level-1 { border-color: var(--gold); }

.trust-icon {
  font-size: 1.5rem;
  width: 50px;
  text-align: center;
}

.trust-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 3px;
}

.trust-info span {
  font-size: 0.75rem;
  color: var(--grey);
  line-height: 1.4;
}

.trust-connector {
  font-size: 1.2rem;
  color: var(--gold);
  padding: 5px 0;
}

/* Verification Steps */
.verification-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
}

.verify-step {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: var(--navy-light);
  border-radius: 10px;
  border: 1px solid var(--grey-dark);
}

.step-badge {
  width: 60px;
  height: 60px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--grey-light);
  line-height: 1.5;
  margin: 0;
}

/* ICLM Domains */
.iclm-domains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.domain-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: var(--navy-light);
  border-radius: 8px;
  border: 1px solid var(--grey-dark);
}

.domain-badge {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold) 0%, #B8860B 100%);
  color: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.domain-info strong {
  display: block;
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 2px;
}

.domain-info span {
  font-size: 0.7rem;
  color: var(--grey);
}

/* ICLM Domain Grid (full cards) */
.iclm-domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin: 25px 0;
}

.iclm-domain-card {
  background: var(--navy-light);
  border: 1px solid var(--grey-dark);
  border-radius: 12px;
  overflow: hidden;
}

.iclm-domain-card .domain-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: var(--navy);
  border-bottom: 1px solid var(--grey-dark);
}

.iclm-domain-card .domain-badge {
  width: 44px;
  height: 44px;
  font-size: 1rem;
}

.iclm-domain-card .domain-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}

.iclm-domain-card .domain-body {
  padding: 15px;
}

.iclm-domain-card .domain-body p {
  font-size: 0.85rem;
  color: var(--grey-light);
  margin-bottom: 12px;
  line-height: 1.5;
}

.iclm-domain-card .domain-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.iclm-domain-card .domain-body li {
  font-size: 0.8rem;
  color: var(--grey);
  padding: 5px 0;
  padding-left: 15px;
  position: relative;
}

.iclm-domain-card .domain-body li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.5rem;
  top: 8px;
}

/* Lifecycle Flow */
.lifecycle-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 25px;
  background: var(--navy-light);
  border-radius: 12px;
  border: 1px solid var(--grey-dark);
  margin: 20px 0;
}

.lifecycle-stage {
  text-align: center;
  min-width: 130px;
}

.lifecycle-stage .stage-badge {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, var(--gold) 0%, #B8860B 100%);
  color: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
}

.lifecycle-stage .stage-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.lifecycle-stage .stage-desc {
  font-size: 0.7rem;
  color: var(--grey);
  line-height: 1.3;
}

.lifecycle-arrow {
  font-size: 1.5rem;
  color: var(--gold);
}

/* Maturity Levels */
.maturity-levels {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0;
}

.maturity-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  background: var(--navy-light);
  border-radius: 8px;
  border: 1px solid var(--grey-dark);
}

.maturity-badge {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.maturity-badge.l1 { background: #CBD5E1; color: var(--navy); }
.maturity-badge.l2 { background: #94A3B8; color: white; }
.maturity-badge.l3 { background: #64748B; color: white; }
.maturity-badge.l4 { background: #475569; color: white; }
.maturity-badge.l5 { background: var(--gold); color: var(--navy); }

.maturity-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 2px;
}

.maturity-info span {
  font-size: 0.8rem;
  color: var(--grey);
}

/* Framework Stack */
.framework-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 25px 0;
}

.framework-layer {
  width: 100%;
  max-width: 500px;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.framework-layer.existing {
  background: var(--navy-light);
  border: 1px solid var(--grey-dark);
}

.framework-layer.iclm {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
  border: 2px solid var(--gold);
}

.framework-layer .layer-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.framework-layer.iclm .layer-title {
  color: var(--gold);
}

.framework-layer .layer-desc {
  font-size: 0.8rem;
  color: var(--grey-light);
}

.framework-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.framework-tag {
  background: var(--navy);
  border: 1px solid var(--grey-dark);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--grey-light);
}

.layer-connector {
  font-size: 1.5rem;
  color: var(--gold);
  padding: 10px 0;
}

/* ─────────────────────────────────────────────────────────────────────────────── */
/* OPTIOCON & OPTIOGUARD DOCUMENTATION STYLES                                       */
/* ─────────────────────────────────────────────────────────────────────────────── */

/* Architecture Tiers */
.architecture-tiers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.tier-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--navy-light);
  border-radius: 10px;
  border: 1px solid var(--grey-dark);
}

.tier-badge {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.tier-badge.t1 { background: linear-gradient(135deg, #5B9BD5 0%, #3B7BBD 100%); }
.tier-badge.t2 { background: linear-gradient(135deg, #70C1B3 0%, #50A193 100%); }
.tier-badge.t3 { background: linear-gradient(135deg, var(--gold) 0%, #B8860B 100%); }

.tier-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 4px;
}

.tier-info span {
  font-size: 0.8rem;
  color: var(--grey);
}

/* Key Hierarchy */
.key-hierarchy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 20px 0;
  padding: 25px;
  background: var(--navy-light);
  border-radius: 12px;
  border: 1px solid var(--grey-dark);
}

.key-level {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 450px;
  padding: 12px 15px;
  background: var(--navy);
  border-radius: 8px;
  border: 1px solid var(--grey-dark);
}

.key-icon {
  font-size: 1.3rem;
  width: 40px;
  text-align: center;
}

.key-info strong {
  display: block;
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 3px;
}

.key-info span {
  font-size: 0.75rem;
  color: var(--grey);
}

.key-connector {
  font-size: 1rem;
  color: var(--gold);
  padding: 5px 0;
}

/* Workflow Example */
.workflow-example {
  background: var(--navy-light);
  border: 1px solid var(--grey-dark);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

.workflow-header {
  font-size: 0.9rem;
  color: var(--grey-light);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grey-dark);
}

.workflow-steps-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.wf-step {
  background: var(--navy);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--grey-light);
  border: 1px solid var(--grey-dark);
}

.wf-step.highlight {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-weight: 600;
}

.wf-arrow {
  color: var(--gold);
  font-size: 1rem;
}

/* Guard Functions Grid */
.guard-functions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.guard-card {
  background: var(--navy-light);
  border: 1px solid var(--grey-dark);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.guard-card:hover {
  border-color: var(--gold);
}

.guard-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.guard-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.guard-card p {
  font-size: 0.8rem;
  color: var(--grey);
  line-height: 1.4;
  margin: 0;
}

/* Protection Layers Grid */
.protection-layers-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.layer-card {
  display: flex;
  gap: 15px;
  background: var(--navy-light);
  border: 1px solid var(--grey-dark);
  border-radius: 10px;
  padding: 18px;
}

.layer-num {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold) 0%, #B8860B 100%);
  color: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.layer-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 5px;
}

.layer-content p {
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.layer-details {
  font-size: 0.8rem;
  color: var(--grey);
  line-height: 1.4;
}

/* Legal Triad */
.legal-triad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.triad-card {
  background: var(--navy-light);
  border: 1px solid var(--grey-dark);
  border-radius: 10px;
  padding: 20px;
  border-left: 4px solid var(--gold);
}

.triad-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
}

.triad-card p {
  font-size: 0.85rem;
  color: var(--grey-light);
  font-style: italic;
  margin-bottom: 12px;
}

.triad-card .evidence {
  font-size: 0.75rem;
  color: var(--grey);
  padding-top: 10px;
  border-top: 1px solid var(--grey-dark);
}

/* Legal Quote */
.legal-quote {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--grey-light);
  line-height: 1.6;
}

/* Insurance Tiers */
.insurance-tiers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.insurance-tiers .tier-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--navy-light);
  border-radius: 10px;
  border: 1px solid var(--grey-dark);
}

.tier-score {
  width: 70px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.tier-row.certified .tier-score { background: #4CAF50; }
.tier-row.conditional .tier-score { background: #2196F3; }
.tier-row.progress .tier-score { background: #FF9800; }
.tier-row.non-compliant .tier-score { background: #F44336; }

.insurance-tiers .tier-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--white);
}

.tier-rating {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 8px;
}

.insurance-tiers .tier-info p {
  font-size: 0.8rem;
  color: var(--grey);
  margin: 5px 0 0;
}

/* Products Monitored */
.products-monitored {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.product-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--navy-light);
  border: 1px solid var(--grey-dark);
  border-radius: 10px;
  padding: 15px;
  transition: border-color 0.2s ease;
}

.product-badge:hover {
  border-color: var(--gold);
}

.product-badge .icon {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.product-badge .name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 5px;
}

.product-badge .desc {
  font-size: 0.7rem;
  color: var(--grey);
  line-height: 1.3;
}

/* ========================================
   RAR REPORT STYLES
   ======================================== */

/* RAR Header */
.rar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--gold);
}

.rar-title {
  font-size: 1.8rem;
  color: var(--navy);
  margin: 0;
}

.rar-subtitle {
  font-size: 1.2rem;
  color: var(--grey);
}

.rar-header-right {
  text-align: right;
}

.rar-confidential {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #dc3545;
  text-transform: uppercase;
}

.rar-doc-type {
  font-size: 0.8rem;
  color: var(--grey);
}

/* Example Banner */
.rar-example-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border: 1px solid #64b5f6;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #1565c0;
}

.rar-example-icon {
  font-size: 1.2rem;
}

/* Result Banners */
.rar-result-banner {
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 25px;
  text-align: center;
}

.rar-result-fail {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 2px solid #dc3545;
}

.rar-result-pass {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 2px solid #10b981;
}

.rar-result-status {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.rar-result-fail .rar-result-status { color: #dc3545; }
.rar-result-pass .rar-result-status { color: #059669; }

.rar-result-score {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 5px;
}

.rar-result-rating {
  font-size: 0.9rem;
  color: var(--grey);
}

/* Improvement Banner */
.rar-improvement-banner {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.rar-improvement-box {
  flex: 1;
  max-width: 200px;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.rar-improvement-box.before {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
}

.rar-improvement-box.improvement {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid var(--gold);
}

.rar-improvement-box.after {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 1px solid #10b981;
}

.rar-improvement-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 5px;
  color: var(--grey);
}

.rar-improvement-score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
}

.rar-improvement-box.improvement .rar-improvement-score {
  color: var(--gold);
}

.rar-improvement-box.after .rar-improvement-score {
  color: #059669;
}

.rar-improvement-status {
  font-size: 0.8rem;
  color: var(--grey);
}

/* Info Tables */
.rar-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
}

.rar-info-table tr {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.rar-info-table td {
  padding: 10px 15px;
}

.rar-info-table .rar-label {
  font-weight: 600;
  color: var(--navy);
  width: 35%;
  background: #f8fafc;
}

/* Note Box */
.rar-note-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 4px solid var(--gold);
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 0 8px 8px 0;
}

/* Check List */
.rar-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.rar-check-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rar-check {
  color: #10b981;
  font-weight: bold;
}

/* Control Sections */
.rar-control-section {
  margin-bottom: 30px;
}

.rar-control-header {
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 8px 8px 0 0;
}

.rar-control-header.rar-control-pass {
  background: linear-gradient(135deg, var(--navy) 0%, #1e5245 100%);
}

/* Maturity Tables */
.rar-maturity-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.rar-maturity-table thead {
  background: #f8fafc;
}

.rar-maturity-table th,
.rar-maturity-table td {
  padding: 10px 15px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.9rem;
}

.rar-maturity-table th {
  font-weight: 600;
  color: var(--navy);
  text-align: left;
}

.rar-maturity-table th.center,
.rar-maturity-table td.center {
  text-align: center;
}

/* Score Colors */
.rar-score-pass { color: #059669; font-weight: 600; }
.rar-score-partial { color: #d97706; font-weight: 600; }
.rar-score-fail { color: #dc3545; font-weight: 600; }

/* Status Colors */
.rar-status-pass { color: #059669; }
.rar-status-partial { color: #d97706; }
.rar-status-fail { color: #dc3545; }

/* Total Rows */
.rar-total-row {
  font-weight: 600;
}

.rar-fail-bg { background: #fee2e2 !important; }
.rar-partial-bg { background: #fef3c7 !important; }
.rar-pass-bg { background: #d1fae5 !important; }

/* Finding Box */
.rar-finding-box {
  background: #fef3c7;
  border-left: 4px solid #d97706;
  padding: 15px 20px;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
}

.rar-finding-box.rar-finding-pass {
  background: #d1fae5;
  border-left-color: #10b981;
}

/* Summary Table */
.rar-summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.rar-summary-table th,
.rar-summary-table td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.rar-summary-table thead {
  background: var(--navy);
  color: var(--white);
}

.rar-summary-table th {
  font-weight: 600;
  text-align: left;
}

.rar-category-row {
  background: #e2e8f0 !important;
}

.rar-overall-row {
  font-size: 1.1rem;
}

/* Risk Table */
.rar-risk-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
}

.rar-risk-table th,
.rar-risk-table td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.rar-risk-table thead {
  background: var(--navy);
  color: var(--white);
}

.rar-risk-critical { color: #dc3545; font-weight: 700; }
.rar-risk-high { color: #d97706; font-weight: 700; }
.rar-risk-low { color: #059669; font-weight: 700; }

/* Remediation Grid */
.rar-remediation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.rar-remediation-card {
  background: var(--white);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid rgba(0,0,0,0.1);
}

.rar-remediation-card.priority-critical {
  border-left: 4px solid #dc3545;
}

.rar-remediation-card.priority-high {
  border-left: 4px solid #d97706;
}

.rar-remediation-card.priority-medium {
  border-left: 4px solid #3b82f6;
}

.rar-remediation-priority {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.priority-critical .rar-remediation-priority { color: #dc3545; }
.priority-high .rar-remediation-priority { color: #d97706; }
.priority-medium .rar-remediation-priority { color: #3b82f6; }

.rar-remediation-card h4 {
  margin: 0 0 10px 0;
  color: var(--navy);
}

.rar-remediation-card p {
  font-size: 0.9rem;
  color: var(--grey);
  margin-bottom: 15px;
}

.rar-remediation-controls {
  font-size: 0.8rem;
  color: var(--grey);
  font-style: italic;
}

/* Implementation Grid */
.rar-implementation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.rar-implementation-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.rar-implementation-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.rar-implementation-card h4 {
  margin: 0 0 10px 0;
  color: var(--navy);
}

.rar-implementation-card p {
  font-size: 0.85rem;
  color: var(--grey);
  margin: 0;
}

/* Certification Box */
.rar-certification-box {
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  margin-bottom: 25px;
}

.rar-certification-status {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.rar-certification-box.rar-pass-bg .rar-certification-status {
  color: #059669;
}

.rar-certification-box.rar-fail-bg .rar-certification-status {
  color: #dc3545;
}

.rar-certification-box p {
  color: var(--navy);
  margin: 0;
}

/* Insurance Box */
.rar-insurance-box {
  display: flex;
  gap: 25px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
}

.rar-insurance-tier {
  text-align: center;
  padding: 20px;
  background: var(--white);
  border-radius: 8px;
  min-width: 150px;
}

.rar-insurance-tier.tier-certified {
  border: 2px solid #10b981;
}

.rar-insurance-tier-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #059669;
  margin-bottom: 10px;
}

.rar-insurance-tier-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.rar-insurance-details {
  flex: 1;
}

.rar-insurance-details h4 {
  margin: 0 0 15px 0;
  color: var(--navy);
}

.rar-insurance-details ul {
  margin: 0;
  padding-left: 20px;
}

.rar-insurance-details li {
  padding: 5px 0;
  color: var(--grey);
}

/* Signature Section */
.rar-signature-section {
  display: flex;
  gap: 50px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--gold);
}

.rar-signature-line {
  font-size: 1rem;
  margin-bottom: 5px;
}

.rar-signature-label {
  font-size: 0.8rem;
  color: var(--grey);
}

/* Footer */
.rar-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--grey);
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid rgba(0,0,0,0.1);
}
