:root {
  color-scheme: light;
  font-family: "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  --ink: #132033;
  --muted: #617089;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-solid: #ffffff;
  --soft: #eaf7ff;
  --line: rgba(20, 102, 180, 0.16);
  --yellow: #f6d64a;
  --pink: #1fb7ff;
  --cyan: #00c7ff;
  --green: #2ed3a7;
  --red: #e81738;
  --orange: #35a7ff;
  --blue: #1479ff;
  --deep: #07111f;
  --violet: #3157ff;
  --sunset: linear-gradient(135deg, #0aa7ff 0%, #1479ff 52%, #2ed3a7 100%);
  --sunset-soft: linear-gradient(135deg, rgba(10, 167, 255, 0.16), rgba(20, 121, 255, 0.14) 52%, rgba(46, 211, 167, 0.16));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  background:
    linear-gradient(120deg, rgba(10, 167, 255, 0.24), transparent 34%),
    linear-gradient(300deg, rgba(46, 211, 167, 0.18), transparent 38%),
    linear-gradient(135deg, #f7fcff 0%, #e8f6ff 48%, #dff7ff 100%);
}

body.logged-in {
  color: #f7fbff;
  background:
    linear-gradient(90deg, rgba(9, 55, 111, 0.72), rgba(11, 107, 184, 0.36) 46%, rgba(5, 75, 138, 0.7)),
    linear-gradient(180deg, rgba(10, 167, 255, 0.26), rgba(46, 211, 167, 0.18)),
    url("assets/ai-background.jpeg") center top / cover fixed;
}

body.logged-in::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(10, 167, 255, 0.24), transparent 42%),
    radial-gradient(circle at center, rgba(46, 211, 167, 0.18), transparent 34rem);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.page-shell {
  min-height: 100vh;
  padding: 32px;
}

.login-view,
.welcome-view {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: stretch;
  max-width: 1100px;
  margin: 6vh auto;
}

.brand-panel,
.login-card,
.welcome-copy,
.welcome-grid article,
.scanner-layout,
.analysis-panel,
.strategy-panel,
.stat-grid article,
.counter-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(50, 78, 110, 0.16);
}

.brand-panel,
.welcome-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 252, 255, 0.88)),
    linear-gradient(135deg, rgba(9, 184, 200, 0.12), rgba(255, 200, 61, 0.12));
}

.brand-panel::after {
  position: absolute;
  right: -80px;
  bottom: -130px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(9, 184, 200, 0.28);
  border-radius: 50%;
  content: "";
}

.brand-topline,
.login-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.brand-topline span,
.login-foot span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(9, 184, 200, 0.22);
  border-radius: 999px;
  padding: 0 12px;
  color: #087f9d;
  background: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.brand-mark,
.scanner-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-size: 2.4rem;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(233, 30, 126, 0.24);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  font-weight: 750;
  line-height: 0.98;
}

h2,
h3 {
  font-weight: 720;
  letter-spacing: 0;
}

.brand-panel p,
.welcome-copy p {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.brand-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.brand-metrics article {
  min-height: 84px;
  border: 1px solid rgba(19, 32, 51, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.brand-metrics strong,
.brand-metrics span {
  display: block;
}

.brand-metrics strong {
  color: #0b8ca0;
  font-size: 1.4rem;
}

.brand-metrics span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 44px;
}

.feature-list h2 {
  margin-bottom: 4px;
  color: #b87400;
}

.feature-list div {
  color: #223149;
}

.feature-list span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--cyan);
}

.login-card {
  display: grid;
  gap: 18px;
  padding: 30px;
  align-content: center;
}

.eyebrow {
  margin-bottom: 7px;
  color: #c1166b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-card h2,
.control-panel h2 {
  margin-bottom: 0;
}

label {
  display: grid;
  gap: 8px;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(10, 17, 29, 0.14);
  border-radius: 8px;
  padding: 0 16px;
  color: #152033;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(9, 184, 200, 0.14);
}

.segmented,
.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.segmented button,
.ghost-button {
  min-height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  color: #182234;
  background: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.segmented .active {
  border-color: transparent;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.primary-action,
.start-button,
.stop-button,
.mini-action {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  color: white;
  font-weight: 750;
}

.primary-action,
.start-button,
.mini-action {
  background: linear-gradient(135deg, #18b978, #09b8c8);
}

.primary-action:hover,
.start-button:hover,
.mini-action:hover,
.segmented button:hover,
.ghost-button:hover,
.mode-strip button:hover,
.admin-floating-bar a:hover,
.admin-floating-bar button:hover {
  transform: translateY(-1px);
}

.stop-button {
  background: linear-gradient(135deg, #ff4561, #e81738);
}

.mini-action {
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.access-link {
  justify-self: center;
  color: #c1166b;
  font-weight: 750;
  text-decoration: none;
}

.access-button {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(9, 184, 200, 0.34);
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #0dbb72, #0ba7b8);
  box-shadow: 0 14px 30px rgba(9, 184, 200, 0.2);
}

.access-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(9, 184, 200, 0.26);
}

.login-message {
  min-height: 20px;
  margin: 0;
  color: #ba123f;
  font-weight: 700;
}

.welcome-view {
  grid-template-columns: 1fr;
  max-width: 980px;
}

.welcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.welcome-grid article {
  padding: 22px;
}

.wide {
  max-width: 320px;
  width: 100%;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 24px;
}

.app-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.app-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

body.logged-in .app-header h1,
body.logged-in .app-header p {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.ghost-button {
  min-width: 110px;
  color: #172033;
}

main {
  max-width: 1200px;
  margin: 0 auto;
}

.market-tape {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.market-tape::-webkit-scrollbar {
  display: none;
}

.market-tape span {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 9px 14px 0;
  color: #ffffff;
  background: rgba(6, 16, 31, 0.42);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.stat-grid article {
  min-height: 92px;
  padding: 20px;
  border-bottom: 3px solid var(--yellow);
}

.stat-grid span {
  display: block;
  color: #c1166b;
  font-weight: 750;
}

.stat-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 1.2rem;
}

.scanner-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  padding: 28px;
}

body.logged-in .welcome-copy,
body.logged-in .welcome-grid article,
body.logged-in .scanner-layout,
body.logged-in .analysis-panel,
body.logged-in .counter-panel,
body.logged-in .strategy-panel,
body.logged-in .stat-grid article {
  color: #172033;
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

body.logged-in .welcome-copy p {
  color: #43536b;
}

.scanner-intro {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.scanner-intro h2 {
  margin: 18px 0 8px;
  color: #c98900;
}

.scanner-intro p {
  max-width: 34ch;
  color: #8d3a44;
}

.scan-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 18px;
  border: 2px solid var(--green);
  border-radius: 999px;
  color: #0f9257;
  background: rgba(24, 185, 120, 0.12);
  font-weight: 900;
}

.scan-pill.complete {
  border-color: var(--blue);
  color: #1854c8;
  background: rgba(33, 102, 243, 0.12);
}

.control-panel {
  display: grid;
  gap: 16px;
}

.risk-controls {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 12px;
}

.mode-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mode-strip button {
  min-height: 42px;
  border: 1px solid rgba(19, 32, 51, 0.14);
  border-radius: 8px;
  color: #172033;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.mode-strip button.active {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, #172033, #087f9d);
}

.execution-console {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(9, 184, 200, 0.22);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(232, 250, 255, 0.92)),
    linear-gradient(90deg, rgba(9, 184, 200, 0.12), rgba(255, 200, 61, 0.12));
}

.console-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.console-header h3 {
  margin-bottom: 0;
}

.console-header > span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: #087f5b;
  background: rgba(24, 185, 120, 0.14);
  font-size: 0.78rem;
  font-weight: 900;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.console-grid article {
  min-height: 82px;
  border: 1px solid rgba(19, 32, 51, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.console-grid span {
  display: block;
  color: #c1166b;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.console-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.signal-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(19, 32, 51, 0.1);
}

.signal-bar span {
  display: block;
  width: 88%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--yellow));
  transition: width 450ms ease;
}

#deskNote {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.analysis-panel {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  margin-top: 24px;
  padding: 28px;
  border-color: rgba(9, 184, 200, 0.28);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 252, 255, 0.92));
}

.analysis-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.matrix-scan {
  overflow: hidden;
  border: 1px solid rgba(255, 138, 0, 0.34);
  border-radius: 8px;
  color: #d8ffe7;
  background:
    linear-gradient(180deg, rgba(20, 18, 43, 0.96), rgba(8, 13, 31, 0.98)),
    #080d1f;
  box-shadow: 0 22px 48px rgba(47, 16, 58, 0.28);
}

.matrix-titlebar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 9px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 138, 0, 0.18);
  background: linear-gradient(135deg, rgba(245, 31, 122, 0.28), rgba(255, 138, 0, 0.12));
  font-family: "Cascadia Mono", Consolas, monospace;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) {
  background: #ff5b7e;
}

.window-dots span:nth-child(2) {
  background: #ffd43b;
}

.window-dots span:nth-child(3) {
  background: #54ff9f;
}

.matrix-titlebar strong {
  color: #ffffff;
  font-size: 0.82rem;
}

.matrix-titlebar > span {
  color: #ffd98a;
  font-size: 0.78rem;
  font-weight: 900;
}

.matrix-titlebar small {
  border: 1px solid rgba(84, 255, 159, 0.34);
  border-radius: 999px;
  padding: 4px 10px;
  color: #4dff91;
  background: rgba(84, 255, 159, 0.1);
  font-size: 0.68rem;
  font-weight: 900;
}

.matrix-lines {
  display: grid;
  gap: 7px;
  min-height: 214px;
  max-height: 214px;
  overflow: hidden;
  padding: 14px 14px 10px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.35;
}

.matrix-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: #74ff9a;
  text-shadow: 0 0 10px rgba(84, 255, 159, 0.28);
  animation: cascade-in 360ms ease both;
}

