/* ==========================================================================
   NEON · Polymarket 智能事件合约终端 — Dark Purple Neon Mobile PWA Theme
   Palette:
     Base Bg:      #080612
     Surface:      #110c24
     Glass Card:   rgba(20, 15, 42, 0.82)
     Neon Purple:  #9d4edd
     Neon Cyan:    #00f5d4
     Up / Win:     #00e676
     Down / Loss:  #ff3b6b
     Gold / TP:    #ffd166
   ========================================================================== */

:root {
  --bg-deep: #080612;
  --bg-surface: #110c24;
  --bg-card: rgba(20, 15, 42, 0.82);
  --bg-sticky-col: #130e29;
  --neon-purple: #9d4edd;
  --neon-purple-soft: rgba(157, 78, 221, 0.28);
  --neon-cyan: #00f5d4;
  --neon-cyan-soft: rgba(0, 245, 212, 0.2);
  --color-up: #00e676;
  --color-down: #ff3b6b;
  --color-gold: #ffd166;
  --text-main: #f4f1ff;
  --text-muted: #9a92b8;
  --border-glass: rgba(157, 78, 221, 0.28);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  background: radial-gradient(circle at 50% -10%, #1d113f 0%, var(--bg-deep) 55%);
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  min-height: 100vh;
  overflow-x: hidden;
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.hidden {
  display: none !important;
}

.text-up {
  color: var(--color-up) !important;
}

.text-down {
  color: var(--color-down) !important;
}

.text-gold {
  color: var(--color-gold) !important;
}

.accent-cyan {
  color: var(--neon-cyan) !important;
}

/* Glassmorphism Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(4, 2, 12, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* App Shell */
.app-shell {
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  position: relative;
}

/* ==========================================================================
   Global Top Bar
   ========================================================================== */
.top-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  background: rgba(8, 6, 18, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(157, 78, 221, 0.32);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
  color: #080612;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(157, 78, 221, 0.6);
  flex-shrink: 0;
}

.brand-title {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: linear-gradient(90deg, #ffffff 0%, #d8b4fe 55%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.mode-chip {
  border: 1px solid rgba(0, 245, 212, 0.45);
  background: rgba(0, 245, 212, 0.12);
  color: var(--neon-cyan);
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  cursor: pointer;
}

.mode-chip.mode-live {
  border-color: rgba(255, 59, 107, 0.65);
  background: rgba(255, 59, 107, 0.18);
  color: #ff6b8e;
}

.ws-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(154, 146, 184, 0.14);
  color: var(--text-muted);
}

.ws-tag.ws-online {
  color: var(--color-up);
  background: rgba(0, 230, 118, 0.12);
}

.header-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.status-capsule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(157, 78, 221, 0.16);
  border: 1px solid rgba(157, 78, 221, 0.42);
  font-size: 11px;
  font-weight: 600;
  color: #e9d5ff;
}

.status-capsule.paused {
  background: rgba(255, 209, 102, 0.15);
  border-color: rgba(255, 209, 102, 0.55);
  color: var(--color-gold);
}

.breath-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-up);
  box-shadow: 0 0 8px var(--color-up);
  animation: neonPulse 1.8s infinite ease-in-out;
}

.breath-dot.paused {
  background: var(--color-gold);
  box-shadow: 0 0 8px var(--color-gold);
  animation: none;
}

@keyframes neonPulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.22);
    opacity: 1;
  }
}

.clock-and-pause {
  display: flex;
  align-items: center;
  gap: 7px;
}

.server-clock {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.pause-btn {
  border: 1px solid rgba(157, 78, 221, 0.65);
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.32), rgba(0, 245, 212, 0.18));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.pause-btn:active {
  transform: scale(0.95);
}

.pause-btn.resume-mode {
  border-color: var(--color-up);
  background: rgba(0, 230, 118, 0.22);
  color: var(--color-up);
}

/* ==========================================================================
   Live Spot & TWAP Strip
   ========================================================================== */
.spot-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 12px 0;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: rgba(17, 12, 36, 0.88);
  border: 1px solid rgba(0, 245, 212, 0.22);
}

.spot-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.spot-sym-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-right: 6px;
}

.spot-sym {
  font-size: 12px;
  font-weight: 800;
  color: var(--neon-cyan);
}

.spot-px {
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
}

.spot-twap {
  font-size: 11px;
  color: var(--text-muted);
}

.spot-divider {
  width: 1px;
  height: 28px;
  background: rgba(157, 78, 221, 0.3);
  margin: 0 10px;
}

