/* ===================================================================
   Essencesia — shared stylesheet
   Used by: 00-onboarding-goals.html, signup.html
=================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500&family=Work+Sans:wght@400;500;600&display=swap');

:root {
    --navy-deep: #0E1A29;
    --navy-mid: #1C3145;
    --dusk: #3B5266;
    --moss: #8FB89A;
    --moss-dim: #5F7F6C;
    --amber: #E7B27B;
    --ink: #F3EFE7;
    --ink-dim: #A9B7C2;
    --line: rgba(243, 239, 231, 0.12);
    --card: rgba(255, 255, 255, 0.045);
    --error: #E38B7A;
}

.form-errors {
    background: rgba(227, 139, 122, 0.12);
    border: 1px solid rgba(227, 139, 122, 0.4);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.form-errors p {
    margin: 0;
    font-size: 13px;
    color: var(--error);
    line-height: 1.5;
}

.form-errors p+p {
    margin-top: 6px;
}

/* ---------- OTP code entry (email verification) ---------- */
.otp-boxes {
    display: flex;
    gap: 10px;
    margin: 8px 0 4px;
}

.otp-box {
    width: 100%;
    max-width: 52px;
    aspect-ratio: 1;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    font-family: 'Work Sans', sans-serif;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.otp-box:focus {
    border-color: var(--amber);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}

@media (max-width: 380px) {
    .otp-boxes {
        gap: 7px;
    }

    .otp-box {
        font-size: 18px;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

/* Disable the rubber-band/bounce overscroll effect (the white flash at the
   top/bottom edges when scrolling past the content) and the mobile tap
   highlight flash, across every page that loads this stylesheet. */
html,
body {
    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: 'Work Sans', sans-serif;
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    background: #070C13;
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

/* ---------- ambient background ---------- */

.screen {
    position: relative;
    flex: 1;
    min-height: 100vh;
    background:
        radial-gradient(120% 60% at 50% 0%, var(--dusk) 0%, var(--navy-mid) 42%, var(--navy-deep) 78%, #060B12 100%);
    display: flex;
    justify-content: center;
}

.sky {
    position: fixed;
    inset: 0;
    background: radial-gradient(60% 40% at 15% 6%, rgba(231, 178, 123, 0.15), transparent 60%),
        radial-gradient(50% 35% at 88% 4%, rgba(143, 184, 154, 0.14), transparent 60%);
    animation: driftSky 24s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes driftSky {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(-3%, 2%, 0) scale(1.06);
    }
}

.stars {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 20% 14%, rgba(255, 255, 255, 0.5), transparent 100%),
        radial-gradient(1px 1px at 70% 8%, rgba(255, 255, 255, 0.35), transparent 100%),
        radial-gradient(1.5px 1.5px at 85% 20%, rgba(255, 255, 255, 0.45), transparent 100%),
        radial-gradient(1px 1px at 40% 5%, rgba(255, 255, 255, 0.3), transparent 100%),
        radial-gradient(1px 1px at 55% 24%, rgba(255, 255, 255, 0.25), transparent 100%);
    opacity: 0.7;
    pointer-events: none;
}

/* ---------- page shell ---------- */

.wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    /* onboarding default; signup narrows this via .page-signup */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: clamp(20px, 5vw, 40px) clamp(20px, 6vw, 40px) clamp(20px, 4vh, 36px);
}

.page-signup .wrap {
    max-width: 480px;
}

.page-payment .wrap {
    max-width: 920px;
}

/* ---------- top bar ---------- */

.top-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: clamp(28px, 6vh, 48px);
}

.back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    flex-shrink: 0;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.back-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.progress-track {
    flex: 1;
    height: 4px;
    background: var(--line);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    width: 12%;
    height: 100%;
    background: var(--moss);
    border-radius: 3px;
    transition: width 0.35s ease;
}

.step-label {
    font-size: 12px;
    color: var(--ink-dim);
    white-space: nowrap;
    min-width: 40px;
    text-align: right;
}

/* ---------- header copy ---------- */

.eyebrow {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--moss);
    font-weight: 600;
    margin: 0 0 12px;
    transition: opacity 0.2s ease;
}

h1 {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(24px, 5vw, 32px);
    line-height: 1.2;
    margin: 0 0 8px;
    transition: opacity 0.2s ease;
}

h1 em {
    font-style: italic;
    font-weight: 300;
    color: var(--amber);
}

.subtext {
    font-size: 14px;
    color: var(--ink-dim);
    margin: 0 0 clamp(24px, 5vh, 36px);
    transition: opacity 0.2s ease;
}

/* ---------- onboarding options list ---------- */

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--card);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
    user-select: none;
}

.option:hover {
    border-color: rgba(143, 184, 154, 0.4);
}

.option:active {
    transform: scale(0.99);
}

.option.selected {
    border-color: var(--moss);
    background: rgba(143, 184, 154, 0.12);
}

.option-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
}

.option-text {
    flex: 1;
    font-size: clamp(14px, 3.6vw, 15px);
    font-weight: 500;
    line-height: 1.35;
}

/* ---------- shared checkbox / radio mark ----------
   Used by both onboarding options (.option.selected) and
   the sign-up terms row (.terms-row.checked) */

.mark {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--ink-dim);
    flex-shrink: 0;
    position: relative;
    margin-top: 1px;
    transition: all 0.15s ease;
}

.mark.check {
    border-radius: 6px;
}

.mark.radio {
    border-radius: 50%;
}

.option.selected .mark,
.terms-row.checked .mark {
    background: var(--moss);
    border-color: var(--moss);
}

.mark.check::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid var(--navy-deep);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.1s ease;
}

.option.selected .mark.check::after,
.terms-row.checked .mark.check::after {
    opacity: 1;
}

.mark.radio::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: var(--navy-deep);
    opacity: 0;
    transition: opacity 0.1s ease;
}

.option.selected .mark.radio::after {
    opacity: 1;
}

/* ---------- sign-up form ---------- */

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.field label {
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--ink-dim);
    text-transform: uppercase;
}

.inline-link {
    font-size: 12px;
    color: var(--moss);
    text-decoration: none;
    font-weight: 600;
}

.inline-link:hover {
    text-decoration: underline;
}

.input-shell {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: 14px;
    padding: 14px 16px;
    transition: border-color 0.15s ease;
}

.input-shell:focus-within {
    border-color: var(--moss);
}

.input-shell input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--ink);
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
}

.input-shell input::placeholder {
    color: rgba(169, 183, 194, 0.55);
}

.toggle-visibility {
    background: none;
    border: none;
    color: var(--ink-dim);
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 0.03em;
    padding: 0;
}

.toggle-visibility:hover {
    color: var(--ink);
}

.hint {
    font-size: 12px;
    color: var(--ink-dim);
    margin-top: 2px;
}

.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 4px 0 6px;
    cursor: pointer;
    user-select: none;
}

.terms-row p {
    margin: 0;
    font-size: 13px;
    color: var(--ink-dim);
    line-height: 1.5;
}