.matrix-line span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matrix-line span:first-child {
  color: #ffd43b;
}

.matrix-line span:last-child {
  color: #ff8a00;
}

.raw-pipe {
  display: grid;
  gap: 6px;
  padding: 11px 14px 14px;
  border-top: 1px solid rgba(245, 31, 122, 0.22);
  font-family: "Cascadia Mono", Consolas, monospace;
}

.raw-pipe span {
  color: #f51f7a;
  font-size: 0.72rem;
  font-weight: 900;
}

.raw-pipe code {
  color: #f2f6ff;
  white-space: normal;
}

.matrix-prediction {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(245, 31, 122, 0.28), rgba(255, 138, 0, 0.24));
}

.matrix-prediction span,
.matrix-prediction small {
  display: block;
}

.matrix-prediction span {
  font-weight: 900;
}

.matrix-prediction strong {
  display: block;
  margin: 5px 0;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}

.matrix-prediction small {
  color: #ffe8a3;
  font-weight: 750;
}

.matrix-prediction button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 0 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.analysis-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.progress-orbit {
  position: relative;
  display: grid;
  min-height: 250px;
  place-items: center;
}

.progress-orbit svg {
  width: 220px;
  height: 220px;
  transform: rotate(-90deg);
}

.progress-orbit circle {
  fill: none;
  stroke-width: 12;
}

.track {
  stroke: rgba(19, 32, 51, 0.1);
}

.ring {
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-dasharray: 364.42;
  stroke-dashoffset: 364.42;
  filter: drop-shadow(0 0 15px rgba(9, 184, 200, 0.34));
  transition: stroke-dashoffset 450ms ease;
}

.progress-orbit > div {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 5px;
}

.progress-orbit strong {
  color: #087f9d;
  font-size: 2.7rem;
}

.progress-orbit span {
  color: var(--green);
  font-weight: 750;
}

.progress-orbit small {
  color: var(--muted);
}

.digit-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(58px, 1fr));
  gap: 10px;
}

.digit-card {
  min-height: 78px;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 8px;
  color: #172033;
  background: linear-gradient(180deg, #ffffff, #f3f8fb);
}

.digit-card strong,
.digit-card span {
  display: block;
}

.digit-card strong {
  margin-bottom: 6px;
  font-size: 1.45rem;
}

.digit-card span {
  color: var(--muted);
  font-size: 0.78rem;
}

.best-digit {
  border-color: var(--orange);
  box-shadow: inset 0 -3px 0 var(--orange), 0 10px 24px rgba(255, 138, 0, 0.14);
}

#analysisHint {
  margin: 12px 0 0;
  color: var(--muted);
}

.analysis-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.session-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.session-summary article {
  min-height: 78px;
  border: 1px solid rgba(9, 184, 200, 0.18);
  border-radius: 8px;
  padding: 13px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 251, 255, 0.88));
}

.session-summary span {
  display: block;
  color: #087f9d;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.session-summary strong {
  display: block;
  margin-top: 7px;
  color: #172033;
  font-size: 1.18rem;
}

