@layer base {
  * {
    border-color: rgba(0, 255, 65, 0.2);
    outline-color: rgba(0, 255, 65, 0.5);
  }

  :root {
    --neon: #00ff41;
    --neon-dark: #00cc33;
    --neon-light: #66ff88;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    background-color: #000;
    color: #fff;
  }

  /* Sticky footer: footer sticks to bottom on short pages (404, archives). */
  body.tbc-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  body.tbc-site main {
    flex: 1 0 auto;
  }

  body.tbc-site .tbc-footer {
    margin-top: auto;
    flex-shrink: 0;
  }

  h1 {
    font-weight: 600;
    line-height: 1.2;
  }

  h2 {
    font-weight: 600;
    line-height: 1.3;
  }

  h3 {
    font-weight: 600;
    line-height: 1.4;
  }
}

@layer utilities {
  .text-gradient {
    background-image: linear-gradient(to right, #00ff41, #00cc33);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .card-gradient {
    background-image: linear-gradient(to bottom right, #0a0a0a, #1a1a1a);
  }

  .glow-border {
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
  }

  .glow-border-light {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
  }

  .glow-bg {
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.2);
  }

  .border-glow {
    border-color: rgba(0, 255, 65, 0.2);
    transition: all 0.3s;
  }

  .border-glow:hover {
    border-color: rgba(0, 255, 65, 0.5);
  }
}

/* Accordion */
[data-state=closed] .accordion-content {
  animation: accordion-up 0.2s ease-out;
}

[data-state=open] .accordion-content {
  animation: accordion-down 0.2s ease-out;
}

.accordion-trigger[data-state=open] svg {
  transform: rotate(180deg);
}

.accordion-trigger svg {
  transition: transform 0.2s;
}

/* Prose */
.prose {
  color: inherit;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: #ffffff;
  line-height: 1.2;
  margin: 1.6em 0 0.6em;
}

.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.8rem; }
.prose h3 { font-size: 1.4rem; }
.prose h4 { font-size: 1.15rem; }
.prose h5 { font-size: 1rem; }
.prose h6 { font-size: 0.95rem; }

.prose p {
  margin: 0.8em 0;
}

.prose a {
  color: #00ff41;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: #66ff88;
}

.prose strong {
  color: #ffffff;
}

.prose em {
  color: #cbd5f5;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin: 0.8em 0;
}

.prose li {
  margin: 0.35em 0;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose blockquote {
  border-left: 4px solid rgba(0, 255, 65, 0.6);
  padding: 0.5em 1em;
  margin: 1.2em 0;
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.12), rgba(15, 23, 42, 0.75));
  box-shadow: inset 0 0 0 1px rgba(0, 255, 65, 0.12);
  border-radius: 12px;
}

.prose code {
  color: #00ff41;
  background: rgba(0, 255, 65, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 6px;
  font-size: 0.95em;
}

.prose pre {
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin: 1.2em 0;
}

.prose pre code {
  background: transparent;
  color: #d1fae5;
  padding: 0;
}

.prose hr {
  border: 0;
  border-top: 1px solid rgba(0, 255, 65, 0.2);
  margin: 2em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 0.95em;
}

.prose th,
.prose td {
  border: 1px solid rgba(0, 255, 65, 0.2);
  padding: 0.6em 0.8em;
  text-align: left;
}

.prose th {
  color: #ffffff;
  background: rgba(0, 255, 65, 0.08);
}

.prose img,
.prose figure {
  max-width: 100%;
  margin: 1.4em auto;
}

.prose img {
  border-radius: 16px;
}

.prose figcaption {
  text-align: center;
  font-size: 0.9em;
  color: #94a3b8;
  margin-top: 0.6em;
}

.prose iframe {
  width: 100%;
  min-height: 320px;
  border-radius: 16px;
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.zoom-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.zoom-in.is-visible {
  opacity: 1;
  transform: scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

.tbc-join-card {
  backdrop-filter: blur(8px);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.tbc-join-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tbc-join-form.space-y-5 {
  gap: 1.5rem;
}

.tbc-join-form .tbc-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .tbc-join-form .tbc-form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.25rem;
  }
}

.tbc-join-form .tbc-form-row {
  display: block;
  width: 100%;
  margin: 0;
}

.tbc-join-form .tbc-form-label {
  display: block;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.tbc-join-form .tbc-form-label .req {
  color: var(--neon);
}

.tbc-field {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 3rem;
  margin: 0;
  padding: 0.75rem 1rem;
  color: #fff;
  color-scheme: dark;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(0, 255, 65, 0.28);
  border-radius: 0.75rem;
  font-size: 1rem;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

textarea.tbc-field {
  min-height: 7rem;
  resize: vertical;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

select.tbc-field {
  padding-right: 2.5rem;
  cursor: pointer;
  background-image: none;
}

.tbc-field::placeholder {
  color: #6b7280;
}

.tbc-field:hover {
  border-color: rgba(0, 255, 65, 0.5);
}

.tbc-field:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.18);
  background: rgba(0, 0, 0, 0.8);
}

.tbc-select-wrap {
  position: relative;
}

.tbc-select-wrap .tbc-select-caret {
  pointer-events: none;
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0, 255, 65, 0.75);
  font-size: 0.7rem;
}

.tbc-check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.tbc-check__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.tbc-check__box {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  border: 1px solid rgba(0, 255, 65, 0.45);
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tbc-check__box i {
  font-size: 0.65rem;
  color: #000;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.tbc-check:hover .tbc-check__box {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.12);
}

.tbc-check__input:focus-visible + .tbc-check__box {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.25);
}

.tbc-check__input:checked + .tbc-check__box {
  background: var(--neon);
  border-color: var(--neon);
}

.tbc-check__input:checked + .tbc-check__box i {
  opacity: 1;
  transform: scale(1);
}

.tbc-check__label {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #9ca3af;
}

.tbc-check__label a {
  color: var(--neon);
  word-break: break-word;
  text-decoration: none;
}

.tbc-check__label a:hover {
  text-decoration: underline;
}

.tbc-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3.25rem;
  margin: 0;
  padding: 0.95rem 1.25rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--neon);
  color: #000;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(0, 255, 65, 0.35);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
}

.tbc-submit:hover:not(:disabled) {
  background: var(--neon-dark);
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.55);
}

.tbc-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.tbc-submit:not(:disabled):active {
  transform: translateY(1px);
}

.tbc-form-consents {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.35rem;
  margin-top: 0.25rem;
}

.tbc-join-form > .tbc-submit,
.tbc-join-form > #form-message {
  margin-top: 0.35rem;
}