:root {
    --bg-color: #FAF9F6;
    --border-color: #21201E;
    --text-color: #21201E;
    --grey-1: #BFBFBF;
    --grey-2: #BFBFBF;
    --grey-3: #BFBFBF;
    --grey-4: #BFBFBF;
    --black: #21201E;
    --white: #FAF9F6;
    --border-width: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 200vh;
    overscroll-behavior-y: none;
    overflow-anchor: none;
    /* Allow scrolling for the animation */
}

html {
    overscroll-behavior-y: none;
}

/* Landing Page / Hero Section */
.hero-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    pointer-events: none;
    /* Let clicks pass through if needed, or handle in JS */
}

.stacked-container {
    position: relative;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stacked-text {
    position: absolute;
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 125, "wght" 900;
    font-size: clamp(3rem, 15vw, 10rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
    will-change: transform, opacity;
}

.text-top {
    z-index: 3;
}

.text-middle {
    z-index: 2;
}

.text-bottom {
    z-index: 1;
}

.hero-border {
    position: absolute;
    border: 3px solid var(--border-color);
    border-radius: 500px;
    width: 200vw;
    height: 100vh;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    /* Above text during move */
    transition: opacity 0.2s ease;
    will-change: transform, width, height, opacity;
}

.scroll-arrow {
    position: absolute;
    bottom: 5vh;
    font-size: 2rem;
    animation: bounce 2s infinite;
    transition: opacity 0.25s ease;
}

body.player-active .scroll-arrow {
    opacity: 0 !important;
    pointer-events: none;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Typography */
h2.title {
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 125, "wght" 900;
    font-size: clamp(3rem, 11vw, 7.5rem);
    /* Increased size */
    text-transform: lowercase;
    /* Back to lowercase to match original design */
    letter-spacing: -0.02em;
    line-height: 0.8;
    /* Even tighter to push characters down */
    margin-bottom: -0.12em; /* Original clean sitting position */
    user-select: none;
}


/* Navigation */
.top-nav {
    --c: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: calc(3rem - var(--c) * 2rem);
    padding-right: 2rem;
    padding-bottom: calc(1.5rem - var(--c) * 0.5rem);
    padding-left: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    /* Hidden initially */
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.top-nav.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-pill.brand {
    font-size: 1rem;
    visibility: hidden;
    /* Hidden until the animation finishes */
}

.nav-pill {
    border: solid var(--border-color);
    border-width: calc(3px - var(--c, 0) * 1px);
    border-radius: 50px;
    padding: calc(0.4rem - var(--c, 0) * 0.1rem) calc(1.2rem - var(--c, 0) * 0.2rem);
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 125, "wght" 800;
    font-size: calc(1rem - var(--c, 0) * 0.15rem);
    display: flex;
    align-items: center;
    gap: calc(1rem - var(--c, 0) * 0.2rem);
    background: var(--white);
    pointer-events: auto;
}

.nav-pill.brand {
    font-size: calc(1.4rem - var(--c, 0) * 0.3rem);
}

.nav-pill.icons {
    padding: calc(0.3rem - var(--c, 0) * 0.1rem) calc(0.9rem - var(--c, 0) * 0.2rem);
    gap: calc(0.6rem - var(--c, 0) * 0.1rem);
    background: var(--white);
}

.nav-pill.icons svg {
    width: calc(20px - var(--c, 0) * 3px);
    height: calc(20px - var(--c, 0) * 3px);
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: transform 0.15s ease;
}

.brand-icon:hover {
    transform: translateY(-1px);
}

.brand-icon svg {
    display: block;
}

.clickable {
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.clickable:hover {
    background: var(--black);
    color: var(--white);
}

/* Container */
.container {
    max-width: 1400px;
    /* Wider container */
    margin: 0 auto;
    min-height: 100vh;
    /* Occupy full screen */
    padding: 0 4rem;
    margin-top: 100vh;
    /* Push after hero */
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Expansion only pushes downwards */
    align-items: center;
    padding: 20vh 2rem 5rem 2rem;
    /* Initial top padding to keep it roughly centered */
}

.container.visible {
    opacity: 1;
}

.accordion {
    width: 100%;
    /* Ensure it takes full width of max-width container */
    border: var(--border-width) solid var(--border-color);
}

/* Accordion */
.accordion {
    border: var(--border-width) solid var(--border-color);
}

.accordion-item {
    border-bottom: var(--border-width) solid var(--border-color);
    overflow: hidden;
    position: relative;
    transition: background 0.3s ease;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 2rem 2rem 0 2rem;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    position: relative;
    z-index: 2;
    background-color: inherit;
    transition: padding-bottom 0.4s ease;
}

.accordion-item.active .accordion-header {
    padding-bottom: 1.5rem;
}

#beats .accordion-header {
    border-bottom: var(--border-width) solid var(--border-color);
    margin-bottom: calc(-1 * var(--border-width));
}

#beats.accordion-item.active .accordion-header {
    padding-bottom: 0.5rem;
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%) scale(1);
    transform-origin: center;
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 125, "wght" 600;
    font-size: 2.5rem;
    /* Slightly smaller to fit better in the middle */
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
    pointer-events: none;
}

.accordion-item:hover .accordion-header::after {
    opacity: 1;
    transform: translateY(-50%) scale(1.45);
}

/* Pastel +/- per tab */
#beats   .accordion-header::after { color: #FFB3D9; }
#samples .accordion-header::after { color: #B3EAEA; }
#studio  .accordion-header::after { color: #FFF2B3; }
#work    .accordion-header::after { color: #C6F0B5; }
#account .accordion-header::after { color: #D9B3FF; }

.accordion-item.active .accordion-header::after {
    content: '−';
    /* Change to minus when open */
    opacity: 1;
    transform: translateY(-50%) rotate(0deg);
}

/* Backgrounds */
#beats {
    background-color: var(--grey-1);
}

#samples {
    background-color: var(--grey-2);
}

#studio {
    background-color: var(--grey-3);
}

#work {
    background-color: var(--grey-4);
}

/* Dark-themed tabs */
#beats.dark,
#samples.dark,
#studio.dark,
#work.dark {
    background-color: var(--black);
    color: var(--white);
}
.accordion-item.dark {
    border-bottom-color: var(--white);
    --border-color: var(--white);
}
#beats.dark .accordion-header {
    border-bottom-color: var(--white);
}
#studio.dark .studio-layout {
    background-color: var(--black);
}
#studio.dark .studio-book {
    color: var(--white);
}


#inner-circle {
    --accent: #D4B375;
    background-color: var(--black);
    color: var(--white);
    border-bottom: var(--border-width) solid var(--white);
    /* White line between black sections */
}

/* Premium accent: gold +/- indicator for inner circle */
#inner-circle .accordion-header::after {
    color: var(--accent);
}

/* ===== INNER CIRCLE STATES ===== */
#inner-circle .ic-content {
    padding: 0;
    position: relative;
}

/* Backdrop: cream surface with grey grid (visible behind the card) */
#inner-circle .ic-view {
    display: none;
    position: relative;
    background-color: var(--black);
    color: var(--white);
    min-height: 920px;
    padding: 4rem 2rem;
}
#inner-circle[data-ic-state="free"]        .ic-view-free { display: block; }
#inner-circle[data-ic-state="circle"]      .ic-view-free { display: block; }
#inner-circle[data-ic-state="circle-plus"] .ic-view-premium { display: flex; }

#inner-circle .ic-view-free .ic-stage {
    min-height: 820px;
}

#inner-circle .ic-view-free {
    min-height: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

#inner-circle .ic-view-free .ic-card-header {
    margin-bottom: 0.4rem;
    align-items: center;
}

#inner-circle .ic-view-free .ic-pill-brand {
    border-color: var(--white);
    color: var(--white);
}

#inner-circle .ic-view-free .ic-pill-sub {
    background: var(--white);
    color: var(--black);
}

#inner-circle .ic-view-free .ic-perks {
    align-items: center;
    text-align: center;
}

#inner-circle .ic-view-free .ic-perk {
    text-align: center;
}

#inner-circle .ic-view-free .ic-perk-title,
#inner-circle .ic-view-free .ic-perk-desc,
#inner-circle .ic-view-free .ic-price {
    color: var(--white);
}

#inner-circle .ic-view-free .ic-perk-title { font-size: 1.4rem; }
#inner-circle .ic-view-free .ic-perk-desc  { font-size: 1rem; }
#inner-circle .ic-view-free .ic-price      { font-size: 1.55rem; }

#inner-circle .ic-view-free .ic-perk-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

#inner-circle .ic-view-free .ic-perk-spark {
    display: inline-flex;
    line-height: 0;
    will-change: transform, opacity;
    animation: icSparkTwinkle 2.4s ease-in-out infinite;
}

#inner-circle .ic-view-free .ic-perk-spark svg {
    display: block;
    image-rendering: pixelated;
    shape-rendering: crispEdges;
    fill: currentColor;
}

#inner-circle .ic-view-free .ic-perk-spark--diamond { color: #00e5ff; }
#inner-circle .ic-view-free .ic-perk-spark--bolt    { color: #ffe600; animation-delay: 0.4s; }
#inner-circle .ic-view-free .ic-perk-spark--ring    { color: #ff2d95; animation-delay: 0.8s; }
#inner-circle .ic-view-free .ic-perk-spark--plus    { color: #39ff14; animation-delay: 1.2s; }

@keyframes icSparkTwinkle {
    0%, 100% { transform: scale(1) rotate(0deg);    opacity: 1; }
    50%      { transform: scale(0.8) rotate(-12deg); opacity: 0.7; }
}

#inner-circle .ic-view-free .ic-perk {
    opacity: 0;
    transform: translateY(10px);
}

#inner-circle[data-ic-state="free"] .ic-view-free .ic-perk,
#inner-circle[data-ic-state="circle"] .ic-view-free .ic-perk {
    animation: icPerkIn 480ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

#inner-circle[data-ic-state="free"] .ic-view-free .ic-perk:nth-child(1),
#inner-circle[data-ic-state="circle"] .ic-view-free .ic-perk:nth-child(1) { animation-delay: 120ms; }
#inner-circle[data-ic-state="free"] .ic-view-free .ic-perk:nth-child(2),
#inner-circle[data-ic-state="circle"] .ic-view-free .ic-perk:nth-child(2) { animation-delay: 220ms; }
#inner-circle[data-ic-state="free"] .ic-view-free .ic-perk:nth-child(3),
#inner-circle[data-ic-state="circle"] .ic-view-free .ic-perk:nth-child(3) { animation-delay: 320ms; }
#inner-circle[data-ic-state="free"] .ic-view-free .ic-perk:nth-child(4),
#inner-circle[data-ic-state="circle"] .ic-view-free .ic-perk:nth-child(4) { animation-delay: 420ms; }

@keyframes icPerkIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Stagger entry for PREMIUM view (mirrors the FREE perks animation) */
@keyframes icViewIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}


#inner-circle.active[data-ic-state="circle-plus"] .ic-view-premium > .ic-premium-head,
#inner-circle.active[data-ic-state="circle-plus"] .ic-view-premium > .ic-menu-options,
#inner-circle.active[data-ic-state="circle-plus"] .ic-view-premium > .ic-premium-body {
    animation: icViewIn 480ms cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}
#inner-circle.active[data-ic-state="circle-plus"] .ic-view-premium > .ic-premium-head { animation-delay: 120ms; }
#inner-circle.active[data-ic-state="circle-plus"] .ic-view-premium > .ic-menu-options { animation-delay: 220ms; }
#inner-circle.active[data-ic-state="circle-plus"] .ic-view-premium > .ic-premium-body { animation-delay: 320ms; }

#inner-circle .ic-view-free .ic-pill-cta {
    background: var(--white);
    color: var(--black);
    border: none;
    border-radius: 50px;
    padding: 0.85rem 2.6rem;
    font-size: 1.1rem;
    font-family: 'Syne', sans-serif;
    font-style: normal;
    font-weight: 700;
}

#inner-circle .ic-stage {
    position: relative;
    background-color: #2c2b29;
    background-image:
        linear-gradient(to right, rgba(250, 249, 246, 0.18) 2px, transparent 2px),
        linear-gradient(to bottom, rgba(250, 249, 246, 0.18) 2px, transparent 2px);
    background-size: 33.3333% 50%;
    background-position: -1px -1px;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

