/* ==========================================================================
   GoodForm Enterprise™ Design System
   High-Precision Modern Corporate Dark Theme
   ========================================================================== */

:root {
  --bg-app: #090d16;
  --bg-card: #0f172a;
  --bg-card-elevated: #1e293b;
  --bg-input: #0b1120;
  
  --border-subtle: #1e293b;
  --border-strong: #334155;
  --border-accent: #38bdf8;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --brand-cyan: #38bdf8;
  --brand-indigo: #6366f1;
  --brand-emerald: #10b981;
  --brand-rose: #f43f5e;
  --brand-amber: #f59e0b;
  
  --glow-cyan: rgba(56, 189, 248, 0.25);
  --glow-emerald: rgba(16, 185, 129, 0.25);
  --glow-rose: rgba(244, 63, 94, 0.25);
  
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 100% 40%, rgba(99, 102, 241, 0.08) 0%, transparent 40%);
}

.app-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Enterprise Nav --- */
.enterprise-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-cube {
  width: 28px;
  height: 28px;
  position: relative;
}

.brand-cube .top {
  position: absolute;
  top: 0;
  left: 4px;
  width: 20px;
  height: 10px;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-indigo));
  transform: skewX(-45deg);
  border-radius: 2px;
}

.brand-cube .left {
  position: absolute;
  top: 10px;
  left: 4px;
  width: 10px;
  height: 16px;
  background: #1e293b;
  transform: skewY(-45deg);
  border-radius: 2px;
}

.brand-cube .right {
  position: absolute;
  top: 10px;
  left: 14px;
  width: 10px;
  height: 16px;
  background: #334155;
  transform: skewY(45deg);
  border-radius: 2px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-enterprise {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(56, 189, 248, 0.15);
  color: var(--brand-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.compliance-metrics {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.78rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  flex-wrap: wrap;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.metric-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.metric-dot.green { background-color: var(--brand-emerald); box-shadow: 0 0 8px var(--glow-emerald); }
.metric-dot.blue { background-color: var(--brand-cyan); box-shadow: 0 0 8px var(--glow-cyan); }
.metric-dot.yellow { background-color: var(--brand-amber); }

.metric-label { color: var(--text-muted); }
.metric-val { font-weight: 700; color: var(--text-primary); font-family: var(--font-mono); }

.btn-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem;
}

/* --- Hero Banner --- */
.hero-banner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tag-pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: var(--bg-card-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.tag-pill.accent {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.progress-bar-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  text-align: left;
}

.progress-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.progress-track {
  height: 8px;
  background: #0b1120;
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-emerald));
  border-radius: 9999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px var(--glow-cyan);
}

/* --- Form Protocols Grid & Cards --- */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.protocol-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.protocol-card:hover {
  border-color: var(--border-strong);
}

.protocol-card.completed {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 30px -10px var(--glow-emerald);
}

.protocol-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.protocol-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.protocol-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--brand-cyan);
  font-family: var(--font-mono);
}

.protocol-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(100, 116, 139, 0.3);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.status-badge.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--brand-emerald);
  border-color: rgba(16, 185, 129, 0.3);
}

.protocol-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* --- Field Display Boxes --- */
.field-display-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.field-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}

/* Buttons System */
.btn-enterprise {
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.btn-primary {
  background: #0284c7;
  color: #fff;
  box-shadow: 0 4px 14px var(--glow-cyan);
}
.btn-primary:hover {
  background: #0ea5e9;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: #334155;
}

.btn-danger {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.3);
}
.btn-danger:hover {
  background: rgba(244, 63, 94, 0.22);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}
.btn-gold:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.protocol-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.hint-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Protocol 1: Phone (D6 Dice Roller)
   ========================================================================== */
.phone-display-digits {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.digit-box {
  width: 32px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.digit-box.filled {
  color: var(--brand-cyan);
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
}

.digit-separator {
  font-weight: 800;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.dice-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dice-count-select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.btn-dice-toggle {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-dice-toggle.active {
  background: var(--brand-indigo);
  color: #fff;
  border-color: var(--brand-indigo);
}

.dice-formula-preview {
  font-size: 0.75rem;
  color: var(--brand-cyan);
  font-family: var(--font-mono);
}

.dice-tray {
  background: #050811;
  border: 2px dashed var(--border-strong);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 110px;
}

.dice-item {
  width: 58px;
  height: 58px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.5), inset 0 2px 4px rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.15s ease;
}

.die-face {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  padding: 7px;
  box-sizing: border-box;
}

.die-dot {
  width: 9px;
  height: 9px;
  background-color: #0f172a;
  border-radius: 50%;
  align-self: center;
  justify-self: center;
}

.die-roll-anim {
  animation: dice-shake 0.45s ease-in-out;
}

@keyframes dice-shake {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-25deg) scale(1.15) translateY(-8px); }
  50% { transform: rotate(30deg) scale(0.9) translateY(4px); }
  75% { transform: rotate(-15deg) scale(1.08) translateY(-4px); }
  100% { transform: rotate(0deg) scale(1); }
}

/* ==========================================================================
   Protocol 2: Name (Plinko Canvas)
   ========================================================================== */
.name-display-box {
  min-height: 42px;
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--brand-emerald);
  letter-spacing: 0.08em;
  word-break: break-all;
}