.terms-row a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-dim);
    font-size: 12px;
    margin: 2px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.social-row {
    display: flex;
    gap: 12px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-social:hover {
    border-color: rgba(143, 184, 154, 0.4);
}

.login-line {
    text-align: center;
    font-size: 13px;
    color: var(--ink-dim);
}

.login-line a {
    color: var(--moss);
    font-weight: 600;
    text-decoration: none;
}

/* ---------- payment / checkout page ---------- */

.plan-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (min-width: 860px) {
    .plan-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

.panel {
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: 20px;
    padding: 22px;
}

.panel-title {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: 19px;
    margin: 0 0 6px;
}

.panel-note {
    font-size: 13px;
    color: var(--ink-dim);
    margin: 0 0 18px;
}

.plan-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    font-size: 14px;
}

.plan-row .label {
    color: var(--ink);
    font-weight: 500;
}

.plan-row .sub {
    color: var(--ink-dim);
    font-size: 12px;
    margin-top: 2px;
}

.plan-row .value {
    font-weight: 600;
}

.plan-row.free .value {
    color: var(--moss);
    font-weight: 700;
}

/* ---------- plan selector (Monthly / Yearly) ---------- */
.plan-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 18px 0 6px;
}

.plan-option {
    position: relative;
    display: block;
    padding: 16px 14px;
    border-radius: 16px;
    border: 1.5px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.plan-option:hover {
    transform: translateY(-2px);
}

.plan-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.plan-option.checked {
    border-color: var(--amber);
    background: rgba(231, 178, 123, 0.1);
}

.plan-option-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--amber);
    color: var(--navy-deep, #0E1A29);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 999px;
}

.plan-option-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-dim);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}

.plan-option.checked .plan-option-name {
    color: var(--amber);
}

.plan-option-price {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
}

.plan-option-price span {
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-dim);
}

.plan-option-sub {
    font-size: 11.5px;
    color: var(--moss);
    font-weight: 600;
    margin-top: 4px;
}

@media (max-width: 380px) {
    .plan-options {
        grid-template-columns: 1fr;
    }
}

.plan-divider {
    height: 1px;
    background: var(--line);
    margin: 6px 0;
}

.plan-row.total {
    padding-top: 14px;
}

.plan-row.total .label {
    font-weight: 700;
}

.plan-row.total .value {
    font-size: 17px;
}

.plan-fineprint {
    font-size: 12px;
    color: var(--ink-dim);
    line-height: 1.5;
    margin-top: 10px;
}

.recommend-card {
    display: flex;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    margin: 16px 0 20px;
    background: rgba(255, 255, 255, 0.03);
}

.recommend-art {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(155deg, var(--moss), var(--dusk));
}

.recommend-card .kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-dim);
    margin-bottom: 4px;
}

.recommend-card .title {
    font-family: 'Fraunces', serif;
    font-size: 15px;
    line-height: 1.3;
}

.recommend-card>div:last-child {
    min-width: 0;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.feature-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.feature-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--moss);
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
}

.feature-check::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 9px;
    border: solid var(--navy-deep);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.feature-item .title {
    font-size: 14px;
    font-weight: 600;
}

.feature-item .desc {
    font-size: 13px;
    color: var(--ink-dim);
    margin-top: 2px;
    line-height: 1.4;
}

/* payment method buttons */
.btn-express {
    width: 100%;
    padding: 15px 20px;
    border-radius: 14px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.btn-gpay {
    background: #111;
    color: #fff;
}

.btn-paypal {
    background: #FFC439;
    color: #111;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.select-shell {
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: 14px;
    padding: 14px 16px;
}

.select-shell label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-dim);
    margin-bottom: 4px;
}

.select-shell select {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: var(--ink);
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
}

.select-shell select option {
    background: var(--navy-mid);
    color: var(--ink);
}

.secure-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ink-dim);
    justify-content: center;
    margin-top: 4px;
}

/* ---------- payment page responsive tuning ---------- */

@media (max-width: 480px) {
    .field-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .panel {
        padding: 18px;
        border-radius: 16px;
    }

    .recommend-card {
        flex-wrap: wrap;
    }

    .btn-express {
        font-size: 14px;
        padding: 14px 16px;
    }
}

@media (max-width: 380px) {
    .plan-grid {
        gap: 14px;
    }

    .panel-title {
        font-size: 17px;
    }

    .plan-row .value {
        font-size: 13px;
    }

    .plan-row.total .value {
        font-size: 16px;
    }
}

/* ===================================================================
   Home dashboard (app shell: sidebar + main content)
=================================================================== */

.app-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    min-height: 100vh;
}

/* ---------- sidebar ---------- */

.sidebar {
    width: 230px;
    flex-shrink: 0;
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line);
    background: rgba(6, 11, 18, 0.25);
}

.sidebar-logo {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 22px;
    color: var(--ink);
    margin: 4px 0 32px 8px;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink-dim);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ink);
}

.nav-link.active {
    color: var(--ink);
    background: rgba(143, 184, 154, 0.10);
}

.nav-icon {
    --accent: var(--moss);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.03);
}

/* ---------- main column ---------- */

.main-col {
    flex: 1;
    min-width: 0;
    padding: 26px clamp(20px, 4vw, 44px) 60px;
}

.topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    row-gap: 10px;
    margin-bottom: 22px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
}

.icon-btn:hover {
    border-color: rgba(143, 184, 154, 0.4);
}

.topbar-sep {
    width: 1px;
    height: 26px;
    background: var(--line);
    margin: 0 2px;
}

/* ---------- mobile-only header (brand + search) ---------- */

.mobile-topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.mobile-logo {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 20px;
    color: var(--ink);
}

.btn-outline {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.btn-outline:hover {
    border-color: rgba(143, 184, 154, 0.5);
}

.btn-pill {
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    background: var(--moss);
    color: var(--navy-deep);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.btn-pill:hover {
    opacity: 0.92;
}

/* ---------- upsell banner ---------- */

.upsell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.045);
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 28px;
    text-decoration: none;
    color: var(--ink);
}

.upsell:hover {
    border-color: rgba(143, 184, 154, 0.4);
}

.upsell-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(155deg, var(--amber), var(--moss));
    flex-shrink: 0;
}

.upsell p {
    margin: 0;
    font-size: 14px;
    flex: 1;
    min-width: 180px;
}

.upsell .chev {
    color: var(--ink-dim);
    font-size: 18px;
}

/* ---------- greeting ---------- */

.greeting-block {
    margin-bottom: 30px;
}

.greeting-block h1 {
    font-size: clamp(26px, 4vw, 34px);
    margin: 0;
}

/* ---------- rails ---------- */

.rail-section {
    margin-bottom: 38px;
}

.rail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.rail-head h2 {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: 20px;
    margin: 0;
}

.rail-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rail-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rail-arrow:hover {
    border-color: rgba(143, 184, 154, 0.4);
}

.rail-seeall {
    font-size: 13px;
    color: var(--moss);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.rail-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.rail-track::-webkit-scrollbar {
    display: none;
}

.content-card {
    flex: 0 0 200px;
    text-decoration: none;
    color: var(--ink);
    scroll-snap-align: start;
}

.card-thumb {
    position: relative;
    width: 100%;
    height: 150px;
    border-radius: 16px;
    border: 1px solid var(--line);
    margin-bottom: 10px;
    overflow: hidden;
}

.card-lock {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(14, 26, 41, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--ink);
    color: var(--navy-deep);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.card-sub {
    font-size: 12px;
    color: var(--ink-dim);
    margin-top: 2px;
}

/* ---------- mobile bottom nav (shown < 900px) ---------- */

.mobile-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0 20px;
    background: rgba(9, 15, 24, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
}

.mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--ink-dim);
    text-decoration: none;
    font-size: 10px;
}

.mobile-nav a.active {
    color: var(--moss);
}

