:root {
  --tc-bg: #05070d;
  --tc-border: rgba(255, 255, 255, 0.08);
  --tc-border-bright: rgba(255, 255, 255, 0.15);
  --tc-text: #f0f0f5;
  --tc-text-soft: #b4b8c8;
  --tc-text-dim: #6b7086;
  --tc-cyan: #00d9ff;
  --tc-violet: #a855f7;
  --tc-mono: "JetBrains Mono", "Courier New", monospace;
  --tc-display: "Space Grotesk", "Pretendard", sans-serif;
  --tc-shell-height: 73px;
  --bg: #05070d;
  --bg-elev: #0b0e17;
  --bg-card: #101421;
  --bg-hover: #171c2a;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f0f0f5;
  --text-dim: #b4b8c8;
  --text-subtle: #858ba0;
  --accent: #00d9ff;
  --accent-dim: #009fbd;
  --accent-glow: rgba(0, 217, 255, 0.14);
  --blue: #4ba9ff;
  --purple: #a855f7;
}

.tc-shell {
  position: sticky;
  top: 0;
  z-index: 1200;
  height: var(--tc-shell-height);
  background: rgba(5, 7, 13, 0.78);
  border-bottom: 1px solid var(--tc-border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.tc-shell button,
.tc-shell-drawer button {
  margin: 0;
}

.tc-shell-inner {
  width: min(1280px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tc-shell-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tc-text);
  font: 700 17px/1 var(--tc-display);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.tc-shell-logo:hover { opacity: 0.82; }

.tc-shell-mark {
  width: 26px;
  height: 26px;
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--tc-violet), var(--tc-cyan));
}

.tc-shell-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, 0.4) 50%);
}

.tc-shell-tag {
  color: var(--tc-cyan);
  font: 500 13px/1 var(--tc-mono);
}

.tc-shell-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tc-shell-menu a {
  position: relative;
  color: var(--tc-text-soft);
  font: 400 13px/1.5 var(--tc-mono);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.tc-shell-menu a::before {
  content: "// ";
  color: var(--tc-text-dim);
}

.tc-shell-menu a:hover,
.tc-shell-menu a[aria-current="page"] {
  color: var(--tc-cyan);
}

.tc-shell-cta {
  min-height: 38px;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--tc-violet), #7c3aed);
  color: #fff;
  font: 500 12px/1.4 var(--tc-mono);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s, box-shadow 0.25s;
}

.tc-shell-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
}

.tc-shell-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  padding: 0;
  border: 1px solid var(--tc-border-bright);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.tc-shell-toggle span {
  width: 18px;
  height: 1.5px;
  position: absolute;
  left: 13px;
  border-radius: 2px;
  background: var(--tc-text);
  transition: transform 0.3s, opacity 0.2s, top 0.3s;
}

.tc-shell-toggle span:nth-child(1) { top: 16px; }
.tc-shell-toggle span:nth-child(2) { top: 21px; }
.tc-shell-toggle span:nth-child(3) { top: 26px; }
.tc-shell-toggle.active span:nth-child(1) { top: 21px; transform: rotate(45deg); background: var(--tc-cyan); }
.tc-shell-toggle.active span:nth-child(2) { opacity: 0; }
.tc-shell-toggle.active span:nth-child(3) { top: 21px; transform: rotate(-45deg); background: var(--tc-cyan); }

.tc-shell-drawer {
  position: fixed;
  inset: 0;
  z-index: 1300;
  visibility: hidden;
  pointer-events: none;
}

.tc-shell-drawer.show {
  visibility: visible;
  pointer-events: auto;
}

.tc-shell-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(5, 7, 13, 0.48);
  backdrop-filter: blur(6px);
  transition: opacity 0.3s;
}

.tc-shell-drawer.show .tc-shell-backdrop { opacity: 1; }

.tc-shell-panel {
  width: min(320px, 84%);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  padding: 72px 16px 24px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--tc-border);
  background: linear-gradient(180deg, rgba(11, 14, 23, 0.92), rgba(5, 7, 13, 0.96));
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1);
}

.tc-shell-drawer.show .tc-shell-panel { transform: translateX(0); }

.tc-shell-close {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid var(--tc-border-bright);
  border-radius: 10px;
  background: transparent;
  color: var(--tc-text-soft);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.tc-shell-mobile-menu {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tc-shell-mobile-menu a {
  padding: 12px 14px;
  display: flex;
  border-radius: 10px;
  color: var(--tc-text);
  font: 500 17px/1.5 var(--tc-display);
  text-decoration: none;
}

.tc-shell-mobile-menu a:hover,
.tc-shell-mobile-menu a[aria-current="page"] {
  color: var(--tc-cyan);
  background: rgba(0, 217, 255, 0.08);
}

.tc-shell-mobile-cta {
  min-height: 48px;
  margin-top: 24px;
}

.tc-shell + .app {
  min-height: calc(100vh - var(--tc-shell-height));
}

.tc-shell + .app > .sidebar {
  top: var(--tc-shell-height);
}

@media (max-width: 1040px) {
  .tc-shell-menu { gap: 18px; }
}

@media (max-width: 860px) {
  .tc-shell-menu,
  .tc-shell-inner > .tc-shell-cta {
    display: none;
  }

  .tc-shell-toggle { display: block; }
}

@media (max-width: 560px) {
  :root { --tc-shell-height: 65px; }
  .tc-shell-inner { padding: 0 20px; }
  .tc-shell-logo { font-size: 16px; }
  .tc-shell-mark { width: 24px; height: 24px; }
}