/* Toast */
.toast-banner {
  position: fixed;
  top: calc(68px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  max-width: 92vw;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(18, 12, 38, 0.96);
  border: 1px solid var(--neon-cyan);
  color: var(--text-main);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
}

.toast-banner.error {
  border-color: var(--color-down);
  color: #ffd5df;
}

/* ==========================================================================
   Tab Views & 6-Grid KPI Cards
   ========================================================================== */
.tab-view {
  display: none;
  padding: 12px;
  flex-direction: column;
  gap: 12px;
}

.tab-view.active {
  display: flex;
}

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

.kpi-card {
  padding: 11px 12px;
  position: relative;
  overflow: hidden;
}

.kpi-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
  opacity: 0.65;
}

.kpi-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.kpi-value {
  font-size: 18px;
  font-weight: 800;
  margin: 4px 0 3px;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.kpi-sub {
  font-size: 10.8px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   K-Line & Signal Auto-Marker Panel
   ========================================================================== */
.chart-panel {
  padding: 12px;
}

.panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.seg-group {
  display: inline-flex;
  background: rgba(8, 6, 18, 0.75);
  border: 1px solid rgba(157, 78, 221, 0.3);
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
}

.seg-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 7px;
  cursor: pointer;
}

.seg-btn.active {
  background: linear-gradient(135deg, var(--neon-purple), #6d28d9);
  color: #fff;
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.45);
}

.chart-subtoolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  margin-bottom: 8px;
}

.overlay-toggles {
  display: flex;
  gap: 6px;
}

.chip-toggle {
  border: 1px solid rgba(154, 146, 184, 0.3);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.chip-toggle.active {
  border-color: var(--neon-cyan);
  background: rgba(0, 245, 212, 0.14);
  color: var(--neon-cyan);
}

.chart-meta-tag {
  font-size: 10.5px;
  color: var(--text-muted);
}

.chart-stage-wrap {
  width: 100%;
  height: 270px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #090714;
  border: 1px solid rgba(157, 78, 221, 0.2);
}

.tv-chart-container,
.fallback-kline-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-legend {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   Tracking & Settled Signal Cards
   ========================================================================== */
.section-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 14px;
  font-weight: 800;
  color: #f3e8ff;
}

.count-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(0, 245, 212, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 245, 212, 0.35);
}

.count-pill.subtle {
  background: rgba(157, 78, 221, 0.15);
  color: #d8b4fe;
  border-color: rgba(157, 78, 221, 0.3);
}

.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empty-placeholder {
  padding: 18px 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(157, 78, 221, 0.28);
  background: rgba(14, 10, 30, 0.5);
}

.tracking-card {
  padding: 13px;
  border: 1px solid rgba(0, 245, 212, 0.55);
  box-shadow: 0 0 22px rgba(0, 245, 212, 0.12), inset 0 0 18px rgba(157, 78, 221, 0.1);
}

.order-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.order-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sym-pill {
  font-weight: 800;
  font-size: 13px;
  color: #fff;
}

.tf-pill {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(157, 78, 221, 0.25);
  color: #e9d5ff;
  font-weight: 700;
}

.dir-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

.dir-pill.up {
  background: rgba(0, 230, 118, 0.18);
  color: var(--color-up);
  border: 1px solid rgba(0, 230, 118, 0.45);
}

.dir-pill.down {
  background: rgba(255, 59, 107, 0.18);
  color: var(--color-down);
  border: 1px solid rgba(255, 59, 107, 0.45);
}

.tag-pill {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(0, 245, 212, 0.12);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 245, 212, 0.3);
}

.countdown-label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--color-gold);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 9px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
  border-radius: 999px;
  transition: width 0.4s linear;
}

.order-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
  font-size: 12px;
  margin-bottom: 10px;
}

.om-item {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.om-item strong {
  color: var(--text-main);
}

.order-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(157, 78, 221, 0.22);
}

.early-exit-btn {
  border: 1px solid var(--color-gold);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.24), rgba(157, 78, 221, 0.24));
  color: var(--color-gold);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 13px;
  border-radius: 9px;
  cursor: pointer;
}

.early-exit-btn:active {
  transform: scale(0.96);
}

.settled-card {
  padding: 11px 13px;
}