.mobile-nav .m-icon {
    font-size: 18px;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
    .sidebar {
        display: none;
    }

    .main-col {
        padding-bottom: 104px;
        padding-top: 18px;
    }

    .mobile-nav {
        display: flex;
    }

    .mobile-topbar {
        display: flex;
    }

    /* the desktop topbar keeps only the primary CTA on mobile */
    .icon-btn-search-desktop,
    .icon-btn-decor,
    .topbar-sep-decor,
    .topbar .btn-outline {
        display: none;
    }

    .topbar {
        justify-content: stretch;
        margin-bottom: 20px;
    }

    .topbar .btn-pill {
        flex: 1;
        text-align: center;
    }

    /* swipe replaces click-to-scroll on touch screens */
    .rail-arrow {
        display: none;
    }

    .rail-controls {
        gap: 14px;
    }
}

@media (max-width: 560px) {
    .content-card {
        flex-basis: 160px;
    }

    .card-thumb {
        height: 120px;
    }

    .greeting-block h1 {
        line-height: 1.2;
    }

    .greeting-block {
        margin-bottom: 22px;
    }

    .upsell {
        margin-bottom: 22px;
    }

    .rail-section {
        margin-bottom: 30px;
    }
}

@media (max-width: 420px) {
    .main-col {
        padding-left: 16px;
        padding-right: 16px;
    }

    .content-card {
        flex-basis: 140px;
    }

    .card-thumb {
        height: 104px;
    }

    .rail-head h2 {
        font-size: 17px;
    }

    .upsell {
        padding: 14px 16px;
    }

    .upsell p {
        font-size: 13px;
        min-width: 140px;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .mobile-nav {
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-nav a {
        font-size: 11px;
        gap: 5px;
        padding: 4px 10px;
    }

    .mobile-nav .m-icon {
        font-size: 20px;
    }
}

/* ---------- footer buttons (shared) ---------- */

.footer {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
    padding-top: 12px;
}

.btn {
    width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Work Sans', sans-serif;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: opacity 0.15s ease, transform 0.1s ease, background 0.15s ease;
}

.btn:active {
    transform: scale(0.985);
}

.btn-primary {
    background: var(--moss);
    color: var(--navy-deep);
}

.btn-primary:disabled {
    background: rgba(143, 184, 154, 0.25);
    color: rgba(14, 26, 41, 0.5);
    cursor: not-allowed;
}

.btn-ghost {
    background: transparent;
    color: var(--ink-dim);
    padding: 4px;
}

.btn-ghost:hover {
    color: var(--ink);
}

/* ---------- responsive ---------- */

@media (max-width:380px) {
    .option {
        padding: 14px;
        gap: 12px;
    }

    .option-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
}

@media (min-width: 760px) {
    .wrap {
        padding-top: 56px;
    }

    .options {
        gap: 14px;
    }

    .option {
        padding: 18px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sky {
        animation: none;
    }
}

/* ===================================================================
   ALTERNATE HOME DESIGN — "Bloom" (bright, daylight theme)
   Fully self-contained: its own fonts, colors, and bloom- prefixed
   classes, so it cannot collide with the Twilight theme above.
=================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Quicksand:wght@400;500;600;700&display=swap');

body.theme-bloom {
    --bloom-ink: #1E2B28;
    --bloom-ink-dim: #5C6E68;
    --bloom-teal: #2F6F62;
    --bloom-teal-deep: #1F4F45;
    --bloom-marigold: #E8A33D;
    --bloom-coral: #F3B9A9;
    --bloom-coral-deep: #D97A5A;
    --bloom-line: #D8E4D9;
    --bloom-card: #FFFFFF;

    margin: 0;
    color: var(--bloom-ink);
    font-family: 'Quicksand', sans-serif;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    background: #070C13;
}

/* same ambient background as the login / twilight pages */
.theme-bloom .screen {
    display: flex;
    justify-content: center;
    width: 100%;
}

.bloom-shell {
    width: 100%;
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
    gap: 20px;
    padding: 20px;
}

/* ---------- floating sidebar ---------- */

.bloom-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--bloom-card);
    border-radius: 24px;
    padding: 22px 16px;
    position: sticky;
    top: 20px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.bloom-logo {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 24px;
    color: var(--bloom-teal-deep);
    margin: 4px 0 26px 8px;
}

.bloom-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bloom-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--bloom-ink-dim);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.bloom-nav-link:hover {
    background: rgba(47, 111, 98, 0.08);
    color: var(--bloom-teal-deep);
}

.bloom-nav-link.active {
    background: var(--bloom-teal);
    color: #fff;
}

.bloom-nav-link.active .bloom-nav-icon {
    background: rgba(255, 255, 255, 0.2);
}

.bloom-nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    background: rgba(47, 111, 98, 0.10);
}

/* ---------- main column ---------- */

.bloom-main {
    flex: 1;
    min-width: 0;
    padding-bottom: 40px;
}

.bloom-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bloom-card);
    color: var(--bloom-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.bloom-btn-outline {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1.5px solid rgba(245, 247, 240, 0.35);
    background: transparent;
    color: #F5F7F0;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.bloom-btn-outline:hover {
    border-color: var(--bloom-marigold);
    color: var(--bloom-marigold);
}

/* ---------- header bar (always-visible search / CTA / avatar) ---------- */

.bloom-navbar {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 10px 14px;
    margin-bottom: 26px;
    backdrop-filter: blur(8px);
}

.bloom-navbar .bloom-logo {
    color: var(--bloom-marigold);
    margin: 0;
    font-size: 22px;
    text-decoration: none;
}

.bloom-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.bloom-bell {
    position: relative;
}

.bloom-badge {
    position: absolute;
    top: 6px;
    right: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bloom-coral-deep);
    border: 1.5px solid #0E1A29;
}

.bloom-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bloom-teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.15s ease, border-color 0.15s ease;
    overflow: hidden;
}

.bloom-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.bloom-avatar:hover {
    border-color: var(--bloom-marigold);
    transform: translateY(-1px);
}

/* hamburger — opens the offcanvas drawer */

.bloom-hamburger {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.bloom-hamburger span {
    display: block;
    width: 16px;
    height: 2px;
    background: #F5F7F0;
    border-radius: 2px;
}

.bloom-hamburger:hover {
    border-color: rgba(232, 163, 61, 0.5);
}

/* ---------- left-sliding navigation drawer ---------- */

.bloom-offcanvas {
    width: 260px;
    background: #0E1A29;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: #F5F7F0;
}

.bloom-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 20px;
}

.bloom-offcanvas .bloom-logo {
    color: var(--bloom-marigold);
    font-size: 20px;
}

.bloom-offcanvas .offcanvas-body {
    padding: 16px 14px;
}

.bloom-offcanvas-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bloom-offcanvas-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(245, 247, 240, 0.75);
    font-weight: 600;
    font-size: 14px;
    transition: background 0.15s ease, color 0.15s ease;
}

.bloom-offcanvas-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.bloom-offcanvas-nav a.active {
    background: var(--bloom-teal);
    color: #fff;
}