/* Cream login/paywall card */
#inner-circle .ic-card {
    background-color: var(--bg-color);
    width: 100%;
    max-width: 520px;
    padding: 2.5rem 2.5rem 2rem;
    box-shadow: 0 18px 48px rgba(33, 32, 30, 0.18);
    position: relative;
}

#inner-circle .ic-card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 2.5rem;
}

#inner-circle .ic-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--black);
    border-radius: 999px;
    padding: 0.4rem 1.2rem;
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 125, "wght" 800;
    font-size: 1.15rem;
    background: transparent;
    color: var(--black);
    line-height: 1;
}

#inner-circle .ic-pill-brand {
    font-size: 1.35rem;
    letter-spacing: 0.01em;
}

#inner-circle .ic-pill-sub {
    margin-top: -0.6rem;
    margin-left: 1.2rem;
    background: var(--black);
    color: var(--white);
    font-style: italic;
    font-variation-settings: "wdth" 110, "wght" 700;
    font-size: 0.95rem;
    padding: 0.3rem 1rem;
}

/* Form */
#inner-circle .ic-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

#inner-circle .ic-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

#inner-circle .ic-label {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1rem;
    color: var(--black);
}

#inner-circle .ic-field input {
    border: 2px solid var(--black);
    background: transparent;
    padding: 0.55rem 0.7rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--black);
    border-radius: 0;
    outline: none;
    width: 100%;
}

#inner-circle .ic-field input:focus {
    box-shadow: inset 0 -2px 0 0 var(--black);
}

#inner-circle .ic-actions {
    display: flex;
    justify-content: center;
    margin-top: 0.6rem;
}

#inner-circle .ic-pill-cta {
    cursor: pointer;
    background: var(--black);
    color: var(--white);
    font-style: italic;
    font-variation-settings: "wdth" 110, "wght" 700;
    padding: 0.45rem 1.4rem;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

#inner-circle .ic-pill-cta:hover { transform: translateY(-1px); }
#inner-circle .ic-pill-cta:active { transform: translateY(0); opacity: 0.9; }

#inner-circle .ic-foot {
    margin-top: 1.2rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--black);
    opacity: 0.75;
}

#inner-circle .ic-foot-sep { margin: 0 0.5rem; }

#inner-circle .ic-link {
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

/* Paywall (free) */
#inner-circle .ic-card-free {
    display: flex;
    flex-direction: column;
}

#inner-circle .ic-perks {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin: 1.4rem 0 1.6rem;
}

#inner-circle .ic-perk-title {
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 110, "wght" 800;
    font-size: 1.25rem;
    color: var(--black);
    margin: 0 0 0.25rem;
    line-height: 1;
}

#inner-circle .ic-perk-desc {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--black);
    margin: 0;
    line-height: 1.4;
}

#inner-circle .ic-price {
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 110, "wght" 800;
    font-size: 1.4rem;
    color: var(--black);
    text-align: center;
    margin: 0.4rem 0 0.9rem;
}

/* Premium */
#inner-circle .ic-view-premium {
    padding: 3rem 3rem 1.5rem;
    min-height: 0;
    position: relative;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
}

/* Persistent header at top of view */
#inner-circle .ic-view-premium > .ic-premium-head {
    margin-bottom: 0.4rem;
    /* Don't let flex shrink the head when the active pane suddenly grows
       — overflow:hidden lower in the file would otherwise allow it to collapse to 0. */
    flex-shrink: 0;
}

/* Persistent options row */
#inner-circle .ic-view-premium > .ic-menu-options {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    /* padding-bottom gives the absolute-positioned "new" pill room inside the row's
       overflow:hidden box; margin reduced so the visual gap below stays close to before. */
    padding-bottom: 2rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

/* Body wraps swappable panes */
#inner-circle .ic-premium-body {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
}

/* Premium panes — active pane drives body height, others overlay absolutely during fade */
#inner-circle .ic-premium-pane {
    width: 100%;
    position: relative;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 450ms ease, visibility 0s linear 450ms;
}
#inner-circle .ic-view-premium:not([data-premium-view="menu"])    .ic-pane-menu,
#inner-circle .ic-view-premium:not([data-premium-view="beats"])   .ic-pane-beats,
#inner-circle .ic-view-premium:not([data-premium-view="samples"]) .ic-pane-samples,
#inner-circle .ic-view-premium:not([data-premium-view="kits"])    .ic-pane-kits {
    position: absolute;
    inset: 0;
}
#inner-circle .ic-view-premium[data-premium-view="menu"]    .ic-pane-menu,
#inner-circle .ic-view-premium[data-premium-view="beats"]   .ic-pane-beats,
#inner-circle .ic-view-premium[data-premium-view="samples"] .ic-pane-samples,
#inner-circle .ic-view-premium[data-premium-view="kits"]    .ic-pane-kits {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 450ms ease, visibility 0s linear 0s;
}

/* Menu pane (body content only): just the contact foot */
#inner-circle .ic-pane-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Direction-based fade of non-active options — keeps active option in place */
#inner-circle .ic-view-premium[data-premium-view="beats"]   .ic-menu-opt[data-premium-go="samples"],
#inner-circle .ic-view-premium[data-premium-view="beats"]   .ic-menu-opt[data-premium-go="kits"],
#inner-circle .ic-view-premium[data-premium-view="samples"] .ic-menu-opt[data-premium-go="kits"],
#inner-circle .ic-view-premium[data-premium-view="kits"]    .ic-menu-opt[data-premium-go="beats"],
#inner-circle .ic-view-premium[data-premium-view="kits"]    .ic-menu-opt[data-premium-go="samples"],
#inner-circle .ic-view-premium[data-premium-view="samples"] .ic-menu-opt[data-premium-go="beats"] {
    opacity: 0;
    pointer-events: none;
}
#inner-circle .ic-view-premium[data-premium-view="beats"]   .ic-menu-opt[data-premium-go="samples"],
#inner-circle .ic-view-premium[data-premium-view="beats"]   .ic-menu-opt[data-premium-go="kits"],
#inner-circle .ic-view-premium[data-premium-view="samples"] .ic-menu-opt[data-premium-go="kits"] {
    transform: translateX(40px);
}
#inner-circle .ic-view-premium[data-premium-view="kits"]    .ic-menu-opt[data-premium-go="beats"],
#inner-circle .ic-view-premium[data-premium-view="kits"]    .ic-menu-opt[data-premium-go="samples"],
#inner-circle .ic-view-premium[data-premium-view="samples"] .ic-menu-opt[data-premium-go="beats"] {
    transform: translateX(-40px);
}
#inner-circle .ic-menu-opt {
    position: relative;
    background: transparent;
    border: 0;
    padding: 0.6rem 0.4rem;
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 110, "wght" 800;
    font-size: 1.6rem;
    color: var(--white);
    cursor: pointer;
    line-height: 1;
    transition: opacity 380ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 380ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
#inner-circle .ic-menu-opt:hover { opacity: 0.75; }
#inner-circle .ic-menu-new {
    position: absolute;
    bottom: -0.9rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--black);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: lowercase;
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.2;
    letter-spacing: 0.02em;
}
#inner-circle .ic-menu-foot {
    padding-top: 1.2rem;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.35);
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.7rem;
    background: transparent;
    color: var(--white);
    font: inherit;
    text-align: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    box-shadow: none;
    transition: opacity 250ms ease, padding 450ms cubic-bezier(0.22,0.61,0.36,1), border-color 300ms ease;
}
#inner-circle .ic-menu-foot:focus,
#inner-circle .ic-menu-foot:focus-visible,
#inner-circle .ic-menu-foot:active { outline: none; box-shadow: none; }
#inner-circle .ic-menu-foot::-moz-focus-inner { border: 0; padding: 0; }
#inner-circle .ic-menu-foot:hover .ic-menu-contact-title,
#inner-circle .ic-menu-foot:hover .ic-menu-contact-sub { opacity: 0.75; }

/* Contact open/close: collapse head + options so the contact bar rises to the top,
   then reveal pills. Uses interpolate-size to animate height:auto natively. */
#inner-circle .ic-view-premium {
    interpolate-size: allow-keywords;
}
#inner-circle .ic-view-premium > .ic-premium-head,
#inner-circle .ic-view-premium > .ic-menu-options,
#inner-circle .ic-contact-pills {
    overflow: hidden;
    transition: height 640ms cubic-bezier(0.32, 0.72, 0, 1),
                margin 640ms cubic-bezier(0.32, 0.72, 0, 1),
                padding 640ms cubic-bezier(0.32, 0.72, 0, 1),
                opacity 380ms ease;
}
#inner-circle .ic-view-premium > .ic-premium-head,
#inner-circle .ic-view-premium > .ic-menu-options {
    height: auto;
    opacity: 1;
}
#inner-circle .ic-view-premium[data-contact-open="true"] > .ic-premium-head,
#inner-circle .ic-view-premium[data-contact-open="true"] > .ic-menu-options {
    height: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}
#inner-circle .ic-view-premium[data-contact-open="true"] .ic-menu-foot {
    padding-top: 0;
    padding-bottom: 1.2rem;
    border-top: 1px solid transparent;
    border-bottom: 1px solid rgba(255,255,255,0.35);
}

/* Contact pills */
#inner-circle .ic-contact-pills {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
    height: 0;
    opacity: 0;
    pointer-events: none;
    box-sizing: border-box;
}
#inner-circle .ic-view-premium[data-contact-open="true"] .ic-contact-pills {
    height: auto;
    opacity: 1;
    pointer-events: auto;
    padding: 3.5rem 1rem 2rem;
}
#inner-circle .ic-contact-pill {
    background: var(--bg-color);
    color: var(--black);
    border: 2px solid var(--black);
    border-radius: 999px;
    padding: 1rem 2.4rem;
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 110, "wght" 800;
    font-size: 1.4rem;
    text-decoration: none;
    line-height: 1;
    position: relative;
    transition: transform 380ms cubic-bezier(0.22,0.61,0.36,1), box-shadow 280ms ease;
    will-change: transform;
}
#inner-circle .ic-contact-pill + .ic-contact-pill {
    margin-left: -2.6rem;
}
#inner-circle .ic-contact-pill-email      { z-index: 1; }
#inner-circle .ic-contact-pill-instagram  { z-index: 2; }
#inner-circle .ic-contact-pill-whatsapp   { z-index: 3; }
#inner-circle .ic-contact-pill:hover {
    z-index: 10;
    transform: translateY(-0.6rem);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
#inner-circle .ic-contact-pill-email:hover    { transform: translate(-2.2rem, -0.6rem); }
#inner-circle .ic-contact-pill-instagram:hover { transform: translateY(-1.2rem); }
#inner-circle .ic-contact-pill-whatsapp:hover { transform: translate(2.2rem, -0.6rem); }
#inner-circle .ic-menu-contact-title {
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 110, "wght" 800;
    font-size: 1.4rem;
    color: var(--white);
}
#inner-circle .ic-menu-contact-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--white);
    opacity: 0.85;
}

/* Back button on content panes */
#inner-circle .ic-back-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: var(--white);
    font-family: 'Archivo', sans-serif;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.2rem 0.6rem;
}
#inner-circle .ic-back-btn:hover { opacity: 0.7; }

/* Kits coming-soon overlay */
#inner-circle .ic-coming-wrap {
    position: relative;
}
#inner-circle .ic-beats-grid-placeholder {
    filter: blur(6px);
    opacity: 0.35;
    pointer-events: none;
}
#inner-circle .ic-beat-placeholder {
    background: var(--black);
    border: 2px solid rgba(255,255,255,0.4);
}
#inner-circle .ic-coming-soon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 110, "wght" 800;
    font-size: 2.6rem;
    color: var(--white);
    text-transform: lowercase;
    letter-spacing: 0.02em;
    pointer-events: none;
}

#inner-circle .ic-premium-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
}

#inner-circle .ic-filter-btn {
    position: absolute;
    left: 0;
    top: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.4rem 0.6rem;
}
#inner-circle .ic-filter-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--white);
}
#inner-circle .ic-filter-btn:hover span { background: var(--bg-color); }

