@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --bg-dark: #050915;
  --bg-card: rgba(17, 28, 68, 0.4);
  --border-color: rgba(201, 169, 97, 0.15);
  --gold: #D4AF37;
  --gold-light: #EAD07C;
  --gold-dark: #AA820A;
  --text-primary: #ECEFF4;
  --text-secondary: rgba(236, 239, 244, 0.7);
  --text-muted: rgba(236, 239, 244, 0.4);
  --emerald: #10B981;
  --crimson: #EF4444;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(5, 9, 21, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.2);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.4);
}

/* Header & Portal Navigation */
.portal-header {
  background: rgba(10, 17, 40, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 40px;
  display: flex;
  justify-content: justify;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.portal-logo {
  width: 32px;
  height: 32px;
}

.portal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.portal-title span {
  color: var(--gold);
}

.platform-tabs {
  display: flex;
  gap: 8px;
}

.platform-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 99px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-tab-btn:hover, .platform-tab-btn.active {
  color: #fff;
  background: rgba(17, 28, 68, 0.6);
  border-color: rgba(212, 175, 55, 0.25);
}

.platform-tab-btn.active {
  border-color: var(--gold);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

/* Main Area Container */
.portal-container {
  flex-grow: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px;
}

.platform-view {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.platform-view.active {
  display: block;
}

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

/* Glass Card styling */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-panel-hover {
  transition: all 0.3s ease-out;
}

.glass-panel-hover:hover {
  background: rgba(17, 28, 68, 0.55);
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.08);
}

/* L'ÉGIDE SECTION */
.egide-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.egide-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.egide-menu-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.egide-menu-btn:hover, .egide-menu-btn.active {
  background: rgba(17, 28, 68, 0.5);
  border-color: rgba(212, 175, 55, 0.15);
  color: #fff;
}

.egide-menu-btn.active {
  border-color: var(--gold);
}

.egide-view {
  display: none;
}

.egide-view.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* Feed Atmosphere Grid */
.atmo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.atmo-btn {
  background: rgba(10, 17, 40, 0.5);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 12px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.atmo-btn:hover, .atmo-btn.active {
  background: rgba(212, 175, 55, 0.1);
  color: #fff;
  border-color: var(--gold);
}

/* Chat & Messages styling */
.chat-window {
  height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: justify;
}

.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg-bubble {
  display: flex;
  gap: 12px;
  max-width: 80%;
}

.msg-bubble.user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.msg-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msg-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.msg-body {
  background: rgba(10, 17, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.msg-bubble.user .msg-body {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  color: var(--bg-dark);
  font-weight: 500;
  border: none;
}

/* AI co-animator */
.ai-notification-card {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.75rem;
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.ai-notification-card strong {
  color: var(--gold-light);
}

/* Chat form input */
.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-textarea {
  flex-grow: 1;
  background: rgba(5, 9, 21, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 0.8rem;
  outline: none;
  resize: none;
  height: 42px;
}

.chat-send-btn {
  background: var(--gold);
  border: none;
  color: var(--bg-dark);
  padding: 0 20px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* ROC SECTION */
.roc-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-box {
  background: rgba(10, 17, 40, 0.5);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.kpi-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.kpi-num span {
  color: var(--gold);
}

/* CANTO SECTION */
.canto-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

/* Video Live Classroom */
.video-mock {
  width: 100%;
  aspect-ratio: 16/9;
  background: #02040a;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(212, 175, 55, 0.15);
  filter: blur(40px);
  border-radius: 50%;
  animation: pulse 4s infinite;
}

.video-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(5, 9, 21, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
}

.video-teacher {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold-light);
  z-index: 10;
  text-align: center;
}

.video-teacher span {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* Audio visualizer block */
.audio-visualizer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  height: 48px;
  margin: 16px 0;
}

.audio-bar {
  width: 3px;
  height: 6px;
  background: var(--gold);
  border-radius: 2px;
  transition: height 0.1s ease-in-out;
}

.audio-visualizer.active .audio-bar {
  animation: audioWave 1.2s ease-in-out infinite alternate;
}

.audio-bar:nth-child(2) { animation-delay: 0.1s; }
.audio-bar:nth-child(3) { animation-delay: 0.2s; }
.audio-bar:nth-child(4) { animation-delay: 0.3s; }
.audio-bar:nth-child(5) { animation-delay: 0.4s; }
.audio-bar:nth-child(6) { animation-delay: 0.5s; }
.audio-bar:nth-child(7) { animation-delay: 0.2s; }
.audio-bar:nth-child(8) { animation-delay: 0.4s; }

@keyframes audioWave {
  from { height: 6px; }
  to { height: 38px; }
}

/* Form fields general */
.form-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-box label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.canto-input, .canto-select, .canto-textarea {
  background: rgba(5, 9, 21, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.8rem;
  outline: none;
}

.canto-input:focus, .canto-select:focus, .canto-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.15);
}

.canto-btn {
  background: var(--gold);
  border: none;
  color: var(--bg-dark);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

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

.canto-btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.canto-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #0b1227;
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 850px) {
  .egide-layout, .canto-layout, .roc-grid {
    grid-template-columns: 1fr;
  }
  .portal-header {
    flex-direction: column;
    gap: 12px;
    padding: 14px 20px;
  }
}

/* --- Added Utilities for Multipage Templates --- */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.badge-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  text-transform: uppercase;
}
.badge-gold {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
  border-color: rgba(212, 175, 55, 0.25);
}
.badge-emerald {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.2);
}
.badge-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #60A5FA;
  border-color: rgba(59, 130, 246, 0.2);
}
.badge-crimson {
  background: rgba(239, 68, 68, 0.1);
  color: var(--crimson);
  border-color: rgba(239, 68, 68, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Navigation links as buttons */
a.platform-tab-btn, a.egide-menu-btn {
  text-decoration: none;
}
a.platform-tab-btn:hover, a.egide-menu-btn:hover {
  text-decoration: none;
}

/* --- Landing & Marketing Styles (Merged from eco.css with premium styling) --- */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: 760px;
  margin: 0 auto;
}
.hero {
  background: linear-gradient(135deg, rgba(10, 17, 40, 0.9) 0%, rgba(17, 28, 68, 0.9) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 74px 0 86px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 32px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  opacity: 0.6;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: #fff;
  line-height: 1.2;
  margin: 10px auto 20px;
  max-width: 24ch;
}
.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 58ch;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.hero .wordmark {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  color: var(--gold);
  letter-spacing: .04em;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
  display: block;
}
.hero .wordmark small {
  display: block;
  font-size: .85rem;
  letter-spacing: .25em;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  margin-top: 8px;
  text-transform: uppercase;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--bg-dark);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 0.85rem;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}
.btn.ghost {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn.ghost:hover {
  background: rgba(212, 175, 55, 0.1);
}
.counter {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.counter b {
  color: var(--gold-light);
  font-size: 1rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 26px 0;
}
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease-out;
}
.card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.05);
}
.card .ic {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 8px;
}
.card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}
.tiertable {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
}
.tiertable th, .tiertable td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.tiertable th {
  background: rgba(10, 17, 40, 0.8);
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}
.tiertable td {
  color: var(--text-secondary);
}
.tiertable tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
.note {
  background: rgba(212, 175, 55, 0.05);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.note a {
  color: var(--gold-light);
  text-decoration: none;
}
.note a:hover {
  text-decoration: underline;
}
.pricebox {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.pricebox b {
  color: #fff;
}

/* ======================================================= */
/* ROC DASHBOARD SPECIFIC STYLES                           */
/* ======================================================= */
.roc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}
.roc-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.roc-menu-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.roc-menu-btn:hover, .roc-menu-btn.active {
  background: rgba(17, 28, 68, 0.5);
  border-color: rgba(212, 175, 55, 0.15);
  color: #fff;
}
.roc-menu-btn.active {
  border-color: var(--gold);
}
.roc-view {
  display: none;
}
.roc-view.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* Device cards for Client Portal */
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.device-card {
  background: rgba(17, 28, 68, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.device-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-muted);
}
.status-dot.online {
  background-color: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse-green 2s infinite;
}
.status-dot.offline {
  background-color: var(--crimson);
  box-shadow: 0 0 8px var(--crimson);
}
@keyframes pulse-green {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 12px var(--emerald); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.command-bar {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.command-input {
  flex-grow: 1;
  background: rgba(5, 9, 21, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: #fff;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}
.command-input:focus {
  border-color: var(--gold);
}

.roc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.8rem;
}
.roc-table th, .roc-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.roc-table th {
  background: rgba(10, 17, 40, 0.5);
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
}
.roc-table td {
  color: var(--text-secondary);
}
.roc-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}/* ======================================================= */
/* GATEKEEPER LOCK OVERLAY                                 */
/* ======================================================= */
.gatekeeper-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 9, 21, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow: hidden;
}
.gatekeeper-card {
  max-width: 420px;
  width: 90%;
  padding: 32px;
  text-align: center;
  border-color: var(--gold);
  background: rgba(17, 28, 68, 0.6);
  box-shadow: 0 16px 64px rgba(212, 175, 55, 0.15);
  animation: scaleIn 0.4s ease-out;
}
@keyframes scaleIn {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.role-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}
.role-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}
.role-tab-btn.active {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
}
.pin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 240px;
  margin: 20px auto 0;
}
.pin-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  height: 48px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.pin-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
}
.pin-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}
.pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s;
}
.pin-dot.filled {
  background: var(--gold-light);
  box-shadow: 0 0 10px var(--gold-light);
  border-color: var(--gold-light);
}

/* ======================================================= */
/* ONBOARDING STEPPER                                      */
/* ======================================================= */
.stepper-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0 40px;
}
.step-card {
  position: relative;
  padding: 20px;
  border-left: 4px solid var(--text-muted);
  background: rgba(17, 28, 68, 0.3);
  transition: all 0.3s;
}
.step-card.completed {
  border-left-color: var(--emerald);
  background: rgba(16, 185, 129, 0.05);
}
.step-card.active-step {
  border-left-color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
}
.step-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.step-check {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.1rem;
  color: var(--emerald);
  display: none;
}
.step-card.completed .step-check {
  display: block;
}