.bloom-offcanvas-nav .bloom-nav-icon {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

@media (max-width: 767.98px) {
    .bloom-header-actions .bloom-btn-pill {
        padding: 9px 16px;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .bloom-navbar {
        padding: 8px 10px;
        gap: 8px;
    }

    .bloom-header-actions {
        gap: 8px;
    }
}

.bloom-btn-pill {
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    background: var(--bloom-marigold);
    color: var(--bloom-teal-deep);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease;
}

.bloom-btn-pill:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(232, 163, 61, 0.35);
}

.bloom-btn-pill:active {
    transform: translateY(0) scale(0.97);
}

/* ---------- hero: the signature element ---------- */

.bloom-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(155deg, var(--bloom-teal) 0%, var(--bloom-teal-deep) 100%);
    padding: clamp(26px, 4vw, 40px);
    margin-bottom: 32px;
    color: #F5F7F0;
    animation: bloomRise 0.6s ease both;
}

@keyframes bloomRise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bloom-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.55;
    animation: bloomDrift 16s ease-in-out infinite alternate;
}

.bloom-blob.b1 {
    width: 220px;
    height: 220px;
    background: var(--bloom-marigold);
    top: -70px;
    right: -40px;
    opacity: 0.35;
}

.bloom-blob.b2 {
    width: 160px;
    height: 160px;
    background: var(--bloom-coral);
    bottom: -60px;
    right: 120px;
    opacity: 0.3;
    animation-delay: 2s;
}

.bloom-blob.b3 {
    width: 120px;
    height: 120px;
    background: #fff;
    bottom: -40px;
    right: -20px;
    opacity: 0.12;
    animation-delay: 4s;
}

@keyframes bloomDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(-12px, 10px, 0) scale(1.08);
    }
}

.bloom-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.bloom-eyebrow {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.8;
    margin: 0 0 10px;
}

.bloom-hero h1 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
    margin: 0 0 10px;
}

.bloom-hero h1 em {
    font-style: italic;
    color: var(--bloom-marigold);
}

.bloom-hero p {
    font-size: 14px;
    opacity: 0.85;
    margin: 0 0 20px;
    max-width: 420px;
}

.bloom-hero-cta {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    background: #fff;
    color: var(--bloom-teal-deep);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.bloom-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.bloom-hero-cta:active {
    transform: translateY(0) scale(0.97);
}

/* ---------- stats strip ---------- */

.bloom-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}

.bloom-stat {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    padding: 16px 14px;
    text-align: center;
}

.bloom-stat .value {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(22px, 3vw, 28px);
    color: #F5F7F0;
    line-height: 1;
    margin-bottom: 6px;
}

.bloom-stat .value em {
    font-style: normal;
    color: var(--bloom-marigold);
}

/* ---------- weekly activity chart ---------- */

.bloom-activity {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 20px 22px;
    margin-bottom: 24px;
}

.bloom-activity-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}

.bloom-activity-head h2 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 17px;
    color: #F5F7F0;
    margin: 0;
}

.bloom-activity-head span {
    font-size: 12px;
    color: rgba(245, 247, 240, 0.5);
}

.bloom-activity-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    height: 90px;
}

.bloom-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 8px;
}

.bloom-bar {
    width: 100%;
    max-width: 26px;
    border-radius: 6px 6px 3px 3px;
    background: rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease;
}

.bloom-bar-col.today .bloom-bar {
    background: var(--bloom-marigold);
}

.bloom-bar-col:hover .bloom-bar {
    transform: scaleY(1.05);
}

.bloom-bar-label {
    font-size: 11px;
    color: rgba(245, 247, 240, 0.5);
}

.bloom-bar-col.today .bloom-bar-label {
    color: var(--bloom-marigold);
    font-weight: 700;
}

/* ---------- daily inspiration ---------- */

.bloom-quote-card {
    position: relative;
    background: linear-gradient(155deg, rgba(143, 184, 154, 0.12), rgba(232, 163, 61, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 22px 24px;
    margin-bottom: 24px;
    overflow: hidden;
}

.bloom-quote-mark {
    position: absolute;
    top: -6px;
    left: 14px;
    font-size: 64px;
    font-family: 'Instrument Serif', serif;
    color: rgba(232, 163, 61, 0.25);
    line-height: 1;
    pointer-events: none;
}

.bloom-quote-text {
    position: relative;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: clamp(16px, 2vw, 19px);
    color: #F5F7F0;
    line-height: 1.5;
    margin: 0 0 10px;
}

.bloom-quote-author {
    position: relative;
    font-size: 12px;
    color: rgba(245, 247, 240, 0.55);
    font-weight: 600;
}

/* ---------- mood check-in ---------- */

.bloom-mood-card {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 20px 22px;
    margin-bottom: 28px;
}

.bloom-mood-card h2 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 17px;
    color: #F5F7F0;
    margin: 0 0 14px;
}

.bloom-mood-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bloom-mood-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(245, 247, 240, 0.85);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.bloom-mood-btn i {
    font-size: 15px;
}

.bloom-mood-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(232, 163, 61, 0.4);
}

.bloom-mood-btn.selected {
    background: var(--bloom-marigold);
    color: var(--bloom-teal-deep);
    border-color: var(--bloom-marigold);
}

.bloom-mood-response {
    margin-top: 14px;
    font-size: 13px;
    color: rgba(245, 247, 240, 0.65);
    display: none;
}

.bloom-mood-response.show {
    display: block;
}

.bloom-mood-response a {
    color: var(--bloom-marigold);
    font-weight: 700;
    text-decoration: none;
}

/* ---------- explore grid ---------- */

.bloom-explore {
    margin-bottom: 20px;
}

.bloom-explore-head {
    margin-bottom: 16px;
}

.bloom-explore-head h2 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 20px;
    color: #F5F7F0;
    margin: 0 0 4px;
}

.bloom-explore-head p {
    font-size: 13px;
    color: rgba(245, 247, 240, 0.55);
    margin: 0;
}

.bloom-explore-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 900px) {
    .bloom-explore-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    .bloom-explore-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bloom-explore-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 20px 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.045);
    color: #F5F7F0;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.bloom-explore-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(232, 163, 61, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.bloom-explore-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: #fff;
}

.bloom-explore-tile span {
    font-size: 13px;
    font-weight: 600;
}

.bloom-stat .label {
    font-size: 12px;
    color: rgba(245, 247, 240, 0.6);
    font-weight: 600;
}

/* ---------- continue listening ---------- */

