/* ====================================================================
   1. ROOT VARIABLES (Play Money High-Impact Dark Theme)
   ==================================================================== */
:root {
  --bg-pure: #000000;
  --bg-card: #0d0d0d;   /* Lighter dark-grey lift for cards */
  --bg-input: #141414;  /* Distinct entry field background */
  --bg-section: #050505; /* Deep base canvas layer */
  --border-color: #1a1a1a;              
  --border-focus: #00a859;
  
  /* ♿ Softened Typography Hierarchy - Eliminates Eye Strain & Halation */
  --text-primary: #f8fafc;              /* Soft, clean off-white for crisp dominant titles */
  --text-body: #cbd5e1;                 /* Calming slate-grey copy text for high-comfort reading */
  --text-muted: #64748b;                /* Lower-tier descriptive footnotes */
  --text-label: #94a3b8;                
  
  /* Core Accents */
  --mint-green: #00a859;                /* Your glowing 1pt emerald border color */
  --mint-hover: #008f4c;
  --red-alert: #ff4444;
  
  /* 💎 The Pop Color Accent */
  --vibrant-blue: #00bfff;              /* Eye-catching radiant light blue pop element */

/* 👑 The Financial Power Accent */
  --gold: #E1A91A;                      /* Vibrant gold for master titles and capital balances */
}
/* ====================================================================
   2. SYSTEM RESET PIPELINE
   ==================================================================== */
html, body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: var(--text-body);
  background-color: var(--bg-pure);
  line-height: 1.6;
  overscroll-behavior-y: none;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
}

#main-body {
  width: 100%;
}
/* Forces all standard layout blocks to inherit eye-friendly slate copy text */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
}

p, span, label, li {
  color: var(--text-body);
}

/* =========================================================================
   3. THE COMPACT CARD SPECIFICATION (Vibrant Green Outline Framework)
   ========================================================================= */
.card {
  width: 100%;
  box-sizing: border-box;
  margin: 40px auto;
}
.card.settings-view {
  background-color: var(--bg-card);
  border: 3px solid var(--border-focus); /* Thickened 3px line using your root variable */
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 168, 89, 0.2);
  max-width: 440px;
  padding: 35px 24px;
  margin: 40px auto;
  text-align: center; /* Enforces clean title centering */
  
  /* 💎 TRUE GLASSMORPHISM ACTIVATORS (Keep these here!) */
  backdrop-filter: blur(24px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(220%) !important;
}

/* Symmetrical header accent line matching the signature layout */
.card.settings-view h3.settings-subtitle {
  border-bottom: 1px solid var(--border-inner);
  padding-bottom: 25px;
  margin: 0 0 40px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-body);
}

/* Perfect alignment mechanics for your header elements */
.emoji {
  font-size: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px auto;
}

/* App metadata label tracking styles */
.app-brand-label {
  color: var(--vibrant-blue); /* Switches this metadata string to your favorite light blue */
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 10px 0;
}

/* Centering forces for Javascript injected title containers */
.play-money-branding,
.play-money-branding h1 {
  text-align: center;
  margin: 0 auto;
  width: 100%;
  display: block;
}
.play-money-branding h1 {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.5px;
  color: var(--gold); /* Forces your primary brand header to dominate in gold */
}
/* ========================================================================
   4. PREMIUM ACTION BUTTONS & SLIDER CONTROLS
   ======================================================================== */
.action-btn-prime {
  display: inline-block;
  width: 100%;
  background-color: var(--mint-green);
  color: #000000;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  padding: 14px 24px;
  border: none;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  text-align: center;
}

.action-btn-prime:hover:not(:disabled) {
  background-color: var(--mint-hover);
}

.action-btn-prime:active:not(:disabled) {
  transform: scale(0.98);
}

.action-btn-prime:disabled {
  background-color: var(--bg-input);
  color: var(--text-muted);
  cursor: not-allowed;
  border: 1px solid var(--border-color);
}

/* --- Smooth Flat Custom Switch Toggles --- */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

/* Background Slider Tray */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--border-inner);
  border-radius: 24px;
  transition: background-color 0.2s ease;
}

/* Floating White Dot Knob Indicator */
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: var(--text-primary);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

input:checked + .slider {
  background-color: var(--mint-green);
  box-shadow: 0 0 10px rgba(0, 168, 89, 0.3);
}

/* Smooth sliding transform movement mechanics */
input:checked + .slider:before {
  transform: translateX(20px);
}
/* ========================================================================
   5. UNIVERSAL COMPLIANCE GATEWAYS & SEVERANCE LOGISTICS
   ======================================================================== */