#inner-circle .ic-premium-title {
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 110, "wght" 800;
    font-size: 2rem;
    color: var(--white);
    border-bottom: 3px solid var(--white);
    padding: 0 1.5rem 0.4rem;
    margin: 0;
    line-height: 1;
}

#inner-circle .ic-premium-sub {
    text-align: center;
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 110, "wght" 700;
    font-size: 0.95rem;
    color: var(--white);
    margin-bottom: 1.6rem;
}

#inner-circle .ic-beats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    max-width: 1100px;
    margin: 0 auto;
    transform: translateY(-12px);
    opacity: 0;
    transition: opacity 500ms ease, transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
#inner-circle .ic-view-premium[data-premium-view="beats"]   .ic-pane-beats   .ic-beats-grid,
#inner-circle .ic-view-premium[data-premium-view="samples"] .ic-pane-samples .ic-beats-grid,
#inner-circle .ic-view-premium[data-premium-view="kits"]    .ic-pane-kits    .ic-beats-grid {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 120ms;
}

@media (max-width: 900px) {
    #inner-circle .ic-beats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    #inner-circle .ic-beats-grid { grid-template-columns: 1fr; }
    #inner-circle .ic-view-premium { padding: 2rem 1.5rem 1.25rem; }
}

/* Inner Circle beat cards: square, dark theme, inherit slide behavior from .beat-card */
#inner-circle .ic-beat-card {
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
    background: var(--black);
    border: 2px solid var(--white);
    color: var(--white);
    padding: 1.2rem;
}

/* Match meta font to artist/title (per request) */
#inner-circle .ic-beat-card > .card-meta {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
    top: 1.2rem;
    left: 1.2rem;
}

/* IC card title/artist positioning.
   Uses `top` + `transform: translate(-100%)` for right/bottom anchoring
   instead of `right`/`bottom` with `auto`s on the opposite side. This
   matters because CSS cannot interpolate between `auto` and a length,
   and we want the hover slide between corner layouts to animate smoothly.
   Default (also used by L4 artist and the hover/playing state): title at
   bottom-left, artist 3rem above bottom. */
#inner-circle .ic-beat-card > .card-title,
#inner-circle .ic-beat-card > .card-artist {
    left: 1.2rem;
    right: auto;
    bottom: auto;
    transform: translateY(-100%);
    max-width: calc(100% - 2.4rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    padding-bottom: 0.15em;
}
#inner-circle .ic-beat-card > .card-title {
    top: calc(100% - 1.2rem);
}
#inner-circle .ic-beat-card > .card-artist {
    top: calc(100% - 3rem);
}

/* Hover / playing: snap back to the default left-edge stack. The properties
   below all interpolate against the layout-corner values set further down. */
#inner-circle .ic-beat-card:hover > .card-title,
#inner-circle .ic-beat-card:hover > .card-artist,
#inner-circle .ic-beat-card.playing > .card-title,
#inner-circle .ic-beat-card.playing > .card-artist {
    left: 1.2rem;
    right: auto;
    bottom: auto;
    writing-mode: horizontal-tb;
    text-align: left;
    font-style: normal;
    letter-spacing: normal;
    max-width: calc(100% - 2.4rem);
}
#inner-circle .ic-beat-card:hover > .card-title,
#inner-circle .ic-beat-card.playing > .card-title {
    top: calc(100% - 1.2rem);
    transform: translateY(-100%);
}
#inner-circle .ic-beat-card:hover > .card-artist,
#inner-circle .ic-beat-card.playing > .card-artist {
    top: calc(100% - 3rem);
    transform: translateY(-100%);
}

/* ===== 4 IC LAYOUTS — title & artist in opposite corners =====
   L1: title BL, artist TR  |  L2: title TL, artist BR
   L3: title BR, artist TL  |  L4: title TR, artist BL
   Each corner is expressed via top + left + a translate so transitions
   between layouts and into the hover state always interpolate. */
#inner-circle .ic-beat-card.ic-layout-1:not(:hover):not(.playing) > .card-title {
    left: 1.2rem; top: calc(100% - 1.2rem); transform: translateY(-100%);
    text-align: left; font-size: 1.5rem;
}
#inner-circle .ic-beat-card.ic-layout-1:not(:hover):not(.playing) > .card-artist {
    left: calc(100% - 1.2rem); top: 1.2rem; transform: translateX(-100%);
    text-align: right; opacity: 0.7;
}

#inner-circle .ic-beat-card.ic-layout-2:not(:hover):not(.playing) > .card-title {
    left: 1.2rem; top: 1.2rem; transform: none;
    text-align: left; font-size: 1.5rem;
}
#inner-circle .ic-beat-card.ic-layout-2:not(:hover):not(.playing) > .card-artist {
    left: calc(100% - 1.2rem); top: calc(100% - 1.2rem); transform: translate(-100%, -100%);
    text-align: right; opacity: 0.7;
}

#inner-circle .ic-beat-card.ic-layout-3:not(:hover):not(.playing) > .card-title {
    left: calc(100% - 1.2rem); top: calc(100% - 1.2rem); transform: translate(-100%, -100%);
    text-align: right; font-size: 1.5rem;
}
#inner-circle .ic-beat-card.ic-layout-3:not(:hover):not(.playing) > .card-artist {
    left: 1.2rem; top: 1.2rem; transform: none;
    text-align: left; opacity: 0.7;
}

#inner-circle .ic-beat-card.ic-layout-4:not(:hover):not(.playing) > .card-title {
    left: calc(100% - 1.2rem); top: 1.2rem; transform: translateX(-100%);
    text-align: right; font-size: 1.5rem;
}
#inner-circle .ic-beat-card.ic-layout-4:not(:hover):not(.playing) > .card-artist {
    left: 1.2rem; top: calc(100% - 1.2rem); transform: translateY(-100%);
    text-align: left; opacity: 0.7;
}

/* On dark background, default state stays dark; hover keeps text white */
#inner-circle .ic-beat-card:hover,
#inner-circle .ic-beat-card.playing {
    background: var(--black);
    color: var(--white);
}
#inner-circle .ic-beat-card:hover > .card-meta,
#inner-circle .ic-beat-card:hover > .card-title,
#inner-circle .ic-beat-card:hover > .card-artist,
#inner-circle .ic-beat-card.playing > .card-meta,
#inner-circle .ic-beat-card.playing > .card-title,
#inner-circle .ic-beat-card.playing > .card-artist {
    color: var(--white);
}

/* Card actions: download (active) + request stems (active, no IC tag) */
#inner-circle .ic-beat-card .card-actions .ic-tag { display: none; }
#inner-circle .ic-beat-card .card-actions .stems-btn {
    background: var(--white);
    color: var(--black);
    border-style: solid;
    cursor: pointer;
}
#inner-circle .ic-beat-card .card-actions .stems-btn:hover {
    background: transparent;
    color: var(--white);
}

/* Mood dropdown */
#inner-circle .ic-mood-dropdown {
    position: absolute;
    top: 2.6rem;
    left: 0;
    z-index: 30;
    background: var(--bg-color);
    color: var(--black);
    border: 2px solid var(--black);
    padding: 1rem 1.2rem;
    min-width: 240px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
#inner-circle .ic-mood-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
#inner-circle .ic-mood-dropdown label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 110, "wght" 800;
    font-size: 1rem;
}
#inner-circle .ic-mood-tag {
    padding: 0.15rem 0.5rem;
}
#inner-circle .ic-mood-tag[data-mood="melancholic"] { background: #a9def9; }
#inner-circle .ic-mood-tag[data-mood="dark"]        { background: #e4c1f9; }
#inner-circle .ic-mood-tag[data-mood="chill"]       { background: #d0f4de; }
#inner-circle .ic-mood-tag[data-mood="hype"]        { background: #fcf6bd; }
#inner-circle .ic-mood-tag[data-mood="aggressive"]  { background: #ffadad; }
#inner-circle .ic-mood-tag[data-mood="mysterious"]  { background: #ffd6a5; }
#inner-circle .ic-mood-tag[data-mood="dreamy"]      { background: #ff99c8; }

#inner-circle .ic-mood-dropdown input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--black);
    margin-left: 0.8rem;
}

#inner-circle .ic-beat-card.ic-mood-hidden { display: none; }

/* Shown inside an IC pane when an active mood filter hides every card.
   Keeps the pane tall enough that the filter button stays in view, and
   gives the user a one-click escape hatch. */
#inner-circle .ic-empty-state {
    padding: 4rem 1.5rem 2.5rem;
    text-align: center;
    color: var(--white);
}
#inner-circle .ic-empty-message {
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 110, "wght" 700;
    font-size: 1.1rem;
    margin: 0 0 1.2rem;
    opacity: 0.75;
}
#inner-circle .ic-empty-clear {
    background: var(--white);
    color: var(--black);
    border: none;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 110, "wght" 800;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}
#inner-circle .ic-empty-clear:hover { opacity: 0.85; }

/* Dev toggle (only when ?dev=1) */
#inner-circle .ic-dev-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    display: flex;
    gap: 0.4rem;
    background: var(--bg-color);
    padding: 0.35rem;
    border: 2px solid var(--black);
    border-radius: 999px;
}
#inner-circle .ic-dev-toggle button {
    cursor: pointer;
    border: 0;
    background: transparent;
    color: var(--black);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    text-transform: lowercase;
}
#inner-circle[data-ic-state="free"]    .ic-dev-toggle button[data-ic-set="free"],
#inner-circle[data-ic-state="premium"] .ic-dev-toggle button[data-ic-set="premium"] {
    background: var(--black);
    color: var(--white);
}

@media (max-width: 600px) {
    #inner-circle .ic-card { padding: 2rem 1.5rem 1.5rem; }
    #inner-circle .ic-stage { padding: 2rem 1rem; min-height: 480px; }
    #inner-circle .ic-view { padding: 2rem 1rem; min-height: 0; }
}

#account {
    background-color: var(--black);
    color: var(--white);
}

/* Badge wrapper + magic sparkles */
.badge-wrap {
    display: inline-block;
    position: relative;
    vertical-align: baseline;
    line-height: 0;
    z-index: 5;
}

.spark {
    position: absolute;
    pointer-events: none;
    line-height: 0;
    will-change: transform, opacity;
    image-rendering: pixelated;
    z-index: 6;
}

.spark svg {
    display: block;
    image-rendering: pixelated;
    shape-rendering: crispEdges;
}

.spark-1 { top: -10px;  left: -8px;   color: #ff2d95; animation: sparkleA 1.8s ease-in-out infinite; }
.spark-2 { top: -6px;   right: -4px;  color: #ffe600; animation: sparkleB 1.6s ease-in-out infinite 0.15s; }
.spark-3 { bottom: -10px; left: 22%;  color: #00e5ff; animation: sparkleC 2.1s ease-in-out infinite 0.4s; }
.spark-4 { top: 30%;    right: -10px; color: #39ff14; animation: sparkleD 1.9s ease-in-out infinite 0.3s; }
.spark-5 { bottom: -6px; right: 18%;  color: #c026ff; animation: sparkleE 1.7s ease-in-out infinite 0.55s; }
.spark-6 { top: 45%;    left: -8px;   color: #ff7a00; animation: sparkleA 2.0s ease-in-out infinite 0.7s; }

.spark { transition: filter 0.6s ease; }

#beats.accordion-item.active .spark {
    filter: opacity(0.3);
    animation-duration: 9s;
}

#beats.accordion-item.active .spark-3,
#beats.accordion-item.active .spark-4,
#beats.accordion-item.active .spark-6 {
    display: none;
}

.spark svg rect { fill: currentColor; }

@keyframes sparkleA {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(0.7); opacity: 0.4; }
    25%      { transform: translate(-3px, -2px) rotate(45deg) scale(1.1); opacity: 1; }
    50%      { transform: translate(2px, -4px) rotate(0deg) scale(0.6); opacity: 0.5; }
    75%      { transform: translate(-1px, 2px) rotate(-45deg) scale(1); opacity: 0.95; }
}

@keyframes sparkleB {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.9; }
    33%      { transform: translate(2px, 3px) rotate(45deg) scale(0.5); opacity: 0.3; }
    66%      { transform: translate(-2px, -2px) rotate(-30deg) scale(1.15); opacity: 1; }
}

@keyframes sparkleC {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(0.8); opacity: 0.5; }
    20%      { transform: translate(3px, -3px) rotate(30deg) scale(1.2); opacity: 1; }
    50%      { transform: translate(-3px, 2px) rotate(-30deg) scale(0.6); opacity: 0.4; }
    80%      { transform: translate(1px, 3px) rotate(60deg) scale(1); opacity: 0.95; }
}

@keyframes sparkleD {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(0.6); opacity: 0.3; }
    40%      { transform: translate(-4px, -1px) rotate(-45deg) scale(1.1); opacity: 1; }
    70%      { transform: translate(3px, 2px) rotate(45deg) scale(0.8); opacity: 0.7; }
}

