html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background:
    radial-gradient(circle at top right, rgba(13, 110, 253, .08), transparent 24rem),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 18rem);
}

.landing-hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(13, 110, 253, .14);
  background:
    radial-gradient(circle at top right, rgba(13, 202, 240, .22), transparent 20rem),
    radial-gradient(circle at bottom left, rgba(255, 193, 7, .16), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(244, 249, 255, .98));
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, .08);
}

.landing-feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2rem;
}

.landing-feature-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(13, 110, 253, .12);
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 .5rem 1rem rgba(15, 23, 42, .05);
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, .12);
  color: #0b5ed7;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.landing-title {
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
  max-width: none;
}

.landing-lead {
  max-width: 48rem;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #334155;
}

.landing-note {
  max-width: 50rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid #0d6efd;
  border-radius: 1rem;
  background: rgba(13, 110, 253, .06);
  color: #1e293b;
}

.landing-inline-link {
  color: #0d6efd;
  font-weight: 700;
  text-decoration: none;
}

.landing-inline-link:hover {
  color: #0a58ca;
  text-decoration: underline;
}

.landing-sidecard {
  height: 100%;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .94));
  color: #e2e8f0;
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .18);
}

.landing-sidecard-title {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.landing-checklist {
  margin: 0;
  padding-left: 1.1rem;
}

.landing-checklist li + li {
  margin-top: .85rem;
}

.music-guide-section {
  margin-top: 2rem;
}

.music-guide-header {
  max-width: 54rem;
}

.music-guide-card {
  height: 100%;
  padding: 1.25rem;
  border: 1px solid rgba(13, 110, 253, .12);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, .06);
}

.music-guide-visual {
  min-height: 15rem;
  padding: 1rem;
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(30, 64, 175, .88)),
    #0f172a;
  color: #e2e8f0;
  overflow: hidden;
}

.music-guide-visual.light {
  background:
    linear-gradient(135deg, rgba(236, 253, 245, .98), rgba(219, 234, 254, .98)),
    #ecfdf5;
  color: #0f172a;
}

.music-guide-mini-window {
  border-radius: .85rem;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.music-guide-visual.light .music-guide-mini-window {
  border-color: rgba(13, 110, 253, .16);
  background: rgba(255, 255, 255, .78);
}

.music-guide-donation-row {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding: .75rem;
}

.music-guide-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #20c997;
  color: #052e2b;
}

.music-guide-url {
  padding: .45rem .6rem;
  border-radius: .55rem;
  background: rgba(13, 110, 253, .1);
  color: #0b5ed7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-guide-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem;
}

.music-guide-points {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .55rem;
  border-radius: 999px;
  background: #e6fcf5;
  color: #087f5b;
  font-weight: 800;
}

.music-guide-player {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border-radius: .85rem;
  background:
    linear-gradient(135deg, rgba(239, 68, 68, .82), rgba(14, 165, 233, .76)),
    #111827;
}

.music-guide-play {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .92);
  color: #0f172a;
}

.music-guide-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: center;
  margin-top: .55rem;
  font-variant-numeric: tabular-nums;
}

.music-guide-bar {
  height: .55rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .24);
}

.music-guide-bar span {
  display: block;
  width: 58%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #84cc16, #22c55e);
}

