/* --- VARIABLES & RESET --- */
:root {
  --color-bg: #050a10;
  --color-bg-secondary: #0f1621;
  --color-text: #e0e6ed;
  --color-text-muted: #94a3b8;
  --color-accent: #00f0ff; /* Cyber Cyan */
  --color-accent-dim: rgba(0, 240, 255, 0.1);
  --color-border: #1e293b;

  --font-heading: "Orbitron", sans-serif;
  --font-body: "Space Mono", monospace;

  --grid-gap: 2rem;
  --border-radius: 4px; /* Sharp corners for HUD style */

  --container-width: 1200px;
  --header-height: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  /* Tech grid background */
  background-image: linear-gradient(
      rgba(0, 240, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-bg);
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  cursor: pointer;
  position: relative;
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
  transition: all 0.3s ease;
}

.btn:hover {
  background: transparent;
  color: var(--color-accent);
  text-shadow: 0 0 8px var(--color-accent);
  transform: translateY(-2px);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(5, 10, 16, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-accent);
  letter-spacing: 1px;
}

.header__logo-suffix {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.header__hud-line {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 30%;
  height: 1px;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
}

.header__nav {
  display: none; /* Mobile first */
}

/* Desktop Nav */
@media (min-width: 992px) {
  .header__nav {
    display: block;
  }

  .header__menu {
    display: flex;
    gap: 30px;
  }

  .header__link {
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
  }

  .header__link::before {
    content: "[";
    margin-right: 5px;
    color: var(--color-accent);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .header__link::after {
    content: "]";
    margin-left: 5px;
    color: var(--color-accent);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .header__link:hover::before,
  .header__link:hover::after {
    opacity: 1;
  }

  .header__link:hover {
    color: var(--color-accent);
  }
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

@media (min-width: 992px) {
  .header__burger {
    display: none;
  }
}

.header__burger-line {
  width: 25px;
  height: 2px;
  background-color: var(--color-accent);
  transition: all 0.3s ease;
}

/* Mobile Menu State */
.header.is-open .header__nav {
  display: flex;
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: var(--color-bg);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--color-accent);
}

.header.is-open .header__menu {
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.header.is-open .header__burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.header.is-open .header__burger-line:nth-child(2) {
  opacity: 0;
}
.header.is-open .header__burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- FOOTER --- */
.footer {
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 80px 0 30px;
  position: relative;
  margin-top: auto; /* Push to bottom if content is short */
  clip-path: polygon(
    0 20px,
    20px 0,
    100% 0,
    100% 100%,
    0 100%
  ); /* Bento/Tech shape */
}

.footer__grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.1;
  pointer-events: none;
}

.footer__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer__container {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--color-text);
  text-transform: uppercase;
}

.footer__title-decor {
  color: var(--color-accent);
  margin-left: 5px;
}

.footer__list li {
  margin-bottom: 12px;
}

.footer__list a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  position: relative;
  padding-left: 0;
  transition: padding-left 0.3s;
}

.footer__list a:hover {
  color: var(--color-accent);
  padding-left: 10px;
}

.footer__list a:hover::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* Contacts Column */
.footer__contacts-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer__icon {
  color: var(--color-accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  display: block;
  margin-bottom: 20px;
}

.footer__desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 25px;
  max-width: 300px;
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-accent-dim);
  background: var(--color-accent-dim);
  padding: 8px 12px;
  border-radius: var(--border-radius);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-family: var(--font-heading);
}

.footer__note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.6;
  margin-top: 20px;
  border-left: 2px solid var(--color-accent);
  padding-left: 10px;
}

.footer__bottom {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer__tech-mark {
  font-family: var(--font-heading);
  color: var(--color-accent);
  opacity: 0.7;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .hero__container {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-accent);
  border: 1px solid var(--color-accent-dim);
  background: rgba(0, 240, 255, 0.05);
  padding: 8px 16px;
  margin-bottom: 25px;
  border-radius: 2px;
}

.hero__badge-icon {
  animation: blink 2s infinite;
}

/* Typography */
.hero__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 25px;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3.5rem;
  }
}

.hero__title .text-scramble {
  color: var(--color-accent);
  display: block; /* New line */
}

.hero__desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 500px;
  border-left: 1px solid var(--color-border);
  padding-left: 20px;
}

/* Buttons */
.btn--hero {
  margin-right: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 15px var(--color-accent-dim);
}