/* Symmetrical alignment layout boundaries for the agreement checkbox wrapper */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0;
  text-align: left;
}

.checkbox-container input[type="checkbox"] {
  margin-top: 4px;
  cursor: pointer;
  accent-color: var(--mint-green); /* Syncs checkbox color natively on modern layout engines */
}

.checkbox-container label {
  font-size: 13px;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
}

/* Master system data severance component container region */
.teardown-container {
  margin-top: 40px;
  border-top: 1px solid var(--border-inner);
  padding-top: 25px;
}

/* Balanced account termination action trigger — drops messy border lines */
#delete-account-btn {
  width: 100%;
  padding: 15px;
  background: transparent;
  color: var(--red-alert);
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

#delete-account-btn:hover {
  background-color: rgba(255, 68, 68, 0.05);
  border-color: var(--red-alert);
}

/* Low-profile centered global return dashboard link action tracking */
.back-link {
  display: inline-block;
  margin-top: 30px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--text-primary);
}

/* Mobile scale constraints configuration override parameters */
@media (max-width: 600px) {
.card.settings-view {
  padding: 35px 24px !important;
  margin: 40px auto !important;
  border-radius: 20px !important;
  border: 3px solid var(--border-focus) !important; /* Forces the 3px green outline onto desktop */
  background-color: var(--bg-card) !important;
}

}
/* ==========================================================================
   6. INDEX DASHBOARD FRAME (High-Impact Minimalist Realignment)
   ========================================================================== */
.dashboard-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 720px; /* Synchronizes seamlessly with your main section container width */
  padding: 40px;
  box-sizing: border-box;
  position: relative;
}

/* Minimalist floating dashboard setup gear trigger link */
.discrete-gear {
  align-self: flex-end;
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.3s ease, background-color 0.2s ease;
  margin-bottom: 25px;
  padding: 10px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.discrete-gear:hover {
  color: var(--mint-green);
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-focus);
}

.dashboard-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.status-badge {
  color: var(--text-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--bg-section);
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.play-money-text {
  font-size: 68px;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin: 10px 0 0 0;
  line-height: 1;
  color: var(--text-primary);
}

.motivation-text {
  color: var(--text-label);
  font-size: 15px;
  margin: 0;
  min-height: 22px;
  font-weight: 400;
  line-height: 1.6;
}

.token-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

@keyframes spin { 
  100% { transform: rotate(360deg); } 
}
.spinning { 
  animation: spin 1s linear infinite; 
}

/* Minimalist Top System System Banner Notifications */
.beta-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--mint-green);
  color: #000000;
  text-align: center;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 100;
  box-sizing: border-box;
}

/* Pull-to-refresh minimal prompt widget matching layout borders */
#ptr-wrapper {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 90;
  transform: translateY(0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

#ptr-text {
  display: inline-block;
  background: var(--bg-pure);
  color: var(--mint-green);
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

/* Structural footer button links styles */
.logout-container {
  margin-top: 40px;
  width: 100%;
}

.logout-btn-minimal {
  width: 100%;
  padding: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.logout-btn-minimal:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.01);
}

.legal-footer {
  margin: 40px auto 20px auto;
  width: 90%;
  max-width: 720px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-footer a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  transition: color 0.2s, border-color 0.2s;
}

.legal-footer a:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}
/* ========================================================================
   7. SETTINGS PAGE SPECIFICS (High-Impact Minimalist Form Alignment)
   ======================================================================== */

/* Content containment boxes styled to match full-bleed section layers */
.automation-box, 
.legal-box {
  background: rgba(15, 23, 42, 0.95) !important; /* 🔵 High-contrast rich slate blue lift */
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important; /* Clean, visible interior specular line */
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6); /* Creates physical internal inset depth */
}

.legal-text {
  font-size: 14px !important;
  color: #cbd5e1 !important; /* Crisp, readable off-white */
  line-height: 1.65 !important;
  margin: 0;
  padding-right: 8px;
  text-align: left;
}

/* Symmetrical layout headers inside nested content wrappers */
.toggle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.toggle-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold); /* Warning headers stand out clearly in gold */
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Clear, highly readable text arrays that override text clamping stutters */
/* Clear, highly readable text arrays that override text clamping stutters */
#legal-text-target, #toggle-subtext-target, .legal-text {
  max-height: 220px !important; /* Fixed symmetrical containment size */
  overflow-y: auto !important;   /* Enforces scrolling functionality */
  font-size: 14px !important;    /* Optimal ADA compliance text sizing */
  line-height: 1.65 !important;
  color: #cbd5e1 !important;     /* Crisp, readable off-white text tone */
  background: transparent !important; /* Let the box's slate-blue background lift show through */
  padding: 4px 8px 4px 0 !important; /* Adds clear inner text breathing room */
  border: none !important;
  text-align: left !important;   /* Keeps legal prose clean and easy to read */
}