.bloom-continue {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(20, 32, 44, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 32px;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 14px;
    z-index: 8;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bloom-continue:focus-visible {
    outline: 2px solid var(--bloom-marigold);
    outline-offset: 2px;
}

.bloom-continue:hover {
    border-color: rgba(232, 163, 61, 0.4);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.bloom-continue.is-playing {
    border-color: rgba(232, 163, 61, 0.55);
    box-shadow: 0 0 0 1px rgba(232, 163, 61, 0.25), 0 16px 32px rgba(0, 0, 0, 0.4);
}

.bloom-continue-art {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(155deg, var(--bloom-coral), var(--bloom-coral-deep));
}

.bloom-continue-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bloom-continue-meta {
    flex: 1;
    min-width: 0;
}

.bloom-continue-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(245, 247, 240, 0.55);
    font-weight: 700;
    margin-bottom: 4px;
}

.bloom-continue-title {
    font-size: 15px;
    font-weight: 700;
    color: #F5F7F0;
}

.bloom-continue .bloom-progress {
    margin-top: 10px;
    max-width: 280px;
}

.bloom-continue-play {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--bloom-marigold);
    color: var(--bloom-teal-deep);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.bloom-continue-play:hover {
    transform: scale(1.06);
}

.bloom-continue-play:active {
    transform: scale(0.94);
}

/* ---------- browse by topic ---------- */

.bloom-topics {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 32px;
    scrollbar-width: none;
}

.bloom-topics::-webkit-scrollbar {
    display: none;
}

.bloom-topic-chip {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #F5F7F0;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.bloom-topic-chip:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(232, 163, 61, 0.4);
    transform: translateY(-2px);
}

.bloom-topic-chip.active {
    background: var(--bloom-marigold);
    color: var(--bloom-teal-deep);
    border-color: var(--bloom-marigold);
}

/* ---------- category page (meditation.php and similar) ---------- */

.bloom-page-title {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: clamp(28px, 5vw, 38px);
    color: #F5F7F0;
    margin: 4px 0 18px;
}

.bloom-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.bloom-filter-chip {
    flex: 0 0 auto;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(245, 247, 240, 0.85);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.bloom-filter-chip:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(232, 163, 61, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.bloom-filter-chip.active {
    background: #fff;
    color: var(--bloom-teal-deep);
    border-color: #fff;
}

/* ---------- search + sort toolbar (replaces non-functional filter chips
   on pages where real tag data doesn't back a full category filter yet) ---------- */

.bloom-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.bloom-search {
    flex: 1 1 260px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px !important;
    max-height: 46px !important;
    min-height: 46px !important;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(6px);
    color: rgba(245, 247, 240, 0.6);
    transition: border-color 0.15s ease, background 0.15s ease;
    box-sizing: border-box;
}

.bloom-search:hover {
    background: rgba(255, 255, 255, 0.08);
}

.bloom-search:focus-within {
    border-color: rgba(232, 163, 61, 0.55);
    background: rgba(255, 255, 255, 0.08);
}

.bloom-search i {
    font-size: 14px;
    flex-shrink: 0;
    color: rgba(245, 247, 240, 0.5);
}

.bloom-search input {
    flex: 1;
    min-width: 0;
    height: 46px !important;
    max-height: 46px !important;
    line-height: 46px;
    padding: 0;
    margin: 0;
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #FFFFFF !important;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.bloom-search input::placeholder {
    color: rgba(245, 247, 240, 0.45);
}

.bloom-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px !important;
    max-height: 46px !important;
    min-height: 46px !important;
    padding: 0 8px 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(6px);
    flex-shrink: 0;
    transition: border-color 0.15s ease, background 0.15s ease;
    box-sizing: border-box;
}

.bloom-sort:hover {
    background: rgba(255, 255, 255, 0.08);
}

.bloom-sort:focus-within {
    border-color: rgba(232, 163, 61, 0.55);
}

.bloom-sort label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(245, 247, 240, 0.5);
    white-space: nowrap;
}

/* A bare <select> keeps its native browser chrome (default arrow,
   platform-specific background) unless appearance is explicitly
   suppressed — without this it looks unstyled/mismatched no matter
   what color/background is set on it. Replaced with a custom
   Bootstrap Icon chevron via background-image instead. */
.bloom-sort select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7' fill='none'%3E%3Cpath d='M1 1L5 5.5L9 1' stroke='%23F5F7F0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 6px center !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #FFFFFF !important;
    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
    font-weight: 700;
    height: 100%;
    padding: 0 24px 0 4px;
    cursor: pointer;
}

.bloom-sort select::-ms-expand {
    display: none;
}

.bloom-sort select option {
    background: var(--bloom-teal-deep);
    color: #FFFFFF;
}

@media (max-width: 480px) {
    .bloom-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .bloom-sort {
        justify-content: space-between;
    }
}

/* ===================================================================
   Vertical track list (music-app style) — used by meditation.php
   instead of horizontal scrolling rails. The rows are still real
   .bloom-card elements underneath (see includes/content.php's
   render_bloom_list_row()), just laid out and styled completely
   differently, so assets/js/player.js needs no changes to find,
   play, filter, or highlight them.
=================================================================== */

.bloom-tracklist-section {
    margin-bottom: 34px;
}

.bloom-tracklist-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
}

.bloom-tracklist-head h2 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 23px;
    color: #FFFFFF;
    margin: 0;
}

.bloom-tracklist-count {
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 4px 12px;
    border-radius: 999px;
}

/* Two cards per row, Bootstrap-column style — same .bloom-card used in
   Featured, just laid out in a fixed 2-column grid instead of a
   horizontal scroll rail. flex:0 0 190px on .bloom-card only applies
   inside a flex container, so it's automatically ignored here — cards
   simply fill their grid column. */
.bloom-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.bloom-card-grid .bloom-card {
    width: 100%;
}

.bloom-card-grid .bloom-card-thumb {
    height: 150px;
}

@media (max-width: 480px) {
    .bloom-card-grid {
        grid-template-columns: 1fr;
    }

    .bloom-card-grid .bloom-card-thumb {
        height: 130px;
    }
}

/* Horizontal card variant — artwork on the left, everything else
   (title, subtitle, play button, progress bar, duration) grouped in a
   column on the right. Overrides the vertical .bloom-card layout
   rather than the grid/rail cards elsewhere, which stay untouched. */
.bloom-card.bloom-card--horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-left: 4px solid var(--bloom-teal);
}

.bloom-card--horizontal .bloom-card-thumb {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    margin-bottom: 0;
    border-radius: 14px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 22px;
}

.bloom-card--horizontal .bloom-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bloom-card--horizontal .bloom-lock {
    position: absolute;
    top: 6px;
    right: 6px;
}

.bloom-card--horizontal .bloom-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.bloom-card--horizontal .bloom-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bloom-card--horizontal .bloom-card-sub {
    font-size: 12.5px;
    font-weight: 500;
    color: #C7D0CC;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
    margin-bottom: 10px;
}

/* the "audio bar" row: play button + progress bar + duration, all
   grouped together on the right, exactly where the ask was for them */
.bloom-card--horizontal .bloom-card-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bloom-card--horizontal .bloom-play-btn {
    position: static;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bloom-marigold);
    color: var(--bloom-teal-deep);
    opacity: 1;
    flex-shrink: 0;
    backdrop-filter: none;
    font-size: 13px;
}

.bloom-card--horizontal .bloom-play-btn:hover {
    transform: scale(1.08);
}

.bloom-card--horizontal .bloom-play-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.bloom-card--horizontal.is-playing .bloom-play-btn {
    background: #FFFFFF;
    color: var(--bloom-teal-deep);
}

.bloom-card--horizontal.is-playing .bloom-card-title {
    color: var(--bloom-marigold);
}