.btn--outline {
  display: inline-block;
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
  transition: all 0.3s ease;
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Stats */
.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: white;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- VISUAL HUD (RIGHT COLUMN) --- */
.hero__visual {
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Rotating Circles */
.hud-circle-outer {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px dashed var(--color-border);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

.hud-circle-inner {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px solid var(--color-accent-dim);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: rotate-rev 10s linear infinite;
}

.hud-crosshair {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  clip-path: polygon(
    20% 0%,
    80% 0%,
    100% 20%,
    100% 80%,
    80% 100%,
    20% 100%,
    0% 80%,
    0% 20%
  );
  box-shadow: 0 0 20px var(--color-accent);
}

/* Floating Cards */
.hud-card {
  position: absolute;
  background: rgba(15, 22, 33, 0.9);
  border: 1px solid var(--color-accent);
  padding: 15px;
  width: 180px;
  backdrop-filter: blur(5px);
  z-index: 5;
}

.hud-card--1 {
  top: 10%;
  right: 0;
  animation: float 6s ease-in-out infinite;
}

.hud-card--2 {
  bottom: 10%;
  left: 0;
  animation: float 6s ease-in-out infinite 2s; /* delay */
}

.hud-card__header {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 5px;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

.hud-card__body {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-text);
}

.hud-bar {
  width: 100%;
  height: 4px;
  background: var(--color-border);
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.hud-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 70%;
  background: var(--color-accent);
  animation: progress 2s infinite alternate;
}

/* Animations */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotate-rev {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes progress {
  from {
    width: 40%;
  }
  to {
    width: 90%;
  }
}

/* --- GLOBAL SECTION STYLES --- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.section-title .accent {
  color: var(--color-accent);
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 600px;
}

.highlight {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-accent);
}

/* --- BENTO GRID SYSTEM --- */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
  }
}

@media (min-width: 992px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 250px 250px;
  }
}

/* Cards Base */
.bento-card {
  background: rgba(15, 22, 33, 0.6);
  border: 1px solid var(--color-border);
  padding: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s ease;
  overflow: hidden;
}

.bento-card:hover {
  border-color: var(--color-accent);
  background: rgba(15, 22, 33, 0.9);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.05);
  transform: translateY(-5px);
}

/* Grid Spans */
@media (min-width: 992px) {
  .bento-card--large {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }

  .bento-card--tall {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
  }

  .bento-card--wide {
    grid-column: 1 / 3;
  }
}

/* Decor Corners (HUD Style) */
.bento-card__decor-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
  opacity: 0.3;
  transition: opacity 0.3s;
}

.bento-card:hover .bento-card__decor-corner {
  opacity: 1;
}

.bento-card__icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 240, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.bento-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.bento-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.bento-card__meta {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  gap: 15px;
  font-size: 0.7rem;
  color: var(--color-accent);
  font-family: var(--font-body);
  opacity: 0.7;
}

.bento-card__content-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 20px;
}

.btn--glitch-small {
  padding: 8px 16px;
  font-size: 0.8rem;
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  text-transform: uppercase;
  cursor: pointer;
}

.btn--glitch-small:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.link-arrow {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--color-accent);
}

.link-arrow i {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.link-arrow:hover i {
  transform: translateX(5px);
}

/* --- PRACTICES LIST --- */
.practices-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}

.practice-item {
  display: flex;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s;
  position: relative;
}

.practice-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.practice-item:hover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--color-accent);
}

.practice-item__num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text-muted);
  opacity: 0.3;
  width: 80px;
  flex-shrink: 0;
}

.practice-item__info {
  flex-grow: 1;
  padding-right: 20px;
}

.practice-item__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.practice-item__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.practice-item__status {
  display: none; /* Hide on mobile */
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-family: var(--font-body);
  color: var(--color-accent);
  width: 120px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--color-accent);
  animation: blink 2s infinite;
}

.status-pending .status-dot {
  background: #fbbf24;
  box-shadow: 0 0 5px #fbbf24;
  color: #fbbf24;
}
.practice-item__status.status-pending {
  color: #fbbf24;
}

.practice-item__btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.practice-item__btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: rotate(90deg);
}

@media (min-width: 768px) {
  .practice-item__status {
    display: flex;
  }
}

/* Scroll Reveal Class (handled by JS) */
.reveal-item {
  opacity: 1;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- BLOG SECTION --- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: rgba(15, 22, 33, 0.4);
  border: 1px solid var(--color-border);
  padding: 25px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--color-accent);
  background: rgba(15, 22, 33, 0.8);
}