@keyframes sparkleE {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(0.9); opacity: 0.85; }
    30%      { transform: translate(-2px, 3px) rotate(-60deg) scale(0.5); opacity: 0.3; }
    60%      { transform: translate(3px, -2px) rotate(30deg) scale(1.2); opacity: 1; }
}

/* Badge */
.badge {
    display: inline-block;
    border: 2px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-color);
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 125, "wght" 700;
    font-size: 1.6rem;
    line-height: 1;
    padding: 0.3rem 1rem 0.4rem;
    margin-left: 1.2rem;
    vertical-align: middle;
    letter-spacing: -0.01em;
    text-transform: lowercase;
}

.dark .badge {
    border-color: var(--white);
    color: var(--black);
}

/* Content Area */
.accordion-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.accordion-item.active .accordion-content {
    max-height: 2000px;
    opacity: 1;
}

.inner-content {
    padding: 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* Beats Section Styling */
.beats-layout {
    display: flex;
    position: relative;
    margin-bottom: calc(-1 * var(--border-width));
}

#beats.accordion-item.active .accordion-content {
    overflow: visible;
}

#samples {
    position: relative;
    z-index: 2;
}

.beats-sidebar {
    width: 250px;
    padding: 0;
}

.filter-title {
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 125, "wght" 900;
    font-size: 2.5rem;
    padding: 1rem 2rem;
    margin: 0;
    border-bottom: var(--border-width) solid var(--border-color);
}

.month-cell-group {
    height: 420px;
    border-bottom: var(--border-width) solid var(--border-color);
    border-right: var(--border-width) solid var(--border-color);
    position: relative;
    overflow: hidden;
    z-index: 3;
}

.state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    will-change: opacity, transform;
}

.month-cell-group[data-state="months"] .state-months,
.month-cell-group[data-state="filter"] .state-filter,
.month-cell-group[data-state="mood"] .state-mood,
.month-cell-group[data-state="genre"] .state-genre {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.state-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 32px), transparent 100%);
            mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 32px), transparent 100%);
}

.state-scroll::-webkit-scrollbar {
    display: none;
}

.state-scroll.at-end {
    -webkit-mask-image: none;
            mask-image: none;
}

.header-cell {
    flex: 0 0 70px !important;
    font-size: 1.25rem !important;
    cursor: pointer;
    padding-left: 3.25rem !important; /* reserve space for the persistent .state-back-arrow */
}

/* The "←" arrow used to live as a ::before of .header-cell, which lives inside
   the fading .state container. That made the arrow fade together with its
   word during state transitions. We now render the arrow as a standalone
   element in .month-cell-group that does NOT fade. The header-cell still
   reserves the space (left padding handled below). */
.state-back-arrow {
    position: absolute;
    top: 0;
    left: 1.5rem;
    height: 70px;
    display: flex;
    align-items: center;
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 125, "wght" 900;
    font-size: 1.25rem;
    font-weight: 700;
    color: inherit;
    pointer-events: none;
    z-index: 4;
    visibility: hidden;
}

.month-cell-group:not([data-state="months"]) .state-back-arrow {
    visibility: visible;
}

.month-cell.filter-option {
    flex: 1 1 0;
}

.filter-count {
    display: none;
    margin-left: 0.6rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    width: 1.7rem;
    height: 1.7rem;
    line-height: 1.4rem;
    text-align: center;
    vertical-align: middle;
}

.filter-count.visible {
    display: inline-block;
}

.filter-clear {
    display: none;
    margin-left: 0.4rem;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.4rem;
    width: 1.7rem;
    height: 1.7rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: currentColor;
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
    transition: background 0.15s, color 0.15s;
}

.filter-clear.visible {
    display: inline-block;
}

.filter-clear:hover {
    background: var(--black);
    color: var(--white);
}

.sub-options {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 32px), transparent 100%);
            mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 32px), transparent 100%);
}

.sub-options::-webkit-scrollbar {
    display: none;
}

.sub-options.at-end {
    -webkit-mask-image: none;
            mask-image: none;
}

.sub-options li {
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 125, "wght" 800;
    font-size: 1.5rem;
    padding: 0.9rem 1.5rem;
    cursor: pointer;
    border-bottom: var(--border-width) solid var(--border-color);
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s, box-shadow 0.12s ease;
    box-shadow: inset 0 0 0 0 var(--black);
}

.sub-options li:last-child {
    border-bottom: none;
}

.sub-options li:hover {
    box-shadow: inset 2px 0 0 0 var(--black);
}

.sub-options li.active {
    background: var(--black);
    color: var(--white);
}

.state-mood .sub-options li:nth-child(1) { --mood-color: #a9def9; }
.state-mood .sub-options li:nth-child(2) { --mood-color: #e4c1f9; }
.state-mood .sub-options li:nth-child(3) { --mood-color: #d0f4de; }
.state-mood .sub-options li:nth-child(4) { --mood-color: #fcf6bd; }
.state-mood .sub-options li:nth-child(5) { --mood-color: #ffadad; }
.state-mood .sub-options li:nth-child(6) { --mood-color: #ffd6a5; }
.state-mood .sub-options li:nth-child(7) { --mood-color: #ff99c8; }

.state-mood .sub-options li:hover,
.state-mood .sub-options li.active {
    background: var(--mood-color);
    color: var(--black);
}

.state-mood .sub-options li:hover {
    box-shadow: none;
}

.month-cell {
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 125, "wght" 900;
    font-size: 2rem;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    flex: 0 0 105px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: background 0.2s, color 0.2s, box-shadow 0.12s ease;
    line-height: 1;
    text-transform: uppercase;
    border-bottom: var(--border-width) solid var(--border-color);
    box-shadow: inset 0 0 0 0 var(--black);
}

.month-cell:not(.active):hover {
    box-shadow: inset 2px 0 0 0 var(--black);
}

.month-cell:last-child {
    border-bottom: none;
}

.month-cell.active {
    background: var(--black);
    color: var(--white);
}

.state-scroll .month-cell {
    flex: 0 0 90px;
}

.state-mood .sub-options li,
.state-genre .sub-options li {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.beats-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Strict 4-column grid */
    grid-auto-rows: 420px;
    gap: 0; /* No gaps to avoid half lines */
    max-height: 1300px;
    overflow-y: auto;
    scrollbar-width: none;
    position: relative;
    background-image:
        linear-gradient(to right, var(--border-color), var(--border-color)),
        linear-gradient(to right, var(--border-color), var(--border-color)),
        linear-gradient(to right, var(--border-color), var(--border-color));
    background-size:
        var(--border-width) 100%,
        var(--border-width) 100%,
        var(--border-width) 100%;
    background-position:
        25% 0,
        50% 0,
        75% 0;
    background-repeat: no-repeat;
    background-attachment: local, local, local;
}

.beats-grid::-webkit-scrollbar {
    display: none;
}

.beat-card.last-row {
    border-bottom: none;
}


.beat-card.placeholder {
    cursor: default;
    pointer-events: none;
}

.beat-card.placeholder:hover {
    background: transparent;
}

.beat-card {
    position: relative;
    border-bottom: var(--border-width) solid var(--border-color);
    border-left: none;
    border-top: none;
    border-right: var(--border-width) solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    transition: background 0.2s;
    height: 420px; /* Portrait orientation: taller than wide */
    margin: 0;
}

/* Last column has no right separator (the accordion's outer border handles it) */
.beat-card:nth-child(4n) {
    border-right: none;
}

.card-meta {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.1;
    opacity: 1;
    transition: color 0.2s;
    pointer-events: none;
}

.beat-card:hover {
    background: var(--black);
    color: var(--white);
}

.beat-card.playing {
    background: var(--black);
    color: var(--white);
    box-shadow: inset 0 0 0 3px var(--white);
    z-index: 3;
}

.beat-card.playing .lissajous {
    opacity: 1;
}

.beat-card .lissajous {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    mix-blend-mode: screen;
    z-index: 0;
}

.beat-card:hover .lissajous {
    opacity: 1;
}

.beat-card > .card-meta {
    z-index: 1;
}

.beat-card > .card-artist,
.beat-card > .card-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    transition:
        left 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
        right 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
        top 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
        bottom 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
        font-size 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 0.35s ease;
    width: max-content;
    max-width: calc(100% - 3rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.beat-card > .card-title {
    bottom: 1.5rem;
}

.beat-card > .card-artist {
    bottom: 3.1rem;
}

.beat-card:hover > .card-title,
.beat-card:hover > .card-artist,
.beat-card.playing > .card-title,
.beat-card.playing > .card-artist {
    left: 1.5rem;
    transform: translateX(0);
}

.beat-card > .card-meta,
.beat-card > .card-genre {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.beat-card:hover > .card-meta,
.beat-card:hover > .card-genre,
.beat-card.playing > .card-meta,
.beat-card.playing > .card-genre {
    opacity: 1;
}

.card-actions {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s;
}

.beat-card:hover .card-actions,
.beat-card:has(.dl-wrap.open) .card-actions {
    opacity: 1;
}

.card-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--white);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    display: inline-block;
}

.card-btn:hover {
    background: transparent;
    color: var(--white);
}

.card-btn.stems-btn {
    background: transparent;
    color: var(--white);
    border-style: dashed;
    cursor: not-allowed;
}

.card-btn.stems-btn:hover {
    background: transparent;
    color: var(--white);
}

.ic-tag {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-weight: 500;
    font-size: 0.7rem;
    color: var(--white);
    padding: 0.25rem 0.7rem;
    border: 1.5px solid var(--white);
    border-radius: 999px;
    line-height: 1;
    margin-top: 0.1rem;
}

/* ===== Download format popover (MP3 / WAV) ===== */
.dl-wrap {
    position: relative;
    display: inline-block;
}

.dl-popover {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 10;
    background: var(--black);
    border: 1.5px solid var(--white);
    border-radius: 4px;
    padding: 0.25rem;
    display: flex;
    flex-direction: column;
    min-width: 4.5rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    /* Subtle entrance: fade + slight upward slide */
    opacity: 0;
    transform: translateY(-2px);
    pointer-events: none;
    transition: opacity 0.12s ease-out, transform 0.12s ease-out;
}

.dl-wrap.open .dl-popover {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dl-popover[hidden] {
    /* keep display:flex so transitions work; rely on opacity + pointer-events */
    display: flex;
}

.dl-popover-opt {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: transparent;
    color: var(--white);
    border: none;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    text-align: right;
    line-height: 1;
    border-radius: 2px;
    transition: background 0.12s, color 0.12s;
}

.dl-popover-opt:hover:not(:disabled) {
    background: var(--white);
    color: var(--black);
}

.dl-popover-opt:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.dl-wrap .download-btn[aria-expanded="true"] {
    background: var(--black);
    color: var(--white);
}

/* Overlay variant: anchor on the left because the overlay's action group
   is right-aligned and the button might be near the screen edge. */
.ov-dl-wrap .dl-popover {
    right: auto;
    left: 0;
}

.ov-dl-wrap .dl-popover-opt {
    text-align: left;
}

.beat-card.filter-hidden {
    visibility: hidden;
    pointer-events: none;
}

.card-artist {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    display: block;
    line-height: 1;
}

.card-genre {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 0.25rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    text-align: right;
}

.card-genre-item {
    display: block;
    line-height: 1;
    white-space: nowrap;
}

/* When a card has two genres, shift the artist line up so the upper genre
   line never crosses into the artist's vertical band. Public beats grid
   only — IC cards reposition the genre block entirely (see below). */
.beat-card:not(.ic-beat-card):has(.card-genre-item + .card-genre-item) > .card-artist {
    bottom: 4.2rem;
}

/* IC beat cards use 4 corner layouts for title/artist (L1..L4), and on
   hover/playing the title+artist slide to the left edge. The bottom-right
   corner is therefore frequently occupied, so anchor the genre block to
   the vertical middle of the right edge — that band is never used by
   title, artist, card-meta (top-left) or card-actions (top-right). */
#inner-circle .ic-beat-card .card-genre {
    top: 50%;
    bottom: auto;
    right: 1.2rem;
    transform: translateY(-50%);
    flex-direction: column;
    font-size: 0.95rem;
}

/* Overlay Styling */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 249, 246, 0.8);
    /* Semi-transparent bg-color */
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay.active {
    display: flex;
}

.overlay-card {
    background: var(--black);
    color: var(--white);
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 20px 20px 0px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.info-group span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.action-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.ov-btn {
    background: transparent;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    text-transform: lowercase;
}

.ov-btn.border {
    border: 1px solid var(--white);
}

.ov-btn.pill {
    border: 1px solid var(--white);
    border-radius: 20px;
}

.overlay-footer h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

.overlay-footer h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    margin: 0;
    line-height: 1;
}

.close-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    color: var(--white);
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

/* List Items within accordion */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .list-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item button {
    background: transparent;
    border: 2px solid currentColor;
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.list-item button:hover {
    background: currentColor;
    color: var(--bg-color);
}

/* Forms and CTAs */
.cta,
.cta-white {
    margin-top: 1rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Syne', sans-serif;
    border: none;
}

.cta {
    background: var(--black);
    color: var(--white);
}

.cta-white {
    background: var(--white);
    color: var(--black);
}

.simple-form {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.simple-form input {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--white);
    background: transparent;
    color: var(--white);
    outline: none;
    flex-grow: 1;
}

.simple-form button {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: none;
    background: var(--white);
    color: var(--black);
    font-weight: 700;
    cursor: pointer;
}

#account .simple-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
}

#account .simple-form input {
    width: 100%;
    font-size: 1.1rem;
}

#account .simple-form button {
    align-self: center;
    width: auto;
    padding: 0.8rem 2.6rem;
    font-size: 1.1rem;
    line-height: inherit;
    border: 2px solid transparent;
}

#account .simple-form button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

#account .form-message {
    margin: 0.4rem 0 0 0;
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 110, "wght" 700;
    font-size: 1rem;
    line-height: 1.35;
    text-align: center;
    letter-spacing: 0.01em;
    color: var(--white);
    opacity: 0.85;
}

#account .form-message[data-kind="success"] {
    color: #a8e6c4;
    opacity: 1;
}

#account .form-message[data-kind="error"] {
    color: #f7a4a4;
    opacity: 1;
}

#account .form-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.4rem;
}

