.cookie-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #2a1850, #121225);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--glow-purple);
  display: grid;
  place-items: center;
}

.cookie-fab .icon-close {
  display: none;
}

.cookie-fab.is-open .icon-cookie {
  display: none;
}

.cookie-fab.is-open .icon-close {
  display: block;
}

.cookie-fab svg {
  width: 24px;
  height: 24px;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: grid;
  place-items: end center;
  padding: 16px;
}

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

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.cookie-modal__dialog {
  position: relative;
  width: min(100%, 720px);
  max-height: min(86vh, 640px);
  overflow: auto;
  background: #121225;
  border: 1px solid var(--border-purple);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
  color: var(--text);
}

.cookie-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.cookie-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.cookie-modal__x {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text);
}

.cookie-modal__x svg {
  width: 22px;
  height: 22px;
}

.cookie-modal__body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
}

.cookie-modal__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.cookie-modal__nav button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
}

.cookie-modal__nav button.is-active,
.cookie-modal__nav button:hover {
  background: rgba(177, 76, 255, 0.15);
  color: var(--text);
}

.cookie-modal__panel h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.cookie-modal__panel p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cookie-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(177, 76, 255, 0.22);
}

.cookie-btn-ghost,
.cookie-btn-primary {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-btn-ghost {
  border: 1.5px solid var(--border-purple);
  background: transparent;
  color: var(--text);
}

.cookie-btn-primary {
  border: none;
  background: linear-gradient(180deg, #63d8ff, #1ea8e0);
  color: #041018;
}

@media (max-width: 720px) {
  .cookie-modal__body {
    grid-template-columns: 1fr;
  }

  .cookie-modal__nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }
}