.blog-card__date {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-accent);
  margin-bottom: 15px;
  opacity: 0.8;
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 25px;
  flex-grow: 1;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-text);
  text-transform: uppercase;
  transition: gap 0.3s;
}

.blog-card__link:hover {
  gap: 10px;
  color: var(--color-accent);
}

/* --- CONTACT SECTION --- */
.contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    var(--color-bg),
    var(--color-bg-secondary)
  );
}

.contact__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

@media (min-width: 992px) {
  .contact__container {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact__desc {
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

.contact__details li {
  margin-bottom: 15px;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.contact__label {
  color: var(--color-text-muted);
  margin-right: 10px;
}

.contact__value {
  color: var(--color-accent);
}

/* Form Styles (Tech HUD Look) */
.contact__form {
  background: rgba(15, 22, 33, 0.6);
  border: 1px solid var(--color-border);
  padding: 30px;
  position: relative;
}

.contact__form::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--color-accent);
  border-left: 2px solid var(--color-accent);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  margin-bottom: 8px;
  color: var(--color-text-muted);
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s;
  border-radius: 0; /* Remove default styling */
}

.form-input:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
  background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.05));
}

.form-error {
  display: block;
  font-size: 0.75rem;
  color: #ef4444; /* Red error */
  margin-top: 5px;
  height: 14px; /* Fix height to prevent jumps */
  opacity: 0;
  transition: opacity 0.3s;
}

.form-error.is-visible {
  opacity: 1;
}

/* Custom Checkbox */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.custom-checkbox-input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  position: relative;
  margin-top: 3px;
}

.custom-checkbox-input:checked {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.custom-checkbox-input:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-bg);
  font-size: 12px;
}

.custom-checkbox-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1.4;
  flex: 1;
}

.custom-checkbox-label a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Custom Captcha Widget */
.custom-captcha {
  border: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.2);
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.custom-captcha:hover {
  border-color: var(--color-text-muted);
}

.captcha-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-text-muted);
  border-radius: 2px;
  position: relative;
}

.custom-captcha.is-checked .captcha-checkbox {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.custom-captcha.is-checked .captcha-checkbox::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid var(--color-bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.captcha-text {
  font-size: 0.85rem;
  color: var(--color-text);
}

/* Submit Button Loading State */
.btn--submit {
  width: 100%;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-bg);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.btn--submit.is-loading .btn-text {
  display: none;
}
.btn--submit.is-loading .btn-loader {
  display: block;
}

/* Success Message */
.form-success {
  display: none;
  text-align: center;
  padding: 30px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg-secondary);
  z-index: 10;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.form-success.is-visible {
  display: flex;
  animation: fadeIn 0.5s;
}

.success-icon {
  color: var(--color-accent);
  margin-bottom: 20px;
  transform: scale(2);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: -200px; /* Скрыт по умолчанию */
  right: 20px;
  width: 300px;
  background: rgba(5, 10, 16, 0.95);
  border: 1px solid var(--color-accent);
  padding: 2px; /* Inner border effect */
  z-index: 9999;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
  transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-popup.is-active {
  bottom: 20px;
}

.cookie-popup__header {
  background: rgba(0, 240, 255, 0.1);
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cookie-popup__title {
  font-size: 0.7rem;
  color: var(--color-accent);
  font-family: var(--font-body);
}

.cookie-popup__close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.cookie-popup__body {
  padding: 0 10px 10px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.cookie-popup__body a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* --- LEGAL PAGES STYLES --- */
.section.pages {
  padding-top: calc(var(--header-height) + 40px);
  min-height: 80vh;
}

.pages .container {
  max-width: 800px; /* Узкая колонка для чтения */
  background: rgba(15, 22, 33, 0.4);
  border: 1px solid var(--color-border);
  padding: 40px;
  position: relative;
}

/* Декор "уголки" документа */
.pages .container::before,
.pages .container::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--color-text-muted);
  transition: all 0.3s;
}
.pages .container::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}
.pages .container::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

.pages h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--color-border);
  text-transform: uppercase;
}

.pages h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-text);
  margin-top: 40px;
  margin-bottom: 15px;
}

.pages p {
  margin-bottom: 15px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  text-align: justify;
}

.pages ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.pages ul li {
  margin-bottom: 10px;
  color: var(--color-text-muted);
  position: relative;
  padding-left: 15px;
}

.pages ul li::before {
  content: ">";
  position: absolute;
  left: -5px;
  color: var(--color-accent);
  font-size: 0.8rem;
}

.pages a {
  color: var(--color-accent);
  text-decoration: underline;
}

.pages strong {
  color: var(--color-text);
}