.toggle-subtext p {
  margin: 0 0 16px 0;
}

.toggle-subtext ul {
  margin: 0;
  padding-left: 20px;
}

.toggle-subtext li {
  margin-bottom: 12px;
  list-style-type: disc;
  color: var(--text-label);
}

.toggle-subtext li:last-child {
  margin-bottom: 0;
}

/* Document title metadata label headers */
.legal-title {
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.legal-text p {
  margin: 0 0 16px 0;
}

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

.legal-text li {
  margin-bottom: 12px;
  list-style-type: disc;
  color: var(--text-label);
}

.legal-text li:last-child {
  margin-bottom: 0;
}

.legal-text strong {
  color: var(--text-primary);
  font-weight: 600;
}
/* ==========================================================================
   8. MATRIX PAGE SPECIFICS (High-Impact Minimalist Matrix Grid)
   ========================================================================== */
.matrix-container {
  max-width: 1050px;
  width: 100%;
  box-sizing: border-box;
  padding: 20px;
  margin: 0 auto;
}

#matrix-body h2 {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 0 0 10px 0;
  text-align: center;
  color: var(--text-primary); /* Uses soft, calming slate-off-white natively */
}

p.subtitle {
  font-size: 11px;
  color: var(--mint-green);
  margin-bottom: 35px;
  text-align: center;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Symmetrical Dashboard Summary Metric Panel Layout */
.summary-dashboard {
  display: flex;
  justify-content: space-between;
  background-color: var(--bg-section);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 40px;
  gap: 15px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.summary-metric {
  text-align: center;
  flex: 1;
}
.summary-metric h3 {
  margin: 0;
  font-size: 11px;
  color: var(--vibrant-blue); /* Accents internal box trackers with a premium blue hint */
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0.85;
}
.summary-metric p {
  margin: 15px 0 0 0;
  font-size: 24px;
  font-weight: 700;
  font-family: monospace;
  color: var(--gold); /* Your cash metrics and play money balances shine in gold */
}

/* Symmetrical Grid Column Assignments for Form Rows */
.header-row, 
.matrix-row {
  display: grid;
  grid-template-columns: 35% 12% 12% 12% 24% 5%;
  gap: 15px;
  align-items: center;
  margin-bottom: 14px;
}

.header-row {
  font-weight: 700;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  text-align: center;
  font-size: 10px;
  cursor: pointer;
  user-select: none;
  font-weight: bold;
  
  /* FIX: Sharp emerald green background to ensure the indicator pops off the black */
  background-color: rgba(0, 168, 89, 0.2) !important;
  color: var(--vibrant-blue) !important; /* Injects your light blue pop color as the inner 'i' text */
  border: 1px solid var(--mint-green) !important;
  box-shadow: 0 0 6px rgba(0, 168, 89, 0.3);
}

/* Force header labels to inherit your clear slate color natively */
.header-row span {
  color: var(--text-body) !important;
}

/* Integrated Text and Currency Inputs */
#matrix-body input {
  width: 100%;
  padding: 12px 14px;
  background-color: var(--bg-pure);
  color: var(--text-primary);
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;

  /* 🟩 Precise 1px Deep Glowing Money Green Input Outlines */
  border: 1px solid #00a859 !important;
  box-shadow: 0 0 8px rgba(0, 168, 89, 0.15),
              inset 0 0 4px rgba(0, 168, 89, 0.05);
}

#matrix-body input:focus {
  outline: none;
  border-color: var(--mint-green);
  box-shadow: 0 0 8px rgba(0, 168, 89, 0.4);
}

#matrix-body input::placeholder {
  /* FIX: Forces the placeholder text to use the clear, visible slate-grey color */
  color: var(--text-muted) !important;
  font-style: italic;
  opacity: 0.85; /* Boosted from 0.4 to prevent it from vanishing */
}

/* Include Webkit support for reliable desktop/mobile rendering */
#matrix-body input::-webkit-input-placeholder {
  color: var(--text-muted) !important;
  opacity: 0.85;
}

#matrix-body input:disabled {
  background: transparent;
  border-color: transparent;
  color: var(--text-primary);
  padding-left: 0;
  font-family: monospace;
  font-size: 16px;
  opacity: 1;
  -webkit-text-fill-color: var(--text-primary);
}