.analysis-metrics article {
  min-height: 112px;
  border: 1px solid rgba(19, 32, 51, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.analysis-metrics span,
.prediction-grid span {
  display: block;
  color: #c1166b;
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
}

.analysis-metrics strong,
.prediction-grid strong {
  display: block;
  margin: 6px 0;
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  overflow-wrap: anywhere;
}

.analysis-metrics small {
  color: var(--muted);
}

.counter-panel {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  margin-top: 24px;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff, #f0fbff);
}

.counter-panel p {
  color: var(--muted);
}

.counter-lines {
  display: grid;
  gap: 8px;
  max-height: 246px;
  overflow: hidden;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.86rem;
}

.counter-line {
  display: grid;
  grid-template-columns: 58px 1fr 72px;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(9, 184, 200, 0.18);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.82);
  color: #25405f;
  animation: cascade-in 420ms ease both;
}

.counter-line:first-child {
  border-color: rgba(24, 185, 120, 0.34);
  background: rgba(235, 255, 247, 0.9);
}

.counter-line span:first-child,
.counter-line span:last-child {
  color: #087f9d;
  font-weight: 750;
}

@keyframes cascade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.strategy-panel {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: 28px;
  background: var(--panel);
}

.admin-main {
  display: grid;
  gap: 22px;
}

.admin-floating-bar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.admin-floating-bar a,
.admin-floating-bar button {
  min-height: 38px;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 8px;
  padding: 0 14px;
  color: #172033;
  background: #ffffff;
  font-weight: 750;
  text-decoration: none;
}

.admin-floating-bar button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.admin-hero,
.admin-panel,
.admin-grid article {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  color: #172033;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(9px);
}

.admin-hero {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  align-items: center;
  padding: 28px;
}

.admin-hero p {
  color: #43536b;
}

.admin-credentials {
  display: grid;
  gap: 6px;
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.admin-credentials span {
  color: #c1166b;
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
}

.admin-credentials strong {
  font-size: 1.3rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.admin-grid article {
  min-height: 90px;
  padding: 18px;
  border-bottom: 3px solid var(--cyan);
}

.admin-grid span {
  display: block;
  color: #0b6bb8;
  font-weight: 750;
}

.admin-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 1.6rem;
}

.admin-panel {
  padding: 24px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-heading > span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: #087f5b;
  background: rgba(24, 185, 120, 0.12);
  font-weight: 750;
}

.request-list {
  display: grid;
  gap: 10px;
}

.request-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(19, 32, 51, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.request-card strong,
.request-card span {
  display: block;
}

.request-card span,
.request-card small {
  color: var(--muted);
}

.request-card button,
.table-actions button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  color: white;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  font-weight: 750;
}

.create-user-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(130px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid rgba(20, 102, 180, 0.14);
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(232, 247, 255, 0.88), rgba(255, 255, 255, 0.86));
}

.create-user-form .primary-action {
  min-width: 140px;
  padding-inline: 18px;
}

.create-user-form .login-message {
  grid-column: 1 / -1;
  min-height: 0;
  margin: 0;
  color: #0b6bb8;
}

.user-table-wrap {
  overflow-x: auto;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.user-table th,
.user-table td {
  border-bottom: 1px solid rgba(19, 32, 51, 0.1);
  padding: 13px 10px;
  text-align: left;
}

.user-table th {
  color: #0b6bb8;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: white;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: capitalize;
}

.status-pill.pending {
  background: var(--orange);
}

.status-pill.active {
  background: var(--green);
}

.status-pill.inactive {
  background: #68768a;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.table-actions button:nth-child(2) {
  background: linear-gradient(135deg, var(--orange), #d97706);
}

.table-actions button:nth-child(3) {
  background: linear-gradient(135deg, #ff4561, var(--red));
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.strategy-grid article {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  padding: 18px;
  background: white;
}

.risk {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: white;
  font-size: 0.82rem;
  font-weight: 750;
}

.risk.high {
  background: var(--red);
}

.risk.medium {
  background: var(--orange);
}

.risk.low {
  background: #0fa66a;
}

.prediction-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(19, 32, 51, 0.38);
  backdrop-filter: blur(8px);
}

.prediction-widget {
  position: relative;
  width: min(100%, 520px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  padding: 26px;
  color: #152033;
  background: linear-gradient(135deg, #ffffff, #eafdff);
  box-shadow: 0 30px 100px rgba(19, 32, 51, 0.28);
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: #172033;
  font-weight: 900;
}

.prediction-main {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  margin: 18px 0;
}

.prediction-main > strong {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-size: clamp(1.6rem, 5vw, 3rem);
  text-align: center;
  box-shadow: 0 14px 34px rgba(233, 30, 126, 0.24);
}

.prediction-main span {
  color: #087f9d;
  font-weight: 900;
}

.prediction-main p {
  margin: 8px 0 0;
  color: var(--muted);
}

.prediction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.prediction-grid article {
  border: 1px solid rgba(19, 32, 51, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: white;
}

@media (max-width: 900px) {
  .login-view,
  .scanner-layout,
  .analysis-panel,
  .counter-panel {
    grid-template-columns: 1fr;
  }

  .welcome-grid,
  .stat-grid,
  .strategy-grid,
  .analysis-metrics,
  .session-summary,
  .console-grid,
  .risk-controls,
  .admin-grid,
  .admin-hero {
    grid-template-columns: 1fr;
  }

  .request-card {
    grid-template-columns: 1fr;
  }

  .digit-grid {
    grid-template-columns: repeat(5, minmax(58px, 1fr));
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 18px;
  }

  .login-view {
    grid-template-columns: 1fr;
    margin: 2vh auto;
  }

  .app-header,
  .analysis-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .digit-grid,
  .prediction-grid,
  .brand-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .mode-strip {
    grid-template-columns: 1fr;
  }

  .matrix-titlebar {
    grid-template-columns: auto 1fr auto;
  }

  .matrix-titlebar > span {
    display: none;
  }

  .matrix-lines {
    font-size: 0.7rem;
  }

  .prediction-main {
    grid-template-columns: 1fr;
  }
}

/* Premium sunset theme */
.brand-panel,
.welcome-copy {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 246, 224, 0.88)),
    var(--sunset-soft);
}

.brand-panel::after {
  border-color: rgba(245, 31, 122, 0.24);
}

.brand-topline span,
.login-foot span,
.panel-heading > span,
.console-header > span {
  border-color: rgba(245, 31, 122, 0.2);
  color: #b9155d;
  background: rgba(255, 245, 225, 0.78);
}

.brand-mark,
.scanner-icon,
.segmented .active,
.primary-action,
.start-button,
.mini-action,
.access-button,
.admin-floating-bar button,
.request-card button,
.table-actions button,
.prediction-main > strong {
  background: var(--sunset);
  box-shadow: 0 16px 34px rgba(245, 31, 122, 0.22);
}

.stop-button,
.table-actions button:nth-child(3) {
  background: linear-gradient(135deg, #d9165f, #ff4b33);
}

.table-actions button:nth-child(2),
.risk.medium {
  background: linear-gradient(135deg, #ff7a18, #ffb000);
}

.feature-list h2,
.scanner-intro h2 {
  color: #d65f00;
}

.feature-list span,
.status-pill.active,
.risk.low {
  background: linear-gradient(135deg, #ff8a00, #ffd43b);
}

input:focus,
select:focus {
  border-color: #ff8a00;
  box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.16);
}

.market-tape span {
  border-color: rgba(255, 212, 59, 0.34);
  background: rgba(96, 34, 16, 0.48);
}

.stat-grid article,
.admin-grid article {
  border-bottom-color: #ffb000;
}

body.logged-in .welcome-copy,
body.logged-in .welcome-grid article,
body.logged-in .scanner-layout,
body.logged-in .analysis-panel,
body.logged-in .counter-panel,
body.logged-in .strategy-panel,
body.logged-in .stat-grid article,
.admin-hero,
.admin-panel,
.admin-grid article {
  background: rgba(255, 248, 234, 0.72);
  border-color: rgba(255, 212, 59, 0.34);
}

.mode-strip button.active {
  background: linear-gradient(135deg, #f51f7a, #ff8a00);
}

.execution-console,
.analysis-panel,
.counter-panel,
.prediction-widget {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 245, 220, 0.9)),
    var(--sunset-soft);
  border-color: rgba(255, 138, 0, 0.26);
}

.signal-bar span {
  background: linear-gradient(90deg, #f51f7a, #ff7a18, #ffd43b);
}

.ring {
  stroke: #ff8a00;
  filter: drop-shadow(0 0 15px rgba(255, 138, 0, 0.36));
}

.progress-orbit strong,
.prediction-main span,
.session-summary span,
.counter-line span:first-child,
.counter-line span:last-child {
  color: #c94700;
}

.progress-orbit span,
.scan-pill {
  color: #bd155a;
}

.scan-pill {
  border-color: #ff8a00;
  background: rgba(255, 138, 0, 0.14);
}

.scan-pill.complete {
  border-color: #f51f7a;
  color: #b9155d;
  background: rgba(245, 31, 122, 0.12);
}

.digit-card {
  background: linear-gradient(180deg, #ffffff, #fff6df);
}

.best-digit {
  border-color: #f51f7a;
  box-shadow: inset 0 -3px 0 #f51f7a, 0 10px 24px rgba(245, 31, 122, 0.16);
}

.session-summary article,
.counter-line {
  border-color: rgba(255, 138, 0, 0.22);
  background: rgba(255, 250, 235, 0.9);
}

.counter-line:first-child {
  border-color: rgba(245, 31, 122, 0.34);
  background: rgba(255, 240, 218, 0.92);
}

.admin-floating-bar {
  background: rgba(255, 248, 234, 0.82);
}

.status-pill.pending,
.risk.high {
  background: linear-gradient(135deg, #f51f7a, #e81738);
}

/* Screenshot-matched app theme */
body {
  background: #121a2a;
}

body:not(.logged-in) {
  background:
    linear-gradient(180deg, #ffffff 0 78px, transparent 78px),
    linear-gradient(135deg, #10192a, #172234 62%, #111827);
}

.page-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px 42px;
}

.login-view,
.welcome-view {
  max-width: 654px;
  margin: 0 auto;
  gap: 0;
}

.login-view {
  grid-template-columns: 1fr;
  padding-top: 78px;
}

.brand-panel,
.login-card,
.welcome-copy,
.welcome-grid article,
.scanner-layout,
.analysis-panel,
.strategy-panel,
.stat-grid article,
.counter-panel,
.admin-hero,
.admin-panel,
.admin-grid article {
  border-radius: 26px;
}

.login-view .brand-panel {
  min-height: 280px;
  border: 0;
  border-radius: 0;
  padding: 54px 64px 42px;
  color: #ffffff;
  background: linear-gradient(135deg, #ffd200 0%, #ff7a00 48%, #f42a91 100%);
  box-shadow: none;
}

.login-view .brand-panel::after,
.login-view .brand-topline,
.login-view .brand-metrics {
  display: none;
}

.login-view .brand-mark {
  width: 92px;
  height: 92px;
  margin-bottom: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  font-size: 0;
  font-weight: 500;
}

.login-view .brand-mark::before {
  content: "$";
  font-size: 3.9rem;
}

.login-view .brand-panel h1 {
  max-width: 420px;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: clamp(3.2rem, 9vw, 5rem);
  line-height: 1.08;
}

.login-view .brand-panel p {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.3rem, 4.6vw, 2rem);
}

.login-view .feature-list {
  display: none;
}

.login-card {
  min-height: 760px;
  border: 1px solid rgba(255, 220, 52, 0.78);
  border-radius: 0 0 28px 28px;
  padding: 86px 64px 84px;
  background: #ffffff;
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.28);
}

.login-card > div:first-child {
  display: none;
}

.login-card label {
  gap: 0;
  color: #101827;
  font-size: 0;
  text-transform: none;
}

.login-card input {
  min-height: 120px;
  border: 3px solid #e3e4e8;
  border-radius: 24px;
  padding: 0 36px;
  color: #101827;
  background: #ffffff;
  font-size: clamp(1.6rem, 5vw, 2.05rem);
}

.login-card input::placeholder {
  color: #9aa0aa;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 18px;
}

.segmented::before {
  grid-column: 1 / -1;
  content: "Login Type";
  color: #050b18;
  font-size: 1.45rem;
  font-weight: 700;
}

.segmented button {
  min-height: 84px;
  border-radius: 18px;
  font-size: clamp(1.2rem, 4vw, 1.9rem);
}

.segmented .active {
  background: #2477f2;
  box-shadow: 0 12px 26px rgba(36, 119, 242, 0.24);
}

.primary-action,
.login-card .primary-action {
  min-height: 72px;
  border-radius: 14px;
  color: #050b18;
  background: linear-gradient(90deg, #ffd400, #ff7600);
  font-size: clamp(1.25rem, 4.5vw, 2rem);
  font-weight: 900;
  box-shadow: none;
}

.access-button {
  min-height: 72px;
  border: 0;
  border-radius: 14px;
  background: #03bf5b;
  font-size: clamp(1.15rem, 4.4vw, 1.8rem);
  font-weight: 900;
  box-shadow: none;
}

.login-foot {
  display: none;
}

.welcome-view {
  padding-top: 78px;
}

.welcome-copy {
  min-height: 438px;
  border: 0;
  border-radius: 0;
  padding: 84px 64px 72px;
  color: #ffffff;
  background: linear-gradient(135deg, #ffd200 0%, #ff7a00 48%, #f42a91 100%);
  box-shadow: none;
}

.welcome-copy .eyebrow {
  display: none;
}

.welcome-copy h1 {
  max-width: 440px;
  color: #ffffff;
  font-size: clamp(3.4rem, 10vw, 5.3rem);
  line-height: 1.08;
}

.welcome-copy p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.35rem, 4.8vw, 2.2rem);
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid rgba(255, 220, 52, 0.68);
  border-top: 0;
  background: #ffffff;
}

.welcome-grid article {
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 34px 64px 0;
  background: #ffffff;
  box-shadow: none;
}

.welcome-grid article h2 {
  color: #d28b00;
  font-size: clamp(1.5rem, 5vw, 2.15rem);
}

.welcome-grid article p {
  color: #8b2a0b;
  font-size: clamp(1.25rem, 4.5vw, 1.9rem);
  line-height: 1.55;
}

.welcome-view .wide {
  max-width: none;
  min-height: 78px;
  margin: 42px 64px 78px;
  border-radius: 14px;
  background: linear-gradient(90deg, #ffd400, #ff7600);
  color: #050b18;
  font-size: clamp(1.2rem, 4.2vw, 1.85rem);
}

body.logged-in {
  background:
    linear-gradient(180deg, #ffffff 0 78px, transparent 78px),
    linear-gradient(180deg, rgba(14, 22, 34, 0.18), rgba(14, 22, 34, 0.78)),
    url("assets/ai-background.jpeg") center top / cover fixed;
}

body.logged-in::before {
  background: rgba(10, 14, 22, 0.28);
}

body.logged-in .page-shell {
  max-width: 760px;
  padding: 114px 32px 56px;
}

.app-header {
  max-width: 654px;
}

.app-header h1,
.app-header p {
  color: #ffffff;
}

main {
  max-width: 654px;
}

.market-tape {
  display: none;
}

.stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.stat-grid article {
  position: relative;
  min-height: 152px;
  padding: 36px 26px 26px 140px;
  border: 4px solid #ffd400;
  border-bottom-width: 4px;
  background: rgba(235, 236, 238, 0.82);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.stat-grid article:nth-child(2) {
  border-color: #ff79c8;
}

.stat-grid article:nth-child(3) {
  border-color: #ffb25f;
}

.stat-grid article:nth-child(4) {
  border-color: #ffd400;
}

.stat-grid article::before {
  position: absolute;
  left: 32px;
  top: 34px;
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #ffd400, #ff7600);
  font-size: 2.2rem;
  font-weight: 900;
}

.stat-grid article:nth-child(1)::before {
  content: "~";
}

.stat-grid article:nth-child(2)::before {
  content: "▥";
  background: linear-gradient(135deg, #ff64bd, #f51f7a);
}

.stat-grid article:nth-child(3)::before {
  content: "◎";
  background: linear-gradient(135deg, #ffad00, #ff5a00);
}

.stat-grid article:nth-child(4)::before {
  content: "◌";
  background: linear-gradient(135deg, #ffd400, #d49b00);
}

.stat-grid span {
  color: #c04519;
  font-size: clamp(1rem, 3.3vw, 1.55rem);
}

.stat-grid strong {
  color: #992200;
  font-size: clamp(1.35rem, 4vw, 1.9rem);
}

body.logged-in .scanner-layout,
body.logged-in .analysis-panel,
body.logged-in .counter-panel,
body.logged-in .strategy-panel,
body.logged-in .stat-grid article {
  color: #121827;
  background: rgba(232, 234, 235, 0.78);
  border-color: rgba(255, 178, 95, 0.82);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(9px);
}

.scanner-layout,
.analysis-panel,
.counter-panel,
.strategy-panel {
  border: 3px solid rgba(255, 178, 95, 0.8);
  border-radius: 22px;
}

.scanner-layout {
  grid-template-columns: 1fr;
  padding: 48px 52px;
}

.scanner-icon {
  width: 160px;
  height: 160px;
  border-radius: 28px;
  font-size: 5.5rem;
}

.scanner-intro h2,
.control-panel h2,
.analysis-heading h2,
.counter-panel h2,
.strategy-panel h2 {
  color: #ffb300;
  font-size: clamp(2rem, 6vw, 3rem);
}

.scanner-intro h2 {
  background: linear-gradient(90deg, #ffd400, #ff7600, #f51f7a);
  background-clip: text;
  color: transparent;
}

.scanner-intro p {
  max-width: 16ch;
  color: #a33416;
  font-size: clamp(1.2rem, 4.5vw, 1.8rem);
}

.scan-pill {
  min-height: 78px;
  border: 4px solid #ff9a00;
  border-radius: 999px;
  padding: 0 34px;
  color: #9c2500;
  background: rgba(255, 255, 255, 0.58);
  font-size: clamp(1.15rem, 4vw, 1.65rem);
}

label {
  color: #101827;
  font-size: clamp(0.95rem, 3.2vw, 1.35rem);
}

input,
select {
  min-height: 86px;
  border: 4px solid #ffc36d;
  border-radius: 20px;
  background: rgba(255, 251, 235, 0.9);
  font-size: clamp(1.2rem, 4vw, 1.85rem);
}

.control-panel label:nth-of-type(3) select,
.control-panel label:nth-of-type(2) input {
  border-color: #ff8fd1;
  background: rgba(255, 246, 252, 0.92);
}

.button-row {
  gap: 24px;
}

.start-button,
.stop-button {
  min-height: 78px;
  border-radius: 14px;
}

.start-button {
  background: #05c95e;
}

.stop-button {
  background: linear-gradient(90deg, #ff6684, #e81738);
}

.analysis-panel {
  grid-template-columns: 1fr;
  padding: 34px;
}

.progress-orbit {
  min-height: 300px;
}

.progress-orbit svg {
  width: 250px;
  height: 250px;
}

@media (max-width: 900px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page-shell,
  body.logged-in .page-shell {
    padding-right: 32px;
    padding-left: 32px;
  }

  .login-card,
  .welcome-grid article,
  .welcome-copy {
    padding-right: 34px;
    padding-left: 34px;
  }

  .scanner-layout {
    padding: 38px 30px;
  }

  .stat-grid article {
    min-height: 150px;
    padding-left: 116px;
  }

  .stat-grid article::before {
    left: 28px;
    width: 72px;
    height: 72px;
  }
}

/* Restore original layout; keep bright blue colors only */
body {
  background:
    linear-gradient(120deg, rgba(10, 167, 255, 0.24), transparent 34%),
    linear-gradient(300deg, rgba(46, 211, 167, 0.18), transparent 38%),
    linear-gradient(135deg, #f7fcff 0%, #e8f6ff 48%, #dff7ff 100%);
}

body.logged-in {
  color: #f7fbff;
  background:
    linear-gradient(90deg, rgba(9, 55, 111, 0.72), rgba(11, 107, 184, 0.36) 46%, rgba(5, 75, 138, 0.7)),
    linear-gradient(180deg, rgba(10, 167, 255, 0.26), rgba(46, 211, 167, 0.18)),
    url("assets/ai-background.jpeg") center top / cover fixed;
}

body.logged-in::before {
  background:
    linear-gradient(135deg, rgba(10, 167, 255, 0.24), transparent 42%),
    radial-gradient(circle at center, rgba(46, 211, 167, 0.18), transparent 34rem);
}

.page-shell,
body.logged-in .page-shell {
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 32px;
}

.login-view,
.welcome-view {
  display: grid;
  max-width: 1100px;
  margin: 6vh auto;
  gap: 28px;
  align-items: stretch;
}

.login-view {
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 420px);
  padding-top: 0;
}

.welcome-view {
  grid-template-columns: 1fr;
  max-width: 980px;
  padding-top: 0;
}

.brand-panel,
.login-card,
.welcome-copy,
.welcome-grid article,
.scanner-layout,
.analysis-panel,
.strategy-panel,
.stat-grid article,
.counter-panel,
.admin-hero,
.admin-panel,
.admin-grid article {
  border-radius: 8px;
}

.login-view .brand-panel,
.brand-panel,
.welcome-copy {
  min-height: 0;
  border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 56px);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(231, 247, 255, 0.9)),
    var(--sunset-soft);
  box-shadow: 0 24px 70px rgba(50, 78, 110, 0.16);
}

.login-view .brand-panel::after,
.brand-panel::after {
  display: block;
}

.login-view .brand-topline,
.login-view .brand-metrics,
.brand-topline,
.brand-metrics {
  display: flex;
}

.brand-metrics {
  display: grid;
}

.login-view .brand-mark,
.brand-mark,
.scanner-icon {
  display: grid;
  width: 78px;
  height: 78px;
  margin-bottom: 0;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: var(--sunset);
  font-size: 2.4rem;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(245, 31, 122, 0.22);
}

.login-view .brand-mark::before {
  content: none;
}

.login-view .brand-panel h1,
h1 {
  max-width: none;
  margin-bottom: 10px;
  color: inherit;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.login-view .brand-panel p,
.brand-panel p,
.welcome-copy p {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.login-view .feature-list,
.feature-list {
  display: grid;
}

.login-card {
  display: grid;
  min-height: 0;
  gap: 18px;
  align-content: center;
  border: 1px solid var(--line);
  padding: 30px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(50, 78, 110, 0.16);
}

.login-card > div:first-child {
  display: block;
}

.login-card label,
label {
  display: grid;
  gap: 8px;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.login-card input,
input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(10, 17, 29, 0.14);
  border-radius: 8px;
  padding: 0 16px;
  color: #152033;
  background: rgba(255, 255, 255, 0.92);
  font-size: inherit;
}

.segmented {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 0;
}

.segmented::before {
  content: none;
}

.segmented button {
  min-height: 44px;
  border-radius: 8px;
  font-size: inherit;
}

.primary-action,
.login-card .primary-action,
.start-button,
.stop-button,
.mini-action,
.access-button {
  min-height: 52px;
  border-radius: 8px;
  color: #ffffff;
  font-size: inherit;
}

.primary-action,
.login-card .primary-action,
.start-button,
.mini-action,
.access-button {
  background: var(--sunset);
}

.access-button {
  border: 1px solid rgba(245, 31, 122, 0.2);
}

.login-foot {
  display: flex;
}

.welcome-copy {
  color: var(--ink);
}

.welcome-copy .eyebrow {
  display: block;
}

.welcome-copy h1 {
  max-width: none;
  color: inherit;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
}

.welcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border: 0;
  background: transparent;
}

.welcome-grid article {
  min-height: 0;
  border: 1px solid var(--line);
  padding: 22px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(50, 78, 110, 0.16);
}

.welcome-grid article h2 {
  color: inherit;
  font-size: revert;
}

.welcome-grid article p {
  color: var(--muted);
  font-size: revert;
  line-height: normal;
}

.welcome-view .wide,
.wide {
  max-width: 320px;
  min-height: 52px;
  margin: 0;
  border-radius: 8px;
  color: #ffffff;
  font-size: inherit;
}

.app-header,
main {
  max-width: 1200px;
}

.market-tape {
  display: flex;
}

.stat-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-grid article {
  min-height: 92px;
  padding: 20px;
  border: 1px solid var(--line);
  border-bottom: 3px solid #ffb000;
}

.stat-grid article::before {
  content: none !important;
}

.stat-grid span {
  color: #c1166b;
  font-size: inherit;
}

.stat-grid strong {
  color: inherit;
  font-size: 1.2rem;
}

body.logged-in .scanner-layout,
body.logged-in .analysis-panel,
body.logged-in .counter-panel,
body.logged-in .strategy-panel,
body.logged-in .stat-grid article {
  color: #172033;
  background: rgba(255, 248, 234, 0.72);
  border-color: rgba(255, 212, 59, 0.34);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.scanner-layout {
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
}

.scanner-intro h2,
.control-panel h2,
.analysis-heading h2,
.counter-panel h2,
.strategy-panel h2 {
  font-size: revert;
}

.scanner-intro h2 {
  color: #d65f00;
  background: none;
}

.scanner-intro p {
  max-width: 34ch;
  color: #8d3a44;
  font-size: inherit;
}

.scan-pill {
  min-height: 34px;
  border: 2px solid #ff8a00;
  border-radius: 999px;
  padding: 0 18px;
  font-size: inherit;
}

.button-row {
  gap: 12px;
}

.start-button,
.stop-button {
  min-height: 52px;
  border-radius: 8px;
}

.analysis-panel {
  grid-template-columns: 340px 1fr;
  gap: 28px;
  padding: 28px;
  border: 1px solid rgba(255, 138, 0, 0.26);
}

.progress-orbit {
  min-height: 250px;
}

.progress-orbit svg {
  width: 220px;
  height: 220px;
}

@media (max-width: 900px) {
  .login-view,
  .scanner-layout,
  .analysis-panel,
  .counter-panel {
    grid-template-columns: 1fr;
  }

  .welcome-grid,
  .stat-grid,
  .strategy-grid,
  .analysis-metrics,
  .session-summary,
  .console-grid,
  .risk-controls,
  .admin-grid,
  .admin-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-shell,
  body.logged-in .page-shell {
    padding: 18px;
  }

  .login-view {
    grid-template-columns: 1fr;
    margin: 2vh auto;
  }

  .login-card,
  .welcome-grid article,
  .welcome-copy {
    padding: 30px;
  }

  .scanner-layout {
    padding: 28px;
  }

  .stat-grid article {
    min-height: 92px;
    padding: 20px;
  }
}

/* Professional purple, yellow and pink color layer only */
:root {
  --yellow: #facc15;
  --pink: #ec4899;
  --cyan: #a855f7;
  --green: #7c3aed;
  --orange: #facc15;
  --violet: #6d28d9;
  --ink: #1d1630;
  --muted: #6f6683;
  --line: rgba(109, 40, 217, 0.16);
  --soft: #fbf3ff;
  --sunset: linear-gradient(135deg, #6d28d9 0%, #ec4899 54%, #facc15 100%);
  --sunset-soft: linear-gradient(135deg, rgba(109, 40, 217, 0.14), rgba(236, 72, 153, 0.12) 54%, rgba(250, 204, 21, 0.18));
}

body {
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(109, 40, 217, 0.16), transparent 34%),
    linear-gradient(300deg, rgba(250, 204, 21, 0.2), transparent 38%),
    linear-gradient(135deg, #fbf7ff 0%, #fff2fb 48%, #fff9d7 100%);
}

body.logged-in {
  background:
    linear-gradient(90deg, rgba(35, 20, 68, 0.7), rgba(92, 35, 99, 0.34) 46%, rgba(54, 28, 77, 0.62)),
    linear-gradient(180deg, rgba(109, 40, 217, 0.16), rgba(236, 72, 153, 0.16)),
    url("assets/ai-background.jpeg") center top / cover fixed;
}

body.logged-in::before {
  background:
    linear-gradient(135deg, rgba(109, 40, 217, 0.2), transparent 42%),
    radial-gradient(circle at center, rgba(250, 204, 21, 0.16), transparent 34rem);
}

.brand-panel,
.welcome-copy,
.execution-console,
.analysis-panel,
.counter-panel,
.prediction-widget {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(253, 244, 255, 0.9)),
    var(--sunset-soft);
  border-color: rgba(109, 40, 217, 0.18);
}

.brand-mark,
.scanner-icon,
.segmented .active,
.primary-action,
.start-button,
.mini-action,
.access-button,
.admin-floating-bar button,
.request-card button,
.table-actions button,
.prediction-main > strong {
  background: var(--sunset);
  box-shadow: 0 16px 34px rgba(109, 40, 217, 0.18);
}

.stop-button,
.table-actions button:nth-child(3) {
  background: linear-gradient(135deg, #ec4899, #be185d);
}

.brand-topline span,
.login-foot span,
.panel-heading > span,
.console-header > span {
  border-color: rgba(109, 40, 217, 0.18);
  color: #6d28d9;
  background: rgba(250, 245, 255, 0.78);
}

.eyebrow,
.stat-grid span,
.console-grid span,
.analysis-metrics span,
.prediction-grid span,
.admin-grid span,
.admin-credentials span,
.user-table th {
  color: #c0267d;
}

.feature-list h2,
.scanner-intro h2,
.session-summary span,
.progress-orbit strong,
.prediction-main span,
.counter-line span:first-child,
.counter-line span:last-child {
  color: #6d28d9;
}

.scanner-intro p,
#deskNote,
#analysisHint,
.counter-panel p,
.welcome-copy p,
.brand-panel p {
  color: var(--muted);
}

input:focus,
select:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.16);
}

.feature-list span,
.status-pill.active,
.risk.low {
  background: linear-gradient(135deg, #6d28d9, #ec4899);
}

.scan-pill {
  border-color: #a855f7;
  color: #6d28d9;
  background: rgba(168, 85, 247, 0.12);
}

.scan-pill.complete {
  border-color: #ec4899;
  color: #be185d;
  background: rgba(236, 72, 153, 0.12);
}

.market-tape span {
  border-color: rgba(250, 204, 21, 0.34);
  background: rgba(35, 20, 68, 0.5);
}

body.logged-in .welcome-copy,
body.logged-in .welcome-grid article,
body.logged-in .scanner-layout,
body.logged-in .analysis-panel,
body.logged-in .counter-panel,
body.logged-in .strategy-panel,
body.logged-in .stat-grid article {
  background: rgba(253, 244, 255, 0.74);
  border-color: rgba(250, 204, 21, 0.32);
}

.stat-grid article,
.admin-grid article {
  border-bottom-color: #facc15;
}

.mode-strip button.active {
  background: linear-gradient(135deg, #6d28d9, #ec4899);
}

.signal-bar span {
  background: linear-gradient(90deg, #6d28d9, #ec4899, #facc15);
}

.ring {
  stroke: #a855f7;
  filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.34));
}

.digit-card {
  background: linear-gradient(180deg, #ffffff, #fbf3ff);
}

.best-digit {
  border-color: #ec4899;
  box-shadow: inset 0 -3px 0 #ec4899, 0 10px 24px rgba(236, 72, 153, 0.16);
}

.session-summary article,
.counter-line,
.console-grid article,
.analysis-metrics article,
.prediction-grid article,
.strategy-grid article {
  border-color: rgba(109, 40, 217, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.counter-line:first-child {
  border-color: rgba(236, 72, 153, 0.3);
  background: rgba(253, 242, 248, 0.92);
}

.matrix-scan {
  border-color: rgba(250, 204, 21, 0.34);
  background:
    linear-gradient(180deg, rgba(32, 18, 62, 0.96), rgba(15, 10, 35, 0.98)),
    #100a23;
  box-shadow: 0 22px 48px rgba(52, 20, 83, 0.28);
}

.matrix-titlebar,
.matrix-prediction {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.35), rgba(236, 72, 153, 0.22), rgba(250, 204, 21, 0.12));
}

.raw-pipe span {
  color: #ec4899;
}

.status-pill.pending,
.risk.high {
  background: linear-gradient(135deg, #ec4899, #be185d);
}

.risk.medium,
.table-actions button:nth-child(2) {
  background: linear-gradient(135deg, #facc15, #ec4899);
}

/* Palette from reference image: black base, purple-pink-orange-yellow gradient */
:root {
  --ink: #170f1f;
  --muted: #695f76;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-solid: #ffffff;
  --soft: #fff4fb;
  --line: rgba(174, 0, 163, 0.16);
  --yellow: #ffd000;
  --pink: #1fb7ff;
  --cyan: #00c7ff;
  --green: #2ed3a7;
  --orange: #35a7ff;
  --violet: #3157ff;
  --sunset: linear-gradient(135deg, #00c7ff 0%, #1479ff 48%, #2ed3a7 100%);
  --sunset-soft: linear-gradient(135deg, rgba(0, 199, 255, 0.18), rgba(20, 121, 255, 0.14) 48%, rgba(46, 211, 167, 0.18));
}

body {
  background:
    linear-gradient(120deg, rgba(139, 0, 184, 0.18), transparent 34%),
    linear-gradient(300deg, rgba(255, 208, 0, 0.2), transparent 38%),
    linear-gradient(135deg, #fff8ff 0%, #fff0f8 42%, #fff7da 100%);
}

body.logged-in {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(58, 0, 72, 0.34) 46%, rgba(0, 0, 0, 0.62)),
    linear-gradient(180deg, rgba(139, 0, 184, 0.18), rgba(255, 122, 24, 0.14)),
    url("assets/ai-background.jpeg") center top / cover fixed;
}

body.logged-in::before {
  background:
    linear-gradient(135deg, rgba(139, 0, 184, 0.22), transparent 42%),
    radial-gradient(circle at center, rgba(255, 208, 0, 0.14), transparent 34rem);
}

.brand-panel,
.welcome-copy,
.execution-console,
.analysis-panel,
.counter-panel,
.prediction-widget {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 244, 251, 0.9)),
    var(--sunset-soft);
  border-color: rgba(139, 0, 184, 0.18);
}

.brand-mark,
.scanner-icon,
.segmented .active,
.primary-action,
.start-button,
.mini-action,
.access-button,
.admin-floating-bar button,
.request-card button,
.table-actions button,
.prediction-main > strong {
  background: var(--sunset);
  box-shadow: 0 16px 36px rgba(139, 0, 184, 0.2);
}

.feature-list span,
.status-pill.active,
.risk.low,
.mode-strip button.active {
  background: linear-gradient(135deg, #8b00b8, #ff2f9f);
}

.signal-bar span {
  background: linear-gradient(90deg, #8b00b8, #ff2f9f, #ff7a18, #ffd000);
}

.ring {
  stroke: #d000a8;
  filter: drop-shadow(0 0 16px rgba(208, 0, 168, 0.38));
}

.best-digit {
  border-color: #ff2f9f;
  box-shadow: inset 0 -3px 0 #ff2f9f, 0 10px 24px rgba(255, 47, 159, 0.18);
}

/* Final bright treatment for dashboard ticker */
.market-tape {
  border-radius: 8px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(139, 0, 184, 0.2), rgba(255, 47, 159, 0.12), rgba(255, 208, 0, 0.1));
}

.market-tape span {
  border-color: rgba(255, 208, 0, 0.72);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(139, 0, 184, 0.98), rgba(255, 47, 159, 0.84), rgba(255, 122, 24, 0.82));
  box-shadow: 0 10px 22px rgba(139, 0, 184, 0.2);
}

.market-tape {
  border-radius: 8px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(139, 0, 184, 0.2), rgba(255, 47, 159, 0.12), rgba(255, 208, 0, 0.1));
}

.market-tape span {
  border-color: rgba(255, 208, 0, 0.72);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(139, 0, 184, 0.98), rgba(255, 47, 159, 0.84), rgba(255, 122, 24, 0.82));
  box-shadow: 0 10px 22px rgba(139, 0, 184, 0.2);
}

/* Brighter dashboard header band */
.app-header {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 208, 0, 0.2);
  border-radius: 8px;
  padding: 24px 28px;
  background:
    linear-gradient(135deg, rgba(139, 0, 184, 0.96) 0%, rgba(255, 47, 159, 0.92) 42%, rgba(255, 122, 24, 0.9) 72%, rgba(255, 208, 0, 0.88) 100%);
  box-shadow: 0 22px 55px rgba(139, 0, 184, 0.24);
}

.app-header::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 46%, rgba(255, 255, 255, 0.1));
}

body.logged-in .app-header h1,
body.logged-in .app-header p {
  position: relative;
  z-index: 1;
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.34);
}

.app-header .ghost-button {
  position: relative;
  z-index: 1;
  border-color: rgba(255, 255, 255, 0.42);
  color: #27002c;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.market-tape {
  border-radius: 8px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(139, 0, 184, 0.2), rgba(255, 47, 159, 0.12), rgba(255, 208, 0, 0.1));
}

.market-tape span {
  border-color: rgba(255, 208, 0, 0.72);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(139, 0, 184, 0.98), rgba(255, 47, 159, 0.84), rgba(255, 122, 24, 0.82));
  box-shadow: 0 10px 22px rgba(139, 0, 184, 0.2);
}

.eyebrow,
.stat-grid span,
.console-grid span,
.analysis-metrics span,
.prediction-grid span,
.admin-grid span,
.admin-credentials span,
.user-table th {
  color: #d0007f;
}

.feature-list h2,
.scanner-intro h2,
.session-summary span,
.progress-orbit strong,
.prediction-main span,
.counter-line span:first-child,
.counter-line span:last-child {
  color: #8b00b8;
}

.scan-pill {
  border-color: #ff2f9f;
  color: #8b00b8;
  background: rgba(255, 47, 159, 0.12);
}

.market-tape span {
  border-color: rgba(255, 208, 0, 0.34);
  background: rgba(0, 0, 0, 0.52);
}

body.logged-in .welcome-copy,
body.logged-in .welcome-grid article,
body.logged-in .scanner-layout,
body.logged-in .analysis-panel,
body.logged-in .counter-panel,
body.logged-in .strategy-panel,
body.logged-in .stat-grid article {
  background: rgba(255, 246, 252, 0.76);
  border-color: rgba(255, 208, 0, 0.36);
}

.stat-grid article,
.admin-grid article {
  border-bottom-color: #ffd000;
}

.matrix-scan {
  border-color: rgba(255, 208, 0, 0.34);
  background:
    linear-gradient(180deg, rgba(20, 0, 30, 0.96), rgba(0, 0, 0, 0.98)),
    #000000;
}

.matrix-titlebar,
.matrix-prediction {
  background: linear-gradient(135deg, rgba(139, 0, 184, 0.36), rgba(255, 47, 159, 0.24), rgba(255, 208, 0, 0.12));
}

/* Brighter professional purple, yellow and pink polish */
:root {
  --yellow: #ffe44d;
  --pink: #ff4fb8;
  --cyan: #b86cff;
  --green: #8b5cf6;
  --orange: #ffe44d;
  --violet: #7c3aed;
  --muted: #675978;
  --line: rgba(124, 58, 237, 0.18);
  --soft: #fff5ff;
  --sunset: linear-gradient(135deg, #7c3aed 0%, #ff4fb8 50%, #ffe44d 100%);
  --sunset-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(255, 79, 184, 0.14) 52%, rgba(255, 228, 77, 0.22));
}

body {
  background:
    linear-gradient(120deg, rgba(124, 58, 237, 0.2), transparent 34%),
    linear-gradient(300deg, rgba(255, 228, 77, 0.24), transparent 38%),
    linear-gradient(135deg, #fcf7ff 0%, #fff0fb 46%, #fffbd8 100%);
}

body.logged-in {
  background:
    linear-gradient(90deg, rgba(45, 22, 82, 0.66), rgba(128, 41, 118, 0.32) 46%, rgba(66, 34, 88, 0.58)),
    linear-gradient(180deg, rgba(124, 58, 237, 0.18), rgba(255, 79, 184, 0.14)),
    url("assets/ai-background.jpeg") center top / cover fixed;
}

.brand-panel,
.welcome-copy,
.execution-console,
.analysis-panel,
.counter-panel,
.prediction-widget {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 246, 255, 0.91)),
    var(--sunset-soft);
}

.brand-mark,
.scanner-icon,
.segmented .active,
.primary-action,
.start-button,
.mini-action,
.access-button,
.admin-floating-bar button,
.request-card button,
.table-actions button,
.prediction-main > strong {
  background: var(--sunset);
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.2);
}

.signal-bar span {
  background: linear-gradient(90deg, #7c3aed, #ff4fb8, #ffe44d);
}

.mode-strip button.active {
  background: linear-gradient(135deg, #7c3aed, #ff4fb8);
}

.ring {
  stroke: #b86cff;
  filter: drop-shadow(0 0 16px rgba(184, 108, 255, 0.38));
}

.best-digit {
  border-color: #ff4fb8;
  box-shadow: inset 0 -3px 0 #ff4fb8, 0 10px 24px rgba(255, 79, 184, 0.18);
}

body.logged-in .welcome-copy,
body.logged-in .welcome-grid article,
body.logged-in .scanner-layout,
body.logged-in .analysis-panel,
body.logged-in .counter-panel,
body.logged-in .strategy-panel,
body.logged-in .stat-grid article {
  background: rgba(255, 246, 255, 0.78);
  border-color: rgba(255, 228, 77, 0.38);
}

/* Final active palette from reference image */
:root {
  --yellow: #ffd000;
  --pink: #ff2f9f;
  --cyan: #ae00a3;
  --green: #ff7a18;
  --orange: #ff9800;
  --violet: #8b00b8;
  --sunset: linear-gradient(135deg, #8b00b8 0%, #d000a8 25%, #ff2f9f 48%, #ff7a18 73%, #ffd000 100%);
  --sunset-soft: linear-gradient(135deg, rgba(139, 0, 184, 0.18), rgba(255, 47, 159, 0.14) 48%, rgba(255, 122, 24, 0.12) 73%, rgba(255, 208, 0, 0.18));
}

.brand-mark,
.scanner-icon,
.segmented .active,
.primary-action,
.start-button,
.mini-action,
.access-button,
.admin-floating-bar button,
.request-card button,
.table-actions button,
.prediction-main > strong {
  background: var(--sunset);
  box-shadow: 0 16px 36px rgba(20, 121, 255, 0.22);
}

body {
  background:
    linear-gradient(120deg, rgba(0, 199, 255, 0.24), transparent 34%),
    linear-gradient(300deg, rgba(46, 211, 167, 0.18), transparent 38%),
    linear-gradient(135deg, #f7fcff 0%, #e8f6ff 48%, #dff7ff 100%);
}

body.logged-in {
  background:
    linear-gradient(90deg, rgba(9, 55, 111, 0.72), rgba(11, 107, 184, 0.36) 46%, rgba(5, 75, 138, 0.7)),
    linear-gradient(180deg, rgba(0, 199, 255, 0.26), rgba(46, 211, 167, 0.18)),
    url("assets/ai-background.jpeg") center top / cover fixed;
}

.brand-panel,
.welcome-copy,
.execution-console,
.analysis-panel,
.counter-panel,
.prediction-widget {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(231, 247, 255, 0.9)),
    var(--sunset-soft);
}

.signal-bar span {
  background: linear-gradient(90deg, #00c7ff, #1479ff, #2ed3a7);
}

.mode-strip button.active {
  background: linear-gradient(135deg, #00c7ff, #1479ff);
}

.ring {
  stroke: #1479ff;
  filter: drop-shadow(0 0 16px rgba(20, 121, 255, 0.38));
}

.best-digit {
  border-color: #1fb7ff;
  box-shadow: inset 0 -3px 0 #1fb7ff, 0 10px 24px rgba(31, 183, 255, 0.18);
}

/* Final bright treatment for dashboard ticker */
.market-tape {
  border-radius: 8px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(0, 199, 255, 0.2), rgba(20, 121, 255, 0.12), rgba(46, 211, 167, 0.1));
}

.market-tape span {
  border-color: rgba(126, 226, 255, 0.72);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 125, 255, 0.98), rgba(0, 199, 255, 0.84), rgba(46, 211, 167, 0.82));
  box-shadow: 0 10px 22px rgba(20, 121, 255, 0.2);
}

@media (max-width: 900px) {
  .create-user-form {
    grid-template-columns: 1fr;
  }

  .create-user-form .primary-action {
    width: 100%;
  }
}

/* Professional dashboard wallpaper treatment */
body.logged-in {
  color: #f8fbff;
  background:
    linear-gradient(90deg, rgba(3, 8, 18, 0.7), rgba(8, 23, 42, 0.42) 48%, rgba(3, 8, 18, 0.68)),
    linear-gradient(180deg, rgba(3, 8, 18, 0.48), rgba(3, 8, 18, 0.34)),
    url("assets/ai-background.jpeg") center top / cover fixed;
}

body.logged-in::before {
  background: rgba(3, 8, 18, 0.26);
}

body.dashboard-mode {
  background:
    linear-gradient(110deg, rgba(62, 15, 48, 0.72), rgba(37, 22, 54, 0.4) 46%, rgba(47, 20, 34, 0.7)),
    linear-gradient(155deg, rgba(255, 202, 40, 0.2), transparent 36%),
    linear-gradient(315deg, rgba(255, 55, 143, 0.24), transparent 42%),
    url("assets/ai-background.jpeg") center top / cover fixed;
}

body.dashboard-mode::before {
  background:
    linear-gradient(135deg, rgba(255, 202, 40, 0.16), transparent 38%),
    linear-gradient(305deg, rgba(255, 55, 143, 0.2), transparent 42%),
    rgba(8, 10, 18, 0.18);
}

body.dashboard-mode .app-header,
body.dashboard-mode .market-tape {
  border-color: rgba(255, 230, 150, 0.22);
  background: rgba(20, 12, 24, 0.4);
}

body.dashboard-mode .scanner-layout,
body.dashboard-mode .analysis-panel,
body.dashboard-mode .counter-panel,
body.dashboard-mode .strategy-panel,
body.dashboard-mode .stat-grid article {
  border-color: rgba(255, 220, 120, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 244, 252, 0.74));
}

body.dashboard-mode .market-tape span {
  border-color: rgba(255, 221, 87, 0.34);
  background: rgba(32, 16, 30, 0.58);
}

body.dashboard-mode .brand-mark,
body.dashboard-mode .scanner-icon,
body.dashboard-mode .primary-action,
body.dashboard-mode .start-button,
body.dashboard-mode .mini-action,
body.dashboard-mode .prediction-main > strong {
  background: linear-gradient(135deg, #f51f7a 0%, #ff8a00 58%, #ffd43b 100%);
  box-shadow: 0 16px 36px rgba(245, 31, 122, 0.22);
}

body.dashboard-mode .signal-bar span {
  background: linear-gradient(90deg, #f51f7a, #ff8a00, #ffd43b);
}

body.dashboard-mode .mode-strip button.active {
  background: linear-gradient(135deg, #f51f7a, #ff8a00);
}

body.logged-in .app-header {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 10, 20, 0.34);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

body.logged-in .welcome-copy,
body.logged-in .welcome-grid article,
body.logged-in .scanner-layout,
body.logged-in .analysis-panel,
body.logged-in .counter-panel,
body.logged-in .strategy-panel,
body.logged-in .stat-grid article {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(248, 251, 255, 0.72);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

body.logged-in .analysis-panel,
body.logged-in .counter-panel,
body.logged-in .strategy-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(241, 247, 255, 0.66));
}

body.logged-in .market-tape {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 10, 20, 0.28);
  backdrop-filter: blur(10px);
}

body.logged-in .market-tape span {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  background: rgba(8, 16, 32, 0.5);
  box-shadow: none;
}

/* Final shared user/admin dashboard palette */
body.logged-in {
  color: #fffaf7;
  background:
    linear-gradient(110deg, rgba(42, 15, 38, 0.76), rgba(40, 24, 40, 0.46) 48%, rgba(44, 22, 28, 0.72)),
    linear-gradient(150deg, rgba(255, 213, 79, 0.22), transparent 36%),
    linear-gradient(315deg, rgba(255, 48, 143, 0.24), transparent 42%),
    url("assets/ai-background.jpeg") center top / cover fixed;
}

body.logged-in::before {
  background:
    linear-gradient(135deg, rgba(255, 213, 79, 0.18), transparent 38%),
    linear-gradient(305deg, rgba(255, 48, 143, 0.2), transparent 44%),
    rgba(7, 7, 12, 0.22);
}

body.logged-in .app-header {
  border-color: rgba(255, 226, 126, 0.28);
  background:
    linear-gradient(135deg, rgba(34, 15, 28, 0.72), rgba(49, 26, 24, 0.54));
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
}

body.logged-in .app-header h1 {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

body.logged-in .app-header p {
  color: #ffe9a8;
  font-weight: 750;
}

body.logged-in .scanner-layout,
body.logged-in .analysis-panel,
body.logged-in .counter-panel,
body.logged-in .strategy-panel,
body.logged-in .stat-grid article,
body.logged-in .admin-hero,
body.logged-in .admin-panel,
body.logged-in .admin-grid article,
body.logged-in .welcome-copy,
body.logged-in .welcome-grid article {
  border-color: rgba(255, 222, 118, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 246, 252, 0.76));
  box-shadow: 0 22px 58px rgba(42, 15, 38, 0.24);
  backdrop-filter: blur(12px);
}

body.logged-in .scanner-icon,
body.logged-in .brand-mark,
body.logged-in .primary-action,
body.logged-in .start-button,
body.logged-in .mini-action,
body.logged-in .admin-floating-bar button,
body.logged-in .request-card button,
body.logged-in .table-actions button,
body.logged-in .prediction-main > strong {
  background: linear-gradient(135deg, #f51f7a 0%, #ff8a00 58%, #ffd43b 100%);
  box-shadow: 0 16px 36px rgba(245, 31, 122, 0.24);
}

body.logged-in .market-tape {
  border-color: rgba(255, 226, 126, 0.28);
  background:
    linear-gradient(135deg, rgba(245, 31, 122, 0.18), rgba(255, 212, 59, 0.12)),
    rgba(22, 12, 20, 0.5);
}

body.logged-in .market-tape span {
  border-color: rgba(255, 226, 126, 0.38);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(245, 31, 122, 0.62), rgba(32, 18, 28, 0.72));
}

body.logged-in .signal-bar span {
  background: linear-gradient(90deg, #f51f7a, #ff8a00, #ffd43b);
}

body.logged-in .mode-strip button.active {
  background: linear-gradient(135deg, #f51f7a, #ff8a00);
}

body.logged-in .ring {
  stroke: #ff8a00;
  filter: drop-shadow(0 0 16px rgba(255, 138, 0, 0.38));
}

body.logged-in .best-digit {
  border-color: #f51f7a;
  box-shadow: inset 0 -3px 0 #f51f7a, 0 10px 24px rgba(245, 31, 122, 0.18);
}

/* Restore screenshot dashboard colors */
body.logged-in {
  color: #172033;
  background:
    linear-gradient(90deg, rgba(20, 49, 132, 0.9), rgba(10, 86, 126, 0.62) 48%, rgba(0, 70, 106, 0.92)),
    url("assets/ai-background.jpeg") center top / cover fixed;
}

body.logged-in::before {
  background: rgba(6, 25, 63, 0.22);
}

body.logged-in .app-header {
  border: 1px solid rgba(255, 212, 59, 0.64);
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(105deg, #9b25c8 0%, #f02c92 36%, #f07825 68%, #ffd21e 100%);
  box-shadow: 0 18px 44px rgba(34, 20, 76, 0.24);
}

body.logged-in .app-header h1 {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

body.logged-in .app-header p {
  color: #ffffff;
  font-weight: 750;
}

body.logged-in .app-header .ghost-button {
  border-color: rgba(255, 255, 255, 0.58);
  color: #2d0b25;
  background: rgba(255, 250, 225, 0.9);
}

body.logged-in .market-tape {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(12, 114, 164, 0.72), rgba(0, 91, 130, 0.62));
  box-shadow: none;
}

body.logged-in .market-tape span {
  border: 1px solid rgba(119, 237, 255, 0.66);
  color: #ffffff;
  background: linear-gradient(135deg, #1194f2, #16b9bf);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 8px 18px rgba(0, 52, 91, 0.18);
}

body.logged-in .scanner-layout,
body.logged-in .analysis-panel,
body.logged-in .counter-panel,
body.logged-in .strategy-panel,
body.logged-in .stat-grid article,
body.logged-in .admin-hero,
body.logged-in .admin-panel,
body.logged-in .admin-grid article,
body.logged-in .welcome-copy,
body.logged-in .welcome-grid article {
  border: 1px solid rgba(255, 212, 59, 0.62);
  color: #172033;
  background: rgba(221, 226, 237, 0.9);
  box-shadow: 0 18px 44px rgba(7, 24, 62, 0.22);
  backdrop-filter: blur(8px);
}

body.logged-in .scanner-layout h2,
body.logged-in .analysis-panel h2,
body.logged-in .strategy-panel h2,
body.logged-in .admin-panel h2,
body.logged-in .admin-hero h2 {
  color: #ffb000;
}

body.logged-in .stat-grid span,
body.logged-in .admin-grid span,
body.logged-in .admin-credentials span,
body.logged-in .user-table th,
body.logged-in .panel-heading .eyebrow,
body.logged-in .login-card .eyebrow {
  color: #e0008a;
}

body.logged-in input,
body.logged-in select {
  border-color: rgba(255, 47, 159, 0.48);
  background: rgba(255, 255, 255, 0.92);
}

body.logged-in .scanner-icon,
body.logged-in .brand-mark,
body.logged-in .primary-action,
body.logged-in .start-button,
body.logged-in .mini-action,
body.logged-in .admin-floating-bar button,
body.logged-in .request-card button,
body.logged-in .table-actions button,
body.logged-in .prediction-main > strong {
  color: #ffffff;
  background: linear-gradient(135deg, #9b25c8 0%, #f02c92 36%, #f07825 68%, #ffd21e 100%);
  box-shadow: 0 14px 32px rgba(240, 44, 146, 0.24);
}

body.logged-in .signal-bar span {
  background: linear-gradient(90deg, #9b25c8, #f02c92, #f07825, #ffd21e);
}

body.logged-in .mode-strip button.active {
  background: linear-gradient(135deg, #f02c92, #f07825);
}

/* Keep dashboard stats in two horizontal rows */
.dashboard-view .stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-view .stat-grid article {
  min-height: 98px;
}

@media (max-width: 560px) {
  .dashboard-view .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .dashboard-view .stat-grid article {
    min-height: 92px;
    padding: 18px;
  }
}

/* Final control colors */
body.logged-in .scanner-icon,
.scanner-icon {
  color: #ffffff;
  background: linear-gradient(135deg, #0b7cff, #00c7ff);
  box-shadow: 0 16px 34px rgba(11, 124, 255, 0.28);
}

body.logged-in .start-button,
.start-button {
  color: #ffffff;
  background: linear-gradient(135deg, #07a84f, #16c96f);
  box-shadow: 0 14px 30px rgba(7, 168, 79, 0.24);
}

body.logged-in .stop-button,
.stop-button {
  color: #ffffff;
  background: linear-gradient(135deg, #ff314f, #cf102d);
  box-shadow: 0 14px 30px rgba(207, 16, 45, 0.24);
}

.matrix-line {
  animation-duration: 0.18s;
}

/* Final money wallpaper background */
body,
body:not(.logged-in),
body.logged-in {
  color: #f8fafc;
  background-image:
    linear-gradient(90deg, rgba(3, 7, 14, 0.72), rgba(8, 16, 28, 0.5) 46%, rgba(3, 7, 14, 0.76)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.42)),
    url("assets/money-background.jpeg");
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body::before,
body.logged-in::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(255, 212, 59, 0.08), transparent 38%),
    rgba(0, 0, 0, 0.18);
}

.brand-panel,
.login-card,
.welcome-copy,
.welcome-grid article,
body.logged-in .scanner-layout,
body.logged-in .analysis-panel,
body.logged-in .counter-panel,
body.logged-in .strategy-panel,
body.logged-in .stat-grid article,
body.logged-in .admin-hero,
body.logged-in .admin-panel,
body.logged-in .admin-grid article {
  border-color: rgba(255, 232, 150, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(234, 238, 245, 0.76));
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
}

.brand-panel,
.login-card,
.welcome-copy,
.welcome-grid article {
  color: #172033;
}

.brand-panel p,
.welcome-copy p,
.feature-list,
.login-foot {
  color: #344155;
}

.login-card .eyebrow,
.login-card h2,
.login-card label,
.login-foot span {
  color: #172033;
}

body.logged-in .app-header {
  border-color: rgba(255, 232, 150, 0.34);
  color: #ffffff;
  background:
    linear-gradient(105deg, rgba(155, 37, 200, 0.86), rgba(240, 44, 146, 0.82) 34%, rgba(240, 120, 37, 0.84) 66%, rgba(255, 210, 30, 0.88));
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
}

body.logged-in .app-header p {
  color: rgba(255, 255, 255, 0.94);
}

body.logged-in .market-tape {
  background: rgba(4, 20, 35, 0.62);
  backdrop-filter: blur(8px);
}
