@layer components {
  a.btn:visited,
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 15px;
    line-height: 1;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
    border: 1.5px solid transparent;
    white-space: nowrap;
  }
  a.btn-primary:visited,
  .btn-primary {
    background: var(--surface);
    color: var(--bg);
    border-color: var(--bg);
  }
  a.btn-primary:visited:hover,
  .btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    border-color: var(--accent-hover);
  }
  a.btn-outline:visited,
  .btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
    transition: transform .3s, box-shadow .3s, background .3s, color .3s, border-color .3s;
  }
  a.btn-outline:visited:hover,
  .btn-outline:hover {
    background: var(--accent-hover);
    color: #fff;
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px oklch(53.6% 0.207 276 / 0.3);
  }
  a.btn-white:visited,
  .btn-white {
    background: var(--surface);
    color: var(--bg);
    border-color: var(--bg);
    transition: transform .3s, box-shadow .3s, background .3s, color .3s, border-color .3s;
  }
  a.btn-white:visited:hover,
  .btn-white:hover {
    background: var(--accent-hover);
    color: #fff;
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px oklch(53.6% 0.207 276 / 0.3);
  }
  a.btn-ghost:visited,
  .btn-ghost {
    background: transparent;
    color: var(--muted);
    border-color: transparent;
  }
  a.btn-ghost:visited:hover,
  .btn-ghost:hover {
    background: oklch(100% 0 0 / 0.12);
    color: var(--accent);
  }
  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--elevation-1);
    transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease;
  }
  .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--elevation-2);
  }
  .section-alt {
    background: oklch(100% 0 0 / 0.035);
    border-block: 1px solid oklch(100% 0 0 / 0.06);
  }
  .section-header {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: var(--space-lg);
  }
  .section-header .section-label { justify-content: center; }
  .section-header p { margin-inline: auto; }
  .input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: oklch(18% 0.015 276);
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
  }
  .input:focus {
    border-color: oklch(53.6% 0.207 276);
    box-shadow: 0 0 0 3px oklch(92% 0.04 276 / 0.25);
  }
  .input::placeholder { color: oklch(70% 0.01 276); }
  .tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    background: var(--accent-light);
    color: var(--accent);
  }
  .section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: var(--space-sm);
  }
  .section-label::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
  }

  /* ── Cookie consent banner ── */
  .cookie-banner {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: oklch(100% 0 0 / 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid oklch(0% 0 0 / 0.06);
    padding: 16px 24px;
    box-shadow: 0 -4px 20px oklch(0% 0 0 / 0.08);
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }
  .cookie-banner.visible { display: flex; }
  .cookie-banner p {
    font-size: 14px;
    color: oklch(30% 0.015 276);
    line-height: 1.5;
    flex: 1;
    min-width: 240px;
    opacity: 1;
  }
  .cookie-banner p a {
    color: oklch(53.6% 0.207 276);
    text-decoration: underline;
    font-weight: 500;
  }
  .cookie-banner p a:hover { opacity: .8; }
  .cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .cookie-banner-actions .btn {
    white-space: nowrap;
    padding: 8px 18px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    font-weight: 600;
  }
  .cookie-banner-actions .btn-primary {
    background: #292846;
    color: #fff;
    border-color: #292846;
  }
  .cookie-banner-actions .btn-primary:hover {
    background: #3a3962;
    border-color: #3a3962;
  }
  .cookie-banner-actions .btn-outline {
    background: transparent;
    color: oklch(40% 0.015 276);
    border-color: oklch(70% 0.01 276);
  }
  .cookie-banner-actions .btn-outline:hover {
    background: oklch(0% 0 0 / 0.04);
    color: #111;
    border-color: #111;
    transform: none;
    box-shadow: none;
  }
  @media (max-width: 640px) {
    .cookie-banner { padding: 12px 16px; flex-direction: column; text-align: center; }
    .cookie-banner p { font-size: 13px; min-width: 0; }
    .cookie-banner-actions { width: 100%; justify-content: center; }
    .cookie-banner-actions .btn { flex: 1; }
  }
}
