/* ─── The Chat — Nyxa Dark ───────────────────────────────────────────────────
   Standalone CSS for /thechat — does not affect main site
──────────────────────────────────────────────────────────────────────────── */

:root {
  --primary:     #00ffcc;
  --secondary:   #00ff88;
  --accent:      #4488ff;
  --bg:          #080810;
  --bg2:         #0c0c1a;
  --bg3:         #10101f;
  --border:      #00ffcc18;
  --border-mid:  #00ffcc33;
  --text:        #c8e8e0;
  --text-dim:    #00ffcc55;
  --text-muted:  #5a7a72;
  --mono:        'Courier New', monospace;
  --glow:        0 0 20px #00ffcc22;
  --glow-strong: 0 0 40px #00ffcc44;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

/* scan line */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: scan 8s linear infinite;
  opacity: 0.15;
  pointer-events: none;
  z-index: 9999;
}
@keyframes scan { 0% { top: 0; } 100% { top: 100vh; } }

/* ─── Header ─────────────────────────────────────────────────────────────── */

.tc-header {
  position: sticky; top: 0; z-index: 100;
  background: #080810f0;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
}

.tc-header-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}

.tc-logo {
  font-family: var(--mono);
  font-size: 0.78rem; letter-spacing: 6px;
  color: var(--primary); text-transform: uppercase;
  text-shadow: var(--glow);
}

.tc-logo small {
  display: block; font-size: 0.55rem; letter-spacing: 3px;
  color: var(--text-dim); margin-top: 2px;
}

.tc-back {
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim); transition: color 0.2s;
}
.tc-back:hover { color: var(--primary); }
.tc-back::before { content: '← '; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.tc-hero {
  position: relative; overflow: hidden;
  padding: 7rem 2rem 5rem; text-align: center;
}

.tc-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, #00ffcc0a 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 10% 90%, #4488ff07 0%, transparent 60%),
    radial-gradient(ellipse 30% 25% at 90% 80%, #00ff8806 0%, transparent 60%);
  pointer-events: none;
}

.tc-label {
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 6px; color: var(--text-dim);
  text-transform: uppercase; margin-bottom: 1.8rem;
}

.tc-title {
  font-family: var(--mono);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  letter-spacing: 5px; color: var(--primary);
  text-shadow: var(--glow-strong);
  margin-bottom: 1.4rem; line-height: 1.1;
}

.tc-title em { font-style: normal; color: var(--secondary); }

.tc-sub {
  font-size: 1rem; color: var(--text-muted);
  max-width: 500px; margin: 0 auto 2.8rem; line-height: 1.9;
}

.tc-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.tc-btn {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 3px; text-transform: uppercase;
  padding: 13px 30px; border-radius: 3px; border: 1px solid;
  cursor: pointer; transition: all 0.2s; display: inline-block;
}
.tc-btn-primary {
  background: var(--primary); border-color: var(--primary); color: var(--bg);
}
.tc-btn-primary:hover {
  background: var(--secondary); border-color: var(--secondary);
  color: var(--bg); box-shadow: var(--glow-strong);
}
.tc-btn-outline {
  background: transparent; border-color: var(--border-mid); color: var(--primary);
}
.tc-btn-outline:hover {
  border-color: var(--primary); background: var(--bg2); color: #fff;
}

/* ─── Stats Bar ──────────────────────────────────────────────────────────── */

.tc-stats {
  display: flex; gap: 1px;
  background: var(--border);
}

.tc-stat {
  flex: 1; background: var(--bg2);
  padding: 1.6rem 2rem; text-align: center;
}

.tc-stat-value {
  font-family: var(--mono); font-size: 2rem;
  color: var(--primary); display: block;
  text-shadow: var(--glow);
}

.tc-stat-label {
  font-family: var(--mono); font-size: 0.55rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-dim); display: block; margin-top: 4px;
}

/* ─── Section ────────────────────────────────────────────────────────────── */

.tc-wrap { max-width: 1120px; margin: 0 auto; padding: 0 2.5rem 5rem; }

.tc-section-label {
  font-family: var(--mono); font-size: 0.58rem;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 1rem;
  padding: 3.5rem 0 2rem;
}
.tc-section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ─── Module Grid ────────────────────────────────────────────────────────── */

.tc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1px; background: var(--border);
}

.tc-card {
  background: var(--bg2); padding: 2.2rem;
  position: relative; transition: background 0.2s;
}
.tc-card:hover { background: var(--bg3); }
.tc-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 2px; height: 0; background: var(--primary);
  transition: height 0.3s;
}
.tc-card:hover::before { height: 100%; }

.tc-card-icon {
  font-family: var(--mono); font-size: 1.3rem;
  color: var(--primary); margin-bottom: 1.2rem; opacity: 0.75;
}

.tc-card-title {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 0.8rem;
}

.tc-card-text { font-size: 0.84rem; color: var(--text-muted); line-height: 1.75; }

.tc-card-link {
  display: inline-block; margin-top: 1.4rem;
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 2px; color: var(--text-dim);
  text-transform: uppercase; transition: color 0.2s;
}
.tc-card-link:hover { color: var(--primary); }
.tc-card-link::after { content: ' →'; }

/* ─── Telegram CTA ───────────────────────────────────────────────────────── */

.tc-cta {
  background: var(--bg2);
  border: 1px solid var(--border-mid);
  border-left: 3px solid var(--primary);
  padding: 2.5rem;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.tc-cta-text h3 {
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 0.5rem;
}

.tc-cta-text p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.tc-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 0.58rem;
  letter-spacing: 3px; color: var(--text-dim);
}

.tc-footer-status { display: flex; align-items: center; gap: 8px; }
.tc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--secondary); animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.tc-footer a { color: var(--text-dim); }
.tc-footer a:hover { color: var(--primary); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .tc-header { padding: 0 1.2rem; }
  .tc-hero { padding: 4rem 1.2rem 3rem; }
  .tc-stats { flex-direction: column; }
  .tc-wrap { padding: 0 1.2rem 3rem; }
  .tc-cta { flex-direction: column; }
  .tc-footer { flex-direction: column; gap: 0.8rem; text-align: center; }
}
