body.expert-terminal-page {
  --radius: 14px;
  --terminal-gap: 10px;
  --primary: #e6007a;
  background: #ffcc99 !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: normal !important;
  padding: 0 var(--terminal-gap) !important;
  overflow-x: hidden;
}

body.expert-terminal-page .logo {
  width: 100%;
  margin-top: 5px;
  margin-bottom: 10px;
  border-radius: var(--radius);
}

.terminal-page {
  width: 100%;
  margin: 0;
  padding: 0;
}

.terminal-box {
  background: #fc9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 29, 29, 0.7);
  margin-bottom: 10px;
  padding: 14px 12px;
  text-align: center;
}

.terminal-box.terminal-hero-box {
  margin-top: 10px;
}

.terminal-hero-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary);
  letter-spacing: 0.4px;
}

.terminal-hero-sub {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #222;
  line-height: 1.55;
}

.terminal-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.terminal-cal-icon {
  font-size: 18px;
  line-height: 1;
}

.terminal-date-text {
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
}

.terminal-status-text {
  margin: 0;
  font-size: 11px;
  color: #222;
  font-weight: 600;
}

.terminal-status-text .is-active {
  color: #15803d;
}

.terminal-logs-box {
  text-align: left;
  padding: 12px 10px 10px;
}

.terminal-logs-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}

.terminal-screen-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #111;
  background: #000;
}

.terminal-screen {
  height: 220px;
  overflow-y: auto;
  padding: 12px 10px;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.55;
  color: #d1d5db;
  scroll-behavior: smooth;
}

.terminal-screen::-webkit-scrollbar {
  width: 8px;
}

.terminal-screen::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.terminal-log-line {
  margin: 0 0 4px;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-log-line.is-new {
  animation: terminalLineFade 0.35s ease;
}

@keyframes terminalLineFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

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

.terminal-log-time {
  color: #9ca3af;
}

.terminal-log-label {
  font-weight: 700;
}

.terminal-log-label.is-source {
  color: #e6007a;
}

.terminal-log-label.is-market {
  color: #22d3ee;
}

.terminal-log-label.is-hacker {
  color: #ef4444;
}

.terminal-log-label.is-bookie {
  color: #f59e0b;
}

.terminal-log-label.is-vip {
  color: #a78bfa;
}

.terminal-live-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 10px 8px;
  text-align: left;
}

.terminal-live-market {
  min-width: 0;
}

.terminal-live-name {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}

.terminal-live-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #15803d;
  letter-spacing: 0.3px;
}

.terminal-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.8);
  animation: terminalLivePulse 1.6s ease infinite;
}

@keyframes terminalLivePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.terminal-live-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #111827 0%, #000 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.terminal-live-prob {
  justify-self: end;
  text-align: right;
}

.terminal-live-prob-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #666;
  letter-spacing: 0.4px;
}

.terminal-live-prob-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.terminal-live-note {
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 10px;
  font-style: italic;
  font-weight: 500;
  color: #666;
  text-align: center;
}

.terminal-info-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
  text-align: left;
}

.terminal-info-box {
  text-align: left;
}

.terminal-info-box p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.55;
  color: #222;
  font-weight: 500;
}

.terminal-info-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.terminal-info-list li {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #222;
  font-weight: 600;
}

.terminal-footer {
  margin: 10px 0 100px;
}

.terminal-footer-zone-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}

.terminal-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.terminal-footer-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 29, 29, 0.7);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.terminal-footer-zone-sub {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
}

body.expert-terminal-page .terminal-refresh-btn,
body.expert-terminal-page .vip-zone-btn {
  position: fixed;
  bottom: 12px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid rgba(255, 29, 29, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

body.expert-terminal-page .terminal-refresh-btn {
  right: 12px;
  left: auto;
  background: #fff8f1;
  color: #111;
}

body.expert-terminal-page .vip-zone-btn {
  left: 12px;
  right: auto;
  transform: none;
  background: #ff0016;
  color: #fff;
  border-color: #ff0016;
}

@media screen and (max-width: 480px) {
  .terminal-hero-title {
    font-size: 18px;
  }

  .terminal-live-bar {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .terminal-live-market,
  .terminal-live-prob {
    text-align: center;
  }

  .terminal-live-status {
    justify-content: center;
  }

  .terminal-live-prob {
    justify-self: center;
  }

  .terminal-screen {
    height: 200px;
    font-size: 10px;
  }
}
