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;
}

h1,h2,h3,h4,h5,h6{
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Noto Sans, Liberation Sans, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

body.with-player {
    margin-bottom: 120px;
}
body.with-player .footer {
    /* Lift the footer above the player */
    bottom: 100px !important;
}

@media (max-width: 767.98px) {
    body.with-player {
        /* On mobile the player is slightly shorter, but 140px total is safe */
        margin-bottom: 140px;
    }
    body.with-player .footer {
        bottom: 80px !important;
    }
}


header {
    position: sticky;
    top: 1em;
    z-index: 1050;
}

.landing-footer {
    background: var(--bs-tertiary-bg);
}



    header .nav-item.dropdown {
    list-style: none;
}

.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;
}
/* Floating Navigation */
.nav-logo-img {
    height: 32px;
}
.station-list-container {
    margin-left:1rem;
}

.floating-nav-pill {
    /* position: sticky handled by header */
    margin: 0 auto 2rem auto;
    width: 90%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1050;
    border: 1px solid rgba(0,0,0,0.05);

    padding-left:1rem;
    padding-right:1rem;
    padding-top: .75rem;
    padding-bottom: .75rem;
}
.floating-nav-pill-center {
    display: flex;
    gap: 2rem;
}
.floating-nav-pill-center a {
    text-decoration: none;
    color: #444;
    font-weight: 700;
    font-size: 1rem;
}
.floating-nav-pill-center a:hover {
    color: var(--bs-primary);
}

/* Layout Utilities */
.full-width-escape {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow-x: hidden;
}

/* Landing Page Layout */
.radio-landing-container {
    position: relative;
    padding: 10vh 0;
    background: var(--bs-tertiary-bg);
    overflow: hidden;
}
.radio-axis {
    position: absolute;
    left: 50%;
    top: 0;
    /* bottom: 0; */ z-index: 2; /* Height set by JS */
    width: 4px;
    background: rgba(37, 140, 251, 0.15);
    transform: translateX(-50%);
    border-radius: 2px;
}
.radio-dial {
    position: absolute;
    left: 50%;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bs-primary);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(37, 140, 251, 0.8);
    z-index: 10;
}
.radio-step {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.wave-node {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.wave-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100px;
    height: 100px;
    border: 2px solid var(--bs-primary);
    border-radius: 50%;
    opacity: 0;
}
.step-content {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 5;
}
.step-left .step-content {
    flex-direction: row;
}
.step-right .step-content {
    flex-direction: row-reverse;
}
.step-text-box, .step-card-box {
    width: 45%;
    opacity: 0; 
    transform: translateY(40px);
}
.step-text-box h2 {
    color: var(--bs-body-color);
    margin-bottom: 1rem;
}
.screenshot-card {
    background: var(--bs-body-bg);
    border-radius: 16px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #adb5bd;
    font-size: 1.5rem;
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    width: 100%;
    overflow: hidden;
}
.screenshot-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
@media (max-width: 768px) {
    .radio-axis { left: 32px; }
    .wave-node { left: 32px; }
    .step-content {
        flex-direction: column !important;
        padding-left: 50px;
    }
    .step-text-box, .step-card-box {
        width: 100%;
    }
    .step-card-box {
        margin-top: 2rem;
    }
}

.landing-footer {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bs-body-bg);
}


.landing-logo-wrapper {
    font-size: 4rem;
}
/* Dynamic Landing Logo */
.landing-dynamic-logo {
  display: inline-grid;
  grid-template-columns: min-content;
  justify-items: center;
  align-items: center;
}
.landing-dynamic-logo .ohrbob-logo-icon {
  grid-row: 1;
  grid-column: 1;
  width: 100%;
  min-width: 0;
  margin-bottom: 0.15em;
  position: relative;
  z-index: 10;
}
.landing-dynamic-logo .ohrbob-logo-text {
  grid-row: 2;
  grid-column: 1;
  width: max-content;
}

@media (max-width: 768px) {
  .landing-dynamic-logo {
    display: inline-flex !important;
    flex-direction: row !important;
  }
  .landing-dynamic-logo .ohrbob-logo-icon {
    height: 1em;
    width: auto !important;
    margin-right: 0.25em;
    margin-bottom: 0;
    display: flex;
    align-items: center;
  }
  .landing-dynamic-logo .ohrbob-logo-icon img,
  .landing-dynamic-logo .ohrbob-logo-icon svg {
    height: 1em !important;
    width: auto !important;
  }
  .landing-dynamic-logo .ohrbob-logo-text {
    width: auto;
  }
  
  /* Left align the footer on mobile so icon is at ~30px */
  .landing-footer {
      align-items: flex-start !important;
      padding-left: 0; padding-right: 1rem; overflow-x: hidden;
      background:transparent;
  }
  
  .landing-logo-wrapper { font-size: 2.5rem; padding-left: 12px; }
  .landing-footer p.lead, .landing-footer .d-flex {
      justify-content: flex-start !important;
      padding-left: 50px;
  }
}