.input-locked {
  color: var(--text-muted);
  background-color: rgba(0, 168, 89, 0.02) !important;
  border: 1px solid rgba(0, 168, 89, 0.4) !important; /* Muted but visible glowing trace line */
}

.name-input {
  text-overflow: ellipsis;
  min-width: 0;
}

.name-group {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.offset-input {
  width: 120px !important;
  background-color: var(--bg-pure) !important;
  border-color: var(--border-color) !important;
  text-align: center;
  flex: none;
}

.read-only-text {
  font-family: monospace;
  font-size: 16px;
  color: var(--text-primary);
  text-align: right;
}

/* Symmetrical High-Contrast Progress Bars */
.progress-container {
  width: 100%;
  background-color: #030704 !important; /* Deep dark track foundation */
  border-radius: 6px;
  overflow: visible; /* Allows the glow to bleed outward cleanly */
  height: 20px;
  position: relative;
  border: 1px solid rgba(0, 168, 89, 0.3) !important;
}

.progress-fill {
  height: 100%;
  background-color: var(--mint-green) !important;
  border-radius: 4px;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* 🟩 Dual-Layer Radiant Progress Glow Stack */
  box-shadow: 0 0 12px #00a859,
              0 0 4px rgba(255, 255, 255, 0.2) inset !important;
}

.progress-text {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 3px;
  left: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: 1px 1px 2px #000000;
  letter-spacing: 0.5px;
}

/* Symmetrical Action Sub-Buttons */
.btn-group {
  display: flex;
  gap: 15px;
  margin-top: 35px;
}

#matrix-body button {
  flex: 1;
  padding: 14px 24px;
  background-color: var(--mint-green);
  color: #000000;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#matrix-body button:hover {
  background-color: var(--mint-hover);
}

#matrix-body button:active {
  transform: scale(0.98);
}

#matrix-body button:disabled {
  background-color: var(--bg-section);
  color: var(--text-muted);
  cursor: not-allowed;
  border: 1px solid var(--border-color);
  transform: none;
}

.btn-secondary {
  background-color: transparent !important;
  color: var(--text-body) !important;
  border: 1px solid var(--border-color) !important;
}

.btn-secondary:hover {
  background-color: var(--bg-section) !important;
  border-color: var(--border-focus) !important;
  color: #ffffff !important;
}

.btn-add {
  background: transparent !important;
  color: var(--text-muted) !important;
  border: 1px dashed var(--border-color) !important;
  width: 100%;
  padding: 14px;
  margin-top: 15px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.btn-add:hover {
  color: var(--text-primary) !important;
  border-color: var(--border-focus) !important;
  background-color: var(--bg-section) !important;
  cursor: pointer;
}

.btn-delete {
  background-color: var(--bg-section) !important;
  color: var(--red-alert) !important;
  border: 1px solid var(--border-color) !important;
  font-size: 14px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s, border-color 0.2s;
  opacity: 0.7;
}

.btn-delete:hover {
  opacity: 1;
  background-color: rgba(255, 68, 68, 0.05) !important;
  border-color: var(--red-alert) !important;
}

.btn-delete:disabled {
  opacity: 0;
  cursor: default;
}

.masked {
  filter: blur(8px);
  opacity: 0.15;
  user-select: none;
  pointer-events: none;
}

/* High-Security Dynamic Verification Modals */
#pin-modal {
  display: flex;
  z-index: 9999;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.pin-box {
  background-color: var(--bg-card);
  padding: 45px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border-color);
  max-width: 360px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.pin-box h3 {
  margin-top: 0;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  font-size: 22px;
}

.pin-input {
  font-size: 24px !important;
  text-align: center;
  letter-spacing: 8px;
  width: 160px !important;
  margin: 25px auto;
  display: block;
  background-color: var(--bg-pure) !important;
  border: 1px solid var(--border-inner) !important;
  border-radius: 6px;
  padding: 12px !important;
  color: var(--mint-green) !important;
  font-family: monospace !important;
}

.pin-input:focus {
  border-color: var(--border-focus) !important;
  outline: none;
}

.error-message {
  color: var(--red-alert);
  font-size: 13px;
  display: none;
  margin-top: 12px;
  font-weight: 600;
}

#validation-error {
  color: var(--text-muted);
  font-size: 13px;
  display: none;
  text-align: center;
  margin-top: 20px;
  font-weight: 600;
}