/* ======================================================= */
/* NATIONAL B2G DASHBOARD                                  */
/* ======================================================= */
.threat-map-container {
  position: relative;
  width: 100%;
  height: 300px;
  background: rgba(5, 9, 21, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}
.threat-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-red 2.5s infinite;
}
.threat-node.alert-low { background-color: var(--emerald); animation-name: pulse-green; }
.threat-node.alert-med { background-color: var(--gold); animation-name: pulse-gold; }
.threat-node.alert-high { background-color: var(--crimson); animation-name: pulse-red; }

@keyframes pulse-red {
  0% { transform: translate(-55%, -55%) scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { transform: translate(-55%, -55%) scale(1.1); opacity: 1; box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: translate(-55%, -55%) scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
@keyframes pulse-gold {
  0% { transform: translate(-55%, -55%) scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  70% { transform: translate(-55%, -55%) scale(1.1); opacity: 1; box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
  100% { transform: translate(-55%, -55%) scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* ======================================================= */
/* iOS PWA INSTALL PROMPT                                  */
/* ======================================================= */
.ios-install-banner {
  position: fixed;
  bottom: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 440px;
  background: rgba(10, 17, 40, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: bottom 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}
.ios-install-banner.show {
  bottom: 20px;
}
.ios-install-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ios-install-title {
  color: var(--emerald);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ios-install-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 2px;
}
.ios-install-body {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.ios-install-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

