.cookie-consent[hidden] {
  display: none;
}

.cookie-consent {
  position: fixed;
  z-index: 1000;
  right: 32px;
  bottom: 32px;
  left: 32px;
  width: min(840px, calc(100% - 64px));
  margin-left: auto;
  padding: 32px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  color: #E6EAF0;
  background-color: #11161C;
  background-image: 
    linear-gradient(rgba(76, 125, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 125, 255, 0.05) 1px, transparent 1px);
  background-size: 16px 16px;
  border: 1px solid #4C7DFF;
  outline: 1px solid rgba(76, 125, 255, 0.25);
  outline-offset: 8px;
  font-family: Inter, system-ui, sans-serif;
}

.cookie-consent::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(90deg, #4C7DFF, #8B4CF7);
}

.cookie-consent__copy {
  display: grid;
  gap: 16px;
}

.cookie-consent__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #AFC7FF;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(76, 125, 255, 0.08);
  border: 1px solid rgba(76, 125, 255, 0.35);
  padding: 6px 12px;
  width: fit-content;
}

.cookie-consent__label::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background: #AFC7FF;
  animation: cookie-pulse 2s infinite;
}

@keyframes cookie-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent__label::before {
    animation: none;
  }
}

.cookie-consent p {
  max-width: 60ch;
  margin: 0;
  color: #E6EAF0;
  font-size: 15px;
  line-height: 1.6;
}

.cookie-consent a {
  width: fit-content;
  color: #8A97A8;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 200ms;
}

.cookie-consent a:hover,
.cookie-consent a:focus-visible {
  color: #E6EAF0;
}

.cookie-consent__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cookie-consent button {
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid #4C7DFF;
  border-radius: 0;
  font-family: "Chakra Petch", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 200ms ease;
}

.cookie-consent__accept {
  color: #0A0E14;
  background: #4C7DFF;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.cookie-consent__accept:hover,
.cookie-consent__accept:focus-visible {
  background: #6E9BFF;
  border-color: #6E9BFF;
}

.cookie-consent__reject {
  color: #E6EAF0;
  background: transparent;
}

.cookie-consent__reject:hover,
.cookie-consent__reject:focus-visible {
  background: rgba(76, 125, 255, 0.1);
}

.cookie-consent button:focus-visible {
  outline: 2px solid #E6EAF0;
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .cookie-consent {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px 24px;
    outline-offset: 4px;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 12px;
  }

  .cookie-consent button {
    padding-inline: 12px;
    font-size: 12px;
  }
}