/* ========================================
   COOKIE CONSENT — banner + modal
   Extracted from JS (was injected via style.textContent).
======================================== */

.cookie-banner {
        position: fixed;
        bottom: 20px;
        left: 20px;
        width: 380px;
        background: rgba(14, 14, 16, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        backdrop-filter: blur(20px);
        z-index: 9999;
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.35s ease, transform 0.35s ease;
        box-shadow:
          0 8px 32px rgba(0, 0, 0, 0.5),
          0 0 0 1px rgba(255, 255, 255, 0.04) inset;
      }

      .cookie-banner.show {
        opacity: 1;
        transform: translateY(0);
      }

      .cookie-banner-content {
        padding: 20px;
      }

      .cookie-banner-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
      }

      .cookie-banner-header h3 {
        font-size: 0.9375rem;
        font-weight: 600;
        color: #f0f0f0;
        letter-spacing: -0.01em;
      }

      .cookie-settings-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: background 0.15s ease, color 0.15s ease;
      }

      .cookie-settings-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.8);
      }

      .cookie-banner-content > p {
        font-size: 0.8125rem;
        line-height: 1.55;
        color: rgba(255, 255, 255, 0.45);
        margin-bottom: 16px;
      }

      .cookie-link {
        color: rgba(255, 255, 255, 0.6);
        text-decoration: underline;
        text-underline-offset: 2px;
        text-decoration-color: rgba(255, 255, 255, 0.2);
        transition: color 0.15s ease;
      }

      .cookie-link:hover {
        color: rgba(255, 255, 255, 0.85);
      }

      .cookie-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
      }

      .cookie-btn {
        padding: 10px 16px;
        border: none;
        border-radius: 10px;
        font-size: 0.8125rem;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.15s ease, border-color 0.15s ease;
      }

      .cookie-btn:active {
        transform: scale(0.98);
      }

      .cookie-btn-primary {
        background: #f0f0f0;
        color: #0e0e10;
      }

      .cookie-btn-primary:hover {
        background: #ffffff;
      }

      .cookie-btn-ghost {
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.08);
      }

      .cookie-btn-ghost:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.15);
      }

      /* Cookie Modal */
      .cookie-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(8px);
        z-index: 10000;
        align-items: center;
        justify-content: center;
      }

      .cookie-modal.show {
        display: flex;
      }

      .cookie-modal-content {
        background: rgba(18, 18, 22, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        max-width: 520px;
        width: 90%;
        max-height: 80vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
      }

      .cookie-modal-header {
        padding: 24px 24px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .cookie-modal-header h2 {
        font-size: 1.125rem;
        font-weight: 600;
        color: #f0f0f0;
      }

      .cookie-modal-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        font-size: 0.875rem;
        color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: background 0.15s ease;
      }

      .cookie-modal-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.8);
      }

      .cookie-modal-body {
        padding: 20px 24px;
        overflow-y: auto;
        flex: 1;
      }

      .cookie-modal-body > p {
        color: rgba(255, 255, 255, 0.45);
        margin-bottom: 20px;
        line-height: 1.5;
        font-size: 0.875rem;
      }

      .cookie-category {
        margin-bottom: 10px;
        padding: 16px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px;
      }

      .cookie-category-header {
        display: flex;
        gap: 14px;
        align-items: flex-start;
      }

      .cookie-category-info h4 {
        color: #f0f0f0;
        font-size: 0.875rem;
        font-weight: 500;
        margin-bottom: 4px;
      }

      .cookie-category-info p {
        color: rgba(255, 255, 255, 0.4);
        font-size: 0.8125rem;
        line-height: 1.45;
      }

      .cookie-toggle {
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.8125rem;
        cursor: pointer;
        margin-top: 8px;
        padding: 0;
        transition: color 0.15s ease;
      }

      .cookie-toggle:hover {
        color: rgba(255, 255, 255, 0.75);
      }

      .cookie-list {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
      }

      .cookie-item {
        font-size: 0.8125rem;
        color: rgba(255, 255, 255, 0.35);
        margin-bottom: 4px;
      }

      .cookie-switch {
        position: relative;
        display: inline-block;
        width: 40px;
        height: 22px;
        flex-shrink: 0;
      }

      .cookie-switch input {
        opacity: 0;
        width: 0;
        height: 0;
      }

      .cookie-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(255, 255, 255, 0.12);
        transition: background-color 0.2s ease;
        border-radius: 22px;
      }

      .cookie-slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: transform 0.2s cubic-bezier(0.2, 0, 0.13, 2);
        border-radius: 50%;
      }

      .cookie-switch input:checked + .cookie-slider {
        background-color: #f0f0f0;
      }

      .cookie-switch input:checked + .cookie-slider:before {
        transform: translateX(18px);
        background-color: #0e0e10;
      }

      .cookie-slider.disabled {
        opacity: 0.4;
        cursor: not-allowed;
      }

      .cookie-btn:focus-visible,
      .cookie-modal-close:focus-visible,
      .cookie-settings-btn:focus-visible,
      .cookie-link:focus-visible,
      .cookie-toggle:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.4);
        outline-offset: 2px;
      }

      .cookie-btn:focus:not(:focus-visible),
      .cookie-modal-close:focus:not(:focus-visible),
      .cookie-settings-btn:focus:not(:focus-visible) {
        outline: none;
      }

      @media (prefers-reduced-motion: reduce) {
        .cookie-banner,
        .cookie-slider,
        .cookie-slider:before,
        .cookie-btn {
          transition: none !important;
        }
      }

      .cookie-modal-footer {
        padding: 16px 24px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        display: flex;
        gap: 8px;
        justify-content: flex-end;
      }

      @media (max-width: 768px) {
        .cookie-banner {
          left: 12px;
          right: 12px;
          bottom: 12px;
          width: auto;
        }

        .cookie-modal-content {
          width: 95%;
          max-height: 90vh;
        }
      }