#account .form-link {
    color: var(--white);
    font-size: 0.8rem;
    opacity: 0.7;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 1px;
    transition: opacity 200ms ease;
}

#account .form-link:hover {
    opacity: 1;
}

/* ===========================
   ACCOUNT — logged-in view
   =========================== */

#account .account-content {
    position: relative;
}

/* Stack logged-out and logged-in views to enable cross-fade.
   Active view is position:relative and dictates wrapper height;
   inactive view is absolutely positioned and faded out. */
#account .account-view {
    transition: opacity 320ms ease;
}

#account[data-account-state="logged-out"] .account-view-out,
#account[data-account-state="logged-in"]  .account-view-in {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#account[data-account-state="logged-out"] .account-view-in,
#account[data-account-state="logged-in"]  .account-view-out {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Mid-transition: both views absolutely positioned so wrapper height
   is controlled by JS. Both visible, opacity blends. */
#account.account-animating .account-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    visibility: visible;
    pointer-events: none;
}

/* Dev toggle (?dev=1) */
#account .account-dev-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    display: flex;
    gap: 0.4rem;
    background: var(--white);
    padding: 0.35rem;
    border: 2px solid var(--white);
    border-radius: 999px;
}
#account .account-dev-toggle button {
    cursor: pointer;
    border: 0;
    background: transparent;
    color: var(--black);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    text-transform: lowercase;
}
#account[data-account-state="logged-out"] .account-dev-toggle button[data-account-set="logged-out"],
#account[data-account-state="logged-in"]  .account-dev-toggle button[data-account-set="logged-in"] {
    background: var(--black);
    color: var(--white);
}

/* --- Top bar: avatar + identity + logout --- */
.acc-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding-bottom: 1.75rem;
    border-bottom: 1.5px solid rgba(250, 249, 246, 0.18);
    margin-bottom: 2rem;
}

.acc-identity {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    min-width: 0;
}

.acc-avatar {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: visible;
    flex-shrink: 0;
}

.acc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--white);
    display: block;
}

.acc-avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: var(--black);
    color: var(--white);
    font-family: 'Archivo', system-ui, sans-serif;
    font-weight: 900;
    font-size: 1.7rem;
    line-height: 1;
    text-transform: uppercase;
    user-select: none;
}

.acc-avatar img:not([hidden]) + .acc-avatar-initial {
    display: none;
}

.acc-list-empty .acc-list-meta {
    opacity: 0.55;
    font-style: italic;
}

.acc-avatar-edit {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--black);
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 180ms ease;
}

.acc-avatar-edit:hover {
    transform: scale(1.08);
}

.acc-identity-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.acc-handle {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acc-meta {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.55;
}

.acc-logout {
    flex-shrink: 0;
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    border: 2px solid var(--white);
    background: transparent;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-transform: lowercase;
    transition: background 180ms ease, color 180ms ease;
}

.acc-logout:hover {
    background: var(--white);
    color: var(--black);
}

/* --- Sections --- */
.acc-sections {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.acc-section-head {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.acc-section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: lowercase;
    color: var(--white);
    letter-spacing: -0.01em;
}

.acc-section-count {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--white);
    opacity: 0.5;
}

/* --- Rows (key/value style for profile, payment, address) --- */
.acc-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(250, 249, 246, 0.12);
}

.acc-row {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(250, 249, 246, 0.12);
}

.acc-row--block {
    align-items: start;
}

.acc-row-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.55;
}

.acc-row-value {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--white);
    line-height: 1.5;
    word-break: break-word;
}

.acc-row-action {
    padding: 0.45rem 1rem;
    border-radius: 50px;
    border: 1.5px solid rgba(250, 249, 246, 0.4);
    background: transparent;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    text-transform: lowercase;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.acc-row-action:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--black);
}

.acc-row-action--danger {
    border-color: rgba(255, 92, 92, 0.55);
    color: #ff8b8b;
}

.acc-row-action--danger:hover {
    background: #ff5c5c;
    border-color: #ff5c5c;
    color: var(--white);
}

/* --- List rows (beats, licenses, orders) --- */
.acc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(250, 249, 246, 0.12);
}

.acc-list-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.2rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(250, 249, 246, 0.12);
}

.acc-list-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    flex: 0 0 auto;
    min-width: 140px;
}

.acc-list-meta {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.55;
    flex: 1 1 220px;
}

.acc-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    border: 1.5px solid rgba(250, 249, 246, 0.35);
    color: var(--white);
    background: transparent;
}

.acc-pill--license {
    border-color: rgba(217, 179, 255, 0.6);
    color: #D9B3FF;
}

.acc-pill--exclusive {
    background: #D9B3FF;
    border-color: #D9B3FF;
    color: var(--black);
}

.acc-pill--paid {
    border-color: rgba(170, 255, 170, 0.5);
    color: #b6ffb6;
}

.acc-list-action {
    flex: 0 0 auto;
    padding: 0.45rem 1.05rem;
    border-radius: 50px;
    border: 0;
    background: var(--white);
    color: var(--black);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    text-transform: lowercase;
    margin-left: auto;
    transition: transform 160ms ease, opacity 180ms ease;
}

.acc-list-action:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.acc-section--danger .acc-section-title {
    color: #ff8b8b;
}

/* --- Responsive --- */
@media (max-width: 720px) {
    .acc-topbar {
        flex-wrap: wrap;
    }
    .acc-logout {
        margin-left: auto;
    }
    .acc-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "label action"
            "value value";
        gap: 0.4rem 1rem;
    }
    .acc-row-label  { grid-area: label; }
    .acc-row-action { grid-area: action; }
    .acc-row-value  { grid-area: value; }

    .acc-list-name { min-width: 0; flex: 1 1 100%; }
    .acc-list-meta { flex: 1 1 100%; }
    .acc-list-action { margin-left: 0; }
}

@media (max-width: 480px) {
    .acc-avatar { width: 60px; height: 60px; }
    .acc-handle { font-size: 1rem; }
    .acc-section-title { font-size: 1.15rem; }
}

/* Samples Section */
.samples-list {
    padding: 0 2rem 2rem 2rem;
    font-family: 'Inter', sans-serif;
}

.sample-pack {
    border-bottom: 1.5px solid var(--border-color);
}

.sample-pack:first-child {
    border-top: 1.5px solid var(--border-color);
}

.pack-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.4rem 1rem 1.4rem 0.9rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.2rem;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.12s ease, padding-left 0.25s ease;
    box-shadow: inset 0 0 0 0 var(--black);
}

.pack-row:hover {
    box-shadow: inset 3px 0 0 0 var(--black);
    padding-left: 1.3rem;
}

.sample-pack.open .pack-row:hover {
    padding-left: 0.9rem;
}

.sample-pack.open .pack-row {
    background: var(--black);
    color: var(--white);
    box-shadow: none;
}


.pack-name {
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 125, "wght" 800;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
}

.pack-count {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    opacity: 0.7;
    pointer-events: none;
    white-space: nowrap;
    justify-self: end;
}

.pack-artists {
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    pointer-events: none;
    justify-self: start;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.pack-download {
    background: transparent;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    padding: 0.45rem 1.3rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    color: inherit;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sample-pack:not(.open) .pack-download:hover {
    background: var(--black);
    color: var(--white);
}

.sample-pack.open .pack-download:hover {
    background: var(--white);
    color: var(--black);
}

.pack-samples {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.sample-pack.open .pack-samples {
    max-height: 1500px;
}

.sample-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1.5rem;
    padding: 0.95rem 1rem 0.95rem 0.9rem;
    border-top: 1px solid rgba(33, 32, 30, 0.35);
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.12s ease, padding-left 0.2s ease;
    box-shadow: inset 0 0 0 0 var(--black);
}

.sample-row:hover {
    box-shadow: inset 3px 0 0 0 var(--black);
    padding-left: 1.3rem;
}

.sample-row.playing {
    background: var(--black);
    color: var(--white);
    box-shadow: inset 0 0 0 3px var(--white);
    font-weight: 700;
    padding-left: 0.9rem;
}

.sample-row.playing:hover {
    box-shadow: inset 0 0 0 3px var(--white);
}

.sample-row .s-name {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-left: 1.5rem;
}

.s-play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent currentColor;
    flex-shrink: 0;
    transition: border-color 0.15s ease;
}

.s-play-icon > span {
    display: none;
}

.sample-row.playing .s-play-icon {
    width: 14px;
    height: 14px;
    border: none;
    display: inline-flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2px;
    flex-shrink: 0;
}

.sample-row.playing .s-play-icon > span {
    display: block;
    width: 3px;
    background: var(--white);
    border-radius: 1px;
    transform-origin: bottom;
    animation: eq-bar 0.85s ease-in-out infinite;
}

.sample-row.playing .s-play-icon > span:nth-child(1) { animation-duration: 0.7s; }
.sample-row.playing .s-play-icon > span:nth-child(2) { animation-duration: 1s; animation-delay: 0.18s; }
.sample-row.playing .s-play-icon > span:nth-child(3) { animation-duration: 0.85s; animation-delay: 0.32s; }

@keyframes eq-bar {
    0%, 100% { height: 30%; }
    50%      { height: 100%; }
}

.s-name {
    font-weight: 800;
}

.s-bpm {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    opacity: 0.7;
    pointer-events: none;
    white-space: nowrap;
    justify-self: end;
}

.sample-row.playing .s-bpm {
    opacity: 1;
}

.s-artists {
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    pointer-events: none;
    justify-self: start;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.pack-row .pack-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.7rem;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: 0;
    flex-shrink: 0;
    min-width: 1.5rem;
}

.pack-row .pack-toggle::before {
    content: '[+]';
}

.sample-pack.open .pack-toggle::before {
    content: '[−]';
}

/* Floating Beat Player */
.beat-player {
    position: fixed;
    left: 50%;
    bottom: -120px;
    transform: translateX(-50%);
    background: #F4F1EA;
    border: 2px solid var(--border-color);
    border-radius: 999px;
    padding: 0.6rem 1rem 0.6rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: bottom 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
    width: min(560px, calc(100vw - 2rem));
    will-change: bottom;
}

.beat-player.visible {
    bottom: 2rem;
    opacity: 1;
    pointer-events: auto;
}

.bp-play {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.bp-play .bp-icon-pause { display: none; }
.beat-player.is-playing .bp-play .bp-icon-play { display: none; }
.beat-player.is-playing .bp-play .bp-icon-pause { display: block; }

.bp-meta {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    margin-right: 0;
    transition: max-width 0.4s ease, opacity 0.3s ease, margin-right 0.4s ease;
    white-space: nowrap;
}

.bp-name,
.bp-prod {
    line-height: 1.2;
    margin: 0;
    padding: 0;
    display: block;
}

.beat-player.show-meta .bp-meta {
    max-width: 200px;
    opacity: 1;
    margin-right: 0.4rem;
}

.bp-name {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    color: var(--black);
    text-overflow: ellipsis;
    overflow: hidden;
}

.bp-prod {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--black);
    opacity: 0.7;
    text-overflow: ellipsis;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bp-waveform {
    flex: 1 1 auto;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    cursor: pointer;
    overflow: hidden;
}

.bp-bar {
    flex: 1 1 0;
    background: var(--black);
    opacity: 0.25;
    border-radius: 1px;
    min-width: 2px;
    transition: opacity 0.1s linear;
}

.bp-bar.played {
    opacity: 0.95;
}

.bp-time {
    flex: 0 0 auto;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--black);
    letter-spacing: 0.02em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    min-width: 92px;
    text-align: right;
}

/* Studio (CCTV) Section */
#studio .accordion-header {
    margin-bottom: calc(-1 * var(--border-width));
}

