.cookie-consent,
.cookie-modal {
  color: #f7fbff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.cookie-consent {
  position: fixed;
  right: clamp(14px, 2.4vw, 32px);
  bottom: clamp(14px, 2.4vw, 32px);
  z-index: 1000;
  width: min(532px, calc(100vw - 28px));
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(118, 161, 205, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(13, 21, 34, 0.92), rgba(4, 8, 16, 0.94)),
    radial-gradient(circle at 10% 0%, rgba(29, 154, 255, 0.18), transparent 46%);
  box-shadow: 0 28px 96px rgba(0, 0, 0, 0.56), 0 0 42px rgba(0, 135, 255, 0.14);
  backdrop-filter: blur(22px);
}

.cookie-consent__orb {
  position: absolute;
  inset: auto -90px -130px auto;
  width: 260px;
  height: 260px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(63, 190, 255, 0.22), rgba(241, 198, 94, 0.08) 34%, transparent 66%);
}

.cookie-consent__content,
.cookie-consent__actions,
.cookie-modal > * {
  position: relative;
}

.cookie-consent__eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: #f3c95f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cookie-consent h2,
.cookie-modal h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.1;
}

.cookie-consent p,
.cookie-modal p,
.cookie-category p,
.cookie-category small {
  margin: 0;
  color: rgba(226, 234, 245, 0.74);
  font-size: 14px;
  line-height: 1.62;
}

.cookie-consent__actions,
.cookie-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.cookie-consent__actions .cookie-btn--ghost {
  grid-column: 1 / -1;
}

.cookie-btn {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  color: #f7fbff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

.cookie-btn:focus-visible,
.cookie-modal__close:focus-visible,
.cookie-settings-footer-link:focus-visible {
  outline: 2px solid rgba(67, 190, 255, 0.86);
  outline-offset: 3px;
}

.cookie-btn--primary {
  border-color: rgba(244, 210, 122, 0.72);
  color: #08101b;
  background: linear-gradient(135deg, #f3c95f, #ffe08a);
  box-shadow: 0 12px 36px rgba(219, 162, 46, 0.25);
}

.cookie-btn--secondary {
  background: rgba(255, 255, 255, 0.08);
}

.cookie-btn--ghost {
  background: rgba(12, 19, 31, 0.7);
}

.cookie-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: grid;
  place-items: center;
  padding: 22px;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.68);
  backdrop-filter: blur(12px);
}

.cookie-modal {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, calc(100svh - 44px));
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(132, 173, 215, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 150, 255, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(13, 21, 34, 0.96), rgba(5, 9, 17, 0.98));
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.64);
}

.cookie-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #f7fbff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  font-size: 24px;
  line-height: 1;
}

.cookie-category-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.cookie-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.cookie-category h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.cookie-category small {
  display: block;
  margin-top: 8px;
  color: rgba(136, 153, 174, 0.92);
}

.cookie-toggle {
  display: inline-grid;
  gap: 8px;
  justify-items: center;
  color: rgba(226, 234, 245, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.cookie-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-toggle__track {
  position: relative;
  width: 54px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(77, 91, 112, 0.42);
  transition: background 180ms ease, border-color 180ms ease;
}

.cookie-toggle__track i {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f7fbff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease;
}

.cookie-toggle input:checked + .cookie-toggle__track {
  border-color: rgba(244, 210, 122, 0.7);
  background: linear-gradient(135deg, rgba(33, 171, 255, 0.72), rgba(244, 210, 122, 0.72));
}

.cookie-toggle input:checked + .cookie-toggle__track i {
  transform: translateX(24px);
}

.cookie-toggle.is-disabled {
  cursor: not-allowed;
  opacity: 0.86;
}

.cookie-settings-footer-link {
  width: fit-content;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  cursor: pointer;
  background: transparent;
  font: inherit;
  text-align: left;
}

.cookie-settings-footer-link:hover {
  color: #f3c95f;
}

.cookie-policy-table-wrap {
  overflow-x: auto;
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.cookie-policy-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.cookie-policy-table th,
.cookie-policy-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(226, 234, 245, 0.78);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

.cookie-policy-table th {
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.05);
}

.cookie-policy-table code {
  color: #f4d27a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.cookie-policy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

body.cookie-modal-open {
  overflow: hidden;
}

@media (max-width: 620px) {
  .cookie-consent {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 18px;
    border-radius: 16px;
  }

  .cookie-consent__actions,
  .cookie-modal__actions,
  .cookie-category {
    grid-template-columns: 1fr;
  }

  .cookie-consent__actions .cookie-btn--ghost {
    grid-column: auto;
  }

  .cookie-modal {
    padding: 22px 18px;
  }

  .cookie-toggle {
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-btn,
  .cookie-toggle__track,
  .cookie-toggle__track i {
    transition: none;
  }

  .cookie-btn:hover {
    transform: none;
  }
}
