:root{--r-electric:#00aeef;--r-carbon:#080d13;--r-carbon-2:#111923;--r-white:#f5f7fa;--r-line:rgba(245,247,250,.15);--r-line-strong:rgba(245,247,250,.24);--f-display:"Barlow Condensed",sans-serif;--f-body:Manrope,sans-serif}
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 9999;
  max-width: 760px; margin: 0 auto;
  background: var(--r-carbon-2);
  border: 1px solid var(--r-line-strong);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  display: flex; flex-direction: column; gap: 16px;
  font-size: 14px; line-height: 1.6; color: rgba(245,247,250,0.8);
}
.cookie-banner p { margin: 0; max-width: 530px; }
.cookie-banner a { color: #e7aa79; text-decoration: underline; }
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .actions button {
  font-family: var(--f-body); font-size: 13px; font-weight: 600;
  padding: 10px 18px; border-radius: 8px; border: 1px solid var(--r-line-strong);
  background: transparent; color: var(--r-white); cursor: pointer;
  transition: background .2s var(--ease-std);
}
.cookie-banner .actions button:hover { background: rgba(245,247,250,0.08); }
.cookie-banner .actions button.primary { background: var(--r-electric); border-color: var(--r-electric); color: var(--r-carbon); }
.cookie-banner .actions button.primary:hover { background: #33bff2; }

.cookie-modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(4,6,9,0.7);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.cookie-modal {
  position: relative;
  width: 100%; max-width: 560px;
  max-height: 85vh; overflow-y: auto;
  background: var(--r-carbon-2);
  border: 1px solid var(--r-line-strong);
  border-radius: 14px;
  padding: 32px;
  color: rgba(245,247,250,0.85);
}
.cookie-modal h3 {
  font-family: var(--f-display); font-weight: 800; font-size: 20px;
  color: var(--r-white); margin: 0 0 8px; text-transform: uppercase;
}
.cookie-modal > p { font-size: 14px; line-height: 1.6; margin: 0 0 24px; }
.cookie-cat { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 0; border-top: 1px solid var(--r-line); }
.cookie-cat:first-of-type { border-top: none; padding-top: 0; }
.cookie-cat .info h4 { font-size: 14px; color: var(--r-white); margin: 0 0 4px; }
.cookie-cat .info p { font-size: 13px; margin: 0; color: rgba(245,247,250,0.55); }
.cookie-cat .switch { position: relative; width: 42px; height: 24px; flex: none; margin-top: 2px; }
.cookie-cat .switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.cookie-cat .switch .track { position: absolute; inset: 0; background: rgba(245,247,250,0.15); border-radius: 999px; transition: background .2s; }
.cookie-cat .switch .thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--r-white); transition: transform .2s; }
.cookie-cat .switch input:checked + .track { background: var(--r-electric); }
.cookie-cat .switch input:checked ~ .thumb { transform: translateX(18px); }
.cookie-cat .switch input:disabled { cursor: not-allowed; }
.cookie-cat .switch input:disabled ~ .track { opacity: 0.6; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cookie-modal .modal-actions button {
  font-family: var(--f-body); font-size: 13px; font-weight: 600;
  padding: 10px 18px; border-radius: 8px; border: 1px solid var(--r-line-strong);
  background: transparent; color: var(--r-white); cursor: pointer;
}
.cookie-modal .modal-actions button:hover { background: rgba(245,247,250,0.08); }
.cookie-modal .modal-actions button.primary { background: var(--r-electric); border-color: var(--r-electric); color: var(--r-carbon); }
.cookie-modal .modal-actions button.primary:hover { background: #33bff2; }
.cookie-modal .close-x {
  position: absolute; top: 18px; right: 18px;
  background: none; border: none; color: rgba(245,247,250,0.5); cursor: pointer;
  font-size: 16px; line-height: 1; padding: 4px;
}
.cookie-modal .close-x:hover { color: var(--r-white); }

@media (max-width: 640px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
  .cookie-modal { padding: 24px; }
}