#studio.accordion-item.active .accordion-header {
    padding-bottom: 0.5rem;
}

#studio.accordion-item.active .accordion-content {
    max-height: 4000px;
    overflow: visible;
}

.studio-layout {
    width: 100%;
    background-color: var(--grey-3);
    padding: 2.5rem;
    position: relative;
}

.studio-layout.booking-active .studio-grid,
.studio-layout.booking-active .studio-footer {
    filter: grayscale(0.4) brightness(0.92);
    transition: filter 0.45s ease;
}

.studio-layout .studio-grid,
.studio-layout .studio-footer {
    transition: filter 0.45s ease;
}

.studio-layout.booking-active .studio-book {
    opacity: 0;
    pointer-events: none;
}

.studio-book {
    transition: opacity 0.18s ease, background-color 0.2s ease, color 0.2s ease;
}

/* Booking window-in-window */
.studio-booking {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(440px, 90vw);
    max-height: 88vh;
    overflow-y: auto;
    background: var(--bg-color);
    border: 3px solid var(--border-color);
    padding: 1.6rem 1.4rem 1.8rem 1.4rem;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transform-origin: center center;
    will-change: transform, opacity, border-radius;
    border-radius: 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.studio-booking-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2900;
    background: rgba(250, 249, 246, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.studio-booking-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.studio-booking.morphing {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.35s ease,
                border-radius 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.studio-booking.active {
    opacity: 1;
    pointer-events: auto;
}

.studio-booking-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    color: var(--border-color);
    font-family: 'Archivo', sans-serif;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.25s ease 0.25s, background-color 0.2s ease, color 0.2s ease;
}

.studio-booking.active .studio-booking-close {
    opacity: 1;
}

.studio-booking-close:hover {
    background: var(--border-color);
    color: var(--bg-color);
}

.booking-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}

.studio-booking.active .booking-content {
    opacity: 1;
}

.booking-brand-pill {
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0.35rem 1.4rem;
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 125, "wght" 800;
    font-size: 0.95rem;
    color: var(--text-color);
    letter-spacing: 0.02em;
}

.booking-calendar {
    width: 100%;
    background: #1c1c1e;
    color: #f2f2f2;
    border-radius: 12px;
    padding: 0.7rem 0.75rem 0.85rem 0.75rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
}

.bc-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.bc-traffic { display: flex; gap: 4px; }
.bc-dot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.bc-dot-r { background: #ff5f57; }
.bc-dot-y { background: #febc2e; }
.bc-dot-g { background: #28c840; }

.bc-tabs {
    display: flex;
    gap: 0.35rem;
    flex: 1;
    justify-content: center;
    color: #9a9a9c;
    font-size: 0.65rem;
}
.bc-tabs .active {
    color: #fff;
    background: #3a3a3c;
    padding: 1px 6px;
    border-radius: 4px;
}

.bc-nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}
.bc-nav button {
    background: transparent;
    color: #d8d8da;
    border: none;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: inherit;
}
.bc-nav button:hover { background: #3a3a3c; }
#bc-today { font-size: 0.65rem; }

.bc-month-row {
    margin: 0.2rem 0 0.4rem 0;
    padding: 0 0.1rem;
}
.bc-month-label {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.bc-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    color: #8e8e93;
    font-size: 0.62rem;
    padding: 0 0.1rem 0.25rem 0.1rem;
    border-bottom: 1px solid #2c2c2e;
}
.bc-weekdays span { text-align: left; padding-left: 4px; }

.bc-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-top: 4px;
}
.bc-cell {
    aspect-ratio: 1.15 / 1;
    padding: 4px 5px;
    color: #d8d8da;
    font-size: 0.68rem;
    border-radius: 3px;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
    font-family: inherit;
}
.bc-cell.muted { color: #5a5a5e; }
.bc-cell.today {
    background: #0a84ff;
    color: #fff;
    font-weight: 600;
}
.bc-cell.selected:not(.today) {
    background: #3a3a3c;
    color: #fff;
}
.bc-cell:hover:not(.today) { background: #2c2c2e; }

.booking-price-pill {
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0.3rem 1.1rem;
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 125, "wght" 700;
    font-size: 0.9rem;
}

.booking-checkout {
    background: var(--border-color);
    color: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0.45rem 1.4rem;
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 125, "wght" 800;
    font-size: 0.95rem;
    cursor: pointer;
    text-transform: lowercase;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.booking-checkout:hover {
    background: var(--bg-color);
    color: var(--border-color);
}

.studio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.studio-cam {
    position: relative;
    aspect-ratio: 16 / 10;
    background-color: #1a1a1a;
    overflow: hidden;
    cursor: zoom-in;
    isolation: isolate;
    box-shadow: inset 0 0 60px 0 rgba(0, 0, 0, 0.5);
}

.studio-cam picture {
    display: block;
    width: 100%;
    height: 100%;
}

.studio-cam img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1) contrast(1.15) brightness(0.78) blur(0.4px);
    animation: cctvFlicker 3.1s steps(2, end) infinite, cctvJitter 0.32s steps(2, end) infinite;
    transform: translateZ(0);
    transition: filter 0.3s ease;
}

/* Tonal variation per cam */
.studio-grid .studio-cam:nth-child(1) img { filter: grayscale(1) contrast(1.18) brightness(0.78) blur(0.4px); }
.studio-grid .studio-cam:nth-child(2) img { filter: grayscale(1) contrast(1.10) brightness(0.72) blur(0.5px); }
.studio-grid .studio-cam:nth-child(3) img { filter: grayscale(1) contrast(1.22) brightness(0.82) blur(0.35px); }
.studio-grid .studio-cam:nth-child(4) img { filter: grayscale(1) contrast(1.08) brightness(0.7)  blur(0.55px); }
.studio-grid .studio-cam:nth-child(5) img { filter: grayscale(1) contrast(1.16) brightness(0.8)  blur(0.4px); }
.studio-grid .studio-cam:nth-child(6) img { filter: grayscale(1) contrast(1.12) brightness(0.75) blur(0.45px); }
.studio-grid .studio-cam:nth-child(2)::after,
.studio-grid .studio-cam:nth-child(4)::after { opacity: 0.72; }
.studio-grid .studio-cam:nth-child(3)::after,
.studio-grid .studio-cam:nth-child(6)::after { opacity: 0.45; }

/* REC indicator */
.cam-rec {
    position: absolute;
    top: 0.7rem;
    right: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'VT323', 'VCR OSD Mono', monospace;
    font-size: 1.15rem;
    line-height: 1;
    color: #ff3b30;
    text-shadow: 0 0 4px rgba(255, 59, 48, 0.55);
    letter-spacing: 0.04em;
    z-index: 3;
    pointer-events: none;
}

.rec-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 6px rgba(255, 59, 48, 0.8);
    animation: recBlink 1.2s steps(2, end) infinite;
}

@keyframes recBlink {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0.15; }
}

/* SIGNAL LOCK on hover */
.cam-signal {
    position: absolute;
    top: 0.7rem;
    left: 0.9rem;
    font-family: 'VT323', 'VCR OSD Mono', monospace;
    font-size: 1.15rem;
    line-height: 1;
    color: #34C759;
    text-shadow: 0 0 5px rgba(52, 199, 89, 0.5);
    letter-spacing: 0.06em;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.studio-cam:hover .cam-signal {
    opacity: 1;
    transform: translateY(0);
    animation: signalBlink 0.8s steps(2, end) infinite;
}

@keyframes signalBlink {
    0%, 60%   { opacity: 1; }
    61%, 100% { opacity: 0.4; }
}

/* Scanlines */
.studio-cam::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.32) 0px,
            rgba(0, 0, 0, 0.32) 1px,
            transparent 1px,
            transparent 3px
        ),
        radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    mix-blend-mode: multiply;
    z-index: 1;
}

/* Grain + tracking band that rolls down */
.studio-cam::after {
    content: '';
    position: absolute;
    inset: -10%;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='2.2' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
        linear-gradient(
            to bottom,
            transparent 0%,
            transparent 38%,
            rgba(255, 255, 255, 0.14) 41%,
            rgba(255, 255, 255, 0.04) 43%,
            transparent 46%,
            transparent 100%
        );
    background-size: 220px 220px, 100% 320%;
    background-repeat: repeat, no-repeat;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.55;
    z-index: 2;
    animation: cctvGrain 0.09s steps(4, end) infinite, cctvTrack 5.5s linear infinite;
}

@keyframes cctvGrain {
    0%   { background-position: 0 0, 0 0%; }
    25%  { background-position: -80px 50px, 0 0%; }
    50%  { background-position: 60px -30px, 0 0%; }
    75%  { background-position: -30px 70px, 0 0%; }
    100% { background-position: 40px 20px, 0 0%; }
}

@keyframes cctvTrack {
    0%   { background-position-y: 0, -100%; }
    100% { background-position-y: 220px, 200%; }
}

@keyframes cctvFlicker {
    0%, 100% { opacity: 1; }
    37%      { opacity: 0.92; }
    38%      { opacity: 1; }
    53%      { opacity: 0.85; }
    54%      { opacity: 1; }
    78%      { opacity: 0.95; }
    79%      { opacity: 1; }
}

@keyframes cctvJitter {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(0.4px, -0.3px); }
}

.cam-label {
    position: absolute;
    left: 1rem;
    bottom: 0.6rem;
    font-family: 'VT323', 'VCR OSD Mono', 'Space Mono', monospace;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1;
    color: #34C759;
    text-shadow: 0 0 6px rgba(52, 199, 89, 0.45);
    letter-spacing: 0.02em;
    pointer-events: none;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    z-index: 3;
}

.studio-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.studio-footer-cell {
    min-height: 5rem;
}