/* Translucent Action Status Banners */
#mobile-toast {
  visibility: hidden;
  min-width: 280px;
  background-color: var(--bg-card);
  color: var(--text-primary);
  text-align: center;
  border-radius: 6px;
  padding: 16px;
  position: fixed;
  z-index: 10000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s, visibility 0.3s;
}

#mobile-toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

/* ==========================================================================
   MOBILE DATA STACK RESPONSIVENESS OVERRIDES
   ========================================================================== */
@media (max-width: 768px) {
  #matrix-body { padding: 10px; }
  .matrix-container { padding: 10px; }
  .summary-dashboard { flex-direction: column; gap: 20px; padding: 20px; }
  .header-row { display: none !important; }
  
    .matrix-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--bg-section);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    position: relative;
    gap: 14px;

 /* 🟩 1px Deep Glowing Money Green Structural Borders */
    border: 1px solid #00a859 !important;
    box-shadow: 0 0 12px rgba(0, 168, 89, 0.25),
                inset 0 0 8px rgba(0, 168, 89, 0.1) !important;
  }
}  
  #matrix-body input { font-size: 16px !important; padding: 12px; }
  .name-group { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  .name-input { width: 100% !important; margin-bottom: 4px; }
  .offset-input { width: 45% !important; text-align: left; padding-left: 12px;}
  
  .read-only-text {
    text-align: left;
    font-size: 15px;
    font-weight: bold;
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
  
  .read-only-text::before {
    content: "Surplus/Deficit: ";
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: sans-serif;
    font-weight: normal;
    display: inline-block;
  }
  
  .progress-container { height: 24px !important; margin-top: 4px; border-radius: 6px; }
  .btn-delete { position: absolute; top: 14px; right: 14px; width: 32px !important; height: 32px !important; z-index: 5; }
}
/* Gives alternating allocation blocks a distinct, deep background contrast */
.matrix-row:nth-child(even) {
  background-color: #060b07 !important; /* Extremely deep emerald-tinted midnight black */
  border-color: rgba(0, 168, 89, 0.45) !important; /* Slightly boosted border accent */
}

.matrix-row:nth-child(odd) {
  background-color: #020202 !important; /* Pure onyx black */
  border-color: rgba(0, 168, 89, 0.25) !important;
}

/* Add a clean vertical divider gap between the blocks */
.matrix-row {
  margin-bottom: 28px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   9. STEALTH RESERVE TICKER (Phase 4 — Real-Time Loop Optimization)
   ========================================================================== */
#ticker-mount-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 99999;
  background-color: var(--bg-pure);
  color: #39ff14; /* Matrix neon terminal green */
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-color);
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  padding: 0;
}

.reserve-ticker-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  padding: 6px 0;
}

.reserve-ticker {
  display: inline-block;
  padding-left: 100%;
  
  /* GPU isolated dynamic linear loop translation matrix */
  animation: marqueeLinearLoop 51s linear infinite;
  will-change: transform;
}

@keyframes marqueeLinearLoop {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

#reserve-hijack-overlay select, 
#reserve-hijack-overlay button {
  pointer-events: auto;
}

/* ============================================================================
   10. ENTERPRISE SYSTEM STATE MODIFIERS (High-Impact Minimalist)
   ============================================================================ */

/* Asynchronous Booting States */
.status-badge.booting {
  color: var(--mint-green);
  background-color: rgba(34, 197, 94, 0.08);
  border-color: var(--border-color);
}

.play-money-text.loading-state {
  color: var(--text-primary);
  font-size: 32px;
  margin: 20px 0;
  font-weight: 600;
  letter-spacing: -0.5px;
}

/* ♿ Comprehensive ADA AAA Contrast-Safe Utility Classes */
.text-success, 
.compliance-status-valid, 
.custom-green-text {
  color: var(--mint-green) !important;
  font-weight: 600;
}

.text-warning, 
.action-required {
  color: #fbbf24 !important; /* Premium high-contrast amber */
  font-weight: 600;
  font-size: 14px;
}

/* Thin Scrollbar Configuration Tracks matching the Landing Framework */
#legal-text-target, 
#toggle-subtext-target, 
.legal-text {
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

#legal-text-target::-webkit-scrollbar,
#toggle-subtext-target::-webkit-scrollbar,
.legal-text::-webkit-scrollbar {
  width: 6px;
}

#legal-text-target::-webkit-scrollbar-track,
#toggle-subtext-target::-webkit-scrollbar-track,
.legal-text::-webkit-scrollbar-track {
  background: transparent;
}

#legal-text-target::-webkit-scrollbar-thumb,
#toggle-subtext-target::-webkit-scrollbar-thumb,
.legal-text::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 4px;
}