.bloom-card--horizontal .bloom-progress {
    flex: 1;
    min-width: 0;
    height: 4px;
    margin: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.bloom-card--horizontal .bloom-progress-fill {
    border-radius: 999px;
}

.bloom-card--horizontal .bloom-card-duration {
    position: static;
    flex-shrink: 0;
    font-size: 11.5px;
    font-weight: 700;
    color: #C7D0CC;
    background: none;
    padding: 0;
    font-variant-numeric: tabular-nums;
}

.bloom-card--horizontal:hover {
    transform: translateY(-3px);
}

.bloom-card--horizontal.bloom-card--unavailable {
    opacity: 0.72;
}

.bloom-card--horizontal.bloom-card--unavailable:hover {
    transform: none;
}

@media (max-width: 560px) {
    .bloom-card--horizontal .bloom-card-thumb {
        width: 72px;
        height: 72px;
    }

    .bloom-card--horizontal .bloom-card-duration {
        display: none;
    }
}

/* At md+ (768px), Bootstrap's col-md-3 puts 4 of these horizontal cards
   per row — each one only gets ~1/4 of the content width, not enough
   room for an 88px thumb plus a full title/progress/duration row.
   Tighten everything down so it still reads cleanly at that width,
   rather than truncating awkwardly or overflowing. */
@media (min-width: 768px) {
    .bloom-grid-cols .bloom-card--horizontal {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 10px;
        padding: 14px 12px;
    }

    .bloom-grid-cols .bloom-card--horizontal .bloom-card-thumb {
        width: 100%;
        height: 110px;
        margin: 0 auto;
    }

    .bloom-grid-cols .bloom-card--horizontal .bloom-card-body {
        align-items: center;
    }

    .bloom-grid-cols .bloom-card--horizontal .bloom-card-title {
        font-size: 13.5px;
        white-space: normal;
    }

    .bloom-grid-cols .bloom-card--horizontal .bloom-card-sub {
        font-size: 11.5px;
        margin-bottom: 8px;
    }

    .bloom-grid-cols .bloom-card--horizontal .bloom-card-controls {
        width: 100%;
        justify-content: center;
    }

    .bloom-grid-cols .bloom-card--horizontal .bloom-progress {
        flex: none;
        width: 60px;
    }

    .bloom-grid-cols .bloom-card--horizontal .bloom-card-duration {
        display: inline;
    }
}

/* Each item is its own rounded card with a colored left accent —
   stacked with real gaps between them, rather than a dense edge-to-edge
   table. A more editorial, podcast-episode-list feel. */
.bloom-tracklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bloom-list-row {
    /* override .bloom-card's vertical card layout with a horizontal row */
    flex: none;
    scroll-snap-align: none;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 14px 18px 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--bloom-teal);
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
    position: relative;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bloom-list-row:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.075) !important;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

.bloom-list-row.is-playing {
    background: rgba(232, 163, 61, 0.09) !important;
    box-shadow: 0 0 0 1px rgba(232, 163, 61, 0.35), 0 16px 30px rgba(0, 0, 0, 0.3);
}

.bloom-row-thumb {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    flex-shrink: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 20px;
}

.bloom-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bloom-row-lock {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(14, 26, 41, 0.75);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Little animated equalizer overlaid on the artwork while actually
   playing — sits in the corner rather than swapping out a number, since
   this design has no persistent track-number column at all. */
.bloom-row-eq {
    display: none;
    position: absolute;
    left: 5px;
    bottom: 5px;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    background: rgba(14, 26, 41, 0.7);
    padding: 3px 5px;
    border-radius: 6px;
}

.bloom-list-row.is-playing .bloom-row-eq {
    display: flex;
}

.bloom-row-eq span {
    width: 3px;
    background: var(--bloom-marigold);
    border-radius: 1px;
    animation: bloomRowEq 0.9s ease-in-out infinite;
}

.bloom-row-eq span:nth-child(1) {
    height: 40%;
    animation-delay: 0s;
}

.bloom-row-eq span:nth-child(2) {
    height: 100%;
    animation-delay: 0.2s;
}

.bloom-row-eq span:nth-child(3) {
    height: 65%;
    animation-delay: 0.4s;
}

@keyframes bloomRowEq {

    0%,
    100% {
        transform: scaleY(0.4);
    }

    50% {
        transform: scaleY(1);
    }
}

.bloom-row-meta {
    flex: 1;
    min-width: 0;
}

.bloom-row-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bloom-list-row.is-playing .bloom-row-title {
    color: var(--bloom-marigold);
}

.bloom-row-sub {
    font-size: 12.5px;
    font-weight: 500;
    color: #C7D0CC;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
    margin-bottom: 9px;
}

/* Slim rounded progress bar under the text, always present — a quieter,
   more "waveform" feeling indicator than a full-row overlay line. */
.bloom-row-progress {
    position: relative;
    height: 4px;
    max-width: 280px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin: 0;
}

.bloom-row-progress .bloom-progress-fill {
    border-radius: 999px;
    background: var(--bloom-marigold);
}

.bloom-row-side {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.bloom-row-duration {
    font-size: 12px;
    font-weight: 700;
    color: #C7D0CC;
    background: rgba(255, 255, 255, 0.08);
    padding: 5px 11px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Always-visible circular play button — no hover-to-reveal, so it
   works identically on touch and with a mouse. */
.bloom-row-play {
    position: static;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bloom-marigold);
    color: var(--bloom-teal-deep);
    opacity: 1;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    backdrop-filter: none;
    transition: transform 0.15s ease, background 0.15s ease;
}

.bloom-row-play:hover {
    transform: scale(1.08);
    background: var(--bloom-marigold);
}

.bloom-row-play:active {
    transform: scale(0.94);
}

.bloom-row-play:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.bloom-list-row.is-playing .bloom-row-play {
    background: #FFFFFF;
    color: var(--bloom-teal-deep);
}

.bloom-list-row.bloom-card--unavailable {
    opacity: 0.72;
}

.bloom-list-row.bloom-card--unavailable:hover {
    transform: none;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.bloom-list-row.bloom-card--unavailable .bloom-row-thumb {
    opacity: 0.6;
}

@media (max-width: 560px) {
    .bloom-list-row {
        padding: 12px 14px;
        gap: 12px;
    }

    .bloom-row-thumb {
        width: 52px;
        height: 52px;
    }

    .bloom-row-progress {
        max-width: 160px;
    }

    .bloom-row-duration {
        display: none;
    }

    .bloom-row-play {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

.bloom-upsell {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 30px;
    text-decoration: none;
    color: #F5F7F0;
    transition: border-color 0.2s ease;
}

.bloom-upsell:hover {
    border-color: rgba(232, 163, 61, 0.4);
}

.bloom-upsell-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(155deg, var(--bloom-marigold), var(--bloom-coral-deep));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.bloom-upsell p {
    margin: 0;
    font-size: 14px;
    flex: 1;
    min-width: 180px;
}

.bloom-upsell .chev {
    color: rgba(245, 247, 240, 0.6);
    font-size: 18px;
}

/* duration label (top-left) shown instead of the lock icon on free-preview cards */
.bloom-card-duration {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(14, 26, 41, 0.65);
    color: #F5F7F0;
    font-size: 10px;
    font-weight: 700;
}

/* "New" pill (top-right) */
.bloom-card-new {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #fff;
    color: var(--bloom-teal-deep);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ---------- footer ---------- */

.bloom-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 22px;
    margin-top: 10px;
}

.bloom-footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.bloom-footer .bloom-logo {
    color: var(--bloom-marigold);
    font-size: 18px;
}

.bloom-footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.bloom-footer-links a {
    color: rgba(245, 247, 240, 0.65);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.bloom-footer-links a:hover {
    color: #fff;
}

.bloom-footer-copy {
    font-size: 12px;
    color: rgba(245, 247, 240, 0.45);
    margin: 0;
}

/* ===================================================================
   Profile page
=================================================================== */

.bloom-profile-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    padding: 26px;
    margin-bottom: 28px;
}

/* The avatar is wrapped in a <form> (for the photo upload), which
   would otherwise become the flex child instead of the avatar itself —
   display:contents makes the form invisible to layout entirely while
   keeping it fully functional, so .bloom-profile-avatar behaves as a
   direct flex child of .bloom-profile-header again, exactly as before
   the upload feature was added. */
.bloom-profile-header form {
    display: contents;
}

.bloom-profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(155deg, var(--bloom-teal), var(--bloom-coral-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    position: relative;
}

.bloom-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.bloom-profile-avatar--editable {
    cursor: pointer;
    display: block;
    transition: opacity 0.15s ease;
}

.bloom-profile-avatar--editable:hover {
    opacity: 0.88;
}

.bloom-profile-avatar-edit {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bloom-marigold);
    color: var(--bloom-teal-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 2px solid var(--bloom-teal-deep);
}

.bloom-profile-meta {
    flex: 1;
    min-width: 180px;
}

.bloom-profile-name {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(20px, 3vw, 26px);
    color: #F5F7F0;
    margin: 0 0 4px;
}

.bloom-profile-email {
    font-size: 13px;
    color: rgba(245, 247, 240, 0.6);
    margin: 0 0 6px;
}

.bloom-profile-since {
    font-size: 12px;
    color: rgba(245, 247, 240, 0.45);
}

.bloom-profile-header .bloom-btn-outline {
    flex-shrink: 0;
}

.bloom-panel {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    padding: 24px;
    margin-bottom: 24px;
}

.bloom-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.bloom-panel-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bloom-marigold);
    font-size: 16px;
    flex-shrink: 0;
}

.bloom-panel-head h2 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 19px;
    color: #F5F7F0;
    margin: 0;
}

.bloom-panel-sub {
    font-size: 13px;
    color: rgba(245, 247, 240, 0.55);
    margin: -12px 0 20px 48px;
}

.bloom-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 560px) {
    .bloom-form-grid {
        grid-template-columns: 1fr;
    }
}

.bloom-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.bloom-field label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(245, 247, 240, 0.55);
    font-weight: 600;
}

.bloom-field input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 14px;
    color: #F5F7F0;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease;
}