.studio-book {
    justify-self: center;
    align-self: center;
    background: transparent;
    border: 3px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 125, "wght" 800;
    font-size: 1rem;
    text-transform: lowercase;
    letter-spacing: 0;
    color: var(--text-color);
    padding: 0.5rem 1.4rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.studio-book:hover {
    background-color: var(--border-color);
    color: var(--bg-color);
}

/* Studio Overlay (enlarged cam) */
.studio-overlay {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 5rem 3rem;
    background-color: rgba(250, 249, 246, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: zoom-out;
}

.studio-overlay.active {
    display: flex;
}

.studio-overlay-inner {
    width: min(1300px, 92vw);
    cursor: default;
}

.studio-overlay-cam {
    aspect-ratio: 16 / 10;
    width: 100%;
    cursor: default;
}

.studio-overlay-cam .cam-label {
    font-size: 1.6rem;
    bottom: 1rem;
    left: 1.4rem;
}

.studio-overlay-cam .cam-rec {
    font-size: 1.4rem;
    top: 1rem;
    right: 1.2rem;
}

.studio-overlay-close {
    position: absolute;
    top: 1.5rem;
    right: 1.8rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    color: var(--border-color);
    font-family: 'Archivo', sans-serif;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.studio-overlay-close:hover {
    background: var(--border-color);
    color: var(--bg-color);
}

/* Interactive hotspots (only populated for CAM 3 DESK) */
.cam-hotspots {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.cam-hotspot {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--w);
    height: var(--h);
    margin: 0;
    padding: 0;
    border: 1px dashed rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.04);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.35) inset,
        0 0 14px 2px rgba(255, 255, 255, 0.18);
    cursor: pointer;
    pointer-events: auto;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    animation: camHotspotPulse 2.4s ease-in-out infinite;
    font: inherit;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.cam-hotspot::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 8px;
    height: 8px;
    border-top: 2px solid rgba(255, 255, 255, 0.85);
    border-left: 2px solid rgba(255, 255, 255, 0.85);
}

.cam-hotspot::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.85);
    border-right: 2px solid rgba(255, 255, 255, 0.85);
}

.cam-hotspot:hover,
.cam-hotspot:focus-visible,
.cam-hotspot.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4) inset,
        0 0 22px 4px rgba(255, 255, 255, 0.35);
    outline: none;
    animation-play-state: paused;
}

@keyframes camHotspotPulse {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.45);
        box-shadow:
            0 0 0 1px rgba(0, 0, 0, 0.35) inset,
            0 0 10px 1px rgba(255, 255, 255, 0.15);
    }
    50% {
        border-color: rgba(255, 255, 255, 0.85);
        box-shadow:
            0 0 0 1px rgba(0, 0, 0, 0.35) inset,
            0 0 18px 3px rgba(255, 255, 255, 0.32);
    }
}

.cam-tooltip {
    position: absolute;
    z-index: 5;
    left: 0;
    top: 0;
    max-width: 60%;
    padding: 0.5rem 0.8rem;
    font-family: 'VT323', 'VCR OSD Mono', monospace;
    font-size: 1.1rem;
    line-height: 1.1;
    letter-spacing: 0.04em;
    color: #f5f5f5;
    background: rgba(0, 0, 0, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.6);
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.25);
    transform: translate(-50%, calc(-100% - 8px));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    white-space: nowrap;
}

.cam-tooltip.below {
    transform: translate(-50%, 8px);
}

.cam-tooltip.visible {
    opacity: 1;
}

.studio-overlay-cam[data-cam-name="CAM 3 DESK"] {
    cursor: default;
}

@media (prefers-reduced-motion: reduce) {
    .cam-hotspot { animation: none; }
}

/* Reduced motion — disable CCTV motion for accessibility/battery */
@media (prefers-reduced-motion: reduce) {
    .studio-cam img,
    .studio-cam::after,
    .rec-dot,
    .book-cursor,
    .studio-cam:hover .cam-signal {
        animation: none !important;
    }

    .studio-cam img {
        filter: grayscale(1) contrast(1.15) brightness(0.78);
    }

    .studio-grid .studio-cam:nth-child(n) img {
        animation: none !important;
    }
}

/* Tablet — keep 2 cols but tighten gaps so cams stay legible */
@media (max-width: 1100px) and (min-width: 769px) {
    .studio-layout { padding: 1.5rem; }
    .studio-grid { gap: 1.5rem; }
    .studio-footer { gap: 1.5rem; margin-top: 1.5rem; }
    .cam-label { font-size: 1.1rem; }
    .cam-rec, .cam-signal { font-size: 0.95rem; }
}

@media (max-width: 768px) {
    .studio-grid {
        grid-template-columns: 1fr;
    }

    .studio-book {
        font-size: 1.2rem;
        padding: 1rem 0.5rem;
    }

    .cam-label {
        font-size: 0.7rem;
        left: 0.6rem;
        bottom: 0.4rem;
    }

    .studio-overlay {
        padding: 2rem 1rem;
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .top-nav {
        padding: 1rem;
    }

    .container {
        padding: 0 1rem 2rem 1rem;
    }

    h2.title {
        font-size: 3.5rem;
    }

    .badge {
        margin-left: 0.5rem;
        font-size: 0.7rem;
    }
}

/* =========================================================
   WORK / produced by gyn
   ========================================================= */
#work.accordion-item.active .accordion-content {
    max-height: none;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: var(--border-width) solid var(--border-color);
}

.work-cell {
    aspect-ratio: 1 / 1;
    border-right: var(--border-width) solid var(--border-color);
    border-bottom: var(--border-width) solid var(--border-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
}

.work-cell:nth-child(4n) {
    border-right: none;
}

.work-cell.last-row {
    border-bottom: none;
}

.work-label {
    justify-content: flex-start;
    align-items: flex-start;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 1.25rem;
}

.work-card {
    width: 72%;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    background: var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
}

.work-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-card-label {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 0.6rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.2;
    color: var(--border-color);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-cell:hover .work-card-label {
    opacity: 1;
}

.work-card.loading {
    background: linear-gradient(110deg, #2a2a28 8%, #3a3a37 18%, #2a2a28 33%);
    background-size: 200% 100%;
    animation: work-shimmer 1.4s linear infinite;
}

@keyframes work-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.work-empty {
    grid-column: span 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--border-color);
    opacity: 0.55;
    aspect-ratio: 3 / 1;
    border-right: var(--border-width) solid var(--border-color);
    border-bottom: var(--border-width) solid var(--border-color);
    padding: 1.25rem;
    text-align: center;
}

/* Overlay */
.work-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(250, 249, 246, 0.55);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.work-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

body.work-overlay-open .beat-player {
    z-index: 100;
}

.work-detail {
    text-align: center;
    max-width: 90vw;
}

.work-detail-cover {
    width: min(42vw, 420px);
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.75rem;
    background: var(--border-color);
}

.work-detail-title {
    display: block;
    width: max-content;
    max-width: 90%;
    margin: 0 auto 1rem;
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 125, "wght" 800;
    font-size: clamp(1.4rem, 3.2vw, 2.4rem);
    padding: 0.5rem 1.5rem;
    border: 3px solid var(--border-color);
    border-radius: 100px;
    background: rgba(180, 200, 255, 0.35);
    line-height: 1.1;
    text-align: center;
}

.work-detail-links {
    display: flex;
    width: max-content;
    max-width: 90%;
    margin: 0 auto;
    gap: 1.5rem;
    padding: 0.6rem 1.5rem;
    border: 3px solid var(--border-color);
    border-radius: 100px;
    background: var(--bg-color);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.work-detail-links a {
    color: var(--border-color);
    text-decoration: none;
}

.work-detail-links a:hover {
    text-decoration: underline;
}

.work-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    background: var(--bg-color);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
    color: var(--border-color);
}

@media (max-width: 768px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .work-cell:nth-child(4n) {
        border-right: var(--border-width) solid var(--border-color);
    }
    .work-cell:nth-child(2n) {
        border-right: none;
    }
}

/* ===== WTF? button typing animation ===== */
#wtf-btn {
    gap: 0;
}
#wtf-btn .wtf-pill-content {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}
#wtf-btn.typing .wtf-pill-content {
    max-width: 5em;
    overflow: hidden;
    justify-content: flex-end;
    white-space: nowrap;
}
#wtf-btn .wtf-pill-text {
    white-space: pre;
    flex: 0 0 auto;
}
#wtf-btn .wtf-pill-caret {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: currentColor;
    margin-left: 1px;
    vertical-align: -0.12em;
    opacity: 0;
    pointer-events: none;
    flex: 0 0 auto;
}
#wtf-btn.typing {
    cursor: text;
}
#wtf-btn.typing .wtf-pill-caret {
    animation: wtf-caret-blink 1s steps(1, end) infinite;
}
@keyframes wtf-caret-blink {
    0%, 49.99% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.card-btn.downloading {
    opacity: 0.7;
    pointer-events: none;
    cursor: wait;
}

/* ===== WTF Overlay ===== */
.wtf-overlay-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3400;
    background: rgba(33, 32, 30, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.wtf-overlay-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.wtf-overlay {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(960px, 92vw);
    max-height: 88vh;
    overflow-y: auto;
    background: var(--bg-color);
    border: 4px solid var(--border-color);
    padding: 3rem 3rem 2.5rem 3rem;
    z-index: 3500;
    opacity: 0;
    pointer-events: none;
    transform-origin: center center;
    will-change: transform, opacity, border-radius;
    border-radius: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    color: var(--text-color);
    scrollbar-width: thin;
}
.wtf-overlay.morphing {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.35s ease,
                border-radius 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.wtf-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.wtf-overlay-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    background: var(--bg-color);
    color: var(--border-color);
    font-family: 'Archivo', sans-serif;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.25s ease 0.25s, background-color 0.2s ease, color 0.2s ease;
}
.wtf-overlay.active .wtf-overlay-close {
    opacity: 1;
}
.wtf-overlay-close:hover {
    background: var(--border-color);
    color: var(--bg-color);
}

.wtf-content {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}
.wtf-overlay.active .wtf-content {
    opacity: 1;
}

.wtf-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.wtf-brand-pill {
    border: 3px solid var(--border-color);
    border-radius: 50px;
    padding: 0.4rem 1.4rem;
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 125, "wght" 800;
    font-size: 1rem;
    color: var(--text-color);
    letter-spacing: 0.02em;
}
.wtf-meta-pill {
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0.35rem 1.1rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-color);
}

.wtf-display {
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 125, "wght" 900;
    font-size: clamp(3.5rem, 9vw, 7rem);
    line-height: 0.85;
    letter-spacing: -0.03em;
    text-transform: lowercase;
    margin: 0.5rem 0 0.5rem 0;
    color: var(--text-color);
    user-select: none;
}

.wtf-section {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    border-top: 2px solid var(--border-color);
    padding-top: 1.4rem;
}

.wtf-h {
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 125, "wght" 900;
    font-size: clamp(1.4rem, 2.8vw, 2.1rem);
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    color: var(--text-color);
}

.wtf-p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.15vw, 1.05rem);
    line-height: 1.55;
    color: var(--text-color);
    max-width: 70ch;
}
.wtf-p strong {
    font-weight: 900;
    letter-spacing: 0.01em;
}

.wtf-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-color);
}

/* Roster (who's in) */
.wtf-roster {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.wtf-roster-row {
    display: grid;
    grid-template-columns: auto minmax(120px, 18%) 1fr;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px dashed var(--border-color);
}
.wtf-roster-row:last-child {
    border-bottom: none;
}

.wtf-roster-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
    background: var(--border-color);
    flex-shrink: 0;
    display: block;
}
.wtf-roster-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 25% 38%;
    display: block;
    transform: scale(1.35);
    transform-origin: 25% 38%;
}

.wtf-roster-name {
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 125, "wght" 900;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--text-color);
}

.wtf-roster-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
}

.wtf-role {
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0.3rem 0.9rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-color);
    white-space: nowrap;
}
.wtf-role em {
    font-style: normal;
    opacity: 0.7;
    margin-left: 0.3rem;
    text-transform: none;
    letter-spacing: 0.02em;
}

