#wtn-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #0c1220;
  border-top: 1px solid #1e2d4a;
  padding: 16px 24px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  will-change: transform;
}

#wtn-cookie-banner.wtn-show {
  transform: translateY(0);
  pointer-events: auto;
}

.wtn-cookie-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.wtn-cookie-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.wtn-cookie-text { flex: 1; min-width: 200px; }
.wtn-cookie-text strong { display: block; font-size: 14px; color: #e8edf5; margin-bottom: 4px; }
.wtn-cookie-text p { font-size: 13px; color: #8899b4; margin: 0; line-height: 1.5; }
.wtn-cookie-text a { color: #00e5ff; text-decoration: none; }
.wtn-cookie-text a:hover { text-decoration: underline; }

.wtn-cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

.wtn-btn-settings, .wtn-btn-essential, .wtn-btn-accept-all {
  padding: 9px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; transition: opacity 0.2s, transform 0.15s; white-space: nowrap;
}
.wtn-btn-settings { background: transparent; border: 1px solid #1e2d4a; color: #8899b4; }
.wtn-btn-settings:hover { border-color: #00e5ff; color: #00e5ff; }
.wtn-btn-essential { background: #111a2e; color: #e8edf5; border: 1px solid #1e2d4a; }
.wtn-btn-essential:hover { background: #1e2d4a; }
.wtn-btn-accept-all { background: #00e5ff; color: #050810; }
.wtn-btn-accept-all:hover { opacity: 0.88; }
.wtn-btn-settings:active, .wtn-btn-essential:active, .wtn-btn-accept-all:active { transform: scale(0.97); }

#wtn-cookie-modal {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0; transition: opacity 0.25s ease;
}
#wtn-cookie-modal.wtn-open { pointer-events: auto; opacity: 1; }

.wtn-modal-backdrop {
  position: fixed; inset: 0; background: rgba(5, 8, 16, 0.82);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

.wtn-modal-box {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -48%) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1); will-change: transform; z-index: 10000;
  background: #0c1220; border: 1px solid #1e2d4a; border-radius: 20px;
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  overflow-y: auto; box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
#wtn-cookie-modal.wtn-open .wtn-modal-box { transform: translate(-50%, -50%) scale(1); }

.wtn-modal-header {
  display: flex; align-items: center; justify-content: space-between; padding: 24px 28px 16px;
  border-bottom: 1px solid #1e2d4a; position: sticky; top: 0; background: #0c1220; z-index: 1;
}
.wtn-modal-title { font-size: 17px; font-weight: 700; color: #e8edf5; }
.wtn-modal-close {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid #1e2d4a; background: transparent;
  color: #8899b4; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.wtn-modal-close:hover { border-color: #00e5ff; color: #00e5ff; }
.wtn-modal-body { padding: 20px 28px; }
.wtn-modal-body > p { font-size: 13px; color: #8899b4; margin-bottom: 20px; line-height: 1.6; }
.wtn-modal-body a { color: #00e5ff; text-decoration: none; }

.wtn-cookie-cat { background: #111a2e; border: 1px solid #1e2d4a; border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.wtn-cookie-cat-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wtn-cat-info { flex: 1; }
.wtn-cat-name { font-size: 14px; font-weight: 600; color: #e8edf5; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wtn-cat-desc { font-size: 13px; color: #8899b4; line-height: 1.5; }
.wtn-cat-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; letter-spacing: 0.3px; }
.wtn-badge-required { background: rgba(6, 255, 165, 0.12); color: #06ffa5; }
.wtn-badge-optional { background: rgba(0, 229, 255, 0.1); color: #00e5ff; }

.wtn-toggle { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.wtn-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.wtn-toggle-slider { position: absolute; inset: 0; background: #1e2d4a; border-radius: 24px; cursor: pointer; transition: background 0.2s; }
.wtn-toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.2s; }
.wtn-toggle input:checked + .wtn-toggle-slider { background: #00e5ff; }
.wtn-toggle input:checked + .wtn-toggle-slider::before { transform: translateX(18px); }
.wtn-toggle input:disabled + .wtn-toggle-slider { opacity: 0.5; cursor: not-allowed; }

.wtn-expand-btn { background: none; border: none; color: #8899b4; font-size: 12px; cursor: pointer; padding: 8px 0 0; display: flex; align-items: center; gap: 4px; transition: color 0.2s; }
.wtn-expand-btn:hover { color: #00e5ff; }
.wtn-expand-icon { font-size: 10px; transition: transform 0.2s; }
.wtn-expand-icon.wtn-rotated { transform: rotate(180deg); }
.wtn-cat-details { display: none; margin-top: 12px; border-top: 1px solid #1e2d4a; padding-top: 12px; }
.wtn-cat-details.wtn-open { display: block; }
.wtn-cookie-item { display: flex; gap: 12px; font-size: 12px; color: #8899b4; padding: 6px 0; border-bottom: 1px solid rgba(30, 45, 74, 0.5); flex-wrap: wrap; }
.wtn-cookie-item:last-child { border-bottom: none; }
.wtn-ci-name { font-family: monospace; color: #00e5ff; min-width: 100px; font-weight: 600; }
.wtn-ci-purpose { flex: 1; }
.wtn-ci-duration { color: #8899b4; opacity: 0.7; white-space: nowrap; }

.wtn-modal-footer { display: flex; gap: 10px; padding: 16px 28px 24px; border-top: 1px solid #1e2d4a; position: sticky; bottom: 0; background: #0c1220; }
.wtn-btn-save-pref { flex: 1; padding: 11px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; background: #111a2e; border: 1px solid #1e2d4a; color: #e8edf5; transition: background 0.2s; }
.wtn-btn-save-pref:hover { background: #1e2d4a; }
.wtn-modal-footer .wtn-btn-accept-all { flex: 1; }

.wtn-toast {
  position: fixed; bottom: 80px; right: 20px; background: #0c1220; border: 1px solid #1e2d4a;
  border-radius: 10px; padding: 12px 18px; display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: #e8edf5; z-index: 9999; transform: translateY(20px); opacity: 0;
  pointer-events: none; transition: transform 0.3s ease, opacity 0.3s ease; will-change: transform, opacity; max-width: 320px;
}
.wtn-toast.wtn-visible { transform: translateY(0); opacity: 1; }
.wtn-toast-icon { font-size: 16px; flex-shrink: 0; }

@media (max-width: 600px) {
  .wtn-cookie-inner { flex-direction: column; align-items: flex-start; }
  .wtn-cookie-actions { width: 100%; }
  .wtn-btn-settings, .wtn-btn-essential, .wtn-btn-accept-all { flex: 1; text-align: center; }
  .wtn-modal-footer { flex-direction: column; }
}