.placeholder-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
}

.plinko-controls-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.enterprise-slider {
  flex-grow: 1;
  max-width: 240px;
  accent-color: var(--brand-cyan);
}

.canvas-wrapper {
  background: #050811;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 0.5rem;
}

#plinko-canvas {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* ==========================================================================
   Protocol 3: Date of Birth (Slot Machine)
   ========================================================================== */
.dob-display-box {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dob-pill {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--brand-amber);
}

.slot-machine-cabinet {
  background: #050811;
  border: 2px solid #334155;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.slot-window {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.slot-reel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.reel-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.slot-reel {
  width: 100%;
  height: 70px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: inset 0 6px 12px rgba(0,0,0,0.6), inset 0 -6px 12px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #475569;
}

.reel-inner {
  font-size: 1.4rem;
  font-weight: 900;
  color: #0f172a;
  font-family: var(--font-mono);
  transition: transform 0.1s linear;
}

.reel-spinning {
  filter: blur(2px);
  animation: reel-spin-loop 0.15s linear infinite;
}

@keyframes reel-spin-loop {
  0% { transform: translateY(-40px); }
  100% { transform: translateY(40px); }
}

.btn-nudge {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

.btn-nudge:hover {
  background: #334155;
  color: #fff;
}

.slot-lever-area {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Protocol 4: Email Domain (Bouncing DVD Canvas)
   ========================================================================== */
.email-display-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.enterprise-text-input {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  flex-grow: 1;
  min-width: 200px;
}

.enterprise-text-input:focus {
  outline: none;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 10px var(--glow-cyan);
}

.email-domain-tag {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--brand-cyan);
  padding: 0.5rem 0.85rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px dashed rgba(56, 189, 248, 0.3);
  border-radius: 6px;
}

.dvd-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.enterprise-select {
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.82rem;
}

.corner-status {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--brand-rose);
  font-weight: 700;
}

#dvd-canvas {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* ==========================================================================
   Protocol 5: PIN (Rotary Safe Dial)
   ========================================================================== */
.pin-display-box {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.pin-digit-slot {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pin-digit-slot.locked {
  color: var(--brand-emerald);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.dial-direction-hint {
  font-size: 0.75rem;
  color: var(--brand-cyan);
  font-family: var(--font-mono);
}

.safe-dial-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 1rem;
  flex-wrap: wrap;
}

.safe-dial-body {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dial-top-marker {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--brand-rose);
  font-size: 1rem;
  z-index: 10;
}

.safe-dial-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 4px solid #475569;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6), inset 0 2px 4px rgba(255,255,255,0.1);
  position: relative;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
}

.dial-num {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #cbd5e1;
  transform: translate(-50%, -50%) rotate(var(--rot)) translateY(-62px);
}

.dial-center-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(145deg, #334155, #1e293b);
  border: 2px solid #64748b;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.2);
}

.knob-indicator {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 12px;
  background-color: var(--brand-rose);
  border-radius: 2px;
}

.safe-dial-controls {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 180px;
}

.current-angle-readout {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
}

.dial-steppers {
  display: flex;
  gap: 0.5rem;
}

.dial-steppers button {
  flex: 1;
}

/* ==========================================================================
   Master Submission Section
   ========================================================================== */
.submit-card {
  background: linear-gradient(180deg, #0f172a 0%, #090d16 100%);
  border: 2px solid var(--border-strong);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.submit-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.submit-header p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.summary-matrix {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  max-width: 600px;
  margin: 0 auto 1.75rem auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border-subtle);
  padding-bottom: 0.4rem;
}

.summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-row strong {
  color: var(--brand-rose);
}

.summary-row.ready strong {
  color: var(--brand-emerald);
}

.btn-master-submit {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-indigo));
  color: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.btn-master-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(56, 189, 248, 0.5);
}

/* ==========================================================================
   Audit Modal & Toasts
   ========================================================================== */
.toast-banner {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  border: 1px solid var(--border-strong);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 15px 30px rgba(0,0,0,0.6);
  z-index: 9999;
  animation: toast-drop 0.2s ease-out;
}

@keyframes toast-drop {
  from { transform: translate(-50%, -20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.audit-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 600px;
  width: 90%;
  margin: auto;
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.audit-modal::backdrop {
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
}

.audit-card {
  background: var(--bg-card);
  border: 2px solid var(--brand-cyan);
  border-radius: 16px;
  padding: 2rem;
  color: var(--text-primary);
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.9), 0 0 30px var(--glow-cyan);
}

.audit-badge-seal {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.audit-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.audit-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.audit-payload-box {
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brand-emerald);
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
}

.audit-footer-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Footer */
.enterprise-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.enterprise-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.enterprise-footer a {
  color: var(--brand-cyan);
  text-decoration: none;
}

.enterprise-footer a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}