@media (max-width: 600px) {
    .wtf-roster-row {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "avatar name"
            "roles  roles";
        gap: 0.7rem 0.9rem;
        padding: 0.9rem 0;
    }
    .wtf-roster-avatar { grid-area: avatar; width: 52px; height: 52px; }
    .wtf-roster-name   { grid-area: name; }
    .wtf-roster-roles  { grid-area: roles; }
    .wtf-role {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .wtf-overlay {
        padding: 2rem 1.4rem 1.6rem 1.4rem;
        width: 94vw;
        max-height: 90vh;
    }
    .wtf-content {
        gap: 1.6rem;
    }
    .wtf-display {
        font-size: clamp(2.8rem, 13vw, 4.5rem);
    }
    .wtf-section {
        padding-top: 1rem;
    }
}
/* ============================================================
   TIER SYSTEM (free / circle / circle-plus)
   ============================================================ */

/* === 3-tier comparison: cream cards on dark stage === */
#inner-circle .ic-view-free {
    padding: 0;
}

/* Stage holds the dark grid backdrop and the 3 cards */
#inner-circle .ic-view-free .ic-stage {
    min-height: 0;
    padding: 4rem 2rem;
    align-items: stretch;
}

#inner-circle .ic-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Each plan = cream card in the same style as the old single perks card */
#inner-circle .ic-plan {
    position: relative;
    background-color: var(--bg-color);
    color: var(--black);
    padding: 2rem 1.8rem 1.6rem;
    box-shadow: 0 18px 48px rgba(33, 32, 30, 0.18);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    opacity: 0;
    transform: translateY(10px);
    animation: icPerkIn 480ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#inner-circle .ic-plan:nth-child(1) { animation-delay: 120ms; }
#inner-circle .ic-plan:nth-child(2) { animation-delay: 220ms; }
#inner-circle .ic-plan:nth-child(3) { animation-delay: 320ms; }

#inner-circle .ic-plan:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 56px rgba(33, 32, 30, 0.26);
}

#inner-circle .ic-plan-flag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    color: var(--white);
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 110, "wght" 800;
    font-style: italic;
    font-size: 0.7rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    z-index: 2;
}

/* Plan head: brand pill stack + price */
#inner-circle .ic-plan-head {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: flex-start;
}

/* Card-header pills inside each plan */
#inner-circle .ic-plan .ic-card-header {
    margin-bottom: 0;
    align-items: flex-start;
}

#inner-circle .ic-plan .ic-pill-brand {
    border-color: var(--black);
    color: var(--black);
}

#inner-circle .ic-plan .ic-pill-sub {
    background: var(--black);
    color: var(--white);
}

#inner-circle .ic-plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-family: 'Archivo', sans-serif;
    color: var(--black);
}

#inner-circle .ic-plan-price-num {
    font-variation-settings: "wdth" 110, "wght" 800;
    font-size: 2.6rem;
    line-height: 1;
}

#inner-circle .ic-plan-price-num::before {
    content: "€";
    font-size: 1.2rem;
    font-variation-settings: "wdth" 110, "wght" 700;
    margin-right: 0.15rem;
    opacity: 0.65;
}

#inner-circle .ic-plan-price-unit {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Per-plan perks: smaller scale than the original solo card so 3 cards fit nicely */
#inner-circle .ic-plan .ic-perks {
    margin: 0.4rem 0 1rem;
    gap: 1rem;
    flex: 1;
    align-items: flex-start;
    text-align: left;
}

#inner-circle .ic-plan .ic-perk {
    text-align: left;
    width: 100%;
}

#inner-circle .ic-plan .ic-perk-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--black);
}

#inner-circle .ic-plan .ic-perk-desc {
    font-size: 0.82rem;
    color: var(--black);
    line-height: 1.4;
    margin-top: 0.15rem;
}

#inner-circle .ic-plan .ic-perk--muted {
    opacity: 0.4;
}

#inner-circle .ic-plan .ic-perk-spark {
    display: inline-flex;
    line-height: 0;
    will-change: transform, opacity;
    animation: icSparkTwinkle 2.4s ease-in-out infinite;
}
#inner-circle .ic-plan .ic-perk-spark svg {
    display: block;
    image-rendering: pixelated;
    shape-rendering: crispEdges;
    fill: currentColor;
}
#inner-circle .ic-plan .ic-perk-spark--diamond { color: #00e5ff; }
#inner-circle .ic-plan .ic-perk-spark--bolt    { color: #ffe600; animation-delay: 0.4s; }
#inner-circle .ic-plan .ic-perk-spark--ring    { color: #ff2d95; animation-delay: 0.8s; }
#inner-circle .ic-plan .ic-perk-spark--plus    { color: #39ff14; animation-delay: 1.2s; }

/* CTA */
#inner-circle .ic-plan-cta-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    margin-top: auto;
}

#inner-circle .ic-plan .ic-pill-cta {
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.8rem;
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 110, "wght" 800;
    font-style: italic;
    font-size: 1rem;
    text-transform: lowercase;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
#inner-circle .ic-plan .ic-pill-cta:hover { transform: translateY(-1px); }
#inner-circle .ic-plan .ic-pill-cta:active { transform: translateY(0); opacity: 0.9; }

#inner-circle .ic-plan-current {
    display: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--black);
    opacity: 0.7;
    border: 1px dashed rgba(33, 32, 30, 0.45);
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
}

/* current plan markers — driven by data-ic-state */
#inner-circle[data-ic-state="free"] .ic-plan-free .ic-pill-cta,
#inner-circle[data-ic-state="circle"] .ic-plan-circle .ic-pill-cta,
#inner-circle[data-ic-state="circle-plus"] .ic-plan-plus .ic-pill-cta {
    display: none;
}
#inner-circle[data-ic-state="free"] .ic-plan-free .ic-plan-current,
#inner-circle[data-ic-state="circle"] .ic-plan-circle .ic-plan-current,
#inner-circle[data-ic-state="circle-plus"] .ic-plan-plus .ic-plan-current {
    display: inline-block;
}

/* Highlight the active plan with a subtle outline */
#inner-circle[data-ic-state="free"] .ic-plan-free,
#inner-circle[data-ic-state="circle"] .ic-plan-circle,
#inner-circle[data-ic-state="circle-plus"] .ic-plan-plus {
    outline: 2px solid var(--black);
    outline-offset: -2px;
}

/* hide the "downgrade" CTA on lower tiers — only allow upgrades from the comparison */
#inner-circle[data-ic-state="circle"] .ic-plan-free .ic-pill-cta,
#inner-circle[data-ic-state="circle-plus"] .ic-plan-free .ic-pill-cta,
#inner-circle[data-ic-state="circle-plus"] .ic-plan-circle .ic-pill-cta {
    display: none;
}
#inner-circle[data-ic-state="circle"] .ic-plan-free .ic-plan-cta-wrap::before,
#inner-circle[data-ic-state="circle-plus"] .ic-plan-free .ic-plan-cta-wrap::before,
#inner-circle[data-ic-state="circle-plus"] .ic-plan-circle .ic-plan-cta-wrap::before {
    content: "downgrade";
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.35;
    cursor: default;
    color: var(--black);
}

/* === DEV TOGGLE updates === */
.account-dev-sep {
    color: var(--white);
    opacity: 0.4;
    margin: 0 0.3rem;
    align-self: center;
}

/* === ACCOUNT: PLAN SECTION === */
.acc-section--plan {
    position: relative;
}

.acc-row[hidden] {
    display: none !important;
}

.acc-tier-badge {
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 110, "wght" 800;
    font-style: italic;
    font-size: 0.78rem;
    text-transform: lowercase;
    border: 1.5px solid var(--white);
    border-radius: 999px;
    padding: 0.25rem 0.85rem;
    line-height: 1;
    color: var(--white);
}

.acc-tier-badge[data-tier="circle"] {
    background: rgba(250, 249, 246, 0.12);
}

.acc-tier-badge[data-tier="circle-plus"] {
    background: var(--white);
    color: var(--black);
}

.acc-row-action--ghost {
    background: transparent !important;
    border: none !important;
    color: var(--white) !important;
    opacity: 0.55;
    font-family: 'Space Mono', monospace !important;
    font-size: 0.75rem !important;
    text-transform: lowercase !important;
    letter-spacing: 0.04em !important;
    cursor: default !important;
}

.acc-quota-bar {
    height: 4px;
    background: rgba(250, 249, 246, 0.12);
    margin-top: 0.6rem;
    overflow: hidden;
    border-radius: 2px;
}

.acc-quota-bar > span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--white);
    transition: width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.acc-quota-bar[data-quota-state="full"] > span {
    background: #ff6b4a;
}
.acc-quota-bar[data-quota-state="unlimited"] {
    display: none;
}

/* === BEAT-CARD: quota / lock indicators === */
.card-btn.download-btn[data-quota-locked="true"] {
    background: transparent;
    color: var(--white);
    border-style: dashed;
    cursor: pointer;
    opacity: 0.6;
}
.card-btn.download-btn[data-quota-locked="true"]:hover {
    opacity: 1;
}

.card-quota-hint {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--white);
    opacity: 0.55;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.15rem;
    line-height: 1;
}

/* === IC-TAG context: shows "upgrade" or "locked" depending on tier === */
body[data-tier="circle-plus"] .beat-card:not(.ic-beat-card) .ic-tag {
    display: none;
}

/* === OV upgrade button visibility === */
body[data-tier="circle-plus"] [data-ov-upgrade] {
    display: none;
}

/* === DOWNLOAD CONFIRM DIALOG === */
.dl-confirm {
    position: fixed;
    inset: 0;
    background: rgba(20, 19, 18, 0.78);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.dl-confirm[data-open="true"] {
    display: flex;
    animation: dlFadeIn 220ms ease forwards;
}

@keyframes dlFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.dl-confirm-card {
    background: var(--bg-color);
    color: var(--black);
    width: 100%;
    max-width: 440px;
    padding: 2rem 2rem 1.5rem;
    box-shadow: 0 18px 48px rgba(33, 32, 30, 0.4);
    transform: translateY(10px);
    animation: dlCardIn 320ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    position: relative;
}

@keyframes dlCardIn {
    to { transform: translateY(0); }
}

.dl-confirm-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 1.6rem;
}

.dl-confirm-head .ic-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--black);
    border-radius: 999px;
    padding: 0.4rem 1.2rem;
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 125, "wght" 800;
    font-size: 1.15rem;
    background: transparent;
    color: var(--black);
    line-height: 1;
}

.dl-confirm-head .ic-pill-brand {
    font-size: 1.35rem;
    letter-spacing: 0.01em;
    border-color: var(--black);
    color: var(--black);
}

.dl-confirm-head .ic-pill-sub {
    margin-top: -0.6rem;
    margin-left: 1.2rem;
    background: var(--black);
    color: var(--white);
    font-style: italic;
    font-variation-settings: "wdth" 110, "wght" 700;
    font-size: 0.95rem;
    padding: 0.3rem 1rem;
    border: 3px solid var(--black);
}

.dl-confirm-title {
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 110, "wght" 800;
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    line-height: 1.1;
    color: var(--black);
    text-transform: lowercase;
}

.dl-confirm-meta {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    margin: 0 0 1.2rem;
    color: var(--black);
    opacity: 0.75;
    line-height: 1.4;
}

.dl-confirm-bar {
    height: 4px;
    background: rgba(33, 32, 30, 0.12);
    margin-bottom: 1.4rem;
    overflow: hidden;
    border-radius: 2px;
}

.dl-confirm-bar > span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--black);
    transition: width 0.3s ease;
}

.dl-confirm-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    margin-bottom: 0.8rem;
}

.dl-confirm-btn {
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1.6rem;
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 110, "wght" 800;
    font-style: italic;
    font-size: 0.95rem;
    text-transform: lowercase;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.dl-confirm-btn:hover { transform: translateY(-1px); }
.dl-confirm-btn:active { transform: translateY(0); opacity: 0.9; }

.dl-confirm-btn--ghost {
    background: transparent;
    color: var(--black);
    border: 1.5px solid var(--black);
}

.dl-confirm-upgrade {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(33, 32, 30, 0.15);
    padding: 0.8rem 0 0;
    margin-top: 0.4rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--black);
    opacity: 0.7;
    cursor: pointer;
    text-align: center;
    text-transform: lowercase;
}
.dl-confirm-upgrade:hover { opacity: 1; }
.dl-confirm-upgrade strong {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* === Mobile: stack 3-tier card === */
@media (max-width: 800px) {
    #inner-circle .ic-plans {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    #inner-circle .ic-view-free {
        padding: 2rem 1.2rem 2.5rem;
    }
}
