#nayama-cookie-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9998;
  backdrop-filter: blur(3px);
  animation: ncFadeIn .25s ease;
}
#nayama-cookie-overlay.nc-visible { display: block; }

#nayama-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 0 5vw 24px;
  transform: translateY(110%);
  transition: transform .45s cubic-bezier(.22,.85,.36,1);
}
#nayama-cookie-banner.nc-visible { transform: translateY(0); }

.nc-card {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 -4px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(14,165,233,.08);
}
.nc-row-top {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.nc-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: rgba(14,165,233,.12);
  border: 1px solid rgba(14,165,233,.25);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.nc-text { flex: 1; min-width: 220px; }
.nc-text h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #0d0d0d;
}
.nc-text p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: #5a6880;
  line-height: 1.6;
}
.nc-text a { color: #0066ff; text-decoration: underline; text-underline-offset: 3px; }
.nc-text a:hover { opacity: .8; }
.nc-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}
.nc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity .2s, transform .15s, background .2s;
  white-space: nowrap;
}
.nc-btn:hover { transform: translateY(-1px); opacity: .92; }
.nc-btn-accept { background: #0066ff; color: #fff; }
.nc-btn-reject { background: transparent; color: #5a6880; border: 1px solid rgba(0,0,0,0.15); }
.nc-btn-reject:hover { color: #0d0d0d; border-color: rgba(0,0,0,0.3); }
.nc-btn-config { background: transparent; color: #5a6880; border: 1px solid rgba(0,0,0,0.15); }
.nc-btn-config:hover { color: #0d0d0d; border-color: rgba(0,0,0,0.3); }
.nc-btn-save { background: #0066ff; color: #fff; flex: 1; justify-content: center; }

.nc-prefs {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.22,.85,.36,1), opacity .3s ease;
  opacity: 0;
}
.nc-prefs.nc-open { max-height: 600px; opacity: 1; }
.nc-prefs-inner {
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 20px;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nc-cat {
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.nc-cat-info { flex: 1; }
.nc-cat-info strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  color: #0d0d0d;
  margin-bottom: 4px;
}
.nc-cat-info span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: #5a6880;
  line-height: 1.5;
}
.nc-badge-req {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: #0066ff;
  background: rgba(14,165,233,.1);
  border: 1px solid rgba(14,165,233,.2);
  border-radius: 100px;
  padding: 2px 10px;
  flex-shrink: 0;
  align-self: center;
  white-space: nowrap;
}
.nc-toggle {
  position: relative;
  width: 44px; height: 24px;
  flex-shrink: 0;
  align-self: center;
}
.nc-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.nc-toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.08);
  border-radius: 100px;
  cursor: pointer;
  transition: background .25s;
}
.nc-toggle input:checked + .nc-toggle-track { background: #0066ff; }
.nc-toggle input:disabled + .nc-toggle-track { cursor: not-allowed; opacity: .6; }
.nc-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .25s;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.nc-toggle input:checked + .nc-toggle-track::after { transform: translateX(20px); }
.nc-prefs-foot { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
@keyframes ncFadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 680px) {
  .nc-card { padding: 20px 18px; }
  .nc-row-top { flex-direction: column; gap: 16px; }
  .nc-btns { width: 100%; }
  .nc-btn { flex: 1; justify-content: center; }
  .nc-btn-accept { order: -1; }
  .nc-prefs-foot .nc-btn-save { width: 100%; }
}