.bloom-field input:focus {
    border-color: var(--bloom-marigold);
}

.bloom-field input::placeholder {
    color: rgba(245, 247, 240, 0.35);
}

.bloom-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.bloom-toggle-row:first-of-type {
    border-top: none;
    padding-top: 4px;
}

.bloom-toggle-text {
    flex: 1;
    min-width: 0;
}

.bloom-toggle-text .title {
    font-size: 14px;
    font-weight: 600;
    color: #F5F7F0;
}

.bloom-toggle-text .desc {
    font-size: 12px;
    color: rgba(245, 247, 240, 0.5);
    margin-top: 2px;
}

.bloom-toggle {
    position: relative;
    width: 44px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

.bloom-toggle input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.bloom-toggle .track {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    transition: background 0.2s ease;
}

.bloom-toggle .thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}

.bloom-toggle input:checked+.track {
    background: var(--bloom-marigold);
}

.bloom-toggle input:checked+.track .thumb {
    transform: translateX(18px);
}

.bloom-panel-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.bloom-panel-actions.spread {
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* subscription */
.bloom-plan-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(232, 163, 61, 0.08);
    border: 1px solid rgba(232, 163, 61, 0.3);
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.bloom-plan-name {
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    color: #F5F7F0;
    margin: 0 0 4px;
}

.bloom-plan-desc {
    font-size: 13px;
    color: rgba(245, 247, 240, 0.6);
}

.bloom-plan-badge {
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(245, 247, 240, 0.8);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bloom-feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 4px 0 20px;
}

.bloom-feature-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(245, 247, 240, 0.8);
}

.bloom-feature-row i {
    color: var(--bloom-marigold);
}

/* logout */
.bloom-panel.danger {
    border-color: rgba(217, 122, 90, 0.35);
}

.bloom-btn-danger {
    padding: 12px 22px;
    border-radius: 14px;
    border: 1px solid rgba(217, 122, 90, 0.4);
    background: rgba(217, 122, 90, 0.12);
    color: #F3B9A9;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.bloom-btn-danger:hover {
    background: rgba(217, 122, 90, 0.2);
}

.bloom-btn-danger:active {
    transform: scale(0.97);
}

/* ===================================================================
   Audio Player page (player-bloom.php)
=================================================================== */

/* ===================================================================
   Audio Player — shared by player-bloom.php and the in-page overlay
   on home.php (#nowPlayingOverlay)
=================================================================== */

.now-playing-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(6, 11, 18, 0.88);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(16px, 4vw, 40px) 16px 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.now-playing-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.now-playing-panel {
    animation: bloomRise 0.35s ease both;
}

.now-playing-overlay .player-wrap {
    min-height: auto;
}

.player-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 40px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.player-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.player-header .player-back {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #F5F7F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    flex-shrink: 0;
    transition: border-color 0.15s ease;
}

.player-header .player-back:hover {
    border-color: rgba(232, 163, 61, 0.5);
}

.player-header h1 {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 18px;
    color: #F5F7F0;
    margin: 0;
}

.player-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    flex: 1;
}

@media (min-width: 900px) {
    .player-layout {
        grid-template-columns: 420px 1fr;
        align-items: start;
    }
}

.player-card {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 28px;
    padding: clamp(20px, 4vw, 32px);
    text-align: center;
}

.player-cover {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1/1;
    margin: 0 auto 22px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.player-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bloom-marigold);
    font-weight: 700;
    margin: 0 0 8px;
}

.player-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(22px, 3vw, 28px);
    color: #F5F7F0;
    margin: 0 0 24px;
    line-height: 1.25;
}

.player-scrubber {
    margin-bottom: 22px;
}

.player-bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    position: relative;
    margin-bottom: 8px;
}

.player-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: var(--bloom-marigold);
    position: relative;
}

.player-bar-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.player-time {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(245, 247, 240, 0.55);
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.player-btn-skip {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #F5F7F0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.player-btn-skip:hover {
    background: rgba(255, 255, 255, 0.14);
}

.player-btn-skip:active {
    transform: scale(0.92);
}

.player-btn-play {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: none;
    background: var(--bloom-marigold);
    color: var(--bloom-teal-deep);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(232, 163, 61, 0.35);
    transition: transform 0.15s ease;
}

.player-btn-play:hover {
    transform: scale(1.05);
}

.player-btn-play:active {
    transform: scale(0.94);
}

.player-queue-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.player-queue-head h2 {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 20px;
    color: #F5F7F0;
    margin: 0;
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.queue-item:hover {
    background: rgba(255, 255, 255, 0.07);
}

.queue-item.is-current {
    border-color: rgba(232, 163, 61, 0.4);
    background: rgba(232, 163, 61, 0.08);
}

.queue-item-art {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.queue-item-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.queue-item-meta {
    flex: 1;
    min-width: 0;
}

.queue-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #F5F7F0;
}

.queue-item-sub {
    font-size: 12px;
    color: rgba(245, 247, 240, 0.55);
    margin-top: 2px;
}

.queue-item-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: rgba(245, 247, 240, 0.7);
    background: rgba(255, 255, 255, 0.06);
}

.queue-item.is-current .queue-item-icon {
    background: var(--bloom-marigold);
    color: var(--bloom-teal-deep);
}

@media (max-width: 480px) {
    .player-controls {
        gap: 16px;
    }

    .player-btn-play {
        width: 60px;
        height: 60px;
        font-size: 19px;
    }
}

/* ---------- rails ---------- */

.bloom-rail {
    margin-bottom: 34px;
    animation: bloomRise 0.6s ease both;
    scroll-margin-top: 110px;
}

.bloom-rail:nth-of-type(1) {
    animation-delay: 0.05s;
}

.bloom-rail:nth-of-type(2) {
    animation-delay: 0.15s;
}

.bloom-rail:nth-of-type(3) {
    animation-delay: 0.25s;
}

.bloom-rail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.bloom-rail-head h2 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 22px;
    margin: 0;
    color: #F5F7F0;
}

