/* ============================================================
   MOBILE QUICK-ACCESS APP GRID
   Shows all major sections as tappable app-style cards on the
   home (New Releases) tab — mobile only. Desktop is untouched.
   ============================================================ */

.csAppGrid {
    display: none; /* hidden on desktop by default */
}

.csHomeWidgets {
    display: none; /* hidden on desktop by default */
}

.csHeroCarousel {
    display: none; /* hidden on desktop by default */
}

@media (max-width: 768px) {

    /* Home tab default (mobile): show ONLY the explore grid.
       "New Releases" heading + songs list stay hidden until the
       New Releases card is tapped. */
    #releases .cs-releases-detail {
        display: none;
    }

    #releases.cs-drill-active .cs-releases-detail {
        display: block;
    }

    #releases.cs-drill-active .csAppGrid {
        display: none;
    }

    #releases.cs-drill-active .csHomeWidgets {
        display: none;
    }

    #releases.cs-drill-active .csHeroCarousel {
        display: none;
    }

    .csHeroCarousel {
        display: block;
        margin: 0 0 1.5rem;
    }

    .csHomeWidgets {
        display: block;
        margin: 0 0 1.5rem;
    }

    .csHomeWidgets-title {
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.45);
        margin: 0 0 0.7rem;
        padding: 0 0.1rem;
    }

    /* Daily + Weekly Challenge — ONE unified box, Daily on top and
       Weekly below it. No changes needed inside dailyChallenge.js /
       communityDiscover.js: their cards are simply relocated in here.
       We strip each card's own border/background/shadow (scoped to
       this wrapper only — Practice/Community tabs keep their normal
       look) and apply a single border/background to the outer box,
       with a divider line between the two. */
    .csChallengeBox {
        background: linear-gradient(135deg,
            rgba(30,10,60,0.97) 0%,
            rgba(20,5,45,0.98) 60%,
            rgba(28,8,50,0.97) 100%);
        border: 1.5px solid rgba(217,70,239,0.4);
        border-radius: 18px;
        box-shadow:
            0 0 0 1px rgba(168,85,247,0.1),
            0 8px 36px rgba(168,85,247,0.18),
            0 2px 6px rgba(0,0,0,0.35);
        margin: 0 0 1.5rem;
        overflow: hidden;
    }

    .csChallengeBox .dc-card,
    .csChallengeBox .cm-challenge-card {
        background: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 0;
    }

    .csChallengeBox .cm-challenge-card {
        border-top: 1px solid rgba(217,70,239,0.22);
    }

    /* Learn Songs — true news-ticker style carousel, same mechanism as
       the header .news-ticker (see layout.css / animations.css):
       .csLearnSongsSlider is the masked "window" (overflow hidden),
       .csLsTrack is the moving track (CSS animation: tickerScroll,
       set by home-dashboard.js), and each .csLsSet is one copy of the
       full song set — rendered twice so translateX(-50%) loops
       seamlessly. No scrolling/swiping here on purpose; it's a marquee. */
    .csLearnSongsSlider {
        overflow: hidden;
        margin: 0 0 1.5rem;
        padding: 0 0 0.35rem;
        cursor: grab;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    }

    .csLearnSongsSlider:active {
        cursor: grabbing;
    }

    .csLsTrack {
        display: flex;
        flex-wrap: nowrap;
        will-change: transform;
    }

    .csLsSet {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.7rem;
        padding-right: 0.7rem; /* must equal gap, so the seam matches spacing between cards */
        flex-shrink: 0;
    }

    .csLsCard {
        flex: 0 0 140px;
        width: 140px;
        min-width: 0;
        border-radius: 14px;
        overflow: hidden;
        background: rgba(217,70,239,0.07);
        border: 1px solid rgba(217,70,239,0.16);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.15s ease, background 0.15s ease;
    }

    .csLsCard:active {
        transform: scale(0.96);
        background: rgba(217,70,239,0.13);
    }

    .csLsThumbWrap {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 10;
        background: rgba(0,0,0,0.3);
        overflow: hidden;
    }

    .csLsThumb {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .csLsCardBody {
        padding: 0.55rem 0.65rem 0.7rem;
    }

    .csLsCardTitle {
        font-size: 0.78rem;
        font-weight: 700;
        color: rgba(255,255,255,0.92);
        margin: 0 0 0.15rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .csLsCardArtist {
        font-size: 0.68rem;
        color: rgba(196,181,212,0.6);
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ============================================================
       HOME RIYAAZ WIDGET — standalone sargam scale trainer built by
       js/home-riyaaz.js. Purple/magenta palette matches the rest of
       the dashboard; root-key/scale rows scroll horizontally like a
       chip list so all 12 keys / 8 scales fit without wrapping.
       ============================================================ */
    .csRiyaaz {
        background: linear-gradient(135deg,
            rgba(30,10,60,0.97) 0%,
            rgba(20,5,45,0.98) 60%,
            rgba(28,8,50,0.97) 100%);
        border: 1.5px solid rgba(217,70,239,0.4);
        border-radius: 18px;
        box-shadow:
            0 0 0 1px rgba(168,85,247,0.1),
            0 8px 36px rgba(168,85,247,0.18),
            0 2px 6px rgba(0,0,0,0.35);
        margin: 0 0 1.5rem;
        padding: 1rem 0.9rem 1.1rem;
    }

    .csRy-display {
        text-align: center;
        margin: 0 0 0.8rem;
    }

    .csRy-note {
        font-family: 'Cinzel', serif;
        font-size: 2rem;
        font-weight: 700;
        line-height: 1.1;
        background: linear-gradient(135deg, #d946ef, #a855f7, #f59e0b);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .csRy-sub {
        font-size: 0.68rem;
        color: rgba(196,181,212,0.6);
        margin-top: 0.15rem;
    }

    .csRy-label {
        font-size: 0.62rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.4);
        margin: 0 0 0.4rem;
    }

    .csRy-row {
        display: flex;
        gap: 0.4rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.5rem;
        margin-bottom: 0.6rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .csRy-row::-webkit-scrollbar {
        display: none;
    }

    .csRy-keyBtn,
    .csRy-scaleBtn {
        flex: 0 0 auto;
        background: rgba(217,70,239,0.08);
        border: 1px solid rgba(217,70,239,0.22);
        color: rgba(240,231,255,0.85);
        border-radius: 10px;
        padding: 0.4rem 0.7rem;
        font-size: 0.72rem;
        font-weight: 600;
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
    }

    .csRy-keyBtn.active,
    .csRy-scaleBtn.active {
        background: linear-gradient(135deg, #d946ef, #a855f7);
        border-color: transparent;
        color: #fff;
    }

    .csRy-controls {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        margin-top: 0.2rem;
    }

    .csRy-dirGroup {
        display: flex;
        gap: 0.4rem;
    }

    .csRy-dirBtn {
        flex: 1;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(217,70,239,0.22);
        color: rgba(240,231,255,0.8);
        border-radius: 10px;
        padding: 0.4rem 0.3rem;
        font-size: 0.68rem;
        font-weight: 600;
        -webkit-tap-highlight-color: transparent;
    }

    .csRy-dirBtn.active {
        background: rgba(217,70,239,0.22);
        border-color: rgba(217,70,239,0.6);
        color: #fff;
    }

    .csRy-tempoGroup {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .csRy-tempoLbl {
        font-size: 0.65rem;
        color: rgba(196,181,212,0.6);
        flex-shrink: 0;
    }

    .csRy-tempoGroup input[type="range"] {
        flex: 1;
        accent-color: #d946ef;
    }

    .csRy-tempoVal {
        font-size: 0.68rem;
        font-weight: 700;
        color: #f59e0b;
        flex-shrink: 0;
        min-width: 1.6rem;
        text-align: right;
    }

    .csRy-octaveGroup {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .csRy-octBtn {
        flex: 0 0 auto;
        width: 1.9rem;
        height: 1.9rem;
        background: rgba(217,70,239,0.08);
        border: 1px solid rgba(217,70,239,0.22);
        color: rgba(240,231,255,0.9);
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1;
        -webkit-tap-highlight-color: transparent;
    }

    .csRy-octBtn:disabled {
        opacity: 0.35;
    }

    .csRy-octVal {
        font-size: 0.72rem;
        font-weight: 700;
        color: #f59e0b;
        min-width: 1.1rem;
        text-align: center;
    }

    .csRy-playBtn {
        background: linear-gradient(135deg, #d946ef, #a855f7);
        border: none;
        color: #fff;
        border-radius: 12px;
        padding: 0.6rem;
        font-size: 0.8rem;
        font-weight: 700;
        -webkit-tap-highlight-color: transparent;
    }

    .csRy-playBtn.csRy-playing {
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(217,70,239,0.4);
    }

    .csRy-dots {
        display: flex;
        flex-wrap: wrap;
        gap: 0.3rem;
        margin-top: 0.8rem;
        justify-content: center;
    }

    .csRy-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255,255,255,0.12);
    }

    .csRy-dot.root {
        background: rgba(245,158,11,0.35);
    }

    .csRy-dot.active {
        background: #d946ef;
        box-shadow: 0 0 6px rgba(217,70,239,0.8);
    }

    /* ============================================================
       HOME BLOG SLIDER — mirrors the Blog page's #featuredSlider
       (see css/blog.css), rebuilt here with its own class names
       since blog.css's rules are scoped to #tkModal-blog only.
       Single-column stacked card (thumb on top, body below),
       matching the ≤520px look of the blog page's own slider.
       ============================================================ */
    .csHomeBlogSlider {
        position: relative;
        margin: 0 0 1.5rem;
    }

    .chbs-track {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        border-radius: 16px;
        overflow: hidden;
        border: 1.5px solid rgba(217,70,239,0.3);
        background: rgba(30,10,60,0.6);
    }

    .chbs-slide {
        grid-area: 1 / 1;
        display: flex;
        flex-direction: column;
        opacity: 0;
        pointer-events: none;
        transition: opacity 380ms ease;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        text-decoration: none;
    }

    .chbs-slide.is-active {
        opacity: 1;
        pointer-events: auto;
        z-index: 1;
    }

    .chbs-thumb {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 7;
        max-height: 180px;
        background: rgba(0,0,0,0.3);
        overflow: hidden;
    }

    .chbs-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #14101f;
        display: block;
    }

    .chbs-thumb-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, transparent 60%, rgba(14,12,28,0.6) 100%);
        pointer-events: none;
    }

    .chbs-read-time {
        position: absolute;
        bottom: 0.5rem;
        right: 0.5rem;
        background: rgba(0,0,0,0.78);
        backdrop-filter: blur(8px);
        color: rgba(255,255,255,0.9);
        font-size: 0.62rem;
        padding: 4px 9px;
        border-radius: 999px;
        letter-spacing: 0.05em;
    }

    .chbs-body {
        padding: 0.9rem 1rem 1.05rem;
    }

    .chbs-tag {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        font-size: 0.62rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        padding: 4px 11px;
        border-radius: 999px;
        margin-bottom: 0.55rem;
        width: fit-content;
        background: rgba(192,132,252,0.12);
        color: #c084fc;
        border: 1px solid rgba(192,132,252,0.25);
    }

    .chbs-title {
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.32;
        letter-spacing: -0.01em;
        margin: 0 0 0.45rem;
        color: rgba(255,255,255,0.95);
    }

    .chbs-excerpt {
        font-size: 0.78rem;
        line-height: 1.6;
        color: rgba(196,181,212,0.65);
        margin: 0 0 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .chbs-post-meta {
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

    .chbs-avatar {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(192,132,252,0.6), rgba(192,132,252,0.2));
        border: 1px solid rgba(192,132,252,0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.78rem;
        flex-shrink: 0;
    }

    .chbs-meta-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .chbs-author {
        font-size: 0.76rem;
        font-weight: 500;
        color: rgba(255,255,255,0.92);
        letter-spacing: 0.01em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .chbs-date {
        font-size: 0.64rem;
        color: rgba(237,233,246,0.4);
        letter-spacing: 0.03em;
        line-height: 1;
    }

    .chbs-read-btn {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 8px 14px;
        border-radius: 999px;
        background: rgba(192,132,252,0.18);
        border: 1px solid rgba(192,132,252,0.3);
        color: #c084fc;
        font-size: 0.74rem;
        font-weight: 500;
        cursor: pointer;
        white-space: nowrap;
        flex-shrink: 0;
        transition: background 200ms ease;
    }
    .chbs-read-btn:active {
        background: rgba(192,132,252,0.3);
    }

    .chbs-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        padding: 0.6rem 0 0;
    }

    .chbs-dots {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .chbs-dot {
        display: block;
        width: 6px;
        height: 6px;
        border-radius: 999px;
        background: rgba(217,70,239,0.25);
        border: none;
        cursor: pointer;
        padding: 0;
        opacity: 0.6;
        transition: width 240ms ease, background 240ms ease, opacity 240ms ease;
        flex-shrink: 0;
    }

    .chbs-dot.is-active {
        width: 20px;
        background: #c084fc;
        opacity: 1;
    }

    .chbs-arrow {
        display: none; /* hidden on mobile — swipe + dots instead, matches blog page's ≤520px behaviour */
    }

    .csAppGrid {
        display: block;
        margin: 0 0 1.75rem;
    }

    .csAppGrid-title {
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.45);
        margin: 0 0 0.7rem;
        padding: 0 0.1rem;
    }

    .csAppGrid-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .csAppGrid-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        text-decoration: none;
        padding: 0.75rem 0.25rem 0.6rem;
        border-radius: 16px;
        background: linear-gradient(160deg, rgba(217,70,239,0.14), rgba(168,85,247,0.08));
        border: 1px solid rgba(217,70,239,0.18);
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.15s ease, background 0.15s ease;
    }

    .csAppGrid-item:active {
        transform: scale(0.94);
        background: linear-gradient(160deg, rgba(217,70,239,0.22), rgba(168,85,247,0.14));
    }

    .csAppGrid-icon {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        border-radius: 12px;
        background: rgba(255,255,255,0.06);
        line-height: 1;
    }

    .csAppGrid-icon img {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

    .csAppGrid-label {
        font-size: 0.66rem;
        font-weight: 500;
        color: rgba(255,255,255,0.85);
        text-align: center;
        line-height: 1.2;
        letter-spacing: 0.01em;
    }
}

/* Extra-small phones — tighten up slightly */
@media (max-width: 360px) {
    .csAppGrid-grid {
        gap: 0.45rem;
    }
    .csAppGrid-icon {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }
    .csAppGrid-label {
        font-size: 0.6rem;
    }
}

/* ============================================================
   HERO NEW-RELEASES CAROUSEL (mobile only)
   Netflix/poster-style banner: full-bleed thumbnail + dark
   gradient overlay + centered title/tags/CTAs, with left-right
   arrow navigation. Built by js/heroCarousel.js from
   window._csReleases (already newest-first).
   ============================================================ */
@media (max-width: 768px) {

    .csHero-track {
        position: relative;
        width: 100%;
        aspect-ratio: 3 / 4;
        max-height: 420px;
        border-radius: 20px;
        overflow: hidden;
        background: #150a26;
        box-shadow: 0 10px 40px rgba(0,0,0,0.45);
    }

    .csHero-slide {
        position: absolute;
        inset: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.45s ease;
    }

    .csHero-slide.csHero-slide--active {
        opacity: 1;
        visibility: visible;
    }

    /* Two-layer thumbnail: YouTube maxres thumbnails are 16:9, the card
       is a 3:4 portrait. A straight object-fit:cover crop sliced through
       baked-in title text on the thumbnail (e.g. "I AM PHENOMENAL").
       Fix: the full un-cropped image sits on top, anchored to the top of
       the card (object-fit:contain + object-position:top) so nothing is
       ever cut off — like the reference "Backrooms" card, complete image
       up top, fading into the text area below. A blurred, brighter copy
       of the same image fills the rest of the frame behind it, so the
       transition reads as a soft fade rather than a hard edge or a flat
       blank gap. */
    .csHero-bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .csHero-bg--blur {
        object-fit: cover;
        object-position: top;
        filter: blur(22px) brightness(0.78) saturate(1.1);
        transform: scale(1.15);
    }

    .csHero-bg--sharp {
        object-fit: contain;
        object-position: top;
        -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 22%, transparent 41%);
        mask-image: linear-gradient(180deg, #000 0%, #000 22%, transparent 41%);
    }

    /* Admin override: release.thumbnail_fit === 'fill' — edge-to-edge,
       no letterbox, no fade mask (opts out of the "safe by default"
       contain behaviour above for thumbnails that look better filled). */
    .csHero-bg--fill {
        object-fit: cover !important;
        object-position: center 30% !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    /* Dark overlay — heavier toward the bottom so title/tags/CTAs
       stay legible over any thumbnail. */
    .csHero-overlay {
        position: absolute;
        inset: 0;
        background:
            linear-gradient(180deg,
                rgba(10,5,20,0.12) 0%,
                rgba(10,5,20,0.22) 28%,
                rgba(10,5,20,0.6) 48%,
                rgba(10,5,20,0.88) 75%,
                rgba(8,4,18,0.97) 100%);
    }

    .csHero-content {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 1.4rem 1.2rem 1.6rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.65rem;
    }

    .csHero-title {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 1.5rem;
        font-weight: 800;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: #fff;
        text-shadow: 0 2px 12px rgba(0,0,0,0.6);
        margin: 0;
        line-height: 1.15;
    }

    .csHero-artist {
        font-family: 'Outfit', sans-serif;
        font-size: 0.85rem;
        color: rgba(255,255,255,0.7);
        margin: -0.3rem 0 0;
    }

    .csHero-tags {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .csHero-tag {
        font-family: 'Outfit', sans-serif;
        font-size: 0.72rem;
        font-weight: 600;
        color: rgba(255,255,255,0.85);
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.25);
        border-radius: 50px;
        padding: 0.22rem 0.7rem;
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        backdrop-filter: blur(4px);
    }

    .csHero-actions {
        display: flex;
        gap: 0.7rem;
        margin-top: 0.3rem;
        width: 100%;
        justify-content: center;
    }

    .csHero-btn {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 0.85rem;
        font-weight: 700;
        border-radius: 50px;
        padding: 0.65rem 1.3rem;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.15s ease, background 0.15s ease;
        border: none;
    }

    .csHero-btn:active {
        transform: scale(0.96);
    }

    .csHero-btn--primary {
        background: linear-gradient(135deg, #d946ef, #a855f7);
        color: #fff;
        box-shadow: 0 4px 20px rgba(217,70,239,0.45);
    }

    .csHero-btn--outline {
        background: rgba(255,255,255,0.06);
        color: #fff;
        border: 1.5px solid rgba(255,255,255,0.55);
    }

    .csHero-btn--outline.csHero-btn--faved {
        background: rgba(217,70,239,0.18);
        border-color: #d946ef;
        color: #f0abfc;
    }

    /* Left / right arrow nav */
    .csHero-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: none;
        background: rgba(10,5,20,0.4);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 3;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.15s ease;
    }

    .csHero-arrow:active {
        background: rgba(217,70,239,0.55);
    }

    .csHero-arrow--prev { left: 0.7rem; }
    .csHero-arrow--next { right: 0.7rem; }

    /* Dot pagination */
    .csHero-dots {
        position: absolute;
        top: 0.9rem;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        gap: 0.35rem;
        z-index: 3;
    }

    .csHero-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255,255,255,0.35);
        transition: background 0.2s ease, width 0.2s ease;
    }

    .csHero-dot--active {
        background: #d946ef;
        width: 16px;
        border-radius: 3px;
    }
}

/* ============================================================
   LOCKED NAV ITEMS — "Coming Soon" visual hint (e.g. Courses).
   Works for both the sidebar/hamburger drawer link and the
   mobile app-grid card. These are dimmed + badged but still
   fully clickable/navigable — the actual lock is the overlay
   inside #learning (see bottom of this file).
   ============================================================ */
.nav-link--locked {
    opacity: 0.5;
}

.nav-link--locked .csLockBadge {
    margin-left: auto;
}

.csAppGrid-item--locked {
    opacity: 0.55;
    position: relative;
}

.csAppGrid-item--locked:active {
    transform: none !important;
}

.csAppGrid-item--locked .csLockBadge {
    position: absolute;
    top: 6px;
    right: 6px;
}

.csLockBadge {
    display: inline-flex;
    align-items: center;
    font-size: 0.52rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #d946ef);
    padding: 0.14rem 0.4rem;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.4;
}

.csComingSoonToast {
    display: none;
}

/* ============================================================
   COURSES "COMING SOON" OVERLAY
   Sits on top of the entire #learning tab-section (cards + SEO
   block) so real visitors see a locked state while the tab
   still opens normally and the markup underneath stays crawlable.
   Delete this whole block + the two rules above (nav-link--locked,
   csAppGrid-item--locked, csLockBadge stay fine as-is) once
   Courses ships — plus remove the .csCourseLock div in index.html.
   ============================================================ */
#learning.tab-section {
    position: relative;
    overflow: hidden;
}

.csCourseLock {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.25rem;
    background: rgba(12, 5, 18, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.csCourseLock-icon {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    filter: drop-shadow(0 0 12px rgba(217,70,239,0.5));
}

.csCourseLock-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f59e0b, #d946ef, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.csCourseLock-sub {
    margin: 0 0 1.2rem;
    max-width: 360px;
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
}

.csCourseLock-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.csCourseLock-btn {
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #d946ef, #a855f7);
    color: #fff;
    -webkit-tap-highlight-color: transparent;
}

.csCourseLock-btn--ghost {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(217,70,239,0.3);
}
