/* ===== COOKIE CONSENT BANNER (bottom-right) ===== */

.cookie-consent {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: auto;
  z-index: 10000;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
  opacity: 0;
  transform: translate(110%, 0);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-consent.is-visible {
  pointer-events: auto;
  opacity: 1;
  transform: translate(0, 0);
}

.cookie-consent-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  padding: 22px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border-gold);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 123, 0, 0.08);
  backdrop-filter: blur(12px);
  clip-path: polygon(
    0 0,
    calc(100% - 18px) 0,
    100% 18px,
    100% 100%,
    18px 100%,
    0 calc(100% - 18px)
  );
}

[data-theme="light"] .cookie-consent-inner {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(192, 104, 22, 0.26);
}
[data-theme="light"] .cookie-consent-inner:hover {
  border: 1px solid var(--border-gold);
}

.cookie-consent-body {
  min-width: 0;
}

.cookie-consent-label {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.cookie-consent-title {
  font-family: "Orbitron", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cookie-consent-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text2);
}

.cookie-consent-text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.cookie-consent-text a:hover {
  opacity: 0.85;
}

.cookie-consent-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cookie-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 12px 20px;
  font-family: "Rajdhani", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}

.cookie-btn-accept {
  background: var(--gold);
  color: #000;
}

.cookie-btn-accept:hover {
  background: var(--gold2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 123, 0, 0.35);
}

.cookie-btn-decline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.cookie-btn-decline:hover {
  background: rgba(255, 123, 0, 0.08);
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

[data-theme="light"] .cookie-btn-decline {
  background: rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .cookie-btn-decline:hover {
  border-color: rgba(212, 110, 27, 0.466);
}

@media (max-width: 480px) {
  .cookie-consent {
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
  }

  .cookie-consent-inner {
    padding: 18px 20px;
    gap: 16px;
  }

  .cookie-consent-actions {
    flex-direction: column-reverse;
  }

  .cookie-btn {
    width: 100%;
  }
}
