/* Site shell — CosmoCheats-style header, rail, shared chrome */
:root {
  --cc-bg: #08080e;
  --cc-surface: #12121c;
  --cc-line: rgba(255, 255, 255, 0.08);
  --cc-pink: #e040fb;
  --cc-pink-deep: #9333ea;
  --cc-pink-hot: #f472b6;
  --cc-nav-h: 52px;
  --cc-top-h: 38px;
}

body.cc-site {
  background: var(--cc-bg);
}

/* ---- Header shell ---- */
.cc-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cc-bg);
}

.cc-shell__top {
  background: #0a0a12;
  border-bottom: 1px solid var(--cc-line);
  font-size: 11px;
}

.cc-shell__top-inner {
  min-height: var(--cc-top-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cc-shell__top-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.cc-shell__top-links a {
  color: #8b93a8;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cc-shell__top-links a:hover {
  color: #fff;
}

.cc-shell__top-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cc-online {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #00d2a0;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px;
}

.cc-online__dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #00d2a0;
}

.cc-shell__signin {
  color: #8b93a8;
  font-size: 12px;
}

.cc-shell__signin a {
  color: var(--cc-pink-hot);
  font-weight: 700;
}

.cc-btn-signup {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--cc-pink-deep);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.15s;
}

.cc-btn-signup:hover {
  background: #7e22ce;
}

.cc-shell__main {
  background: rgba(14, 14, 22, 0.96);
  border-bottom: 1px solid var(--cc-line);
}

.cc-shell__main-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cc-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cc-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.cc-logo__text {
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.cc-logo__text em {
  font-style: italic;
  color: var(--cc-pink-hot);
}

.cc-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  flex-wrap: wrap;
}

.cc-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  color: #8b93a8;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.cc-nav a:hover {
  color: #fff;
}

.cc-nav a.is-active {
  color: #fff;
  background: rgba(224, 64, 251, 0.12);
  border-color: rgba(224, 64, 251, 0.28);
}

.cc-shell__locale {
  margin-left: auto;
  font-size: 13px;
  color: #8b93a8;
  white-space: nowrap;
}

.cc-shell__accent {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 64, 251, 0.55), transparent);
  box-shadow: 0 0 18px rgba(224, 64, 251, 0.35);
}

/* Hide legacy duplicate headers when shell is present */
.cc-site .site-header,
.cc-site .site-header-top,
.cc-site .site-nav-bar {
  display: none;
}

/* ---- Floating rail ---- */
.cc-rail {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cc-rail a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(14, 14, 22, 0.92);
  border: 1px solid var(--cc-line);
  color: #c4cad8;
  font-size: 14px;
  font-weight: 800;
  transition: border-color 0.15s, color 0.15s;
}

.cc-rail a:hover,
.cc-rail a.is-active {
  color: #fff;
  border-color: rgba(224, 64, 251, 0.45);
  background: rgba(224, 64, 251, 0.12);
}

/* ---- Theme overrides ---- */
.cc-site .btn-primary {
  background: var(--cc-pink-deep);
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.35);
}

.cc-site .btn-primary:hover {
  background: #7e22ce;
}

.cc-site .site-footer {
  border-top: 1px solid var(--cc-line);
  background: #0a0a12;
}

@media (max-width: 860px) {
  .cc-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .cc-shell__locale {
    margin-left: 0;
  }

  .cc-rail {
    display: none;
  }
}