.music-guide-steps {
  counter-reset: music-guide-step;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.music-guide-steps li {
  counter-increment: music-guide-step;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .75rem;
  align-items: start;
}

.music-guide-steps li + li {
  margin-top: .75rem;
}

.music-guide-steps li::before {
  content: counter(music-guide-step);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0d6efd;
  color: #fff;
  font-weight: 800;
}

.music-guide-compact {
  border: 1px solid rgba(13, 110, 253, .12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .9);
}

@media (max-width: 767.98px) {
  .landing-title {
    max-width: none;
  }

  .landing-feature-pill {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

.about-qr-image {
  max-width: 260px;
  width: 100%;
}

.about-social-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .35rem .55rem;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  background: transparent;
  font-weight: 500;
  transition: transform .18s ease, opacity .18s ease;
}

.about-social-link:hover {
  color: inherit;
  opacity: .88;
  transform: translateY(-1px);
}

.about-social-twitch {
  color: #7c5cff;
}

.about-social-kick {
  color: #59d84f;
}

.about-social-youtube {
  color: #ff4d1f;
}

.about-social-instagram {
  color: #e0417b;
}

.widget-style-card {
  display: block;
  position: relative;
  border: 2px solid #dee2e6;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem;
  height: 100%;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.widget-style-card.active {
  border-color: #0d6efd;
  box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .15);
  transform: translateY(-2px);
}

.widget-style-card:has(input[type="radio"]:checked) {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.14);
}

.widget-preview[class*="goal-strip-"] {
    min-height: 140px;
    background:
        linear-gradient(45deg, rgba(148,163,184,.16) 25%, transparent 25% 75%, rgba(148,163,184,.16) 75%),
        linear-gradient(45deg, rgba(148,163,184,.16) 25%, transparent 25% 75%, rgba(148,163,184,.16) 75%);
    background-size: 18px 18px;
    background-position: 0 0, 9px 9px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 0 6px rgba(255,255,255,.55);
}

.widget-preview[class*="goal-strip-"] .strip-title {
    text-align: center;
    font-weight: 900;
    font-size: 1rem;
    margin-bottom: .55rem;
}

.widget-preview[class*="goal-strip-"] .strip-bar {
    position: relative;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(0,0,0,.75);
    background: linear-gradient(180deg, #282828, #040404);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(255,255,255,.4), 0 2px 5px rgba(0,0,0,.55);
}

.widget-preview[class*="goal-strip-"] .strip-bar > span {
    display: block;
    position: relative;
    height: 100%;
    width: 58%;
    border-radius: inherit;
    overflow: hidden;
}

.widget-preview[class*="goal-strip-"] .strip-bar > span::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0 36%, rgba(255,255,255,.58) 50%, transparent 64%);
    background-size: 320% 100%;
    animation: widget-preview-sheen 6.5s linear infinite;
}

.widget-preview[class*="goal-strip-"] .strip-meta {
    position: absolute;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    left: 1.25rem;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: .78rem;
    line-height: 1;
    font-weight: 900;
}

.widget-preview[class*="goal-strip-"] .strip-foot {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: .5rem;
    margin-top: .45rem;
    font-size: .64rem;
    line-height: 1.1;
    font-weight: 800;
}

.widget-preview[class*="goal-strip-"] .strip-foot > div:nth-child(2) { text-align: center; }
.widget-preview[class*="goal-strip-"] .strip-foot > div:nth-child(3) { text-align: right; }
.widget-preview[class*="goal-strip-"] .strip-label { display: block; opacity: .8; font-size: .56rem; }
.widget-preview[class*="goal-strip-thick-"] .strip-title { font-size: 1.35rem; margin-bottom: .75rem; }
.widget-preview[class*="goal-strip-thick-"] .strip-bar { height: 30px; border-width: 3px; }
.widget-preview[class*="goal-strip-thick-"] .strip-meta { left: 1rem; right: 1rem; font-size: .94rem; }
.widget-preview[class*="goal-strip-thick-"] .strip-foot { font-size: .78rem; }