.logo-wave-node {
    /* inherit from .wave-node but override to fit inside the logo icon exactly */
    width: 0;
    height: 0;
    left: 50% !important;
    top: 50% !important;
}
.logo-wave-node .wave-ring {
    border-width: 3px;
    border-color: #fc5d00; /* Use Ohrbob orange for the grand finale */
    box-shadow: 0 0 20px rgba(252, 93, 0, 0.4);
}

/* About page: pulsing status dot */
.status-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    animation: status-ping 2s ease-out infinite;
}
@keyframes status-ping {
    0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(25, 135, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}
.status-dot.bg-danger { animation-name: status-ping-red; }
@keyframes status-ping-red {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

@media (max-width: 767.98px) {
    header {
        top: 0;
    }
    .floating-nav-pill {
        width: 100%;
        max-width: none;
        border-radius: 0;
        margin-top: 0;
        margin-bottom: 1rem;
        padding: 1rem 1.25rem; /* Larger touch target area */
    }
    .floating-nav-pill-center {
        gap: 1.25rem;
    }
    .floating-nav-pill-center a {
        font-size: 1.05rem; /* Better readability */
    }
    .nav-logo-img {
        height: 30px; /* Slightly larger on mobile than it was */
    }
}

.btn-upgrade-morebob {
    background-color: #fc5d00;
    border: none;
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 800;
    padding: 1.65rem 2rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        0 8px 24px rgba(252, 93, 0, 0.35),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    cursor: pointer;
    text-align: center;
}

.btn-upgrade-morebob:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 30px rgba(252, 93, 0, 0.48),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.55);
    background-color: #e05300;
}

