/* Trading Bite — Terms & Conditions entry gate */
.tc-gate {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.tc-gate.active {
  opacity: 1;
  visibility: visible;
}
.tc-gate-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(201, 145, 124, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 80%, rgba(45, 212, 191, 0.12), transparent 50%),
    rgba(4, 6, 10, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.tc-gate-modal {
  position: relative;
  width: min(100%, 620px);
  max-height: min(92vh, 780px);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid rgba(201, 145, 124, 0.35);
  background: linear-gradient(165deg, rgba(14, 18, 28, 0.98) 0%, rgba(8, 12, 20, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(201, 145, 124, 0.12);
  overflow: hidden;
  animation: tc-modal-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes tc-modal-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.tc-gate-top {
  padding: 1.75rem 1.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(201, 145, 124, 0.15);
  background: linear-gradient(180deg, rgba(201, 145, 124, 0.08), transparent);
}
.tc-gate-mega {
  display: block;
  font-size: clamp(3.5rem, 14vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #e8b4a0 0%, #c9917c 35%, #2dd4bf 70%, #c9917c 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: tc-shine 4s linear infinite;
  margin-bottom: 0.35rem;
}
@keyframes tc-shine {
  to { background-position: 200% center; }
}
.tc-gate-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(244, 242, 236, 0.85);
  letter-spacing: 0.02em;
}
.tc-gate-sub {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: rgba(244, 242, 236, 0.5);
}
.tc-gate-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.75rem;
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(244, 242, 236, 0.78);
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 145, 124, 0.4) transparent;
}
.tc-gate-scroll h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2dd4bf;
  margin: 1.1rem 0 0.45rem;
}
.tc-gate-scroll h3:first-child { margin-top: 0; }
.tc-gate-scroll ul {
  margin: 0.35rem 0 0.75rem 1.1rem;
  padding: 0;
}
.tc-gate-scroll li { margin-bottom: 0.4rem; }
.tc-gate-scroll strong { color: #f4f2ec; }
.tc-gate-foot {
  padding: 1rem 1.75rem 1.5rem;
  border-top: 1px solid rgba(201, 145, 124, 0.15);
  background: rgba(0, 0, 0, 0.2);
}
.tc-gate-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: rgba(244, 242, 236, 0.75);
  cursor: pointer;
  margin-bottom: 1rem;
  line-height: 1.45;
}
.tc-gate-check input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: #c9917c;
  cursor: pointer;
}
.tc-gate-agree {
  width: 100%;
  padding: 0.95rem 1.25rem;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: #06080d;
  background: linear-gradient(135deg, #c9917c, #a67c6d);
  box-shadow: 0 8px 28px rgba(201, 145, 124, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.tc-gate-agree:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}
.tc-gate-agree:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(201, 145, 124, 0.45);
}
body.tc-locked {
  overflow: hidden !important;
  height: 100vh;
}
body.tc-locked .ambient,
body.tc-locked .site-chrome,
body.tc-locked .site-header,
body.tc-locked main,
body.tc-locked .site-footer,
body.tc-locked .ticker-wrap,
body.tc-locked .edu-notice-bar {
  pointer-events: none;
  user-select: none;
}