.widget-preview.goal-strip-purple .strip-bar > span,
.widget-preview.goal-strip-thick-purple .strip-bar > span { background: linear-gradient(90deg, #9c8cff, #c9bfff); }
.widget-preview.goal-strip-green .strip-bar > span,
.widget-preview.goal-strip-thick-green .strip-bar > span { background: linear-gradient(90deg, #42d77d, #a7f3c0); }
.widget-preview.goal-strip-blue .strip-bar > span,
.widget-preview.goal-strip-thick-blue .strip-bar > span { background: linear-gradient(90deg, #38bdf8, #93c5fd); }
.widget-preview.goal-strip-red .strip-bar > span,
.widget-preview.goal-strip-thick-red .strip-bar > span { background: linear-gradient(90deg, #fb7185, #fecdd3); }
.widget-preview.goal-strip-gold .strip-bar > span,
.widget-preview.goal-strip-thick-gold .strip-bar > span { background: linear-gradient(90deg, #facc15, #fde68a); }
.widget-preview.goal-strip-fox .strip-bar > span,
.widget-preview.goal-strip-thick-fox .strip-bar > span { background: linear-gradient(90deg, #c75a18, #f97316, #ffb45c); }
.widget-preview.goal-strip-fox-fur .strip-bar > span,
.widget-preview.goal-strip-thick-fox-fur .strip-bar > span {
    background:
        repeating-linear-gradient(112deg, rgba(255,255,255,.28) 0 5px, transparent 5px 13px, rgba(70,31,12,.24) 13px 18px, transparent 18px 28px),
        linear-gradient(90deg, #8f360f, #d75f16 34%, #f59e42 64%, #fff0cf);
}

@keyframes widget-preview-sheen {
    from { background-position: 180% 0; }
    to { background-position: -180% 0; }
}

.widget-preview {
  padding: 1rem;
  border-radius: 1rem;
  color: #fff;
  min-height: 140px;
}

.widget-preview .fill {
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  overflow: hidden;
}

.widget-preview .fill > span {
  display: block;
  height: 100%;
  width: 58%;
  border-radius: inherit;
}

.widget-preview.progress-classic { background: linear-gradient(135deg, #0f172a, #1e293b); }
.widget-preview.progress-classic .fill > span { background: linear-gradient(90deg, #facc15, #f97316); }
.widget-preview.progress-neon { background: linear-gradient(135deg, #020617, #111827); box-shadow: 0 0 24px rgba(34,211,238,.24) inset; }
.widget-preview.progress-neon .fill > span { background: linear-gradient(90deg, #22d3ee, #a78bfa); }
.widget-preview.progress-glass { background: linear-gradient(135deg, rgba(14,165,233,.85), rgba(99,102,241,.88)); }
.widget-preview.progress-glass .fill > span { background: linear-gradient(90deg, #fff, #dbeafe); }
.widget-preview.progress-soft { background: linear-gradient(135deg, #fb7185, #fdba74); }
.widget-preview.progress-soft .fill > span { background: linear-gradient(90deg, #fff7ed, #fff); }

.pagination {
  row-gap: .5rem;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.auth-shell {
  min-height: calc(100vh - 13rem);
  display: grid;
  place-items: center;
  padding: 2rem 0 3rem;
}

.auth-card {
  width: 100%;
  max-width: 34rem;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 1.5rem;
  overflow: hidden;
}

.auth-card .card-body {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, .95), rgba(255, 255, 255, .98)),
    linear-gradient(135deg, rgba(13, 110, 253, .08), rgba(13, 202, 240, .06));
}

.auth-eyebrow {
  display: inline-flex;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, .1);
  color: #0b5ed7;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.auth-title {
  font-size: clamp(1.9rem, 2vw, 2.3rem);
  font-weight: 700;
  margin-bottom: .5rem;
  color: #0f172a;
}

.auth-subtitle {
  color: #475569;
  margin-bottom: 1.5rem;
}

.auth-footer {
  margin-top: 1rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  color: #64748b;
}

.auth-link {
  color: #0d6efd;
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover {
  color: #0a58ca;
  text-decoration: underline;
}

textarea.form-control {
  min-height: 8rem;
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1080;
  padding: 1rem;
  pointer-events: none;
}

.cookie-consent-card {
  max-width: 58rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .96);
  color: #0f172a;
  pointer-events: auto;
}

.cookie-consent-text {
  font-size: .95rem;
  color: #334155;
}

.cookie-consent-actions {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .cookie-consent-card {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-consent-actions {
    justify-content: flex-end;
  }
}