.btn-upgrade-morebob:focus-visible {
    outline: 3px solid #544ff4;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(84, 79, 244, 0.2);
}
.upgrade-card {
    background: linear-gradient(135deg, #ffffff 0%, #fffdf8 50%, #fff5e6 100%);
    border: 2px solid #fc5d00;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 
        0 20px 40px rgba(252, 93, 0, 0.12), 
        0 8px 20px rgba(0, 25, 87, 0.04),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.upgrade-card::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(252, 93, 0, 0.08) 0%, rgba(252, 93, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.card-content-wrapper {
    position: relative;
    z-index: 2;
}

.card-badge {
    background: linear-gradient(135deg, #fc5d00 0%, #ff8533 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(252, 93, 0, 0.2);
}

.card-title-premium {
    font-family: "Sulphur Point", sans-serif;
    font-size: 2.75rem;
    font-weight: 900;
    margin: 0 0 1rem 0;
    color: #001957;
    text-transform: lowercase;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.card-desc-premium {
    font-size: 1.15rem;
    color: #495057;
    margin-bottom: 2.25rem;
    line-height: 1.5;
}

.feature-grid-premium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    margin-bottom: 2.75rem;
}

@media (max-width: 767.98px) {
    .feature-grid-premium {
        grid-template-columns: 1fr;
    }
}

.feature-item-premium {
    display: flex;
    align-items: flex-start;
}

.feature-icon-premium {
    color: #198754;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 0.75rem;
    line-height: 1;
}

.feature-title-premium {
    font-weight: 700;
    color: #001957;
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.feature-desc-premium {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
}

.coming-soon-banner {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    border-radius: 14px;
    padding: 1.35rem;
    margin-top: 1.75rem;
    display: flex;
    align-items: center;
    color: #664d03;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.banner-icon-premium {
    font-size: 2.25rem;
    margin-right: 1.25rem;
}

.banner-title-premium {
    font-weight: bold;
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.banner-desc-premium {
    font-size: 0.9rem;
}

.btn-upgrade-morebob .watermark {
    position: absolute;
    right: -50px;
    bottom: -50px;
    opacity: 0.1;
    transform: rotate(-15deg);
    width: 163px;
    filter: brightness(0) invert(1);
    pointer-events: none;
    
}

.btn-upgrade-morebob span.button-text {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* ---------------------------------------------------------------------------
   Dark mode overrides (issue #7).
   Bootstrap 5.3 provides the base dark palette via [data-bs-theme=dark]; these
   rules fix the app's custom components and the hard-coded brand utilities that
   would otherwise be unreadable or out of place in dark mode.
   --------------------------------------------------------------------------- */

/* Brand text utilities use the theme's dark-mode emphasis colours. */
[data-bs-theme=dark] .text-primary { color: var(--bs-primary-text-emphasis) !important; }
[data-bs-theme=dark] .text-secondary { color: var(--bs-secondary-text-emphasis) !important; }
[data-bs-theme=dark] .text-success { color: var(--bs-success-text-emphasis) !important; }
[data-bs-theme=dark] .text-info { color: var(--bs-info-text-emphasis) !important; }
[data-bs-theme=dark] .text-warning { color: var(--bs-warning-text-emphasis) !important; }
[data-bs-theme=dark] .text-danger { color: var(--bs-danger-text-emphasis) !important; }

/* Floating glass navigation bar. */
[data-bs-theme=dark] .floating-nav-pill {
    background: rgba(33, 37, 41, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
[data-bs-theme=dark] .floating-nav-pill-center a { color: var(--bs-body-color); }

/* Glass panels. */
[data-bs-theme=dark] .glass-panel {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

/* "morebob" upgrade card. */
[data-bs-theme=dark] .upgrade-card {
    background: linear-gradient(135deg, #2b2f36 0%, #262a30 50%, #2f2a24 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 1.5px 0 rgba(255, 255, 255, 0.06);
}
[data-bs-theme=dark] .card-title-premium,
[data-bs-theme=dark] .feature-title-premium { color: var(--bs-body-color); }
[data-bs-theme=dark] .card-desc-premium,
[data-bs-theme=dark] .feature-desc-premium { color: var(--bs-secondary-color); }
[data-bs-theme=dark] .feature-icon-premium { color: var(--bs-success-text-emphasis); }
[data-bs-theme=dark] .coming-soon-banner {
    background-color: rgba(253, 178, 0, 0.15);
    border-left-color: var(--bs-warning);
    color: var(--bs-warning-text-emphasis);
}

/* Audio widget cover placeholders (markup lives in theme.css). */
[data-bs-theme=dark] .audio-widget .audio-meta .track-cover-empty,
[data-bs-theme=dark] .audio-widget .audio-expanded-card .expanded-body .expanded-cover-container .expanded-cover-empty {
    background-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
}

/* Landing page screenshot placeholders. */
[data-bs-theme=dark] .screenshot-card { color: var(--bs-secondary-color); }

/* ohrbob wordmark: the navy/violet letters need lighter inks on dark surfaces. */
[data-bs-theme=dark] .ohrbob-logo .ohrbob-logo-text .char-1,
[data-bs-theme=dark] .ohrbob-logo .ohrbob-logo-text .char-4 { color: #a9a5ff; }
[data-bs-theme=dark] .ohrbob-logo .ohrbob-logo-text .char-2,
[data-bs-theme=dark] .ohrbob-logo .ohrbob-logo-text .char-6 { color: #e9ecf5; }

/* ---------------------------------------------------------------------------
   Audio widget (theme.css renders it light-on-white; re-colour for dark).
   --------------------------------------------------------------------------- */
[data-bs-theme=dark] .audio-widget::before { background: #1b2130; opacity: 1; }
[data-bs-theme=dark] .audio-widget .audio-meta .audio-info .track-title,
[data-bs-theme=dark] .audio-widget .audio-expanded-card .expanded-body .expanded-info .expanded-title { color: #f1f3f5; }
[data-bs-theme=dark] .audio-widget .audio-meta .audio-info .track-description,
[data-bs-theme=dark] .audio-widget .audio-expanded-card .expanded-body .expanded-info .expanded-artist,
[data-bs-theme=dark] .audio-widget .audio-expanded-card .expanded-header .expanded-header-title { color: rgba(255, 255, 255, 0.65); }
[data-bs-theme=dark] .audio-widget .audio-progress-group .time-elapsed,
[data-bs-theme=dark] .audio-widget .audio-progress-group .time-total,
[data-bs-theme=dark] .audio-widget .audio-expanded-card .expanded-body .expanded-controls-group .expanded-progress-row .time-elapsed,
[data-bs-theme=dark] .audio-widget .audio-expanded-card .expanded-body .expanded-controls-group .expanded-progress-row .time-total { color: rgba(255, 255, 255, 0.65); }

/* Glass control buttons. */
[data-bs-theme=dark] .btn-glass {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    text-shadow: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
[data-bs-theme=dark] .btn-glass:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
[data-bs-theme=dark] .btn-glass:active { background: rgba(255, 255, 255, 0.18); color: #fff; text-shadow: none; }

/* Slider tracks (unfilled part must be light, not navy). */
[data-bs-theme=dark] .audio-widget .audio-progress-group .audio-progress::-webkit-slider-runnable-track { background: linear-gradient(to right, #544ff4 0 var(--progress, 0%), rgba(255, 255, 255, 0.18) var(--progress, 0%) 100%); }
[data-bs-theme=dark] .audio-widget .audio-progress-group .audio-progress::-moz-range-track { background: rgba(255, 255, 255, 0.18); }
[data-bs-theme=dark] .audio-widget .audio-volume-group .audio-volume::-webkit-slider-runnable-track { background: linear-gradient(to right, #fc5d00 0 var(--progress, 0%), rgba(255, 255, 255, 0.18) var(--progress, 0%) 100%); }
[data-bs-theme=dark] .audio-widget .audio-volume-group .audio-volume::-moz-range-track { background: rgba(255, 255, 255, 0.18); }
[data-bs-theme=dark] .audio-widget .audio-expanded-card .expanded-body .expanded-controls-group .expanded-progress-row .js-expanded-progress::-webkit-slider-runnable-track { background: linear-gradient(to right, #544ff4 0 var(--progress, 0%), rgba(255, 255, 255, 0.18) var(--progress, 0%) 100%); }
[data-bs-theme=dark] .audio-widget .audio-expanded-card .expanded-body .expanded-controls-group .expanded-progress-row .js-expanded-progress::-moz-range-track { background: rgba(255, 255, 255, 0.18); }

/* Expanded card + jump cards. */
[data-bs-theme=dark] .audio-widget .audio-expanded-card {
    background: rgba(24, 27, 33, 0.97);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
}
[data-bs-theme=dark] .audio-widget .audio-expanded-card .expanded-header { border-bottom-color: rgba(255, 255, 255, 0.1); }
[data-bs-theme=dark] .audio-widget .audio-expanded-card .expanded-header .btn-close-expanded { color: rgba(255, 255, 255, 0.75); }
[data-bs-theme=dark] .audio-widget .audio-expanded-card .expanded-header .btn-close-expanded:hover { background-color: rgba(255, 255, 255, 0.08); }
[data-bs-theme=dark] .audio-widget .audio-expanded-card .expanded-body .expanded-controls-group {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}
[data-bs-theme=dark] .audio-widget .audio-expanded-card .expanded-body .episode-nav-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme=dark] .audio-widget .audio-expanded-card .expanded-body .episode-nav-card .episode-nav-label,
[data-bs-theme=dark] .audio-widget .audio-expanded-card .expanded-body .episode-nav-card .episode-nav-title,
[data-bs-theme=dark] .audio-widget .audio-expanded-card .expanded-body .episode-nav-card .episode-nav-artist { color: rgba(255, 255, 255, 0.6); }

/* Collage gaps + the "add station" circle. */
[data-bs-theme=dark] .collage-container { background-color: var(--bs-tertiary-bg); }
[data-bs-theme=dark] .discover-plus-circle { background-color: rgba(255, 255, 255, 0.12); }
[data-bs-theme=dark] .discover-plus-circle i { color: rgba(255, 255, 255, 0.75); }
[data-bs-theme=dark] .discover-plus-circle:hover { background-color: var(--bs-primary); }
[data-bs-theme=dark] .discover-plus-circle:hover i { color: #fff; }

/* Landing page: the neutral outline button uses the navy "--bs-dark", which
   disappears on dark surfaces. */
[data-bs-theme=dark] .btn-outline-dark {
    --bs-btn-color: var(--bs-body-color);
    --bs-btn-border-color: var(--bs-body-color);
    --bs-btn-hover-color: var(--bs-body-bg);
    --bs-btn-hover-bg: var(--bs-body-color);
    --bs-btn-hover-border-color: var(--bs-body-color);
    --bs-btn-active-color: var(--bs-body-bg);
    --bs-btn-active-bg: var(--bs-body-color);
    --bs-btn-active-border-color: var(--bs-body-color);
}

/* Player: the mute + settings buttons and the expanded backdrop are not covered
   by .btn-glass, so they kept their hard-coded navy ink on the dark widget. */
[data-bs-theme=dark] .audio-widget .audio-volume-group .btn-mute,
[data-bs-theme=dark] .audio-widget .btn-menu { color: rgba(255, 255, 255, 0.7); }
[data-bs-theme=dark] .audio-widget .audio-volume-group .btn-mute:hover,
[data-bs-theme=dark] .audio-widget .btn-menu:hover { background: rgba(255, 255, 255, 0.1); }
[data-bs-theme=dark] .audio-widget .audio-expanded-backdrop { background: rgba(8, 10, 14, 0.6); }

/* Previous/next episode card title (the label + artist were themed, the title was not). */
[data-bs-theme=dark] .audio-widget .audio-expanded-card .expanded-body .episode-nav-card .episode-nav-title { color: #f1f3f5; }

/* Player: the primary (play) glass button's orange ink on its orange-tinted
   dark surface was too low-contrast; brighten the ink and the tint. */
[data-bs-theme=dark] .btn-glass-primary {
    background: rgba(252, 93, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffb27a;
}
[data-bs-theme=dark] .btn-glass-primary:hover { background: rgba(252, 93, 0, 0.4); color: #ffd6b0; }

/* Outline buttons: the brand colours are tuned for light surfaces, so on dark
   their ink/border needs the (lighter) dark-mode emphasis colour. */
[data-bs-theme=dark] .btn-outline-primary {
    --bs-btn-color: var(--bs-primary-text-emphasis); --bs-btn-border-color: var(--bs-primary-text-emphasis);
    --bs-btn-hover-color: #10131a; --bs-btn-hover-bg: var(--bs-primary-text-emphasis); --bs-btn-hover-border-color: var(--bs-primary-text-emphasis);
    --bs-btn-active-color: #10131a; --bs-btn-active-bg: var(--bs-primary-text-emphasis); --bs-btn-active-border-color: var(--bs-primary-text-emphasis);
}
[data-bs-theme=dark] .btn-outline-secondary {
    --bs-btn-color: var(--bs-secondary-text-emphasis); --bs-btn-border-color: var(--bs-secondary-text-emphasis);
    --bs-btn-hover-color: #10131a; --bs-btn-hover-bg: var(--bs-secondary-text-emphasis); --bs-btn-hover-border-color: var(--bs-secondary-text-emphasis);
    --bs-btn-active-color: #10131a; --bs-btn-active-bg: var(--bs-secondary-text-emphasis); --bs-btn-active-border-color: var(--bs-secondary-text-emphasis);
}
[data-bs-theme=dark] .btn-outline-success {
    --bs-btn-color: var(--bs-success-text-emphasis); --bs-btn-border-color: var(--bs-success-text-emphasis);
    --bs-btn-hover-color: #10131a; --bs-btn-hover-bg: var(--bs-success-text-emphasis); --bs-btn-hover-border-color: var(--bs-success-text-emphasis);
    --bs-btn-active-color: #10131a; --bs-btn-active-bg: var(--bs-success-text-emphasis); --bs-btn-active-border-color: var(--bs-success-text-emphasis);
}
[data-bs-theme=dark] .btn-outline-info {
    --bs-btn-color: var(--bs-info-text-emphasis); --bs-btn-border-color: var(--bs-info-text-emphasis);
    --bs-btn-hover-color: #10131a; --bs-btn-hover-bg: var(--bs-info-text-emphasis); --bs-btn-hover-border-color: var(--bs-info-text-emphasis);
    --bs-btn-active-color: #10131a; --bs-btn-active-bg: var(--bs-info-text-emphasis); --bs-btn-active-border-color: var(--bs-info-text-emphasis);
}
[data-bs-theme=dark] .btn-outline-warning {
    --bs-btn-color: var(--bs-warning-text-emphasis); --bs-btn-border-color: var(--bs-warning-text-emphasis);
    --bs-btn-hover-color: #10131a; --bs-btn-hover-bg: var(--bs-warning-text-emphasis); --bs-btn-hover-border-color: var(--bs-warning-text-emphasis);
    --bs-btn-active-color: #10131a; --bs-btn-active-bg: var(--bs-warning-text-emphasis); --bs-btn-active-border-color: var(--bs-warning-text-emphasis);
}
[data-bs-theme=dark] .btn-outline-danger {
    --bs-btn-color: var(--bs-danger-text-emphasis); --bs-btn-border-color: var(--bs-danger-text-emphasis);
    --bs-btn-hover-color: #10131a; --bs-btn-hover-bg: var(--bs-danger-text-emphasis); --bs-btn-hover-border-color: var(--bs-danger-text-emphasis);
    --bs-btn-active-color: #10131a; --bs-btn-active-bg: var(--bs-danger-text-emphasis); --bs-btn-active-border-color: var(--bs-danger-text-emphasis);
}