.settled-subrow {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Tab 2: Sticky First-Column Signal Table
   ========================================================================== */
.filter-panel {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.pill-btn {
  border: 1px solid rgba(157, 78, 221, 0.26);
  background: rgba(12, 9, 26, 0.7);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
}

.pill-btn.active {
  background: linear-gradient(135deg, var(--neon-purple), #7c3aed);
  border-color: #c084fc;
  color: #fff;
}

.table-card {
  padding: 10px 0 6px;
  overflow: hidden;
}

.table-header-caption {
  display: flex;
  justify-content: space-between;
  padding: 0 12px 8px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.sticky-table-scroller {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.neon-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

.neon-table th,
.neon-table td {
  padding: 9px 10px;
  text-align: right;
  border-bottom: 1px solid rgba(157, 78, 221, 0.16);
  white-space: nowrap;
}

.neon-table th {
  font-size: 11px;
  color: var(--text-muted);
  background: #140e2c;
  font-weight: 700;
}

.neon-table .sticky-col {
  position: sticky;
  left: 0;
  z-index: 3;
  text-align: left;
  background: var(--bg-sticky-col);
  border-right: 1px solid rgba(0, 245, 212, 0.25);
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.45);
}

.neon-table thead .sticky-col {
  z-index: 4;
  background: #171033;
}

.table-empty {
  text-align: center !important;
  padding: 24px 12px !important;
  color: var(--text-muted);
}

/* ==========================================================================
   Tab 3: Model Center & Failure Attribution
   ========================================================================== */
.model-summary-card,
.section-card {
  padding: 13px;
}

.model-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 10px;
}

.mini-stat {
  background: rgba(8, 6, 18, 0.65);
  border: 1px solid rgba(157, 78, 221, 0.22);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-label {
  font-size: 11px;
  color: var(--text-muted);
}

.mini-time {
  font-size: 11.5px;
  word-break: break-all;
}

.model-snapshots-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.psi-legend {
  font-size: 11px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lamp {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.lamp.green {
  background: var(--color-up);
  box-shadow: 0 0 7px var(--color-up);
}

.lamp.yellow {
  background: var(--color-gold);
  box-shadow: 0 0 7px var(--color-gold);
}

.lamp.red {
  background: var(--color-down);
  box-shadow: 0 0 7px var(--color-down);
}

.factor-list,
.attrib-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.factor-row {
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(10, 8, 22, 0.72);
  border: 1px solid rgba(157, 78, 221, 0.2);
}

.factor-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.factor-name-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

.factor-row-metrics {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 11px;
  color: var(--text-muted);
}

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

.attrib-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.attrib-bar-bg {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.attrib-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-down), var(--neon-purple));
}

/* ==========================================================================
   Tab 4: Daily Review
   ========================================================================== */
.date-bar-card {
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.nav-day-btn {
  border: 1px solid rgba(157, 78, 221, 0.35);
  background: rgba(157, 78, 221, 0.14);
  color: #e9d5ff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 9px;
  border-radius: 8px;
  cursor: pointer;
}

.nav-day-btn.subtle {
  border-color: rgba(0, 245, 212, 0.35);
  background: rgba(0, 245, 212, 0.12);
  color: var(--neon-cyan);
}

.date-input {
  flex: 1;
  min-width: 0;
  background: #0b0818;
  color: #fff;
  border: 1px solid rgba(157, 78, 221, 0.4);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 12.5px;
  text-align: center;
  color-scheme: dark;
}

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

.trio-item {
  padding: 11px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trio-label {
  font-size: 11px;
  color: var(--text-muted);
}

.trio-val {
  font-size: 16px;
  font-weight: 800;
}

.dim-table-title {
  font-size: 13px;
  font-weight: 800;
  color: #e9d5ff;
  margin-bottom: 8px;
}

.dim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.dim-table th,
.dim-table td {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(157, 78, 221, 0.16);
  text-align: right;
}

.dim-table th:first-child,
.dim-table td:first-child {
  text-align: left;
  font-weight: 700;
}

.dim-table th {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   Bottom Tab Bar
   ========================================================================== */
.bottom-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 540px;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(10, 7, 22, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(157, 78, 221, 0.35);
  padding: 6px 6px calc(8px + env(safe-area-inset-bottom, 0px));
}

.tab-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  cursor: pointer;
}

.tab-icon {
  font-size: 16px;
  line-height: 1.1;
}

.tab-text {
  font-size: 11px;
  font-weight: 700;
}

.tab-btn.active {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 245, 212, 0.55);
}

/* ==========================================================================
   PIN Lock Modal
   ========================================================================== */
.pin-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: radial-gradient(circle at 50% 20%, rgba(45, 20, 88, 0.96), rgba(8, 6, 18, 0.99));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pin-card {
  width: 100%;
  max-width: 350px;
  padding: 24px 20px;
  text-align: center;
  border-color: rgba(0, 245, 212, 0.45);
}

.pin-logo-ring {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(157, 78, 221, 0.65);
}

.pin-logo-glyph {
  font-size: 28px;
  font-weight: 900;
  color: #080612;
}

.pin-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pin-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pin-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 20px;
  letter-spacing: 6px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid rgba(0, 245, 212, 0.45);
  background: rgba(8, 6, 18, 0.85);
  color: var(--neon-cyan);
  outline: none;
}

.pin-error {
  margin-top: 8px;
  font-size: 12px;
  color: var(--color-down);
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.key-btn {
  padding: 12px 0;
  border-radius: 11px;
  border: 1px solid rgba(157, 78, 221, 0.32);
  background: rgba(25, 18, 52, 0.85);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.key-btn:active {
  background: rgba(157, 78, 221, 0.45);
}

.key-btn.key-fn {
  font-size: 13px;
  color: var(--text-muted);
}

.neon-primary-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
  color: #080612;
  font-size: 14.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 245, 212, 0.3);
}