.bloom-seeall {
    font-size: 13px;
    font-weight: 700;
    color: var(--bloom-marigold);
    text-decoration: none;
}

.bloom-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.bloom-track::-webkit-scrollbar {
    display: none;
}

.bloom-card {
    flex: 0 0 190px;
    scroll-snap-align: start;
    text-decoration: none;
    color: var(--bloom-ink);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bloom-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.4);
}

/* When a .bloom-card sits inside a Bootstrap grid column (col-6/col-md-3,
   used by meditation.php's "All Meditations" grid) instead of the usual
   horizontal-scroll rail, its flex:0 0 190px above has no effect (that
   only applies inside a flex container) — but this makes it explicit
   and guaranteed, rather than relying on the block-default behavior,
   so title/subtitle ellipsis always has a real, reliable width to
   truncate against. */
[class*="col-"]>.bloom-card {
    width: 100%;
    max-width: 100%;
    flex: none;
}

.bloom-card-bar {
    height: 6px;
    width: 36px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.bloom-card-thumb {
    position: relative;
    width: 100%;
    height: 110px;
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.bloom-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.bloom-card:hover .bloom-card-thumb img {
    transform: scale(1.06);
}

.bloom-card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
}

.bloom-lock {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(14, 26, 41, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.bloom-card-title {
    display: block;
    max-width: 100%;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #F5F7F0;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.bloom-card-sub {
    display: block;
    max-width: 100%;
    font-size: 12px;
    color: rgba(245, 247, 240, 0.6);
    margin-top: 2px;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* ---------- play button + progress (real audio preview) ---------- */

.bloom-play-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(14, 26, 41, 0.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    backdrop-filter: blur(3px);
    transition: background 0.2s ease, transform 0.15s ease;
    z-index: 2;
}

.bloom-play-btn:hover {
    background: var(--bloom-marigold);
    color: var(--bloom-teal-deep);
}

.bloom-play-btn:active {
    transform: scale(0.92);
}

.bloom-play-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.bloom-play-btn:disabled:hover {
    background: rgba(14, 26, 41, 0.65);
    color: #fff;
}

.bloom-card--unavailable .bloom-card-thumb {
    opacity: 0.7;
}

.bloom-card--unavailable:hover {
    transform: none;
}

.bloom-card.is-playing .bloom-play-btn {
    background: var(--bloom-marigold);
    color: var(--bloom-teal-deep);
}

.bloom-eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.bloom-eq span {
    width: 3px;
    background: var(--bloom-teal-deep);
    border-radius: 1px;
    animation: bloomEq 0.9s ease-in-out infinite;
}

.bloom-eq span:nth-child(1) {
    height: 40%;
    animation-delay: 0s;
}

.bloom-eq span:nth-child(2) {
    height: 100%;
    animation-delay: 0.15s;
}

.bloom-eq span:nth-child(3) {
    height: 65%;
    animation-delay: 0.3s;
}

@keyframes bloomEq {

    0%,
    100% {
        transform: scaleY(0.4);
    }

    50% {
        transform: scaleY(1);
    }
}

.bloom-progress {
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
    margin-top: 2px;
}

.bloom-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--bloom-marigold);
    border-radius: 2px;
    transition: width 0.15s linear;
}

/* ---------- mobile floating nav ---------- */

.bloom-mobile-nav {
    display: none;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 5;
    justify-content: space-around;
    align-items: center;
    padding: 12px 8px;
    background: var(--bloom-card);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.bloom-mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--bloom-ink-dim);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
}

.bloom-mobile-nav a.active {
    color: var(--bloom-teal);
}

.bloom-mobile-nav .m-icon {
    font-size: 18px;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
    .bloom-shell {
        padding: 16px;
    }

    .bloom-sidebar {
        display: none;
    }

    .bloom-main {
        padding-bottom: 100px;
    }

    .bloom-mobile-nav {
        display: flex;
    }
}

@media (max-width: 560px) {
    .bloom-card {
        flex-basis: 150px;
    }

    .bloom-card-thumb {
        height: 90px;
    }

    .bloom-hero {
        border-radius: 22px;
    }

    .bloom-stats {
        gap: 8px;
    }

    .bloom-stat {
        padding: 12px 8px;
    }

    .bloom-continue {
        flex-wrap: wrap;
    }

    .bloom-continue-play {
        order: 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bloom-blob {
        animation: none;
    }

    .bloom-hero,
    .bloom-rail {
        animation: none;
    }

    .bloom-eq span {
        animation: none;
    }

    .bloom-card {
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ===================================================================
   Mobile fixes — new home features (activity chart, quote, mood
   check-in, explore grid) and the Profile page
=================================================================== */

@media (max-width: 560px) {

    /* weekly activity */
    .bloom-activity {
        padding: 16px;
    }

    .bloom-activity-head {
        margin-bottom: 14px;
    }

    .bloom-activity-bars {
        height: 70px;
        gap: 5px;
    }

    .bloom-bar-label {
        font-size: 10px;
    }

    /* daily inspiration */
    .bloom-quote-card {
        padding: 18px 16px;
    }

    .bloom-quote-mark {
        font-size: 46px;
        top: -2px;
        left: 8px;
    }

    .bloom-quote-text {
        font-size: 15px;
    }

    /* mood check-in */
    .bloom-mood-card {
        padding: 16px;
    }

    .bloom-mood-options {
        gap: 8px;
    }

    .bloom-mood-btn {
        padding: 9px 13px;
        font-size: 12px;
    }

    .bloom-mood-btn i {
        font-size: 14px;
    }

    /* explore grid */
    .bloom-explore-tile {
        padding: 16px 8px;
    }

    .bloom-explore-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .bloom-explore-tile span {
        font-size: 12px;
    }

    /* profile header */
    .bloom-profile-header {
        padding: 18px;
        gap: 14px;
    }

    .bloom-profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .bloom-profile-header .bloom-btn-outline {
        flex: 1 1 100%;
        text-align: center;
    }

    /* profile panels */
    .bloom-panel {
        padding: 18px;
    }

    .bloom-panel-sub {
        margin-left: 0;
    }

    .bloom-panel-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .bloom-panel-actions:not(.spread) {
        justify-content: stretch;
    }

    .bloom-panel-actions:not(.spread) .bloom-btn-pill {
        width: 100%;
        text-align: center;
    }

    .bloom-panel-actions.spread {
        flex-direction: column;
        align-items: stretch;
    }

    .bloom-panel-actions.spread .bloom-btn-pill {
        width: 100%;
        text-align: center;
        order: 2;
    }

    .bloom-panel-actions.spread a:not(.bloom-btn-pill) {
        text-align: center;
        order: 1;
    }

    .bloom-plan-card {
        padding: 16px;
    }

    .bloom-toggle-row {
        gap: 12px;
    }
}

@media (max-width: 420px) {
    .bloom-activity-bars {
        gap: 3px;
    }

    .bloom-bar {
        max-width: 20px;
    }

    .bloom-explore-grid {
        gap: 10px;
    }

    .bloom-profile-avatar {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
}