/* MuzeArk v3.25.2 - Complete Styles */

:root {
    --mz-bg: #0d0d0d;
    --mz-surface: #1a1a1a;
    --mz-surface-hover: #252525;
    --mz-surface-active: #2a2a2a;
    --mz-border: #333;
    --mz-text: #fff;
    --mz-text-primary: #fff;
    --mz-text-secondary: #888;
    --mz-text-muted: #888;
    --mz-accent: #e2ba87;
    --mz-accent-hover: #c9a070;
    --mz-success: #4ade80;
    --mz-money: #4ade80;
    --mz-error: #ef4444;
    --mz-sidebar-width: 240px;
    --mz-nowplaying-width: 320px;
    --mz-radius: 8px;
    --mz-radius-lg: 12px;
    --mz-transition: 0.2s ease;
    --mz-spacing-xs: 4px;
    --mz-spacing-sm: 8px;
    --mz-spacing-md: 16px;
    --mz-spacing-lg: 24px;
    --mz-spacing-xl: 32px;
}

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

/* Prevent browser pull-to-refresh on mobile */
html, body {
    overscroll-behavior-y: none;
    /* Prevent text zoom on orientation change */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.muzeark-app {
    display: grid;
    grid-template-columns: var(--mz-sidebar-width) 1fr var(--mz-nowplaying-width);
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height - fixes Safari */
    height: 100vh;
    height: 100dvh;
    background: var(--mz-bg);
    color: var(--mz-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    position: fixed;
    inset: 0;
    z-index: 99999;
    /* Prevent zoom on double-tap and pinch */
    touch-action: pan-x pan-y;
    -webkit-text-size-adjust: 100%;
}

/* Sidebar collapsed state - icons only */
.muzeark-app.sidebar-collapsed {
    grid-template-columns: 60px 1fr var(--mz-nowplaying-width);
}

/* Panel collapsed state */
.muzeark-app.panel-collapsed {
    grid-template-columns: var(--mz-sidebar-width) 1fr 0;
}

.muzeark-app.sidebar-collapsed.panel-collapsed {
    grid-template-columns: 60px 1fr 0;
}

/* Scrollbar */
.muzeark-app ::-webkit-scrollbar { width: 8px; }
.muzeark-app ::-webkit-scrollbar-track { background: transparent; }
.muzeark-app ::-webkit-scrollbar-thumb { background: var(--mz-border); border-radius: 4px; }

/* =============================================
   SIDEBAR
============================================= */
.muzeark-sidebar {
    background: var(--mz-surface);
    border-right: 1px solid var(--mz-border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    transition: width var(--mz-transition);
}

/* Sidebar collapsed - icons only mode */
.muzeark-app.sidebar-collapsed .muzeark-sidebar {
    width: 60px;
    min-width: 60px;
}

.muzeark-app.sidebar-collapsed .muzeark-sidebar__header {
    padding: 16px 12px;
    justify-content: center;
}

.muzeark-app.sidebar-collapsed .muzeark-logo img {
    height: 28px;
}

.muzeark-app.sidebar-collapsed .muzeark-sidebar__chevron {
    display: none;
}

.muzeark-app.sidebar-collapsed .muzeark-sidebar__collapse {
    display: none;
}

.muzeark-app.sidebar-collapsed .muzeark-search {
    display: none;
}

.muzeark-app.sidebar-collapsed .muzeark-nav {
    padding: 8px 6px;
}

.muzeark-app.sidebar-collapsed .muzeark-nav__item {
    padding: 12px;
    justify-content: center;
}

.muzeark-app.sidebar-collapsed .muzeark-nav__item span {
    display: none;
}

.muzeark-app.sidebar-collapsed .muzeark-user {
    flex-direction: column;
    padding: 12px 8px;
    gap: 8px;
}

.muzeark-app.sidebar-collapsed .muzeark-user__profile {
    justify-content: center;
}

.muzeark-app.sidebar-collapsed .muzeark-user__name,
.muzeark-app.sidebar-collapsed .muzeark-user__logout {
    display: none;
}

.muzeark-sidebar__header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--mz-border);
    cursor: pointer;
    transition: background var(--mz-transition);
}

.muzeark-sidebar__header:hover {
    background: var(--mz-surface-hover);
}

.muzeark-logo {
    display: flex;
    align-items: center;
}

.muzeark-logo img { height: 36px; width: auto; }

.muzeark-logo__text {
    font-size: 28px;
    font-weight: 700;
    color: var(--mz-accent);
    font-family: Georgia, serif;
}

/* Sidebar header chevron */
.muzeark-sidebar__chevron {
    color: var(--mz-text-secondary);
    transition: transform var(--mz-transition), color var(--mz-transition);
    flex-shrink: 0;
}

.muzeark-sidebar__header:hover .muzeark-sidebar__chevron {
    color: var(--mz-accent);
}

/* Flip chevron when collapsed */
.muzeark-app.sidebar-collapsed .muzeark-sidebar__chevron {
    transform: rotate(180deg);
}

/* Hide old collapse button */
.muzeark-sidebar__collapse {
    background: transparent;
    border: none;
    color: var(--mz-text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--mz-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--mz-transition);
}

.muzeark-sidebar__collapse svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
}

.muzeark-sidebar__collapse:hover {
    background: var(--mz-surface-hover);
    color: var(--mz-text);
}

/* Sidebar Expand Button (shown inside collapsed sidebar) */
.muzeark-sidebar-expand {
    display: none;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--mz-text-secondary);
    cursor: pointer;
    justify-content: center;
    align-items: center;
    transition: all var(--mz-transition);
    margin-top: auto;
    margin-bottom: 60px;
}

.muzeark-sidebar-expand svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
}

.muzeark-sidebar-expand:hover {
    background: var(--mz-surface-hover);
    color: var(--mz-accent);
}

.muzeark-app.sidebar-collapsed .muzeark-sidebar-expand {
    display: flex;
}

.muzeark-app.sidebar-collapsed .muzeark-sidebar__spacer {
    display: none;
}

/* Search */
.muzeark-search {
    padding: 12px 16px;
    position: relative;
}

.muzeark-search__icon {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mz-text-secondary);
    pointer-events: none;
}

.muzeark-search input {
    width: 100%;
    padding: 10px 36px 10px 40px;
    background: var(--mz-bg);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    color: var(--mz-text);
    font-size: 14px;
    outline: none;
    transition: border-color var(--mz-transition);
}

.muzeark-search input:focus { border-color: var(--mz-accent); }
.muzeark-search input::placeholder { color: var(--mz-text-secondary); }

.muzeark-search__clear {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--mz-text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: none;
    padding: 4px 8px;
    line-height: 1;
}

.muzeark-search__clear.visible { display: block; }
.muzeark-search__clear:hover { color: var(--mz-text); }

/* Navigation */
.muzeark-nav { padding: 8px 12px; }

.muzeark-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--mz-text-secondary);
    text-decoration: none;
    border-radius: var(--mz-radius);
    transition: all var(--mz-transition);
    font-size: 14px;
    font-weight: 500;
}

.muzeark-nav__item:hover { color: var(--mz-text); background: var(--mz-surface-hover); }
.muzeark-nav__item.active { color: var(--mz-accent); background: rgba(226, 186, 135, 0.1); }

.muzeark-sidebar__spacer { flex: 1; }

/* User */
.muzeark-user {
    padding: 16px 20px;
    border-top: 1px solid var(--mz-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.muzeark-user__profile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.muzeark-user__profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.muzeark-user__name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.muzeark-user__logout {
    color: var(--mz-text-secondary);
    font-size: 12px;
    text-decoration: none;
}

.muzeark-user__logout:hover { color: var(--mz-accent); }

/* =============================================
   MAIN CONTENT
============================================= */
.muzeark-main {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: var(--mz-bg);
}

/* Filters Bar */
.muzeark-filters {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--mz-border);
    flex-shrink: 0;
}

.muzeark-filters__count {
    font-size: 14px;
    color: var(--mz-text-secondary);
}

.muzeark-filters__count span:first-child {
    color: var(--mz-accent);
    font-weight: 600;
}

.search-info { color: var(--mz-accent); margin-left: 8px; }

.muzeark-filters__controls {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.muzeark-select {
    padding: 8px 28px 8px 10px;
    background: var(--mz-surface);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    color: var(--mz-text);
    font-size: 13px;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23888'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    min-width: 0;
    flex-shrink: 1;
}

.muzeark-select:hover { border-color: #444; }
.muzeark-select:focus { border-color: var(--mz-accent); }

/* ══════════════════════════════════════════
   T.U.N.E. — Tactile UI Navigation Experience
   ══════════════════════════════════════════ */
.muzeark-tune-bar { display: flex; align-items: center; gap: 0; padding: 0; }
.muzeark-tune-bar .muzeark-filters__count { padding: 0 18px; white-space: nowrap; flex-shrink: 0; }
.muzeark-tune-bar .muzeark-filters__controls { flex-shrink: 0; margin-left: 0; }

/* Trigger — brown, stretches between count and sort */
.muzeark-tune-trigger {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
    height: 100%; min-height: 48px; padding: 0 20px; margin: 0;
    cursor: pointer; border: none;
    background: linear-gradient(135deg, #3d2e1e, #2a1f14);
    color: var(--mz-accent, #e2ba87);
    transition: all 0.25s;
    border-left: 1px solid rgba(226,186,135,0.15);
    border-right: 1px solid rgba(226,186,135,0.15);
}
.muzeark-tune-trigger:hover { background: linear-gradient(135deg, #4a3824, #352818); }
.muzeark-tune-trigger.open { background: linear-gradient(135deg, #4a3824, #352818); box-shadow: inset 0 -2px 0 var(--mz-accent, #e2ba87); }
.muzeark-tune-fork { stroke: var(--mz-accent, #e2ba87); transition: transform 0.3s; }
.muzeark-tune-trigger:hover .muzeark-tune-fork,
.muzeark-tune-trigger.open .muzeark-tune-fork { transform: rotate(-12deg); }
.mz-tune-vib { animation: mzTuneVib 0.5s ease; }
@keyframes mzTuneVib { 0%,100%{transform:rotate(0)} 20%{transform:rotate(-5deg)} 40%{transform:rotate(4deg)} 60%{transform:rotate(-2deg)} }
.muzeark-tune-label { font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 3px; line-height: 1; }
.muzeark-tune-arrow { opacity: 0.5; transition: transform 0.3s; }
.muzeark-tune-trigger.open .muzeark-tune-arrow { transform: rotate(180deg); }

/* Expanded Panel */
.muzeark-tune-panel {
    max-height: 0; overflow: hidden; opacity: 0;
    background: rgba(10,10,10,0.97);
    border-bottom: 1px solid transparent;
    transition: max-height 0.45s cubic-bezier(0.22,1,0.36,1), opacity 0.25s;
}
.muzeark-tune-panel.open { max-height: 75vh; opacity: 1; border-bottom-color: var(--mz-border, #222); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.muzeark-tune-panel::-webkit-scrollbar { width: 6px; }
.muzeark-tune-panel::-webkit-scrollbar-track { background: transparent; }
.muzeark-tune-panel::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
.muzeark-tune-panel__inner { padding: 20px 24px 16px; }
.muzeark-tune-panel__head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.muzeark-tune-panel__head svg { stroke: var(--mz-accent, #e2ba87); flex-shrink: 0; }
.muzeark-tune-panel__title { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 3px; color: var(--mz-accent, #e2ba87); }
.muzeark-tune-panel__sub { font-size: 10px; letter-spacing: 1.5px; color: #444; text-transform: uppercase; font-weight: 600; }
.muzeark-tune-panel__hint { margin-left: auto; font-size: 12px; color: #666; }

/* Section */
.mz-tune-section { margin-bottom: 18px; }
.mz-tune-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid #1a1a1a; }
.mz-tune-section__title { font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 1.5px; color: var(--mz-text, #f0ece4); }
.mz-tune-section__ct { font-size: 11px; color: #777; font-weight: 600; background: #1e1e1e; padding: 2px 9px; border-radius: 10px; transition: all 0.3s; }
.mz-tune-section__ct.full { color: var(--mz-accent, #e2ba87); background: rgba(226,186,135,0.12); }

/* Chip Grid */
.mz-tune-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mz-tune-chip {
    position: relative; display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 22px;
    background: #1a1a1a; border: 1px solid #2a2a2a;
    font-size: 12.5px; font-weight: 500; color: var(--mz-text, #f0ece4);
    cursor: pointer; user-select: none; transition: all 0.2s; overflow: hidden;
}
.mz-tune-chip:hover { border-color: #3a3a3a; background: #252525; transform: translateY(-1px); }
.mz-tune-chip.sel {
    background: rgba(226,186,135,0.1); border-color: var(--mz-accent, #e2ba87);
    color: var(--mz-accent, #e2ba87); box-shadow: 0 0 10px rgba(226,186,135,0.12);
}
.mz-tune-chip.off { opacity: 0.3; cursor: not-allowed; transform: none !important; }
.mz-tune-chip.off:hover { border-color: #2a2a2a; background: #1a1a1a; transform: none; }

/* Emoji in chip */
.mz-tune-chip__em { font-size: 14px; line-height: 1; flex-shrink: 0; }
.mz-tune-chip.sel .mz-tune-chip__em { transform: scale(1.15); transition: transform 0.3s; }

/* Expand/collapse button for large sections */
.mz-tune-expand-btn {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 8px; padding: 6px 14px;
    background: transparent; border: 1px dashed #333;
    border-radius: 16px; color: #777; font-size: 12px;
    font-family: inherit; cursor: pointer; transition: all 0.2s;
}
.mz-tune-expand-btn:hover { border-color: var(--mz-accent, #e2ba87); color: var(--mz-accent, #e2ba87); }
.mz-tune-expand-arrow { font-size: 10px; transition: transform 0.3s; }

/* RNG Animations */
.mz-tune-chip::before {
    content: ''; position: absolute; inset: -1px; border-radius: 22px;
    opacity: 0; pointer-events: none;
    background: radial-gradient(ellipse at 50% 50%, rgba(226,186,135,0.35), transparent 70%);
}
.mz-tune-chip.mz-tune-rng-pulse::before { animation: mzTuneRngP 1.6s ease-out forwards; }
@keyframes mzTuneRngP { 0%{opacity:0} 20%{opacity:0.5} 100%{opacity:0} }

.mz-tune-sparkle { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--mz-accent, #e2ba87); opacity: 0; pointer-events: none; }
.mz-tune-chip.mz-tune-rng-sparkle .mz-tune-sparkle { animation: mzTuneSpk 1s ease-out forwards; }
@keyframes mzTuneSpk { 0%{opacity:0;transform:translate(0,0) scale(.5)} 25%{opacity:1;transform:translate(var(--sx),var(--sy)) scale(1)} 100%{opacity:0;transform:translate(var(--ex),var(--ey)) scale(0)} }

.mz-tune-chip.mz-tune-rng-bounce { animation: mzTuneBnc .5s ease; }
@keyframes mzTuneBnc { 0%,100%{transform:scale(1)} 30%{transform:scale(1.06)} 60%{transform:scale(.97)} }

/* Result count */
.mz-tune-result { text-align: center; margin-top: 16px; padding: 14px; border: 1px dashed #2a2a2a; border-radius: 10px; color: #777; font-size: 13px; }
.mz-tune-result__num { font-family: 'Bebas Neue', sans-serif; font-size: 40px; color: var(--mz-accent, #e2ba87); line-height: 1; margin-bottom: 2px; }

/* Bottom Action Bar */
.muzeark-tune-actbar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #161616; border-top: 1px solid #333;
    padding: 12px 20px; display: flex; align-items: center; gap: 14px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
    z-index: 9999;
}
.muzeark-tune-actbar.vis { transform: translateY(0); }
.muzeark-tune-actbar__chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.mz-tune-act-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 10px; border-radius: 16px;
    background: rgba(226,186,135,0.12); border: 1px solid rgba(226,186,135,0.3);
    font-size: 11px; font-weight: 600; color: var(--mz-accent, #e2ba87);
    cursor: pointer; transition: background 0.2s;
}
.mz-tune-act-chip:hover { background: rgba(226,186,135,0.2); }
.mz-tune-act-chip .x { font-size: 12px; opacity: 0.5; margin-left: 1px; }
.muzeark-tune-actbar__clear { font-size: 11px; color: #777; cursor: pointer; text-decoration: underline; white-space: nowrap; }
.muzeark-tune-actbar__btn {
    font-family: 'Bebas Neue', sans-serif; font-size: 14px; letter-spacing: 2px;
    padding: 10px 24px; background: var(--mz-accent, #e2ba87); color: #0d0d0d;
    border: none; border-radius: 6px; cursor: pointer; font-weight: 700;
    white-space: nowrap; transition: all 0.2s;
}
.muzeark-tune-actbar__btn:hover { background: #d4a96f; }
.muzeark-tune-actbar__ct { font-family: 'DM Sans', sans-serif; font-size: 10px; display: block; text-align: center; margin-top: 1px; letter-spacing: 0; font-weight: 500; opacity: 0.7; }

/* Hide T.U.N.E. on non-beats views */
.muzeark-app[data-view="bundles"] .muzeark-tune-panel,
.muzeark-app[data-view="bundles"] .muzeark-tune-actbar,
.muzeark-app[data-view="dashboard"] .muzeark-tune-panel,
.muzeark-app[data-view="dashboard"] .muzeark-tune-actbar,
.muzeark-app[data-view="library"] .muzeark-tune-panel,
.muzeark-app[data-view="library"] .muzeark-tune-actbar,
.muzeark-app[data-view="charts"] .muzeark-tune-panel,
.muzeark-app[data-view="charts"] .muzeark-tune-actbar,
.muzeark-app[data-view="writings"] .muzeark-tune-panel,
.muzeark-app[data-view="writings"] .muzeark-tune-actbar { display: none !important; }

/* T.U.N.E. responsive */
@media (max-width: 768px) {
    .muzeark-tune-bar { flex-wrap: wrap; }
    .muzeark-tune-trigger { order: -1; width: 100%; flex: none; min-height: 42px; border-left: none; border-right: none; border-bottom: 1px solid rgba(226,186,135,0.15); }
    .muzeark-tune-bar .muzeark-filters__count { padding: 0 14px; font-size: 13px; }
    .muzeark-tune-bar .muzeark-filters__controls { margin-left: auto; }
    .muzeark-tune-label { font-size: 13px; letter-spacing: 2px; }
    .mz-tune-chip { padding: 6px 10px; font-size: 11.5px; }
    .muzeark-tune-panel__inner { padding: 16px 14px 12px; }
    .muzeark-tune-actbar { padding: 10px 14px; }
    .muzeark-tune-actbar__btn { padding: 8px 16px; font-size: 12px; }
}

/* Tracks List - this is the scrollable container */
.muzeark-tracks {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
}

/* No Results */
.muzeark-no-results {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--mz-text-secondary);
    text-align: center;
}

.muzeark-no-results.visible { display: flex; }
.muzeark-no-results p { margin-top: 16px; font-size: 14px; }

/* Loading */
.muzeark-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    color: var(--mz-text-secondary);
    font-size: 14px;
}

.muzeark-app[data-loading="true"] .muzeark-loading { display: flex; }

.muzeark-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--mz-border);
    border-top-color: var(--mz-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================
   TRACK ROW (Simplified)
============================================= */
.muzeark-track {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    cursor: pointer;
    transition: background var(--mz-transition);
    border-bottom: 1px solid rgba(226, 186, 135, 0.1);
    position: relative;
}

.muzeark-track:hover { background: var(--mz-surface-hover); }
.muzeark-track.search-hidden { display: none; }

/* Playing indicator - gold wave lapping from left edge */
.muzeark-track.playing {
    /* No background blink — wave handles the visual */
}

@keyframes mzWaveLap {
    0%, 100% {
        width: 4px;
        opacity: 1;
        background: var(--mz-accent);
    }
    50% {
        width: 45px;
        opacity: 1;
        background: linear-gradient(to right, var(--mz-accent), rgba(226, 186, 135, 0.15), transparent);
    }
}

.muzeark-track.playing::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--mz-accent);
    animation: mzWaveLap 3.5s ease-in-out infinite;
}

.muzeark-track__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.muzeark-track__title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.muzeark-track.playing .muzeark-track__title {
    color: var(--mz-accent);
}

.muzeark-track__artist {
    font-size: 12px;
    color: var(--mz-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.muzeark-track__duration {
    font-size: 12px;
    color: var(--mz-text-secondary);
    min-width: 40px;
    text-align: right;
    flex-shrink: 0;
}

/* Track Actions - show on hover only */
.muzeark-track__actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--mz-transition), visibility var(--mz-transition);
    flex-shrink: 0;
}

.muzeark-track:hover .muzeark-track__actions {
    opacity: 1;
    visibility: visible;
}

.muzeark-track__actions .muzeark-btn--small {
    padding: 6px 12px;
    font-size: 11px;
}

/* =============================================
   PANEL TOGGLE
============================================= */
.muzeark-panel-toggle {
    position: fixed;
    right: var(--mz-nowplaying-width);
    top: 50%;
    transform: translateX(50%) translateY(-50%);
    width: 24px;
    height: 48px;
    background: var(--mz-surface);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    color: var(--mz-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 101;
    transition: all var(--mz-transition);
    padding: 0;
}

.muzeark-panel-toggle svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
    transition: transform var(--mz-transition);
}

.muzeark-panel-toggle:hover {
    background: var(--mz-accent);
    border-color: var(--mz-accent);
    color: #000;
}

/* When panel is collapsed, toggle stays visible on right edge */
.muzeark-app.panel-collapsed .muzeark-panel-toggle {
    right: 0;
    transform: translateY(-50%);
    border-radius: var(--mz-radius) 0 0 var(--mz-radius);
    background: var(--mz-accent);
    border-color: var(--mz-accent);
    color: #000;
}

.muzeark-app.panel-collapsed .muzeark-panel-toggle:hover {
    background: var(--mz-accent-hover);
}

.muzeark-app.panel-collapsed .muzeark-panel-toggle svg {
    transform: rotate(180deg);
}

/* =============================================
   NOW PLAYING
============================================= */
.muzeark-nowplaying {
    background: var(--mz-surface);
    border-left: 1px solid var(--mz-border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    transition: transform var(--mz-transition), opacity var(--mz-transition);
}

.muzeark-app.panel-collapsed .muzeark-nowplaying {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

.muzeark-nowplaying__empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--mz-text-secondary);
    text-align: center;
    padding: 32px;
}

.muzeark-nowplaying__empty p { margin-top: 16px; font-size: 14px; }

.muzeark-nowplaying__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
}

.muzeark-nowplaying__artwork {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--mz-radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--mz-bg);
}

.muzeark-nowplaying__artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.muzeark-nowplaying__info {
    text-align: center;
    margin-bottom: 16px;
}

.muzeark-nowplaying__info h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.muzeark-nowplaying__info p {
    font-size: 14px;
    color: var(--mz-text-secondary);
}

.muzeark-nowplaying__actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.muzeark-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    color: var(--mz-text-secondary);
    cursor: pointer;
    transition: all var(--mz-transition);
}

.muzeark-action-btn:hover { border-color: var(--mz-accent); color: var(--mz-accent); }

/* Like button active state */
#np-like,
#np-dislike,
.muzeark-action-btn[id="np-like"],
.muzeark-action-btn[id="np-dislike"] {
    transition: all 0.2s ease;
}

#np-like.active,
.muzeark-action-btn[id="np-like"].active {
    border-color: var(--mz-money);
    background: rgba(74, 222, 128, 0.15);
    color: var(--mz-money);
    transform: scale(1.05);
}

/* Dislike button active state */
#np-dislike.active,
.muzeark-action-btn[id="np-dislike"].active {
    border-color: var(--mz-error);
    background: rgba(239, 68, 68, 0.15);
    color: var(--mz-error);
    transform: scale(1.05);
}

/* Progress */
.muzeark-nowplaying__progress { margin-bottom: 16px; }

.muzeark-progress {
    height: 4px;
    background: var(--mz-border);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
}

.muzeark-progress__bar {
    height: 100%;
    background: var(--mz-accent);
    width: 0%;
    transition: width 0.1s linear;
}

.muzeark-nowplaying__time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--mz-text-secondary);
    margin-top: 6px;
}

/* Controls */
.muzeark-nowplaying__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.muzeark-ctrl-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--mz-text);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--mz-transition);
    padding: 0;
}

.muzeark-ctrl-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    display: block;
}

.muzeark-ctrl-btn:hover { background: var(--mz-surface-hover); }

.muzeark-ctrl-btn--play {
    width: 56px;
    height: 56px;
    background: var(--mz-accent);
    color: #000;
}

.muzeark-ctrl-btn--play svg {
    width: 28px;
    height: 28px;
}

.muzeark-ctrl-btn--play:hover { background: var(--mz-accent-hover); }

/* Volume Presets */
.muzeark-nowplaying__volume {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px 20px;
}

.muzeark-volume-presets {
    display: flex;
    gap: 8px;
}

.muzeark-volume-preset {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mz-text-secondary);
    background: var(--mz-surface);
    border: 1px solid var(--mz-border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.muzeark-volume-preset svg {
    width: 18px;
    height: 18px;
}

.muzeark-volume-preset:hover {
    background: rgba(226, 186, 135, 0.1);
    border-color: var(--mz-accent);
}

.muzeark-volume-preset.active {
    background: var(--mz-accent);
    color: #000;
    border-color: var(--mz-accent);
}

/* Meta */
.muzeark-nowplaying__meta {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.muzeark-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--mz-surface-hover);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    color: var(--mz-text-secondary);
}

/* CTA */
.muzeark-nowplaying__cta {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.muzeark-nowplaying__cta .muzeark-btn { flex: 1; }

/* =============================================
   BUTTONS
============================================= */
.muzeark-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--mz-radius);
    cursor: pointer;
    transition: all var(--mz-transition);
    text-decoration: none;
    border: none;
}

.muzeark-btn--primary { background: var(--mz-accent); color: #000; }
.muzeark-btn--primary:hover { background: var(--mz-accent-hover); }

.muzeark-btn--checkout { background: var(--mz-money); color: #000; }
.muzeark-btn--checkout:hover { background: #22c55e; }

.muzeark-btn--outline {
    background: transparent;
    border: 1px solid var(--mz-border);
    color: var(--mz-text);
}

.muzeark-btn--outline:hover { border-color: var(--mz-accent); color: var(--mz-accent); }
.muzeark-btn--block { display: block; width: 100%; text-align: center; }
.muzeark-btn--small { padding: 8px 14px; font-size: 12px; }
.muzeark-btn--full { width: 100%; }

/* =============================================
   CART FAB
============================================= */
.muzeark-cart-fab {
    position: fixed;
    bottom: 24px;
    right: calc(var(--mz-nowplaying-width) + 24px);
    width: 52px;
    height: 52px;
    background: var(--mz-surface);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius-lg);
    color: var(--mz-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all var(--mz-transition);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.muzeark-cart-fab svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
}

.muzeark-app.panel-collapsed .muzeark-cart-fab {
    right: 24px;
}

.muzeark-cart-fab:hover { background: var(--mz-surface-hover); transform: scale(1.05); }

.muzeark-cart-fab__count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    background: var(--mz-accent);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.muzeark-cart-fab.has-items {
    background: var(--mz-success);
    border-color: var(--mz-success);
}

.muzeark-cart-fab.has-items svg {
    fill: #000;
}

/* Cart FAB Firework Animation */
.muzeark-cart-fab.firework {
    animation: cartPop 0.4s ease;
}

.muzeark-cart-fab.firework::before,
.muzeark-cart-fab.firework::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    animation: fireworkBurst 0.6s ease-out forwards;
}

.muzeark-cart-fab.firework::before {
    border: 2px solid var(--mz-success);
}

.muzeark-cart-fab.firework::after {
    border: 2px solid var(--mz-accent);
    animation-delay: 0.1s;
}

@keyframes cartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes fireworkBurst {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* =============================================
   CART DRAWER
============================================= */
.muzeark-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.muzeark-drawer.open { display: block; }

.muzeark-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}

.muzeark-drawer__content {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 360px;
    max-width: 100%;
    background: var(--mz-surface);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.muzeark-drawer.open .muzeark-drawer__content { transform: translateX(0); }

.muzeark-drawer__header {
    padding: 20px;
    border-bottom: 1px solid var(--mz-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.muzeark-drawer__header h3 { font-size: 18px; font-weight: 600; }

.muzeark-drawer__close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--mz-text-secondary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--mz-radius);
}

.muzeark-drawer__close:hover { background: var(--mz-surface-hover); color: var(--mz-text); }

.muzeark-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.muzeark-drawer__footer {
    padding: 16px;
    border-top: 1px solid var(--mz-border);
}

.muzeark-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--mz-surface-hover);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    margin-bottom: 12px;
}

.muzeark-cart-item img {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--mz-border);
}

.muzeark-cart-item__info { flex: 1; min-width: 0; }

.muzeark-cart-item__title {
    font-size: 15px;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--mz-text);
    margin-bottom: 4px;
}

.muzeark-cart-item__license {
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}
.muzeark-cart-item__license--basic {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}
.muzeark-cart-item__license--premium {
    background: rgba(226, 186, 135, 0.15);
    color: #e2ba87;
}
.muzeark-cart-item__license--unlimited,
.muzeark-cart-item__license--exclusive {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.muzeark-cart-item__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--mz-money);
}

.muzeark-cart-item__remove {
    width: 32px;
    height: 32px;
    background: var(--mz-bg);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    color: var(--mz-accent);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--mz-transition);
    flex-shrink: 0;
}

.muzeark-cart-item__remove:hover {
    background: var(--mz-accent);
    border-color: var(--mz-accent);
    color: #000;
}

.muzeark-cart-item__remove:active {
    background: var(--mz-error);
    border-color: var(--mz-error);
    color: #fff;
}

.muzeark-cart-empty {
    text-align: center;
    color: var(--mz-text-secondary);
    padding: 40px 20px;
}

.muzeark-cart-empty a {
    color: var(--mz-accent);
}

/* Cart Total */
.muzeark-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 12px;
    border-top: 1px solid var(--mz-border);
    font-size: 16px;
    font-weight: 600;
}

.muzeark-cart-total span:last-child {
    color: var(--mz-money);
    font-size: 18px;
}

/* Back button in sheet header */
.muzeark-sheet__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--mz-text-secondary);
    cursor: pointer;
    border-radius: var(--mz-radius);
    transition: all var(--mz-transition);
    margin-right: auto;
}

.muzeark-sheet__back:hover {
    background: var(--mz-surface-hover);
    color: var(--mz-text);
}

/* Checkout loading */
.muzeark-loading-checkout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
    color: var(--mz-text-secondary);
}

/* =============================================
   DARK THEME EDD CHECKOUT FORM
============================================= */
#checkout-form {
    color: var(--mz-text);
}

#checkout-form * {
    box-sizing: border-box;
}

#checkout-form #edd_checkout_form_wrap,
#checkout-form #edd_checkout_wrap {
    background: transparent;
    padding: 0;
}

/* Cart table - dark theme */
#checkout-form #edd_checkout_cart,
#checkout-form table {
    background: var(--mz-surface);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    overflow: hidden;
}

#checkout-form th {
    background: var(--mz-surface-active);
    color: var(--mz-accent);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--mz-border);
}

#checkout-form td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--mz-border);
    color: var(--mz-text);
    font-size: 14px;
}

#checkout-form tr:last-child td {
    border-bottom: none;
}

#checkout-form .edd_cart_item_name,
#checkout-form .edd-cart-item-title {
    font-weight: 600;
}

#checkout-form .edd_cart_item_price,
#checkout-form .edd_cart_amount {
    color: var(--mz-money);
    font-weight: 600;
}

#checkout-form .edd_cart_total {
    font-size: 16px;
    font-weight: 700;
}

#checkout-form .edd_cart_total .edd_cart_amount {
    color: var(--mz-money);
    font-size: 18px;
}

#checkout-form .edd_cart_remove_item_btn,
#checkout-form a.edd_cart_remove_item_btn {
    color: var(--mz-accent);
    text-decoration: none;
}

#checkout-form .edd_cart_remove_item_btn:hover {
    color: var(--mz-error);
}

/* Save Cart button */
#checkout-form #edd_checkout_cart_form button,
#checkout-form .edd-cart-saving-button {
    background: var(--mz-surface-hover);
    color: var(--mz-text);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    padding: 10px 20px;
    font-size: 13px;
    cursor: pointer;
    margin: 10px 0;
}

#checkout-form #edd_checkout_cart_form button:hover,
#checkout-form .edd-cart-saving-button:hover {
    background: var(--mz-surface-active);
    border-color: var(--mz-accent);
}

/* Form sections */
#checkout-form #edd_checkout_user_info,
#checkout-form #edd_payment_mode_select,
#checkout-form #edd_cc_fields,
#checkout-form #edd_purchase_submit,
#checkout-form fieldset {
    background: var(--mz-surface);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    padding: 20px;
    margin-bottom: 16px;
}

#checkout-form legend,
#checkout-form #edd_payment_mode_select_wrap > p:first-child {
    color: var(--mz-text);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    padding: 0;
}

/* Form inputs */
#checkout-form input[type="text"],
#checkout-form input[type="email"],
#checkout-form input[type="tel"],
#checkout-form input[type="number"],
#checkout-form input[type="password"],
#checkout-form select,
#checkout-form textarea {
    background: var(--mz-bg);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    color: var(--mz-text);
    padding: 12px 14px;
    width: 100%;
    font-size: 14px;
    transition: border-color var(--mz-transition);
}

#checkout-form input:focus,
#checkout-form select:focus,
#checkout-form textarea:focus {
    border-color: var(--mz-accent);
    outline: none;
}

#checkout-form input::placeholder {
    color: var(--mz-text-secondary);
}

#checkout-form label {
    color: var(--mz-text);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

#checkout-form .edd-description {
    color: var(--mz-text-secondary);
    font-size: 12px;
    margin-top: 4px;
}

/* Payment method radio buttons */
#checkout-form #edd-payment-mode-wrap {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

#checkout-form .edd-gateway-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

#checkout-form input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--mz-accent);
}

#checkout-form .edd-gateway-option label {
    margin: 0;
    cursor: pointer;
}

/* Purchase button - GREEN */
#checkout-form #edd-purchase-button,
#checkout-form .edd-submit,
#checkout-form input[type="submit"] {
    background: var(--mz-money);
    color: #000;
    border: none;
    border-radius: var(--mz-radius);
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 16px;
    transition: background var(--mz-transition);
}

#checkout-form #edd-purchase-button:hover,
#checkout-form .edd-submit:hover,
#checkout-form input[type="submit"]:hover {
    background: #22c55e;
}

/* Coupon/discount code field */
#checkout-form #edd-discount-code-wrap {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

#checkout-form #edd-discount-code-wrap input {
    flex: 1;
}

#checkout-form #edd-discount-code-wrap button {
    background: var(--mz-surface-hover);
    border: 1px solid var(--mz-border);
    color: var(--mz-text);
    padding: 12px 20px;
    border-radius: var(--mz-radius);
    cursor: pointer;
    white-space: nowrap;
}

#checkout-form #edd-discount-code-wrap button:hover {
    border-color: var(--mz-accent);
    color: var(--mz-accent);
}

/* Required asterisk */
#checkout-form .edd-required-indicator {
    color: var(--mz-error);
}

/* Error messages */
#checkout-form .edd_errors,
#checkout-form .edd-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--mz-error);
    color: var(--mz-error);
    padding: 12px 16px;
    border-radius: var(--mz-radius);
    margin-bottom: 16px;
}

/* Success messages */
#checkout-form .edd-alert-success {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--mz-money);
    color: var(--mz-money);
}

/* Loading state */
#checkout-form .edd-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Cart sheet specific */
.muzeark-cart-sheet .muzeark-sheet__body {
    min-height: 100px;
}

.muzeark-cart-sheet .muzeark-sheet__footer {
    display: flex;
    flex-direction: column;
}

/* =============================================
   LICENSE SHEET (Centered Modal)
============================================= */
.muzeark-sheet {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.muzeark-sheet.open { 
    display: flex; 
}

.muzeark-sheet__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.muzeark-sheet__content {
    position: relative;
    background: var(--mz-surface);
    border-radius: var(--mz-radius-lg);
    max-height: 80vh;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.2s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.muzeark-sheet__handle {
    display: none; /* Hide handle since it's a modal now */
}

.muzeark-sheet__header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--mz-border);
    display: flex !important;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.muzeark-sheet__header h3 { font-size: 18px; font-weight: 600; color: var(--mz-accent); flex: 1; margin: 0; }

/* Ensure close button always shows */
.muzeark-sheet__header .muzeark-sheet__close {
    display: flex !important;
}

.muzeark-sheet__body {
    padding: 16px 20px 16px;
    overflow-y: auto;
    flex: 1;
}

.muzeark-sheet__footer {
    padding: 16px 20px 24px;
    border-top: 1px solid var(--mz-border);
}

/* License Options with descriptions */
.muzeark-license-option {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: var(--mz-bg);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all var(--mz-transition);
}

.muzeark-license-option:hover { border-color: var(--mz-accent); }

.muzeark-license-option__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.muzeark-license-option__name {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.muzeark-license-option__price {
    font-size: 18px;
    font-weight: 700;
    color: var(--mz-money);
}

.muzeark-license-option__desc {
    font-size: 12px;
    color: var(--mz-accent);
    line-height: 1.4;
}

/* =============================================
   MEMBER DOWNLOAD SHEET
============================================= */
.muzeark-dl-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--mz-border);
    cursor: pointer;
    text-decoration: none;
    color: var(--mz-text);
    transition: background 0.15s;
}
.muzeark-dl-file:hover {
    background: rgba(255,255,255,.05);
}
.muzeark-dl-file:last-of-type {
    border-bottom: none;
}
.muzeark-dl-file__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--mz-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #000;
}
.muzeark-dl-file__info {
    flex: 1;
    min-width: 0;
}
.muzeark-dl-file__name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.muzeark-dl-file__type {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,.08);
    color: var(--mz-text-secondary);
    flex-shrink: 0;
}

/* Dashboard download button */
.muzeark-beat-item__dl {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--mz-border);
    background: transparent;
    color: var(--mz-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}
.muzeark-beat-item__dl:hover {
    background: var(--mz-accent);
    border-color: var(--mz-accent);
    color: #000;
}

/* =============================================
   FULLSCREEN CHECKOUT OVERLAY
============================================= */
.muzeark-checkout-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--mz-bg);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.muzeark-checkout-overlay.open {
    display: flex;
}

.muzeark-checkout-overlay__header {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    background: var(--mz-surface);
    border-bottom: 1px solid var(--mz-border);
    flex-shrink: 0;
}

.muzeark-checkout-overlay__back {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--mz-accent);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--mz-radius);
    transition: all var(--mz-transition);
}

.muzeark-checkout-overlay__back:hover {
    background: var(--mz-surface-hover);
}

.muzeark-checkout-overlay__header h2 {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--mz-text);
}

.muzeark-checkout-overlay__spacer {
    width: 120px; /* Balance the back button */
}

.muzeark-checkout-overlay__content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Loading state in checkout */
.muzeark-checkout-overlay .muzeark-loading-checkout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 16px;
    color: var(--mz-text-secondary);
}

/* =============================================
   EDD CHECKOUT FORM - DEEP DARK THEME
============================================= */
.muzeark-checkout-overlay #edd_checkout_wrap,
.muzeark-checkout-overlay #edd_checkout_form_wrap {
    background: transparent !important;
    color: var(--mz-text);
}

/* Cart Table */
.muzeark-checkout-overlay #edd_checkout_cart {
    background: var(--mz-surface) !important;
    border: 1px solid var(--mz-border) !important;
    border-radius: var(--mz-radius-lg) !important;
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin-bottom: 24px !important;
    overflow: hidden;
}

.muzeark-checkout-overlay #edd_checkout_cart thead {
    background: var(--mz-surface-active) !important;
}

.muzeark-checkout-overlay #edd_checkout_cart th {
    background: transparent !important;
    color: var(--mz-text-secondary) !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    padding: 14px 20px !important;
    text-align: left !important;
    border-bottom: 1px solid var(--mz-border) !important;
}

.muzeark-checkout-overlay #edd_checkout_cart td {
    background: transparent !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid var(--mz-border) !important;
    color: var(--mz-text) !important;
    font-size: 14px !important;
}

.muzeark-checkout-overlay #edd_checkout_cart tr:last-child td {
    border-bottom: none !important;
}

.muzeark-checkout-overlay #edd_checkout_cart .edd_cart_item_name {
    font-weight: 600 !important;
    color: var(--mz-text) !important;
}

.muzeark-checkout-overlay #edd_checkout_cart .edd_cart_item_price,
.muzeark-checkout-overlay #edd_checkout_cart .edd_cart_amount {
    color: var(--mz-money) !important;
    font-weight: 600 !important;
}

.muzeark-checkout-overlay #edd_checkout_cart .edd_cart_total {
    background: var(--mz-surface-active) !important;
}

.muzeark-checkout-overlay #edd_checkout_cart .edd_cart_total td {
    font-size: 16px !important;
    font-weight: 700 !important;
    border-bottom: none !important;
}

.muzeark-checkout-overlay #edd_checkout_cart .edd_cart_total .edd_cart_amount {
    color: var(--mz-money) !important;
    font-size: 20px !important;
}

/* Remove link */
.muzeark-checkout-overlay #edd_checkout_cart a.edd_cart_remove_item_btn {
    color: var(--mz-text-secondary) !important;
    text-decoration: none !important;
    font-size: 13px !important;
    transition: color var(--mz-transition) !important;
}

.muzeark-checkout-overlay #edd_checkout_cart a.edd_cart_remove_item_btn:hover {
    color: var(--mz-error) !important;
}

/* Save Cart Button */
.muzeark-checkout-overlay #edd_checkout_cart_form .edd-cart-saving-button,
.muzeark-checkout-overlay #edd_checkout_cart_form button,
.muzeark-checkout-overlay .edd-save-cart-button {
    background: var(--mz-surface-hover) !important;
    color: var(--mz-text) !important;
    border: 1px solid var(--mz-border) !important;
    border-radius: var(--mz-radius) !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    margin: 16px 0 24px !important;
    transition: all var(--mz-transition) !important;
}

.muzeark-checkout-overlay #edd_checkout_cart_form .edd-cart-saving-button:hover,
.muzeark-checkout-overlay #edd_checkout_cart_form button:hover,
.muzeark-checkout-overlay .edd-save-cart-button:hover {
    background: var(--mz-surface-active) !important;
    border-color: var(--mz-accent) !important;
    color: var(--mz-accent) !important;
}

/* Fieldsets / Form Sections */
.muzeark-checkout-overlay #edd_checkout_user_info,
.muzeark-checkout-overlay #edd_payment_mode_select,
.muzeark-checkout-overlay #edd_cc_fields,
.muzeark-checkout-overlay #edd_purchase_submit,
.muzeark-checkout-overlay fieldset,
.muzeark-checkout-overlay #edd-payment-mode-wrap {
    background: var(--mz-surface) !important;
    border: 1px solid var(--mz-border) !important;
    border-radius: var(--mz-radius-lg) !important;
    padding: 24px !important;
    margin-bottom: 20px !important;
}

.muzeark-checkout-overlay legend,
.muzeark-checkout-overlay #edd_payment_mode_select legend {
    color: var(--mz-text) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 0 8px !important;
    margin-bottom: 0 !important;
    background: var(--mz-surface) !important;
}

/* Form Fields */
.muzeark-checkout-overlay input[type="text"],
.muzeark-checkout-overlay input[type="email"],
.muzeark-checkout-overlay input[type="tel"],
.muzeark-checkout-overlay input[type="number"],
.muzeark-checkout-overlay input[type="password"],
.muzeark-checkout-overlay select,
.muzeark-checkout-overlay textarea {
    background: var(--mz-bg) !important;
    border: 1px solid var(--mz-border) !important;
    border-radius: var(--mz-radius) !important;
    color: var(--mz-text) !important;
    padding: 14px 16px !important;
    width: 100% !important;
    font-size: 14px !important;
    transition: border-color var(--mz-transition) !important;
    box-sizing: border-box !important;
}

.muzeark-checkout-overlay input:focus,
.muzeark-checkout-overlay select:focus,
.muzeark-checkout-overlay textarea:focus {
    border-color: var(--mz-accent) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(226, 186, 135, 0.2) !important;
}

.muzeark-checkout-overlay input::placeholder {
    color: var(--mz-text-secondary) !important;
}

.muzeark-checkout-overlay label {
    color: var(--mz-text) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.muzeark-checkout-overlay .edd-description,
.muzeark-checkout-overlay span.edd-description {
    color: var(--mz-text-secondary) !important;
    font-size: 12px !important;
    margin-top: 4px !important;
}

/* Payment Method Radio Buttons */
.muzeark-checkout-overlay #edd-payment-mode-select {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
}

.muzeark-checkout-overlay .edd-gateway-option {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 20px !important;
    background: var(--mz-bg) !important;
    border: 1px solid var(--mz-border) !important;
    border-radius: var(--mz-radius) !important;
    cursor: pointer !important;
    transition: all var(--mz-transition) !important;
}

.muzeark-checkout-overlay .edd-gateway-option:hover {
    border-color: var(--mz-accent) !important;
}

.muzeark-checkout-overlay .edd-gateway-option input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: var(--mz-accent) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.muzeark-checkout-overlay .edd-gateway-option label {
    margin: 0 !important;
    cursor: pointer !important;
    font-size: 14px !important;
}

/* Stripe Card Element */
.muzeark-checkout-overlay #edd-stripe-card-element,
.muzeark-checkout-overlay .edd-stripe-card-element,
.muzeark-checkout-overlay #card-element,
.muzeark-checkout-overlay .card-element {
    background: var(--mz-bg) !important;
    border: 1px solid var(--mz-border) !important;
    border-radius: var(--mz-radius) !important;
    padding: 14px 16px !important;
    min-height: 44px !important;
}

/* Purchase Button - GREEN */
.muzeark-checkout-overlay #edd-purchase-button,
.muzeark-checkout-overlay .edd-submit,
.muzeark-checkout-overlay input[type="submit"],
.muzeark-checkout-overlay #edd_purchase_submit button {
    background: var(--mz-money) !important;
    color: #000 !important;
    border: none !important;
    border-radius: var(--mz-radius) !important;
    padding: 18px 32px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    width: 100% !important;
    margin-top: 8px !important;
    transition: background var(--mz-transition) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.muzeark-checkout-overlay #edd-purchase-button:hover,
.muzeark-checkout-overlay .edd-submit:hover,
.muzeark-checkout-overlay input[type="submit"]:hover,
.muzeark-checkout-overlay #edd_purchase_submit button:hover {
    background: #22c55e !important;
}

/* Discount/Coupon Code */
.muzeark-checkout-overlay #edd-discount-code-wrap {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-end !important;
    margin-bottom: 20px !important;
}

.muzeark-checkout-overlay #edd-discount-code-wrap input {
    flex: 1 !important;
}

.muzeark-checkout-overlay #edd-discount-code-wrap button,
.muzeark-checkout-overlay #edd-discount-code-wrap input[type="submit"] {
    background: var(--mz-surface-hover) !important;
    border: 1px solid var(--mz-border) !important;
    color: var(--mz-text) !important;
    padding: 14px 24px !important;
    border-radius: var(--mz-radius) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    width: auto !important;
    margin: 0 !important;
}

.muzeark-checkout-overlay #edd-discount-code-wrap button:hover,
.muzeark-checkout-overlay #edd-discount-code-wrap input[type="submit"]:hover {
    border-color: var(--mz-accent) !important;
    color: var(--mz-accent) !important;
}

/* Required Indicator */
.muzeark-checkout-overlay .edd-required-indicator {
    color: var(--mz-error) !important;
}

/* Error Messages */
.muzeark-checkout-overlay .edd_errors,
.muzeark-checkout-overlay .edd-alert,
.muzeark-checkout-overlay .edd-alert-error {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid var(--mz-error) !important;
    color: var(--mz-error) !important;
    padding: 14px 18px !important;
    border-radius: var(--mz-radius) !important;
    margin-bottom: 20px !important;
}

/* Success Messages */
.muzeark-checkout-overlay .edd-alert-success {
    background: rgba(74, 222, 128, 0.1) !important;
    border-color: var(--mz-money) !important;
    color: var(--mz-money) !important;
}

/* Loading State */
.muzeark-checkout-overlay .edd-loading,
.muzeark-checkout-overlay .edd-loading-ajax {
    opacity: 0.6 !important;
    pointer-events: none !important;
}

/* Hide any white backgrounds that slip through */
.muzeark-checkout-overlay div,
.muzeark-checkout-overlay form,
.muzeark-checkout-overlay section {
    background-color: transparent;
}

/* =============================================
   RESPONSIVE
============================================= */
/* =============================================
   RESPONSIVE BREAKPOINTS - Orientation-based
============================================= */

/* TABLET PORTRAIT (768-1024px, height > width) - List only, no player panel */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .muzeark-app {
        grid-template-columns: 1fr !important;
    }
    
    .muzeark-sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: var(--mz-sidebar-width) !important;
        z-index: 999 !important;
        transform: translateX(-100%) !important;
    }
    
    .muzeark-sidebar.open { transform: translateX(0) !important; }
    
    .muzeark-sidebar-expand {
        display: flex !important;
        left: 0 !important;
    }
    .muzeark-nowplaying,
    .muzeark-panel-toggle {
        display: none !important;
    }
    
    /* FORCE: Always show list elements on tablet, never card */
    .muzeark-mobile-card {
        display: none !important;
    }
    
    .muzeark-main,
    .muzeark-tracks,
    .muzeark-filters,
    .muzeark-header {
        display: flex !important;
    }
    
    .muzeark-tracks {
        display: block !important;
        padding-bottom: 80px !important;
    }
    
    /* Show bottom bar when track playing */
    .muzeark-mobile-list-bottom.has-track {
        display: flex !important;
    }
    
    .muzeark-cart-fab { right: 24px; }
    
    /* Compact filters on tablet */
    .muzeark-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .muzeark-filters__controls {
        flex-wrap: nowrap !important;
    }
    
    .muzeark-select {
        font-size: 12px;
        padding: 6px 24px 6px 8px;
        flex: 1;
        min-width: 80px;
    }
}

/* TABLET LANDSCAPE (768-1024px, height >= 600px) - List + Player 2-column */
/* Large phones in landscape have height < 600px and will use phone styles instead */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) and (min-height: 600px) {
    .muzeark-app {
        grid-template-columns: 1fr 320px !important;
    }
    
    .muzeark-sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: var(--mz-sidebar-width) !important;
        z-index: 999 !important;
        transform: translateX(-100%) !important;
    }
    
    .muzeark-sidebar.open { transform: translateX(0) !important; }
    
    .muzeark-sidebar-expand {
        display: flex !important;
        left: 0 !important;
    }
    
    /* FORCE: Always show list elements on tablet, never card */
    .muzeark-mobile-card {
        display: none !important;
    }
    
    .muzeark-main,
    .muzeark-filters,
    .muzeark-header {
        display: flex !important;
    }
    
    .muzeark-tracks {
        display: block !important;
    }
    
    /* Show player panel */
    .muzeark-nowplaying {
        display: flex !important;
    }
    
    /* Hide panel toggle - not needed in 2-col */
    .muzeark-panel-toggle {
        display: none !important;
    }
    
    /* Hide bottom bar since we have player panel */
    .muzeark-mobile-list-bottom {
        display: none !important;
    }
    
    .muzeark-cart-fab { right: 344px; }
    
    /* Compact filters on tablet landscape */
    .muzeark-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 16px;
    }
    
    .muzeark-filters__controls {
        flex-wrap: nowrap !important;
    }
    
    .muzeark-select {
        font-size: 12px;
        padding: 6px 24px 6px 8px;
        flex: 1;
        min-width: 80px;
    }
}

/* CATCH-ALL: For any screen >= 768px, NEVER show mobile card view */
@media (min-width: 768px) {
    .muzeark-mobile-card {
        display: none !important;
    }
    
    .muzeark-app.card-view .muzeark-main,
    .muzeark-app.card-view .muzeark-tracks,
    .muzeark-app.card-view .muzeark-filters,
    .muzeark-app.card-view .muzeark-header {
        display: flex !important;
    }
    
    .muzeark-app.card-view .muzeark-tracks {
        display: block !important;
    }
}

/* LARGE PHONE LANDSCAPE (768-1024px width but height < 600px) - List only, no player */
/* This catches large phones like iPhone Pro Max in landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) and (max-height: 599px) {
    .muzeark-app {
        grid-template-columns: 1fr !important;
    }
    
    /* Hide sidebar off-screen by default */
    .muzeark-sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: var(--mz-sidebar-width) !important;
        z-index: 999 !important;
        transform: translateX(-100%) !important;
    }
    
    .muzeark-sidebar.open { transform: translateX(0) !important; }
    
    .muzeark-sidebar-expand {
        display: flex !important;
        left: 0 !important;
    }
    
    .muzeark-nowplaying {
        display: none !important;
    }
    
    .muzeark-panel-toggle {
        display: none !important;
    }
    
    /* Show bottom bar when track playing */
    .muzeark-mobile-list-bottom.has-track {
        display: flex !important;
    }
    
    .muzeark-tracks {
        padding-bottom: 80px !important;
    }
    
    .muzeark-cart-fab {
        right: 24px !important;
    }
}

/* PHONE (<768px) - Base styles, JS handles card/list switching */
@media (max-width: 767px) {
    .muzeark-app {
        grid-template-columns: 1fr !important;
    }
    
    .muzeark-sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: var(--mz-sidebar-width) !important;
        z-index: 999 !important;
        transform: translateX(-100%) !important;
    }
    
    .muzeark-sidebar.open { transform: translateX(0) !important; }
    
    .muzeark-sidebar-expand {
        display: flex !important;
        left: 0 !important;
    }
    
    /* Hide player panel and toggle on phones */
    .muzeark-nowplaying,
    .muzeark-panel-toggle {
        display: none !important;
    }
    
    .muzeark-track {
        grid-template-columns: 40px 40px 1fr auto;
        padding: 10px 16px;
    }
    
    .muzeark-track__thumb { width: 40px; height: 40px; }
    
    .muzeark-drawer__content { width: 100%; }
    
    .muzeark-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 16px;
    }
    
    .muzeark-filters__controls {
        flex-wrap: nowrap !important;
        gap: 8px;
    }
    
    .muzeark-select { 
        flex: 1; 
        min-width: 0;
        font-size: 12px;
        padding: 6px 24px 6px 8px;
    }
    
    /* Show list bottom bar when track playing (list mode) */
    .muzeark-mobile-list-bottom.has-track {
        display: flex;
    }
    
    /* Hide in card view */
    .muzeark-app.card-view .muzeark-mobile-list-bottom {
        display: none !important;
    }
    
    .muzeark-tracks {
        padding-bottom: 80px !important;
    }
}

/* =============================================
   PHONE LANDSCAPE - Force list view
============================================= */
@media (max-width: 767px) and (orientation: landscape) {
    /* Prevent zoom on orientation change */
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    .muzeark-app {
        /* Force consistent sizing */
        font-size: 14px !important;
        transform: none !important;
        zoom: 1 !important;
    }
    
    /* Phone landscape: force list view layout */
    .muzeark-app.card-view .muzeark-mobile-card {
        display: none !important;
    }
    
    /* Compact horizontal filters for landscape */
    .muzeark-filters {
        flex-direction: row;
        padding: 8px 12px;
        gap: 8px;
    }
    
    .muzeark-filters__count {
        font-size: 12px;
        white-space: nowrap;
    }
    
    .muzeark-filters__controls {
        flex-wrap: nowrap !important;
        gap: 6px;
    }
    
    .muzeark-select {
        font-size: 11px;
        padding: 4px 20px 4px 6px;
        flex: 1;
        min-width: 60px;
    }
    
    .muzeark-app.card-view .muzeark-tracks,
    .muzeark-app.card-view .muzeark-filters,
    .muzeark-app.card-view .muzeark-header,
    .muzeark-app.card-view .muzeark-mobile-list-header {
        display: flex !important;
    }
    
    .muzeark-app.card-view .muzeark-tracks {
        display: block !important;
    }
    
    /* Show list bottom bar in landscape */
    .muzeark-app.card-view .muzeark-mobile-list-bottom.has-track {
        display: flex !important;
    }
    
    /* Compact track rows for landscape */
    .muzeark-track {
        padding: 8px 12px;
    }
    
    .muzeark-track__thumb {
        width: 36px;
        height: 36px;
    }
}

/* PHONE PORTRAIT - Card view by default, but allow list view */
@media (max-width: 767px) and (orientation: portrait) {
    /* Prevent zoom on orientation change */
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    .muzeark-app {
        /* Force consistent sizing */
        font-size: 14px !important;
        transform: none !important;
        zoom: 1 !important;
    }
    
    /* Card view DISABLED - always hide mobile card */
    .muzeark-mobile-card {
        display: none !important;
    }
    
    /* DISABLED - card view not available
    .muzeark-app.card-view .muzeark-mobile-card {
        display: flex;
    }
    */
    
    /* Always show list elements */
    .muzeark-app .muzeark-tracks,
    .muzeark-app .muzeark-filters {
        display: block !important;
    }
    
    /* Dashboard override for phone portrait - ensure dashboard displays even in card-view mode */
    .muzeark-app[data-view="dashboard"].card-view .muzeark-mobile-card {
        display: none !important;
    }
    
    .muzeark-app[data-view="dashboard"].card-view .muzeark-dashboard-view,
    .muzeark-app[data-view="dashboard"]:not(.card-view) .muzeark-dashboard-view {
        display: block !important;
    }
    
    .muzeark-app[data-view="dashboard"] .muzeark-main {
        display: flex !important;
    }
}

/* =============================================
   MOBILE CARD VIEW (Tinder-style)
   DISABLED - Not accessible yet
============================================= */
.muzeark-mobile-card {
    display: none !important; /* DISABLED - card view not available yet */
}

/* DISABLED - card view not available */
/*
.muzeark-app[data-view="beats"].card-view .muzeark-mobile-card,
.muzeark-app[data-view="browse"].card-view .muzeark-mobile-card {
    display: flex;
}
*/

/* Dashboard override - hide card and show dashboard even when card-view is active */
.muzeark-app[data-view="dashboard"].card-view .muzeark-mobile-card {
    display: none !important;
}

.muzeark-app.card-view .muzeark-tracks,
.muzeark-app.card-view .muzeark-filters,
.muzeark-app.card-view .muzeark-header,
.muzeark-app.card-view .muzeark-mobile-list-header {
    display: none !important;
}

/* First-time tooltip */
.muzeark-mobile-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    max-width: 320px;
    width: calc(100% - 48px);
}

.muzeark-tooltip__content {
    background: var(--mz-surface);
    border: 1px solid var(--mz-accent);
    border-radius: var(--mz-radius-lg);
    padding: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.muzeark-tooltip__content p {
    margin: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--mz-text);
}

.muzeark-tooltip__content strong {
    color: var(--mz-accent);
    font-weight: 600;
}

.muzeark-tooltip__close {
    background: var(--mz-accent);
    color: #000;
    border: none;
    border-radius: var(--mz-radius);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.muzeark-tooltip__close:active {
    background: var(--mz-accent-hover);
}

.muzeark-mobile-tooltip.hidden {
    display: none;
}

/* Pull Indicator - swipe down hint with counter (absolute positioned at top) */
.muzeark-pull-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    gap: 6px;
    z-index: 10;
}

.muzeark-menu-hint {
    color: var(--mz-text-secondary);
    opacity: 0.6;
}

.muzeark-pull-indicator .muzeark-counter {
    font-size: 11px;
    color: var(--mz-text-secondary);
    font-weight: 500;
}

.muzeark-pull-indicator .muzeark-pull-bar {
    width: 40px;
    height: 4px;
    background: var(--mz-border);
    border-radius: 2px;
    transition: background 0.2s ease;
}

.muzeark-pull-indicator:active .muzeark-pull-bar {
    background: var(--mz-accent);
}

/* Artwork - clickable for play/pause - responsive to viewport */
.muzeark-mobile-card__artwork {
    width: min(70vw, 42vh, 320px);
    max-width: min(70vw, 42vh, 320px);
    aspect-ratio: 1;
    border-radius: var(--mz-radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, opacity 0.3s ease;
    flex-shrink: 0;
    background: var(--mz-accent);
    cursor: pointer;
}

/* Smaller artwork on shorter screens */
@media (max-height: 700px) {
    .muzeark-mobile-card__artwork {
        width: min(65vw, 38vh, 260px);
        max-width: min(65vw, 38vh, 260px);
        margin-bottom: 12px;
    }
    
    .muzeark-mobile-card__info h2 {
        font-size: 20px;
    }
    
    .muzeark-mobile-card__info p {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .muzeark-mobile-card {
        padding-bottom: 70px;
    }
}

@media (max-height: 600px) {
    .muzeark-mobile-card__artwork {
        width: min(55vw, 32vh, 200px);
        max-width: min(55vw, 32vh, 200px);
        margin-bottom: 8px;
    }
    
    .muzeark-pull-indicator {
        padding: 6px 0 4px;
    }
    
    .muzeark-mobile-card__controls {
        gap: 12px;
        margin-bottom: 8px;
    }
    
    .muzeark-ctrl-btn--play {
        width: 48px;
        height: 48px;
    }
}

.muzeark-mobile-card__artwork:active {
    transform: scale(0.98);
}

.muzeark-mobile-card__artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Swipe animation classes */
.muzeark-mobile-card__artwork.swipe-left {
    transform: translateX(-120%) rotate(-15deg);
    opacity: 0;
}

.muzeark-mobile-card__artwork.swipe-right {
    transform: translateX(120%) rotate(15deg);
    opacity: 0;
}

.muzeark-mobile-card__artwork.swipe-up {
    transform: translateY(-120%) scale(0.8);
    opacity: 0;
}

/* Info Section */
.muzeark-mobile-card__info {
    text-align: center;
    margin-bottom: 12px;
    width: 100%;
    flex-shrink: 0;
}

.muzeark-mobile-card__info h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--mz-accent);
}

.muzeark-mobile-card__info p {
    font-size: 13px;
    color: var(--mz-text-secondary);
    margin: 0 0 10px;
}

.muzeark-mobile-card__meta {
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* Meta Tags - Flat black with brown border */
.muzeark-meta-tag {
    display: inline-block;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--mz-accent);
    color: var(--mz-accent);
    font-size: 12px;
    font-weight: 500;
}

/* Like/Dislike Actions */
.muzeark-mobile-card__actions {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.muzeark-swipe-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--mz-border);
    background: transparent;
    color: var(--mz-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.muzeark-swipe-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Dislike - gray X */
.muzeark-swipe-btn--dislike {
    border-color: var(--mz-border);
    color: #888;
}

.muzeark-swipe-btn--dislike svg {
    stroke: #888;
}

.muzeark-swipe-btn:hover {
    transform: scale(1.1);
}

/* Dislike button */
.muzeark-swipe-btn--dislike:hover,
.muzeark-swipe-btn--dislike:active {
    border-color: var(--mz-text-secondary);
    background: rgba(255, 255, 255, 0.05);
    color: var(--mz-text);
}

/* Like button - brown border, red heart on active */
.muzeark-swipe-btn--like {
    border-color: var(--mz-accent);
    color: var(--mz-accent);
}

.muzeark-swipe-btn--like:hover,
.muzeark-swipe-btn--like:active {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.muzeark-swipe-btn--like.active {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.muzeark-swipe-btn--dislike.active {
    border-color: var(--mz-text-secondary);
    background: rgba(255, 255, 255, 0.1);
    color: var(--mz-text);
}

/* Progress */
.muzeark-mobile-card__progress {
    width: 100%;
    max-width: 220px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.muzeark-mobile-card__time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--mz-text-secondary);
    margin-top: 6px;
}

/* Playback Controls */
.muzeark-mobile-card__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.muzeark-mobile-card__controls .muzeark-ctrl-btn {
    width: 36px;
    height: 36px;
}

.muzeark-mobile-card__controls .muzeark-ctrl-btn svg {
    width: 20px;
    height: 20px;
}

.muzeark-mobile-card__controls .muzeark-ctrl-btn--play {
    width: 48px;
    height: 48px;
}

.muzeark-mobile-card__controls .muzeark-ctrl-btn--play svg {
    width: 24px;
    height: 24px;
}

/* Bottom Bar - [Toggle] | [WRITE] | [LICENSE] */
.muzeark-mobile-card__reactions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: var(--mz-bg);
}

.muzeark-mc-reaction {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--mz-surface);
    border: 1px solid var(--mz-border);
    border-radius: 8px;
    color: var(--mz-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.muzeark-mc-reaction:active {
    transform: scale(0.95);
    background: var(--mz-surface-hover);
}

.muzeark-mc-reaction.active {
    color: var(--mz-accent);
    border-color: var(--mz-accent);
    background: rgba(226, 186, 135, 0.1);
}

.muzeark-mc-reaction svg {
    width: 20px;
    height: 20px;
}

/* Swipe up hint */
.muzeark-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    color: var(--mz-text-secondary);
    font-size: 12px;
    opacity: 0.7;
    animation: bounce 2s ease-in-out infinite;
}

.muzeark-swipe-hint svg {
    width: 20px;
    height: 20px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.muzeark-mobile-card__bottom {
    display: flex;
    align-items: stretch;
    width: 100%;
    background: var(--mz-surface);
    border-top: 1px solid var(--mz-border);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Mobile List Bottom Bar - Now playing + WRITE/LICENSE */
.muzeark-mobile-list-bottom {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--mz-surface);
    border-top: 1px solid var(--mz-border);
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
    z-index: 100;
    align-items: center;
    gap: 12px;
}

.muzeark-list-bottom__now-playing {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.muzeark-list-bottom__now-playing:active {
    opacity: 0.7;
}

/* Animated waveform */
.muzeark-waveform {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: var(--mz-surface);
    border-radius: 4px;
    flex-shrink: 0;
}

.wave-bar {
    width: 4px;
    height: 12px;
    background: var(--mz-accent);
    border-radius: 2px;
    animation: wave 0.8s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.2s; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; }
.wave-bar:nth-child(4) { animation-delay: 0.6s; }

@keyframes wave {
    0%, 100% { height: 12px; }
    50% { height: 28px; }
}

/* Pause state - no animation */
.muzeark-app:not(.playing) .wave-bar {
    animation: none;
    height: 12px;
}

.muzeark-list-bottom__now-playing img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.muzeark-list-bottom__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.muzeark-list-bottom__title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.muzeark-list-bottom__artist {
    font-size: 11px;
    color: var(--mz-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.muzeark-list-bottom__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.muzeark-list-bottom__actions .muzeark-bottom-btn {
    flex: none;
    padding: 10px 14px;
    font-size: 11px;
    border-radius: var(--mz-radius);
    border: 1px solid var(--mz-border);
}

.muzeark-list-bottom__actions .muzeark-bottom-btn--primary {
    background: var(--mz-accent);
    border-color: var(--mz-accent);
    color: #000;
}

.muzeark-list-bottom__actions .muzeark-bottom-btn--primary:hover {
    background: var(--mz-accent-hover);
}

/* Hide list bottom bar when no track playing */
.muzeark-mobile-list-bottom:not(.has-track) {
    display: none !important;
}

@media (max-width: 768px) {
    .muzeark-mobile-list-bottom.has-track {
        display: flex;
    }
    
    .muzeark-app.card-view .muzeark-mobile-list-bottom {
        display: none !important;
    }
    
    /* Add padding to track list so last items aren't hidden */
    .muzeark-tracks {
        padding-bottom: 80px !important;
    }
}

.muzeark-card-switch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--mz-accent);
    border: none;
    border-radius: var(--mz-radius);
    color: #000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.muzeark-card-switch-btn:hover {
    background: var(--mz-accent-hover);
}

.muzeark-bottom-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    background: transparent;
    border: none;
    color: var(--mz-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.muzeark-bottom-btn:hover {
    background: var(--mz-surface-hover);
}

.muzeark-bottom-btn svg {
    color: var(--mz-accent);
}

.muzeark-bottom-btn--icon {
    flex: 0 0 auto;
    padding: 16px 12px;
    gap: 6px;
}

.muzeark-counter {
    font-size: 11px;
    color: var(--mz-text-secondary);
    font-weight: 500;
}

.muzeark-bottom-btn--primary {
    background: var(--mz-accent);
    color: #000;
}

.muzeark-bottom-btn--primary:hover {
    background: var(--mz-accent-hover);
}

.muzeark-bottom-btn--primary svg {
    color: #000;
}

.muzeark-bottom-btn--elite {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.muzeark-bottom-btn--elite:hover {
    background: linear-gradient(135deg, #9333ea 0%, #6d28d9 100%);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.6);
}

.muzeark-bottom-btn--elite svg {
    color: #fbbf24;
}

.muzeark-bottom-divider {
    width: 1px;
    background: var(--mz-border);
}

/* =============================================
   MOBILE LIST HEADER
============================================= */
.muzeark-mobile-list-header {
    display: none;
}

@media (max-width: 768px) {
    .muzeark-mobile-list-header {
        display: flex;
        flex-direction: column;
        background: var(--mz-surface);
        border-bottom: 1px solid var(--mz-border);
        position: sticky;
        top: 0;
        z-index: 50;
    }
    
    .muzeark-list-header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
    }
    
    .muzeark-list-header-count {
        font-size: 14px;
        color: var(--mz-text-secondary);
    }
    
    .muzeark-list-header-count span {
        color: var(--mz-accent);
        font-weight: 600;
    }
    
    .muzeark-mobile-card-btn {
        width: 40px;
        height: 40px;
        background: transparent;
        border: 1px solid var(--mz-accent);
        border-radius: var(--mz-radius);
        color: var(--mz-accent);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }
    
    .muzeark-mobile-card-btn:hover {
        background: var(--mz-accent);
        color: #000;
    }
    
    .muzeark-app.card-view .muzeark-mobile-list-header {
        display: none !important;
    }
    
    /* Hide original header on mobile */
    .muzeark-header {
        display: none;
    }
    
    /* Show filters on mobile list */
    .muzeark-filters {
        display: flex !important;
        padding: 12px 16px;
        background: var(--mz-bg);
        border-bottom: 1px solid var(--mz-border);
    }
    
    .muzeark-app.card-view .muzeark-filters {
        display: none !important;
    }
    
    /* Hide sidebar toggle in card view */
    .muzeark-app.card-view .muzeark-sidebar-expand,
    .muzeark-app.card-view .muzeark-panel-toggle {
        display: none;
    }
    
    /* Mobile list: hide track actions by default, show only on playing track */
    .muzeark-track__actions {
        display: none !important;
    }
    
    .muzeark-track.playing .muzeark-track__actions {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        background: var(--mz-surface);
        padding: 4px;
        border-radius: var(--mz-radius);
        gap: 4px;
    }
    
    .muzeark-track {
        position: relative;
    }
    
    /* Adjust playing track to make room for buttons */
    .muzeark-track.playing {
        padding-right: 140px;
    }
    
    .muzeark-track__actions .muzeark-btn--small {
        padding: 8px 10px;
        font-size: 10px;
    }
    
    /* Pill badge on mobile - already compact by default */
    .muzeark-track__badge {
        font-size: 8px;
        padding: 2px 6px;
        margin-left: 6px;
    }
}

/* =============================================
   LICENSE/CART SHEET FIX FOR MOBILE
============================================= */
@media (max-width: 768px) {
    .muzeark-sheet {
        z-index: 10000;
    }
    
    .muzeark-sheet__content {
        max-height: 80vh;
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }
    
    .muzeark-drawer {
        z-index: 10000;
    }
    
    .muzeark-drawer__content {
        max-height: 100vh;
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }
    
    /* Make sure license sheet options are clickable */
    .muzeark-license-option {
        padding: 18px 16px;
        margin-bottom: 8px;
    }
    
    /* Cart FAB position adjustment */
    .muzeark-cart-fab {
        bottom: 80px;
        right: 16px;
        z-index: 9999;
    }
    
    /* Hide cart FAB when mobile menu is open */
    .muzeark-mobile-menu.open ~ .muzeark-cart-fab,
    body.mobile-menu-open .muzeark-cart-fab {
        display: none !important;
    }
}

/* =============================================
   MOBILE TOP MENU (slides down from top)
============================================= */
.muzeark-top-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.muzeark-top-menu.open {
    opacity: 1;
    visibility: visible;
}

.muzeark-top-menu__content {
    background: var(--mz-surface);
    border-radius: 0 0 var(--mz-radius-lg) var(--mz-radius-lg);
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.muzeark-top-menu.open .muzeark-top-menu__content {
    transform: translateY(0);
}

.muzeark-top-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--mz-border);
}

.muzeark-top-menu__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--mz-text);
}

.muzeark-top-menu__close {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--mz-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--mz-radius);
    transition: all 0.2s ease;
}

.muzeark-top-menu__close:hover {
    background: var(--mz-surface-hover);
    color: var(--mz-text);
}

.muzeark-top-menu__nav {
    padding: 12px 0;
}

.muzeark-top-menu__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    color: var(--mz-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.muzeark-top-menu__item:hover,
.muzeark-top-menu__item:active {
    background: var(--mz-surface-hover);
}

.muzeark-top-menu__item svg {
    color: var(--mz-accent);
    flex-shrink: 0;
}

.muzeark-top-menu__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--mz-border);
    margin-top: 8px;
}

.muzeark-top-menu__user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.muzeark-top-menu__user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.muzeark-top-menu__user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--mz-text);
}

.muzeark-top-menu__logout {
    font-size: 14px;
    color: var(--mz-text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: inline-block;
    margin-top: 4px;
    min-width: 80px;
    text-align: center;
}

.muzeark-top-menu__logout:hover {
    color: var(--mz-accent);
    background: rgba(226, 186, 135, 0.15);
}

/* Only show on mobile */
@media (max-width: 768px) {
    .muzeark-top-menu {
        display: block;
    }
}

/* =============================================
   MOBILE OVERLAY MENU (slides from top)
============================================= */
.muzeark-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--mz-bg);
    z-index: 10002;
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Safari touch fix - force GPU layer */
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.muzeark-mobile-menu.open {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .muzeark-mobile-menu {
        display: flex;
    }
}

.muzeark-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--mz-border);
}

.muzeark-mobile-menu__header .muzeark-logo img {
    height: 40px;
}

.muzeark-mobile-menu__close {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--mz-border);
    border-radius: 50%;
    color: var(--mz-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.muzeark-mobile-menu__close:hover {
    background: var(--mz-surface-hover);
    color: var(--mz-text);
}

.muzeark-mobile-menu__nav {
    flex: 1;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px; /* Reduced gap, rely on padding */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.muzeark-mobile-menu__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    min-height: 56px; /* Minimum touch target size */
    border-radius: 12px;
    color: var(--mz-text);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.muzeark-mobile-menu__item svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    pointer-events: none; /* Let parent handle touches */
}

.muzeark-mobile-menu__item span {
    pointer-events: none; /* Let parent handle touches */
}

.muzeark-mobile-menu__item:hover,
.muzeark-mobile-menu__item.active {
    background: var(--mz-surface);
    color: var(--mz-accent);
}

.muzeark-mobile-menu__user {
    padding: 20px;
    border-top: 1px solid var(--mz-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.muzeark-mobile-menu__profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.muzeark-mobile-menu__profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.muzeark-mobile-menu__profile span {
    font-size: 16px;
    font-weight: 500;
}

.muzeark-mobile-menu__hint {
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--mz-text-secondary);
    font-size: 13px;
}

.muzeark-mobile-menu__hint svg {
    opacity: 0.7;
}

@keyframes bounceUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* =============================================
   BUNDLES VIEW
============================================= */
.muzeark-bundles-view {
    display: none;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    overflow-y: auto;
    height: 100%;
}

.muzeark-bundles-view.active {
    display: flex;
}

.muzeark-bundles-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--mz-border);
}

.muzeark-bundles-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--mz-accent);
}

.muzeark-bundles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.muzeark-bundle-card {
    background: var(--mz-surface);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius-lg);
    overflow: hidden;
    transition: all var(--mz-transition);
}

.muzeark-bundle-card:hover {
    border-color: var(--mz-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.muzeark-bundle-card__image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--mz-bg);
}

.muzeark-bundle-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.muzeark-bundle-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: var(--mz-accent);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.muzeark-bundle-card__info {
    padding: 16px;
}

.muzeark-bundle-card__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--mz-text);
}

.muzeark-bundle-card__desc {
    font-size: 13px;
    color: var(--mz-text-secondary);
    margin: 0 0 16px;
    line-height: 1.4;
}

.muzeark-bundle-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.muzeark-bundle-card__price {
    font-size: 20px;
    font-weight: 700;
    color: var(--mz-money);
}

.muzeark-no-bundles {
    text-align: center;
    color: var(--mz-text-secondary);
    padding: 40px 20px;
    font-size: 14px;
}

/* Hide beats view when bundles active */
.muzeark-app[data-view="bundles"] .muzeark-tracks,
.muzeark-app[data-view="bundles"] .muzeark-filters,
.muzeark-app[data-view="bundles"] .muzeark-no-results,
.muzeark-app[data-view="bundles"] .muzeark-loading,
.muzeark-app[data-view="bundles"] .muzeark-mobile-card,
.muzeark-app[data-view="bundles"] .muzeark-elite-banner {
    display: none !important;
}

.muzeark-app[data-view="bundles"] .muzeark-bundles-view {
    display: flex !important;
}

/* Mobile bundles */
@media (max-width: 768px) {
    .muzeark-bundles-grid {
        grid-template-columns: 1fr;
        gap: var(--mz-spacing-sm);
    }
    
    .muzeark-bundles-view {
        padding: 12px;
    }
    
    .muzeark-bundle-card__image {
        aspect-ratio: 2/1;
    }
    
    .muzeark-bundle-card__info {
        padding: 10px 12px;
    }
    
    .muzeark-bundle-card__title {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .muzeark-bundle-card__desc {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .muzeark-bundle-card__price {
        font-size: 16px;
    }
    
    .muzeark-bundle-card__footer {
        gap: 8px;
    }
}

/* =============================================
   WRITING PAD - Full Screen Overlay
============================================= */
.muzeark-writing-pad {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: var(--mz-bg);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.muzeark-writing-pad.open {
    display: flex;
}

/* Header */
.muzeark-writing-pad__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--mz-surface);
    border-bottom: 1px solid var(--mz-border);
    flex-shrink: 0;
    gap: 16px;
    position: relative;
    z-index: 100;
}

.muzeark-writing-pad__back {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--mz-accent);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--mz-radius);
    transition: all var(--mz-transition);
    flex-shrink: 0;
}

.muzeark-writing-pad__back:hover {
    background: var(--mz-surface-hover);
}

/* Header Center - Project Dropdown */
.muzeark-writing-pad__header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 300px;
    margin: 0 auto;
}

.muzeark-writing-pad__project-select {
    width: 100%;
    max-width: 200px;
    padding: 8px 28px 8px 12px;
    background: var(--mz-surface-hover);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    color: var(--mz-text-secondary);
    font-size: 13px;
    cursor: pointer;
    outline: none;
    text-align: center;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23888'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: all var(--mz-transition);
}

.muzeark-writing-pad__project-select:hover {
    border-color: var(--mz-accent);
}

.muzeark-writing-pad__project-select:focus {
    border-color: var(--mz-accent);
}

.muzeark-writing-pad__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Delete button in writing pad */
#wp-delete {
    position: relative;
    z-index: 10;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.muzeark-writing-pad__autosave {
    font-size: 12px;
    color: var(--mz-text-secondary);
}

.muzeark-writing-pad__autosave.saving {
    color: var(--mz-accent);
}

.muzeark-writing-pad__autosave.saved {
    color: var(--mz-success);
}

/* Horizontal Player Row */
.muzeark-writing-pad__player {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--mz-surface);
    border-bottom: 1px solid var(--mz-border);
    flex-shrink: 0;
}

.muzeark-writing-pad__player-art {
    width: 60px;
    height: 60px;
    border-radius: var(--mz-radius);
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.muzeark-writing-pad__play-btn {
    width: 48px;
    height: 48px;
    background: var(--mz-accent);
    border: none;
    border-radius: var(--mz-radius);
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--mz-transition);
    flex-shrink: 0;
}

.muzeark-writing-pad__play-btn:hover {
    background: var(--mz-accent-hover);
    transform: scale(1.05);
}

.muzeark-writing-pad__player-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex-shrink: 0;
}

.muzeark-writing-pad__track-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--mz-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.muzeark-writing-pad__track-meta {
    font-size: 12px;
    color: var(--mz-text-secondary);
}

.muzeark-writing-pad__player-progress {
    flex: 1;
    min-width: 120px;
    max-width: 400px;
}

.muzeark-writing-pad__player-time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--mz-text-secondary);
    margin-top: 4px;
}

/* Section Navigator with Loop */
.muzeark-writing-pad__nav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--mz-bg);
    border-bottom: 1px solid var(--mz-border);
    flex-shrink: 0;
    overflow-x: auto;
}

.muzeark-writing-pad__loop-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--mz-surface);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    color: var(--mz-text-secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--mz-transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.muzeark-writing-pad__loop-btn:hover {
    border-color: var(--mz-accent);
    color: var(--mz-accent);
}

.muzeark-writing-pad__loop-btn.active {
    background: rgba(226, 186, 135, 0.15);
    border-color: var(--mz-accent);
    color: var(--mz-accent);
}

.muzeark-writing-pad__loop-btn.active svg {
    animation: loopSpin 2s linear infinite;
}

@keyframes loopSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.muzeark-writing-pad__sections {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.muzeark-section-btn {
    padding: 8px 16px;
    background: var(--mz-surface);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    color: var(--mz-text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--mz-transition);
    white-space: nowrap;
}

.muzeark-section-btn:hover {
    border-color: var(--mz-accent);
    color: var(--mz-accent);
}

.muzeark-section-btn.active {
    background: var(--mz-accent);
    border-color: var(--mz-accent);
    color: #000;
    font-weight: 800;
}

/* Section PLAYING state - glow animation */
.muzeark-section-btn.playing {
    animation: section-blink 0.8s ease-in-out infinite;
}

@keyframes section-blink {
    0%, 100% { 
        background: var(--mz-surface);
        border-color: var(--mz-accent);
        color: var(--mz-accent);
    }
    50% { 
        background: rgba(226, 186, 135, 0.25);
        border-color: var(--mz-accent);
        color: var(--mz-accent);
    }
}

/* When active AND playing, pulse glow animation */
.muzeark-section-btn.active.playing {
    animation: section-pulse-active 1s ease-in-out infinite;
}

@keyframes section-pulse-active {
    0%, 100% { 
        background: var(--mz-accent);
        color: #000;
        box-shadow: 0 0 0 0 rgba(226, 186, 135, 0.4);
    }
    50% { 
        background: #f5d4a8;
        color: #000;
        box-shadow: 0 0 12px 4px rgba(226, 186, 135, 0.6);
    }
}

.muzeark-section-btn.completed {
    border-color: #22c55e;
    color: #22c55e;
}
.muzeark-section-btn.completed.active {
    background: #22c55e;
    border-color: #22c55e;
    color: #000;
}

.muzeark-section-btn.looping {
    border-color: var(--mz-accent);
    box-shadow: 0 0 0 2px rgba(226, 186, 135, 0.3);
    animation: loopPulse 1s ease-in-out infinite;
}

@keyframes loopPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(226, 186, 135, 0.3); }
    50% { box-shadow: 0 0 0 4px rgba(226, 186, 135, 0.5); }
}

/* Writing Area */
.muzeark-writing-pad__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 16px 0;
    overflow: hidden;
}

/* Song Title Input */
.muzeark-writing-pad__song-title {
    width: 100%;
    padding: 8px 0;
    margin-bottom: 8px;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--mz-border);
    color: var(--mz-text);
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: border-color var(--mz-transition);
}
.muzeark-writing-pad__song-title:focus { border-bottom-color: var(--mz-accent); }
.muzeark-writing-pad__song-title::placeholder { color: var(--mz-text-secondary); font-weight: 400; }

/* ═══ GRID v2 — Section Pages ═══ */
.wp-grid-pages {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.wp-grid-page {
    flex: 1;
    display: none;
    flex-direction: column;
    overflow-y: auto;
}
.wp-grid-page.active { display: flex; }
.wp-grid-page::-webkit-scrollbar { width: 2px; }
.wp-grid-page::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

/* Section page header */
.wp-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 8px 0 4px;
}
.wp-section-name { font-weight: 900; font-size: 16px; letter-spacing: 1px; color: var(--mz-accent, #e2ba87); }
.wp-section-bar-count { font-size: 12px; color: #555; }

/* Section progress */
.wp-section-prog { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.wp-section-prog-bar { flex: 1; height: 3px; background: #1a1a1a; border-radius: 2px; overflow: hidden; }
.wp-section-prog-fill { height: 100%; background: #22c55e; border-radius: 2px; transition: width 0.3s ease; }
.wp-section-prog-text { font-size: 11px; color: #444; white-space: nowrap; }

/* Bar Grid */
.wp-bar-grid { display: flex; flex-direction: column; padding-left: 4px; }

/* Bar Row - Single line layout */
.wp-bar-row {
    display: flex;
    align-items: stretch;
    min-height: 44px;
    margin-bottom: 2px;
}
.wp-bar-row.wp-active .wp-bar-content { border-color: #e2ba87; box-shadow: 0 1px 0 rgba(226, 186, 135, 0.4); }
.wp-bar-row.wp-complete .wp-bar-content { border-color: #22c55e; box-shadow: 0 1px 0 rgba(34, 197, 94, 0.4); }

/* Bar number */
.wp-bar-num {
    width: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 10px;
    font-weight: 700;
    color: #333;
    transition: color 0.3s;
}
.wp-bar-row.wp-active .wp-bar-num { color: rgba(226, 186, 135, 0.4); }
.wp-bar-row.wp-complete .wp-bar-num { color: #22c55e; opacity: 0.5; }

/* Bar content container */
.wp-bar-content {
    flex: 1;
    position: relative;
    padding: 10px 4px;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Single-line bar input */
.wp-bar-input {
    width: 100%;
    background: transparent;
    border: none;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    outline: none;
}
.wp-bar-input::placeholder { color: #333; opacity: 0.4; }
.wp-bar-row.wp-active .wp-bar-input { color: #fff; }
.wp-bar-row.wp-complete .wp-bar-input { color: rgba(168, 230, 207, 0.9); }

/* Display element for analyzed text */
.wp-bar-display {
    display: none;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    position: absolute;
    top: 10px;
    left: 4px;
    right: 36px;
}
.wp-bar-row.wp-complete .wp-bar-display { display: block; }
.wp-bar-row.wp-editing .wp-bar-display { display: none !important; }
.wp-bar-row.wp-editing .wp-bar-input { display: block !important; }

/* Rhyme highlight classes */
.word { display: inline; transition: all 0.3s; }
.word.end-rhyme-a { color: #e2ba87; background: rgba(226, 186, 135, 0.15); padding: 1px 5px; margin: 0 -2px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(226, 186, 135, 0.3); }
.word.end-rhyme-b { color: #3b82f6; background: rgba(59, 130, 246, 0.15); padding: 1px 5px; margin: 0 -2px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.3); }
.word.end-rhyme-c { color: #a855f7; background: rgba(168, 85, 247, 0.15); padding: 1px 5px; margin: 0 -2px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.3); }
.word.end-rhyme-d { color: #06b6d4; background: rgba(6, 182, 212, 0.15); padding: 1px 5px; margin: 0 -2px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.3); }
.word.internal-1 { background: rgba(34, 197, 94, 0.2); padding: 1px 5px; margin: 0 -2px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.3); }
.word.internal-2 { background: rgba(236, 72, 153, 0.2); padding: 1px 5px; margin: 0 -2px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.3); }
.word.internal-3 { background: rgba(245, 158, 11, 0.2); padding: 1px 5px; margin: 0 -2px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.3); }
.word.chain { background: rgba(226, 186, 135, 0.2) !important; color: #e2ba87 !important; box-shadow: inset 0 0 0 1px rgba(226, 186, 135, 0.4) !important; }
.word.chain.hot { animation: chainBurn 1.5s ease-in-out infinite; }
@keyframes chainBurn {
    0%, 100% { box-shadow: inset 0 0 0 1px rgba(226, 186, 135, 0.5), 0 0 8px rgba(226, 186, 135, 0.4); }
    50% { box-shadow: inset 0 0 0 1px rgba(226, 186, 135, 0.6), 0 0 16px rgba(226, 186, 135, 0.4); }
}
.word.multi { font-weight: 700; }

/* Rhyme scheme letter */
.wp-bar-rhyme {
    width: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 800;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wp-bar-rhyme.show { opacity: 1; transform: scale(1); }
.wp-bar-rhyme.a { color: #e2ba87; text-shadow: 0 0 8px rgba(226, 186, 135, 0.4); }
.wp-bar-rhyme.b { color: #3b82f6; text-shadow: 0 0 8px rgba(59, 130, 246, 0.4); }
.wp-bar-rhyme.c { color: #a855f7; text-shadow: 0 0 8px rgba(168, 85, 247, 0.4); }
.wp-bar-rhyme.d { color: #06b6d4; text-shadow: 0 0 8px rgba(6, 182, 212, 0.4); }

/* ⚡ bolt on right */
.wp-bar-bolt {
    width: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wp-bar-bolt svg {
    width: 18px; height: 18px;
    stroke: #333;
    stroke-width: 2;
    fill: none;
    opacity: 0.15;
    transition: all 0.15s;
}
.wp-bar-row.wp-complete .wp-bar-bolt svg { stroke: #22c55e; fill: #22c55e; opacity: 1; filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.4)); }
.wp-bar-row.wp-active .wp-bar-bolt svg { stroke: #e2ba87; opacity: 1; }
.wp-bar-row.wp-active.beat-on .wp-bar-bolt svg { fill: #e2ba87; filter: drop-shadow(0 0 10px rgba(226, 186, 135, 0.4)); }

/* Quatrain separator */
.wp-four-sep {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px 6px;
}
.wp-four-sep-line { flex: 1; height: 1px; background: #222; }
.wp-four-sep-label {
    padding: 0 10px;
    font-size: 9px;
    color: #333;
    font-weight: 800;
    letter-spacing: 2px;
}


/* Stats Footer */
.muzeark-writing-pad__stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 13px;
    color: var(--mz-text-secondary);
    border-top: 1px solid #1a1a1a;
}

/* Writes Badge */
.muzeark-writing-pad__writes-badge {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.muzeark-writing-pad__writes-badge.limited {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.muzeark-writing-pad__writes-badge.unlimited {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid #4ade80;
}

/* Access Gate */
.muzeark-writing-pad__gate {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 13, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.muzeark-writing-pad__gate-content {
    text-align: center;
    max-width: 360px;
    padding: 40px;
}

.muzeark-writing-pad__gate-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.muzeark-writing-pad__gate-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--mz-text);
}

.muzeark-writing-pad__gate-content p {
    font-size: 15px;
    color: var(--mz-text-secondary);
    margin: 0 0 24px;
    line-height: 1.5;
}

.muzeark-writing-pad__gate-content .muzeark-btn {
    min-width: 200px;
}

.muzeark-writing-pad__gate-sub {
    font-size: 13px;
    color: var(--mz-text-secondary);
    margin-top: 16px !important;
}

.muzeark-writing-pad__gate-sub a {
    color: var(--mz-accent);
    text-decoration: none;
}

/* Gate Close Button */
.muzeark-writing-pad__gate-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--mz-surface);
    border: 1px solid var(--mz-border);
    border-radius: 50%;
    color: var(--mz-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--mz-transition);
    z-index: 10;
}

.muzeark-writing-pad__gate-close:hover {
    background: var(--mz-surface-hover);
    color: var(--mz-text);
    border-color: var(--mz-accent);
}

/* Gate Back Link */
.muzeark-writing-pad__gate-back {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    color: var(--mz-text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--mz-transition);
}

.muzeark-writing-pad__gate-back:hover {
    border-color: var(--mz-accent);
    color: var(--mz-accent);
}

/* Custom Modal */
.muzeark-modal {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.muzeark-modal.open {
    display: flex;
}

.muzeark-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.muzeark-modal__content {
    position: relative;
    background: var(--mz-surface);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius-lg);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.2s ease;
}

.muzeark-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--mz-border);
}

.muzeark-modal__header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--mz-accent);
}

.muzeark-modal__close {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    color: var(--mz-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--mz-transition);
}

.muzeark-modal__close:hover {
    background: var(--mz-surface-hover);
    border-color: var(--mz-accent);
    color: var(--mz-text);
}

.muzeark-modal__body {
    padding: 24px;
}

.muzeark-modal__body label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--mz-text-secondary);
}

.muzeark-modal__body input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    background: var(--mz-bg);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    color: var(--mz-text);
    font-size: 16px;
    outline: none;
    transition: border-color var(--mz-transition);
}

.muzeark-modal__body input[type="text"]:focus {
    border-color: var(--mz-accent);
}

.muzeark-modal__body input[type="text"]::placeholder {
    color: var(--mz-text-secondary);
}

.muzeark-modal__footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
    justify-content: flex-end;
}

.muzeark-modal__footer .muzeark-btn {
    min-width: 100px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .muzeark-writing-pad__header {
        padding: 10px 16px;
        flex-wrap: wrap;
    }
    
    .muzeark-writing-pad__back span {
        display: none;
    }
    
    .muzeark-writing-pad__header-center {
        order: 3;
        width: 100%;
        max-width: none;
        margin-top: 10px;
        justify-content: center;
    }
    
    .muzeark-writing-pad__project-select {
        max-width: none;
        width: 100%;
    }
    
    .muzeark-writing-pad__player {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .muzeark-writing-pad__player-art {
        width: 50px;
        height: 50px;
    }
    
    .muzeark-writing-pad__play-btn {
        width: 44px;
        height: 44px;
    }
    
    .muzeark-writing-pad__track-title {
        max-width: 140px;
        font-size: 14px;
    }
    
    .muzeark-writing-pad__player-progress {
        width: 100%;
        flex: none;
        max-width: none;
        order: 4;
    }
    
    .muzeark-writing-pad__nav {
        padding: 10px 16px;
    }
    
    .muzeark-section-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .muzeark-writing-pad__content {
        padding: 16px;
    }
    
    .muzeark-writing-pad__song-title {
        font-size: 18px;
        padding: 10px 12px;
    }
    
    .muzeark-writing-pad__textarea {
        font-size: 16px;
        padding: 16px;
    }
    
    .muzeark-writing-pad__current-section {
        font-size: 16px;
    }
    
    .muzeark-writing-pad__stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .muzeark-modal__content {
        max-width: calc(100% - 32px);
    }
}

/* =========================================
   PROJECTS VIEW
   ========================================= */

.muzeark-projects-view {
    display: none;
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

[data-view="projects"] .muzeark-projects-view {
    display: block;
}

[data-view="projects"] .muzeark-list,
[data-view="projects"] .muzeark-bundles-view,
[data-view="projects"] .muzeark-mobile-card,
[data-view="projects"] .muzeark-elite-banner {
    display: none;
}

.muzeark-projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2a2a2a;
}

.muzeark-projects-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* Projects Grid */
.muzeark-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.muzeark-project-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #2a2a2a;
}

.muzeark-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border-color: #e2ba87;
}

.muzeark-project-card__cover {
    position: relative;
    aspect-ratio: 1;
    background: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.muzeark-project-card__cover img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.muzeark-project-card__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e2ba87;
    color: #0d0d0d;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.muzeark-project-card__info {
    padding: 16px;
}

.muzeark-project-card__info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.muzeark-project-card__meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}

.muzeark-project-card__progress {
    height: 4px;
    background: #2a2a2a;
    border-radius: 2px;
    overflow: hidden;
}

.muzeark-project-card__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e2ba87, #4ade80);
    border-radius: 2px;
    transition: width 0.3s;
}

.muzeark-project-card__value {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #4ade80;
}

/* Projects Empty/Login States */
.muzeark-projects-empty,
.muzeark-projects-login-prompt {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.muzeark-projects-login-prompt h3 {
    color: #fff;
    margin-bottom: 12px;
}

.muzeark-projects-login-prompt p {
    margin-bottom: 24px;
}

/* Project Detail View */
.muzeark-project-detail {
    max-width: 800px;
    margin: 0 auto;
}

.muzeark-project-detail__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    position: sticky;
    top: 0;
    background: var(--mz-bg, #171717);
    padding: 16px 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.muzeark-project-detail__actions {
    display: flex;
    gap: 8px;
}

.muzeark-project-detail__cover {
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    background: #0d0d0d;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2a2a2a;
}

.muzeark-project-detail__cover img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.muzeark-project-detail__info {
    text-align: center;
    margin-bottom: 32px;
}

.muzeark-project-detail__info h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
}

.muzeark-project-detail__stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.muzeark-project-stat {
    text-align: center;
}

.muzeark-project-stat__value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #e2ba87;
}

.muzeark-project-stat__label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.muzeark-project-detail__progress-bar {
    height: 8px;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.muzeark-project-detail__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e2ba87, #4ade80);
    border-radius: 4px;
    transition: width 0.3s;
}

/* Value Comparison Section */
.muzeark-project-detail__value {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid #2a2a2a;
}

.muzeark-project-value-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
    font-size: 16px;
    color: #888;
}

.muzeark-project-value-row:last-of-type {
    border-bottom: none;
    margin-bottom: 16px;
}

.muzeark-project-value-row span:last-child {
    color: #fff;
    font-weight: 600;
}

.muzeark-project-value-row--highlight {
    background: rgba(226, 186, 135, 0.1);
    margin: 0 -24px;
    padding: 12px 24px;
    border-radius: 8px;
}

.muzeark-project-value-row--highlight span:last-child {
    color: #4ade80;
}

/* Beats List in Project */
.muzeark-project-detail__beats {
    margin-top: 32px;
}

.muzeark-project-detail__beats h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2a2a;
}

.muzeark-project-beats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.muzeark-project-beat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    transition: border-color 0.2s;
}

.muzeark-project-beat:hover {
    border-color: #3a3a3a;
}

.muzeark-project-beat__artwork {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.muzeark-project-beat__artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.muzeark-project-beat__info {
    flex: 1;
    min-width: 0;
}

.muzeark-project-beat__info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.muzeark-project-beat__song {
    display: block;
    font-size: 12px;
    color: #e2ba87;
    margin-bottom: 4px;
    font-style: italic;
}

.muzeark-project-beat__meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #666;
}

.muzeark-project-beat__status {
    flex-shrink: 0;
}

.muzeark-complete-toggle {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #888;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.muzeark-complete-toggle:hover {
    border-color: #e2ba87;
    color: #e2ba87;
}

.muzeark-complete-toggle.complete {
    background: rgba(74, 222, 128, 0.15);
    border-color: #4ade80;
    color: #4ade80;
}

.muzeark-project-beat__no-writing {
    font-size: 11px;
    color: #666;
    font-style: italic;
}

.muzeark-project-beat__actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.muzeark-project-beats-empty {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* ============================================ */
/* === PROJECTS MOCKUP STYLES (v3.86.6) === */
/* ============================================ */

/* Spinning Vinyl */
.muzeark-vinyl {
    width: 110px;
    height: 110px;
    background: radial-gradient(circle at center, 
        #1a1a1a 15%, 
        #2a2a2a 16%, 
        #2a2a2a 18%,
        #141414 19%, 
        #141414 35%, 
        #2a2a2a 36%,
        #141414 37%,
        #141414 100%
    );
    border-radius: 50%;
    position: relative;
    animation: vinyl-spin 8s linear infinite;
    animation-play-state: paused;
}

.muzeark-vinyl::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: #e2ba87;
    border-radius: 50%;
}

.muzeark-vinyl.spinning {
    animation-play-state: running;
}

@keyframes vinyl-spin {
    100% { transform: rotate(360deg); }
}

/* Active Project Hero */
.muzeark-active-project {
    background: linear-gradient(135deg, #141414 0%, #0e0e0e 100%);
    border: 1px solid #282828;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 32px;
    display: flex;
    gap: 28px;
    cursor: pointer;
    transition: all 0.2s;
}

.muzeark-active-project:hover {
    border-color: #e2ba87;
    transform: translateY(-2px);
}

.muzeark-active-project:hover .muzeark-vinyl {
    animation-play-state: running;
}

.muzeark-active-project__art {
    width: 140px;
    height: 140px;
    background: #0e0e0e;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.muzeark-active-project__badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #22c55e;
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.muzeark-active-project__info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.muzeark-active-project__label {
    font-size: 11px;
    font-weight: 700;
    color: #22c55e;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.muzeark-active-project__name {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.muzeark-active-project__meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
}

.muzeark-active-project__stats {
    display: flex;
    gap: 32px;
    margin-bottom: 16px;
}

.muzeark-active-project__stat {
    text-align: center;
}

.muzeark-active-project__stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 800;
}

.muzeark-active-project__stat-value--gold { color: #e2ba87; }
.muzeark-active-project__stat-value--green { color: #22c55e; }

.muzeark-active-project__stat-label {
    font-size: 11px;
    color: #555;
    letter-spacing: 0.5px;
}

.muzeark-active-project__progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.muzeark-active-project__progress-bar {
    height: 6px;
    background: #1c1c1c;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.muzeark-active-project__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #e2ba87);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.muzeark-active-project__progress-label {
    font-size: 12px;
    color: #888;
}

.muzeark-active-project__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

/* Projects Section */
.muzeark-projects-section {
    margin-top: 24px;
}

.muzeark-projects-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.muzeark-projects-section__title {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    letter-spacing: 1px;
}

/* Project Cards - Updated */
.muzeark-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.muzeark-project-card__art {
    width: 100%;
    aspect-ratio: 1;
    background: #141414;
    border-radius: 8px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.muzeark-project-card__art .muzeark-vinyl {
    width: 70%;
    height: 70%;
}

.muzeark-project-card:hover .muzeark-vinyl {
    animation-play-state: running;
}

.muzeark-project-card--new {
    border-style: dashed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.muzeark-project-card--new:hover {
    border-color: #e2ba87;
    background: rgba(226, 186, 135, 0.05);
}

.muzeark-project-card__new-icon {
    font-size: 40px;
    color: #555;
    margin-bottom: 12px;
}

.muzeark-project-card__new-text {
    font-size: 14px;
    color: #888;
    font-weight: 600;
}

/* Project Detail - Updated Header */
.muzeark-project-detail__title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex: 1;
    text-align: center;
}

.muzeark-project-detail__content {
    padding: 32px;
    max-width: 900px;
    margin: 0 auto;
}

/* Project Detail Hero */
.muzeark-project-detail__hero {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
}

.muzeark-project-detail__art {
    width: 160px;
    height: 160px;
    background: #0e0e0e;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.muzeark-project-detail__art .muzeark-vinyl {
    width: 130px;
    height: 130px;
}

.muzeark-project-detail__meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.muzeark-project-stat__value--gold { color: #e2ba87; }
.muzeark-project-stat__value--green { color: #22c55e; }

.muzeark-project-detail__progress {
    max-width: 400px;
}

.muzeark-project-detail__progress-label {
    font-size: 12px;
    color: #888;
}

/* Project Tracks Section */
.muzeark-project-tracks {
    margin-bottom: 32px;
}

.muzeark-project-tracks__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.muzeark-project-tracks__title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* Track List Table */
.muzeark-project-track-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.muzeark-project-track {
    display: grid;
    grid-template-columns: 40px 60px 1fr 120px 120px 80px;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    background: #0e0e0e;
    border: 1px solid #1c1c1c;
    border-radius: 10px;
    transition: border-color 0.2s;
}

.muzeark-project-track:hover {
    border-color: #282828;
}

.muzeark-project-track__num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-align: center;
}

.muzeark-project-track__art {
    width: 50px;
    height: 50px;
    background: #141414;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #e2ba87;
    position: relative;
    overflow: hidden;
}

.muzeark-project-track__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.muzeark-project-track__play {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
    cursor: pointer;
}

.muzeark-project-track:hover .muzeark-project-track__play {
    opacity: 1;
}

.muzeark-project-track__play svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.muzeark-project-track__info {
    min-width: 0;
}

.muzeark-project-track__name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.muzeark-project-track__meta {
    font-size: 12px;
    color: #888;
}

/* Writing Badge */
.muzeark-writing-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}

.muzeark-writing-badge--has {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.muzeark-writing-badge--none {
    background: #141414;
    color: #555;
}

/* Status Badge */
.muzeark-status-badge {
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
}

.muzeark-status-badge--finalized {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.muzeark-status-badge--pending {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.muzeark-status-badge--needs-license {
    background: #141414;
    color: #555;
}

.muzeark-project-track__actions {
    text-align: right;
}

.muzeark-project-track__btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid #282828;
    background: transparent;
    color: #fff;
}

.muzeark-project-track__btn:hover {
    border-color: #e2ba87;
    color: #e2ba87;
}

.muzeark-project-track__btn--primary {
    background: #e2ba87;
    border-color: #e2ba87;
    color: #000;
}

.muzeark-project-track__btn--primary:hover {
    background: #d4a574;
}

/* Responsive Track List */
@media (max-width: 768px) {
    .muzeark-project-track {
        grid-template-columns: 40px 50px 1fr auto;
    }
    
    .muzeark-project-track__writing,
    .muzeark-project-track__status {
        display: none;
    }
    
    .muzeark-active-project {
        flex-direction: column;
        padding: 20px;
    }
    
    .muzeark-active-project__art {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .muzeark-active-project__stats {
        justify-content: center;
    }
    
    .muzeark-project-detail__hero {
        flex-direction: column;
        text-align: center;
    }
    
    .muzeark-project-detail__art {
        margin: 0 auto;
    }
    
    .muzeark-project-detail__stats {
        justify-content: center;
    }
}

/* ============================================ */
/* === PROJECT LICENSING SECTION (Mockup Match) === */
/* ============================================ */

.licensing-section {
    margin-top: 40px;
    padding: 24px;
    background: #0e0e0e;
    border: 1px solid #1c1c1c;
    border-radius: 12px;
}

.licensing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.licensing-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.licensing-total {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 800;
    color: #e2ba87;
}

.licensing-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.license-option {
    padding: 20px;
    background: #141414;
    border: 2px solid #1c1c1c;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.license-option:hover {
    border-color: #282828;
}

.license-option.recommended {
    border-color: #e2ba87;
    background: rgba(226, 186, 135, 0.12);
}

.license-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.license-option-name {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
}

.license-option-badge {
    font-size: 9px;
    font-weight: 800;
    background: #e2ba87;
    color: #080808;
    padding: 3px 8px;
    border-radius: 4px;
}

.license-option-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #fff;
}

.license-option.recommended .license-option-price {
    color: #e2ba87;
}

.license-option-desc {
    font-size: 12px;
    color: #888;
    margin-bottom: 16px;
}

.license-option-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid #1c1c1c;
    background: transparent;
    color: #fff;
    text-align: center;
    text-decoration: none;
}

.license-option-btn:hover {
    border-color: #e2ba87;
    color: #e2ba87;
}

.license-option.recommended .license-option-btn {
    background: #e2ba87;
    border-color: #e2ba87;
    color: #080808;
}

.license-option.recommended .license-option-btn:hover {
    background: #d4a574;
}

.savings-callout {
    text-align: center;
    padding: 16px;
    margin-top: 16px;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 8px;
}

.savings-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 800;
    color: #22c55e;
}

.savings-label {
    font-size: 12px;
    color: #888;
}

/* Elite Member Section */
.muzeark-project-elite {
    margin-top: 32px;
    background: rgba(226, 186, 135, 0.1);
    border: 1px solid rgba(226, 186, 135, 0.3);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.muzeark-project-elite__badge {
    font-size: 14px;
    font-weight: 800;
    color: #e2ba87;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.muzeark-project-elite__message {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 600px) {
    .licensing-compare {
        grid-template-columns: 1fr;
    }
}

/* Cover Picker in Modal */
.muzeark-cover-picker {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.muzeark-cover-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: #1a1a1a;
    border: 2px solid #2a2a2a;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.muzeark-cover-option:hover {
    border-color: #3a3a3a;
}

.muzeark-cover-option.active {
    border-color: #e2ba87;
    background: rgba(226, 186, 135, 0.1);
}

.muzeark-cover-option input {
    display: none;
}

.muzeark-cover-option img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.muzeark-cover-option span {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.muzeark-cover-option.active span {
    color: #e2ba87;
}

/* Button Variants */
.muzeark-btn--ghost {
    background: transparent !important;
    border: none !important;
}

/* Project back button - more visible */
#project-back-btn {
    background: var(--mz-surface2, rgba(255,255,255,0.15)) !important;
    border: 1px solid var(--mz-border, rgba(255,255,255,0.25)) !important;
    padding: 10px 20px;
    font-weight: 600;
    gap: 8px;
    color: var(--mz-text, #fff) !important;
    display: flex;
    align-items: center;
}

#project-back-btn:hover {
    background: rgba(226, 186, 135, 0.2) !important;
    border-color: var(--mz-accent, #e2ba87) !important;
    color: var(--mz-accent, #e2ba87) !important;
}

#project-back-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.muzeark-btn--danger {
    color: #ef4444 !important;
}

.muzeark-btn--danger:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

.muzeark-btn--full {
    width: 100%;
    justify-content: center;
}

/* Responsive Projects */
@media (max-width: 768px) {
    .muzeark-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .muzeark-project-card__info {
        padding: 12px;
    }
    
    .muzeark-project-card__info h4 {
        font-size: 14px;
    }
    
    .muzeark-project-detail__cover {
        width: 150px;
        height: 150px;
    }
    
    .muzeark-project-detail__stats {
        gap: 24px;
    }
    
    .muzeark-project-stat__value {
        font-size: 24px;
    }
    
    .muzeark-project-beat {
        flex-wrap: wrap;
    }
    
    .muzeark-project-beat__status {
        width: 100%;
        margin-top: 8px;
    }
    
    .muzeark-project-beat__actions {
        position: absolute;
        right: 12px;
        top: 12px;
    }
    
    .muzeark-project-beat {
        position: relative;
    }
    
    .muzeark-cover-picker {
        flex-wrap: wrap;
    }
    
    .muzeark-cover-option {
        padding: 12px;
    }
    
    .muzeark-cover-option img {
        width: 60px;
        height: 60px;
    }
}

/* =============================================
   SWIPE INDICATORS & ANIMATIONS (v3.20.1)
   ============================================= */
.muzeark-swipe-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

.muzeark-swipe-indicator--like {
    right: 10px;
    background: rgba(78, 173, 128, 0.9);
    color: white;
}

.muzeark-swipe-indicator--dislike {
    left: 10px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.muzeark-mobile-card.swiping-left .muzeark-swipe-indicator--like {
    opacity: 1;
}

.muzeark-mobile-card.swiping-right .muzeark-swipe-indicator--dislike {
    opacity: 1;
}

.muzeark-mobile-card__artwork {
    position: relative;
}

.muzeark-mobile-card__artwork.swipe-left {
    animation: swipeLeft 0.3s ease forwards;
}

.muzeark-mobile-card__artwork.swipe-right {
    animation: swipeRight 0.3s ease forwards;
}

@keyframes swipeLeft {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-100px); opacity: 0; }
}

@keyframes swipeRight {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(100px); opacity: 0; }
}

/* =============================================
   PROJECT PICKER MODAL (v3.20.1)
   ============================================= */
.muzeark-modal--sm .muzeark-modal__content {
    max-width: 400px;
}

.muzeark-add-project__beat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary, #1a1a1a);
    border-radius: 8px;
    margin-bottom: 16px;
}

.muzeark-add-project__beat img {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
}

.muzeark-add-project__beat span {
    font-weight: 500;
    color: var(--text-primary, #fff);
}

.muzeark-project-picker {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.muzeark-project-picker-loading,
.muzeark-project-picker-message {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary, #888);
}

.muzeark-project-picker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.muzeark-project-picker-item:hover {
    background: var(--bg-tertiary, #1a1a1a);
}

.muzeark-project-picker-item__cover {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.muzeark-project-picker-item__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.muzeark-project-picker-item__info {
    flex: 1;
    min-width: 0;
}

.muzeark-project-picker-item__name {
    font-weight: 500;
    color: var(--text-primary, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.muzeark-project-picker-item__meta {
    font-size: 12px;
    color: var(--text-secondary, #888);
}

.muzeark-project-picker-item__check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-secondary, #888);
    border-radius: 50%;
    flex-shrink: 0;
}

.muzeark-project-picker-item:hover .muzeark-project-picker-item__check {
    border-color: var(--accent, #e2ba87);
}

/* =============================================
   TRACK SAVES COUNT (v3.20.1)
   ============================================= */
.muzeark-track__saves {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--mz-text-dim, #888);
    font-size: 12px;
    margin-right: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.15s;
}

.muzeark-track__saves:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.muzeark-track__saves.liked {
    color: #ef4444;
}

.muzeark-track__saves.liked svg,
.muzeark-track__saves:hover svg {
    fill: #ef4444;
    stroke: #ef4444;
}

.muzeark-track__saves svg {
    fill: none;
    stroke: currentColor;
}

/* =============================================
   OWNERSHIP BADGE (Pills - v3.34.0)
   ============================================= */
.muzeark-track__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    margin-left: 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    vertical-align: middle;
}

/* BLUE pill = Elite/All Access (downloaded with membership) */
.muzeark-track__badge--blue {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* GREEN pill = Purchased (individually bought) */
.muzeark-track__badge--green {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* Remove background highlighting (v3.34.0 - replaced with pills) */
.muzeark-track--purchased,
.muzeark-track--member {
    /* No background highlighting - badge is enough */
}

/* =============================================
   PLAYING TRACK PULSE ANIMATION (v3.34.0)
   ============================================= */
@keyframes muzeark-pulse {
    0%, 100% {
        background-color: rgba(0, 0, 0, 0);
    }
    50% {
        background-color: rgba(226, 186, 135, 0.3);
    }
}

.muzeark-track.playing {
    /* Wave-lap on ::before handles playing indicator */
}

/* =============================================
   FOLDER ICON BUTTON (v3.20.1)
   ============================================= */
.muzeark-btn--add-project {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.muzeark-track:hover .muzeark-btn--add-project {
    opacity: 1;
}

.muzeark-btn--icon {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--text-secondary, #888);
    border-radius: 4px;
}

.muzeark-btn--icon:hover {
    background: var(--bg-tertiary, #1a1a1a);
    color: var(--accent, #e2ba87);
}

/* =============================================
   WRITING PAD TITLE ROW (v3.20.2)
   ============================================= */
.muzeark-writing-pad__title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.muzeark-writing-pad__title-row .muzeark-writing-pad__song-title {
    flex: 1;
    margin-bottom: 0;
}

.muzeark-writing-pad__project-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-tertiary, #1a1a1a);
    border: 1px solid var(--border-color, #333);
    border-radius: 6px;
    color: var(--text-secondary, #888);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.muzeark-writing-pad__project-btn:hover {
    border-color: var(--accent, #e2ba87);
    color: var(--accent, #e2ba87);
}

.muzeark-writing-pad__project-btn svg {
    flex-shrink: 0;
}

/* =============================================
   PROJECT PICKER IMPROVEMENTS (v3.20.2)
   ============================================= */
.muzeark-project-picker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
}

.muzeark-project-picker-item:hover {
    background: var(--bg-tertiary, #1a1a1a);
}

.muzeark-project-picker-item:hover .muzeark-project-picker-item__add {
    opacity: 1;
    color: var(--accent, #e2ba87);
}

.muzeark-project-picker-item__add {
    opacity: 0.5;
    color: var(--text-secondary, #888);
    transition: all 0.15s ease;
}

.muzeark-project-picker__footer {
    padding-top: 12px;
    border-top: 1px solid var(--border-color, #333);
    margin-top: 8px;
}

.muzeark-project-picker__new-link {
    background: none;
    border: none;
    color: var(--accent, #e2ba87);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    width: 100%;
    text-align: center;
    transition: opacity 0.15s ease;
}

.muzeark-project-picker__new-link:hover {
    opacity: 0.8;
}

.default-badge {
    color: var(--accent, #e2ba87);
    margin-left: 4px;
}

/* =============================================
   FIX: Remove project picker item check circle
   ============================================= */
.muzeark-project-picker-item__check {
    display: none;
}

/* =============================================
   PROJECT PICKER ENHANCEMENTS (v3.20.3)
   ============================================= */

/* Already added state */
.muzeark-project-picker-item--added {
    opacity: 0.7;
    cursor: default;
    pointer-events: none;
}

.muzeark-project-picker-item--added.just-added {
    animation: addedPulse 0.5s ease;
}

@keyframes addedPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); background: rgba(78, 173, 128, 0.1); }
    100% { transform: scale(1); }
}

.muzeark-project-picker-item__status {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--success, #4ead80);
    font-size: 12px;
    font-weight: 500;
}

.muzeark-project-picker-item__status svg {
    fill: var(--success, #4ead80);
}

/* Loading state */
.muzeark-project-picker-item.loading {
    opacity: 0.5;
    pointer-events: none;
}

.muzeark-project-picker-item.loading .muzeark-project-picker-item__add {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Beat count pulse */
.beat-count {
    display: inline-block;
    transition: transform 0.2s ease;
}

.beat-count.pulse {
    animation: countPulse 0.4s ease;
    color: var(--accent, #e2ba87);
}

@keyframes countPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Success message in footer */
.muzeark-project-picker__success {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(78, 173, 128, 0.1);
    border-radius: 6px;
    margin-bottom: 12px;
    animation: successSlide 0.3s ease;
}

@keyframes successSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-message {
    color: var(--success, #4ead80);
    font-size: 13px;
    font-weight: 500;
}

.muzeark-project-picker__goto {
    background: none;
    border: none;
    color: var(--accent, #e2ba87);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.muzeark-project-picker__goto:hover {
    background: rgba(226, 186, 135, 0.1);
}

/* Mobile menu item active state */
.muzeark-top-menu__item.active {
    background: var(--bg-tertiary, #1a1a1a);
    color: var(--accent, #e2ba87);
}

/* =============================================
   PROJECT DETAIL - ELITE VS LICENSE (v3.20.4)
   ============================================= */

.muzeark-project-value-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-tertiary, #1a1a1a);
    border-radius: 8px;
    margin-bottom: 12px;
}

.muzeark-value-option {
    text-align: center;
    flex: 1;
}

.muzeark-value-option__label {
    display: block;
    font-size: 11px;
    color: var(--text-secondary, #888);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.muzeark-value-option__price {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

.muzeark-value-option--license .muzeark-value-option__price {
    color: var(--text-secondary, #888);
    text-decoration: line-through;
}

.muzeark-value-option--elite .muzeark-value-option__price {
    color: var(--success, #4ead80);
}

.muzeark-value-vs {
    color: var(--text-muted, #666);
    font-size: 12px;
    font-weight: 500;
}

.muzeark-btn--accent {
    background: linear-gradient(135deg, var(--accent, #e2ba87), #d4a574);
    color: #000;
    font-weight: 600;
}

.muzeark-btn--accent:hover {
    filter: brightness(1.1);
}

.muzeark-btn--accent svg {
    margin-right: 6px;
}

/* Elite member badge */
.muzeark-project-detail__elite-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(226, 186, 135, 0.1), rgba(226, 186, 135, 0.05));
    border: 1px solid rgba(226, 186, 135, 0.3);
    border-radius: 8px;
    color: var(--accent, #e2ba87);
    font-size: 13px;
    font-weight: 500;
}

.muzeark-project-detail__elite-badge svg {
    fill: var(--accent, #e2ba87);
}

/* Beat row pricing */
.muzeark-project-beat__price {
    color: var(--text-secondary, #888);
    font-size: 12px;
}

.muzeark-project-beat__included {
    color: var(--success, #4ead80);
    font-size: 12px;
    font-weight: 500;
}

/* Tier badges in project beats */
.muzeark-tier-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tier level 1 (lowest/first tier) - typically not shown */
.muzeark-tier-badge--level-1 {
    background: rgba(136, 136, 136, 0.2);
    color: #888;
}

/* Tier level 2 (middle tier) - blue */
.muzeark-tier-badge--level-2 {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

/* Tier level 3 (highest tier) - gold */
.muzeark-tier-badge--level-3 {
    background: rgba(226, 186, 135, 0.2);
    color: var(--accent, #e2ba87);
}

/* Tier level 4+ (additional tiers) - purple */
.muzeark-tier-badge--level-4,
.muzeark-tier-badge--level-5,
.muzeark-tier-badge--level-6 {
    background: rgba(147, 51, 234, 0.2);
    color: #a855f7;
}

.muzeark-cart-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 4px;
    margin-right: 6px;
    text-transform: uppercase;
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.muzeark-project-beat.in-cart {
    background: rgba(74, 222, 128, 0.05);
    border-left: 2px solid rgba(74, 222, 128, 0.3);
}

/* Clickable beat row */
.muzeark-project-beat__clickable {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
    padding: 8px;
    margin: -8px;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.muzeark-project-beat__clickable:hover {
    background: var(--bg-tertiary, #1a1a1a);
}

/* Ensure beat row layout works */
.muzeark-project-beat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: var(--bg-secondary, #141414);
    margin-bottom: 8px;
}

.muzeark-project-beat__artwork {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.muzeark-project-beat__artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.muzeark-project-beat__info {
    flex: 1;
    min-width: 0;
}

.muzeark-project-beat__info h4 {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.muzeark-project-beat__song {
    display: block;
    font-size: 12px;
    color: var(--accent, #e2ba87);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.muzeark-project-beat__meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary, #888);
    margin-top: 4px;
}

/* =============================================
   PROJECT LICENSING SECTION (v3.20.5)
   ============================================= */

.muzeark-project-licensing {
    margin-top: 32px;
    background: linear-gradient(135deg, #141414 0%, #0e0e0e 100%);
    border: 1px solid #282828;
    border-radius: 16px;
    overflow: hidden;
}

.muzeark-project-licensing__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.muzeark-project-licensing__header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.muzeark-project-licensing__header.open {
    border-bottom: 1px solid #282828;
}

.muzeark-project-licensing__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.muzeark-project-licensing__icon {
    font-size: 20px;
}

.muzeark-project-licensing__preview {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #e2ba87;
}

.muzeark-project-licensing__chevron {
    transition: transform 0.2s;
    color: #666;
}

.muzeark-project-licensing__header.open .muzeark-project-licensing__chevron {
    transform: rotate(180deg);
}

.muzeark-project-licensing__savings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    color: #22c55e;
    font-size: 13px;
    font-weight: 600;
}

.muzeark-project-licensing__content {
    padding: 20px;
}

.muzeark-project-licensing__compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.muzeark-project-licensing__option {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.muzeark-project-licensing__option--elite {
    background: linear-gradient(135deg, rgba(226, 186, 135, 0.1) 0%, rgba(226, 186, 135, 0.02) 100%);
    border-color: rgba(226, 186, 135, 0.3);
}

.muzeark-project-licensing__option-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.muzeark-project-licensing__option-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.muzeark-project-licensing__option-badge {
    background: #22c55e;
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.muzeark-project-licensing__option-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.muzeark-project-licensing__option--elite .muzeark-project-licensing__option-price {
    color: #e2ba87;
}

.muzeark-project-licensing__option-desc {
    font-size: 12px;
    color: #888;
    margin-bottom: 16px;
    line-height: 1.4;
}

.muzeark-project-licensing__callout {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    margin-bottom: 16px;
}

.muzeark-project-licensing__callout-amount {
    font-size: 20px;
    font-weight: 800;
    color: #22c55e;
    margin-bottom: 4px;
}

.muzeark-project-licensing__callout-label {
    font-size: 12px;
    color: #888;
}

.muzeark-project-licensing__dismiss {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    color: #555;
    font-size: 12px;
    padding: 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.muzeark-project-licensing__dismiss:hover {
    color: #888;
}

.muzeark-licensing-subtle {
    display: block;
    width: 100%;
    background: transparent;
    border: 1px dashed #2a2a2a;
    border-radius: 8px;
    color: #555;
    font-size: 13px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 32px;
}

.muzeark-licensing-subtle:hover {
    border-color: #e2ba87;
    color: #e2ba87;
}

/* Responsive licensing */
@media (max-width: 600px) {
    .muzeark-project-licensing__compare {
        grid-template-columns: 1fr;
    }
}

.muzeark-licensing-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary, #1a1a1a);
    border: 1px solid var(--border-color, #333);
    border-radius: 8px;
    color: var(--text-primary, #fff);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.muzeark-licensing-toggle:hover {
    border-color: var(--accent, #e2ba87);
    background: rgba(226, 186, 135, 0.05);
}

.muzeark-licensing-toggle.open {
    border-color: var(--accent, #e2ba87);
    border-radius: 8px 8px 0 0;
}

.muzeark-licensing-toggle__icon {
    font-size: 18px;
}

.muzeark-licensing-toggle__text {
    flex: 1;
    text-align: left;
}

.muzeark-licensing-toggle__arrow {
    transition: transform 0.2s ease;
}

.muzeark-licensing-toggle.open .muzeark-licensing-toggle__arrow {
    transform: rotate(180deg);
}

.muzeark-licensing-content {
    background: var(--bg-secondary, #141414);
    border: 1px solid var(--accent, #e2ba87);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 20px;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.muzeark-licensing-option {
    padding: 16px;
    border-radius: 8px;
    background: var(--bg-tertiary, #1a1a1a);
}

.muzeark-licensing-option__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.muzeark-licensing-option__title {
    font-weight: 600;
    font-size: 15px;
}

.muzeark-licensing-option__price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent, #e2ba87);
}

/* Bundle discount pricing */
.muzeark-price-original {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted, #666);
    text-decoration: line-through;
    margin-right: 8px;
}

.muzeark-price-discounted {
    font-size: 18px;
    font-weight: 700;
    color: #4ade80; /* Green for savings */
}

.muzeark-free-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.muzeark-licensing-toggle__text .muzeark-free-badge {
    font-size: 10px;
    padding: 2px 6px;
}

.muzeark-licensing-option__desc {
    font-size: 13px;
    color: var(--text-secondary, #888);
    margin: 0 0 12px 0;
}

.muzeark-licensing-option--elite {
    background: linear-gradient(135deg, rgba(226, 186, 135, 0.1), rgba(226, 186, 135, 0.05));
    border: 1px solid rgba(226, 186, 135, 0.2);
}

.muzeark-licensing-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
    color: var(--text-muted, #666);
    font-size: 12px;
    text-transform: uppercase;
}

.muzeark-licensing-divider::before,
.muzeark-licensing-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color, #333);
}

.muzeark-licensing-dismiss {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 10px;
    background: none;
    border: none;
    color: var(--text-muted, #666);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.muzeark-licensing-dismiss:hover {
    color: var(--text-secondary, #888);
}

/* Licensing savings badge */
.muzeark-licensing-option__savings {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(78, 173, 128, 0.1);
    border-radius: 6px;
    color: var(--success, #4ead80);
    font-size: 12px;
    font-weight: 500;
}

.muzeark-licensing-option__savings svg {
    flex-shrink: 0;
}

/* Elite Membership Section */
.muzeark-licensing-elite {
    padding: 16px;
    background: linear-gradient(135deg, rgba(226, 186, 135, 0.08), rgba(226, 186, 135, 0.02));
    border: 1px solid rgba(226, 186, 135, 0.2);
    border-radius: 10px;
}

.muzeark-licensing-elite__header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 4px;
}

.muzeark-licensing-elite__subtitle {
    font-size: 13px;
    color: var(--text-muted, #666);
    margin: 0 0 16px 0;
}

/* Elite Savings Comparison */
.muzeark-elite-savings {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.muzeark-elite-savings__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.muzeark-elite-savings__row:first-child {
    padding-top: 0;
}

.muzeark-elite-savings__label {
    font-size: 14px;
    color: var(--mz-text-secondary, #888);
}

.muzeark-elite-savings__value {
    font-size: 16px;
    font-weight: 600;
}

.muzeark-elite-savings__value--retail {
    color: var(--mz-text, #fff);
}

.muzeark-elite-savings__value--elite {
    color: var(--mz-accent, #e2ba87);
}

.muzeark-elite-savings__divider {
    height: 1px;
    background: var(--mz-border, #333);
    margin: 8px 0;
}

.muzeark-elite-savings__row--total {
    padding-bottom: 0;
}

.muzeark-elite-savings__row--total .muzeark-elite-savings__label {
    font-weight: 600;
    color: var(--mz-text, #fff);
}

.muzeark-elite-savings__value--savings {
    color: #22c55e;
    font-size: 18px;
}

/* Elite CTA Button */
.muzeark-elite-cta {
    margin-top: 8px;
}

/* Tier Cards Grid */
.muzeark-tier-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

/* Horizontal layout modifier */
.muzeark-tier-cards--horizontal {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
}

.muzeark-tier-cards--horizontal .muzeark-tier-card {
    flex: 1;
    min-width: 0;
}

.muzeark-tier-card {
    position: relative;
    padding: 16px 12px;
    background: var(--card-bg, #1a1a1a);
    border: 1px solid var(--border-color, #333);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.muzeark-tier-card:hover {
    border-color: var(--accent, #e2ba87);
    transform: translateY(-2px);
}

.muzeark-tier-card--popular {
    border-color: var(--success, #4ead80);
    background: rgba(78, 173, 128, 0.08);
}

.muzeark-tier-card__badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 12px;
    background: var(--success, #4ead80);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 10px;
}

.muzeark-tier-card__name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted, #666);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.muzeark-tier-card__price {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.muzeark-tier-card__price span {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted, #666);
}

.muzeark-tier-card__beats {
    font-size: 12px;
    color: var(--accent, #e2ba87);
    margin: 6px 0;
}

/* Per-Beat Cost Display */
.muzeark-tier-card__perbeat {
    margin: 10px 0 12px;
    padding: 8px;
    background: rgba(226, 186, 135, 0.08);
    border-radius: 6px;
}

.muzeark-tier-card__perbeat-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted, #888);
    margin-bottom: 2px;
}

.muzeark-tier-card__perbeat-label .beat-count {
    color: var(--accent, #e2ba87);
    font-weight: 600;
}

.muzeark-tier-card__perbeat-cost {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--success, #4ead80);
}

/* Old value display - keeping for fallback */
.muzeark-tier-card__value {
    margin: 8px 0 12px;
}

.muzeark-tier-card__value-monthly {
    display: block;
    font-size: 11px;
    color: var(--text-muted, #666);
}

.muzeark-tier-card__value-worth {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--success, #4ead80);
}

.muzeark-tier-card__btn {
    width: 100%;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* Tier Project Savings */
.muzeark-tier-savings {
    padding: 12px;
    background: var(--bg, #0d0d0d);
    border-radius: 8px;
}

.muzeark-tier-savings__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-muted, #666);
}

.muzeark-tier-savings__row--highlight {
    color: var(--text-primary, #fff);
    font-weight: 600;
}

.muzeark-tier-savings__free {
    color: var(--success, #4ead80);
    font-weight: 700;
}

/* Mobile responsive tier cards */
@media (max-width: 480px) {
    .muzeark-tier-cards,
    .muzeark-tier-cards--horizontal {
        flex-direction: column;
        gap: 10px;
    }
    
    .muzeark-tier-cards--horizontal .muzeark-tier-card {
        flex: none;
        width: 100%;
    }
    
    .muzeark-tier-card {
        display: grid;
        grid-template-columns: 1fr auto auto;
        grid-template-rows: auto auto auto;
        gap: 4px 12px;
        text-align: left;
        padding: 14px;
    }
    
    .muzeark-tier-card__badge {
        position: static;
        transform: none;
        grid-column: 1 / -1;
        width: fit-content;
        margin-bottom: 4px;
    }
    
    .muzeark-tier-card__name {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        align-self: center;
    }
    
    .muzeark-tier-card__price {
        grid-column: 2;
        grid-row: 1;
        font-size: 18px;
    }
    
    .muzeark-tier-card__btn {
        grid-column: 3;
        grid-row: 1 / 4;
        width: auto;
        height: fit-content;
        align-self: center;
        padding: 10px 16px;
    }
    
    .muzeark-tier-card__beats {
        grid-column: 1 / 3;
        grid-row: 2;
        margin: 0;
    }
    
    .muzeark-tier-card__perbeat {
        grid-column: 1 / 3;
        grid-row: 3;
        margin: 6px 0 0;
        padding: 6px 8px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .muzeark-tier-card__perbeat-label {
        display: inline;
        margin: 0;
    }
    
    .muzeark-tier-card__perbeat-cost {
        display: inline;
        font-size: 14px;
    }
    
    .muzeark-tier-card__value {
        grid-column: 1 / 3;
        grid-row: 3;
        margin: 0;
        display: flex;
        gap: 8px;
        align-items: center;
    }
    
    .muzeark-tier-card__value-monthly,
    .muzeark-tier-card__value-worth {
        display: inline;
    }
}

/* Project card price display */
.muzeark-project-card__price {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent, #e2ba87);
    margin-top: 4px;
}

/* =============================================
   GREEN BUTTON STYLES (v3.20.6)
   ============================================= */

/* Full green button */
.muzeark-btn--success {
    background: var(--success, #4ead80);
    color: #fff;
    border: none;
    font-weight: 600;
}

.muzeark-btn--success:hover {
    background: #3d9a6e;
    filter: brightness(1.1);
}

/* Green outline button */
.muzeark-btn--outline-success {
    background: transparent;
    color: var(--success, #4ead80);
    border: 2px solid var(--success, #4ead80);
    font-weight: 600;
}

.muzeark-btn--outline-success:hover {
    background: rgba(78, 173, 128, 0.1);
    border-color: #3d9a6e;
    color: #3d9a6e;
}

/* Subtle licensing link (after dismiss) */
.muzeark-licensing-subtle {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    background: none;
    border: 1px dashed var(--border-color, #333);
    border-radius: 8px;
    color: var(--text-muted, #666);
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.muzeark-licensing-subtle:hover {
    border-color: var(--accent, #e2ba87);
    color: var(--accent, #e2ba87);
    background: rgba(226, 186, 135, 0.05);
}

/* =============================================
   TOAST NOTIFICATIONS (v3.20.8)
   ============================================= */

.muzeark-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-secondary, #1a1a1a);
    color: var(--text-primary, #fff);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10000;
    max-width: 90%;
    text-align: center;
}

.muzeark-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.muzeark-toast--success {
    border-left: 4px solid var(--success, #4ead80);
}

.muzeark-toast--error {
    border-left: 4px solid var(--error, #e74c3c);
}

.muzeark-toast--info {
    border-left: 4px solid var(--accent, #e2ba87);
}

/* =============================================
   TABLET MENU BUTTON (v3.20.9)
   ============================================= */

/* Hidden by default */
.muzeark-tablet-menu-btn {
    display: none;
}

/* Show on tablets (768-1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .muzeark-tablet-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--bg-tertiary, #1a1a1a);
        border: 1px solid var(--border-color, #333);
        border-radius: 8px;
        color: var(--text-primary, #fff);
        cursor: pointer;
        margin-right: 12px;
        flex-shrink: 0;
        transition: all 0.15s ease;
    }
    
    .muzeark-tablet-menu-btn:hover {
        background: var(--bg-secondary, #242424);
        border-color: var(--accent, #e2ba87);
        color: var(--accent, #e2ba87);
    }
    
    .muzeark-filters {
        display: flex;
        align-items: center;
    }
}

/* Also show mobile menu on tablets when opened */
@media (min-width: 768px) and (max-width: 1024px) {
    .muzeark-mobile-menu {
        display: none;
    }
    
    .muzeark-mobile-menu.open {
        display: flex;
    }
}

/* =============================================
   PROJECTS FULL-SCREEN OVERLAY (v3.20.9)
   ============================================= */

/* Close button - hidden by default */
.muzeark-projects-close {
    display: none;
}

/* Swipe hint - hidden by default */
.muzeark-projects-swipe-hint {
    display: none;
}

/* Mobile/Tablet: Full-screen projects overlay */
@media (max-width: 1024px) {
    /* Close button visible */
    .muzeark-projects-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--bg-tertiary, #1a1a1a);
        border: 1px solid var(--border-color, #333);
        border-radius: 8px;
        color: var(--text-primary, #fff);
        cursor: pointer;
        flex-shrink: 0;
        transition: all 0.15s ease;
    }
    
    .muzeark-projects-close:hover {
        background: var(--error, #e74c3c);
        border-color: var(--error, #e74c3c);
    }
    
    /* Projects header with close button */
    .muzeark-projects-header {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .muzeark-projects-header h2 {
        flex: 1;
    }
    
    /* Swipe hint at bottom */
    .muzeark-projects-swipe-hint {
        display: block;
        text-align: center;
        padding: 8px;
        color: var(--text-muted, #666);
        font-size: 12px;
    }
    
    /* Full-screen overlay when projects view is active */
    [data-view="projects"] .muzeark-projects-view {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        background: var(--bg-primary, #0d0d0d);
        overflow-y: auto;
        padding: 16px;
        animation: slideUpIn 0.3s ease;
    }
    
    [data-view="projects"] .muzeark-projects-view.closing {
        animation: slideDownOut 0.3s ease forwards;
    }
    
    @keyframes slideUpIn {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes slideDownOut {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(100%);
            opacity: 0;
        }
    }
}

/* Fix mini player on larger phones landscape */
@media (min-width: 667px) and (max-width: 1024px) and (orientation: landscape) {
    .muzeark-mobile-list-bottom.has-track {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 90;
    }
    
    /* Ensure tracks area has bottom padding for mini player */
    .muzeark-tracks {
        padding-bottom: 80px;
    }
}

/* =============================================
   LANDSCAPE FIXES (v3.20.10)
   ============================================= */

/* Project picker modal - landscape scrollable */
@media (orientation: landscape) and (max-height: 500px) {
    .muzeark-modal--sm .muzeark-modal__content {
        max-height: 90vh;
        display: flex;
        flex-direction: column;
    }
    
    .muzeark-modal--sm .muzeark-modal__body {
        overflow-y: auto;
        max-height: calc(90vh - 80px);
        padding: 12px 16px;
    }
    
    .muzeark-modal--sm .muzeark-modal__header {
        padding: 12px 16px;
        flex-shrink: 0;
    }
    
    /* Compact beat info */
    .muzeark-add-project__beat {
        padding: 8px !important;
        margin-bottom: 8px !important;
    }
    
    .muzeark-add-project__beat img {
        width: 36px !important;
        height: 36px !important;
    }
    
    /* Compact project items */
    .muzeark-project-picker-item {
        padding: 8px 12px !important;
    }
    
    .muzeark-project-picker-item__cover {
        width: 36px !important;
        height: 36px !important;
    }
}

/* Fix mini player visibility for 730-1046px range */
@media (min-width: 730px) and (max-width: 1046px) {
    .muzeark-mobile-list-bottom.has-track {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 90;
        background: var(--mz-surface, #0d0d0d);
        border-top: 1px solid var(--mz-border, #333);
    }
    
    /* Ensure tracks area has padding */
    .muzeark-tracks {
        padding-bottom: 80px !important;
    }
}

/* Also cover landscape specifically */
@media (min-width: 667px) and (max-width: 1200px) and (orientation: landscape) {
    .muzeark-mobile-list-bottom.has-track {
        display: flex !important;
    }
}

/* Hide tablet menu button CSS (in case it's still there) */
.muzeark-tablet-menu-btn {
    display: none !important;
}

/* =============================================
   FILTER RESET BUTTON (v3.20.16)
   ============================================= */
.muzeark-filters__reset {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    color: var(--mz-text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--mz-transition);
    margin-right: 8px;
}

.muzeark-filters__reset:hover {
    background: var(--mz-accent);
    border-color: var(--mz-accent);
    color: #000;
}

.muzeark-filters__reset.visible {
    display: inline-flex;
}

/* =============================================
   LOADING SPINNER FOR BUTTONS (v3.20.16)
   ============================================= */
.muzeark-btn--loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.muzeark-btn--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* Cart loading state */
.muzeark-sheet__body--loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.muzeark-sheet__body--loading::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid var(--mz-border);
    border-top-color: var(--mz-accent);
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}

/* Cart loading spinner */
.muzeark-cart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.muzeark-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--mz-border);
    border-top-color: var(--mz-accent);
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}

/* =============================================
   SHEET CLOSE BUTTON (v3.20.17)
   ============================================= */
.muzeark-sheet__close {
    display: flex;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    color: var(--mz-text-secondary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all var(--mz-transition);
    margin-left: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.muzeark-sheet__close:hover {
    background: var(--mz-surface-hover);
    border-color: var(--mz-accent);
    color: var(--mz-text);
}

/* Ensure sheet header is flex */
.muzeark-sheet__header {
    display: flex;
    align-items: center;
}

/* Modal close button - ensure clickable */
.muzeark-modal__close {
    position: relative;
    z-index: 10;
}

/* =============================================
   MOBILE CARD ARTWORK TAP ZONES (v3.20.18)
   ============================================= */
.muzeark-mobile-card__artwork {
    position: relative;
}

.muzeark-artwork-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.muzeark-artwork-zone svg {
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.muzeark-artwork-zone:active svg {
    opacity: 0.9;
}

.muzeark-artwork-zone--prev {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.3), transparent);
    border-radius: var(--mz-radius-lg) 0 0 var(--mz-radius-lg);
}

.muzeark-artwork-zone--next {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.3), transparent);
    border-radius: 0 var(--mz-radius-lg) var(--mz-radius-lg) 0;
}

/* Play/pause overlay (center) */
.muzeark-artwork-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.muzeark-artwork-play:active,
.muzeark-mobile-card__artwork:hover .muzeark-artwork-play {
    opacity: 1;
}

/* Show play button when paused */
.muzeark-app:not(.playing) .muzeark-artwork-play {
    opacity: 0.8;
}

.muzeark-app.playing .muzeark-artwork-play .icon-play {
    display: none;
}

.muzeark-app.playing .muzeark-artwork-play .icon-pause {
    display: block !important;
}

/* =========================================
   DASHBOARD VIEW
   ========================================= */

.muzeark-dashboard-view {
    display: none;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 120px;
}

.muzeark-app[data-view="dashboard"] .muzeark-dashboard-view {
    display: block;
}

/* Hide beats view when dashboard active */
.muzeark-app[data-view="dashboard"] .muzeark-tracks,
.muzeark-app[data-view="dashboard"] .muzeark-filters,
.muzeark-app[data-view="dashboard"] .muzeark-no-results,
.muzeark-app[data-view="dashboard"] .muzeark-loading,
.muzeark-app[data-view="dashboard"] .muzeark-mobile-card,
.muzeark-app[data-view="dashboard"] .muzeark-mobile-list-header,
.muzeark-app[data-view="dashboard"] .muzeark-mobile-list-bottom,
.muzeark-app[data-view="dashboard"] .muzeark-elite-banner {
    display: none !important;
}

.muzeark-dashboard {
    max-width: 100%;
    margin: 0 auto;
    padding: var(--mz-spacing-lg);
}

.muzeark-dashboard__header {
    text-align: center;
    margin-bottom: var(--mz-spacing-xl);
}

.muzeark-dashboard__header h2 {
    font-size: 1.75rem;
    margin: 0 0 0.25rem 0;
    color: var(--mz-text-primary);
}

.muzeark-dashboard__subtitle {
    color: var(--mz-text-muted);
    font-size: 0.9rem;
    margin: 0 0 var(--mz-spacing-md) 0;
}

/* Dashboard Quick Actions */
.muzeark-dashboard__actions {
    display: flex;
    justify-content: center;
    gap: var(--mz-spacing-md);
    margin-top: var(--mz-spacing-md);
}

.muzeark-dashboard__actions .muzeark-btn {
    min-width: 100px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Sections */
.muzeark-dashboard__section {
    background: var(--mz-surface);
    border-radius: var(--mz-radius-lg);
    padding: var(--mz-spacing-lg);
    margin-bottom: var(--mz-spacing-lg);
}

.muzeark-dashboard__section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--mz-spacing-md);
}

.muzeark-dashboard__section-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--mz-text-primary);
}

.muzeark-dashboard__view-all {
    font-size: 0.85rem;
    color: var(--mz-accent);
    text-decoration: none;
}

.muzeark-dashboard__view-all:hover {
    text-decoration: underline;
}

.muzeark-dashboard__empty {
    text-align: center;
    padding: var(--mz-spacing-lg);
    color: var(--mz-text-muted);
}

.muzeark-dashboard__empty p {
    margin: 0 0 var(--mz-spacing-md) 0;
}

/* Creators Club */
.muzeark-creators-club {
    background: linear-gradient(135deg, var(--mz-surface) 0%, rgba(226, 186, 135, 0.1) 100%);
    border: 1px solid rgba(226, 186, 135, 0.2);
}

.muzeark-creators-club__header {
    display: flex;
    align-items: center;
    gap: var(--mz-spacing-md);
    margin-bottom: var(--mz-spacing-md);
}

.muzeark-creators-club__badge {
    font-size: 2rem;
}

.muzeark-creators-club__info h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--mz-text-primary);
}

.muzeark-creators-club__rank {
    font-size: 0.85rem;
    color: var(--mz-accent);
    font-weight: 600;
}

.muzeark-creators-club__progress {
    margin-bottom: var(--mz-spacing-md);
}

.muzeark-creators-club__progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.muzeark-creators-club__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--mz-accent), #f0d4a8);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.muzeark-creators-club__progress-text {
    font-size: 0.8rem;
    color: var(--mz-text-muted);
}

.muzeark-creators-club__stats {
    display: flex;
    gap: var(--mz-spacing-lg);
    margin-bottom: var(--mz-spacing-md);
}

.muzeark-creators-club__stat {
    text-align: center;
}

.muzeark-creators-club__stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mz-text-primary);
}

.muzeark-creators-club__stat-label {
    font-size: 0.75rem;
    color: var(--mz-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.muzeark-creators-club__actions {
    display: flex;
    gap: var(--mz-spacing-sm);
    margin-bottom: var(--mz-spacing-md);
}

.muzeark-creators-club__coming-soon {
    font-size: 0.8rem;
    color: var(--mz-text-muted);
    text-align: center;
    margin: 0;
    font-style: italic;
}

/* ═══ CREATORS CLUB CARD ═══ */
.muzeark-cc {
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    margin-bottom: 16px;
}
.muzeark-cc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2ba8760, transparent);
}
.muzeark-cc__header {
    padding: 16px 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.muzeark-cc__header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.muzeark-cc__badge {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2.5px;
    color: #e2ba87;
}
.muzeark-cc__season {
    font-size: 9px;
    font-weight: 700;
    color: #555;
    background: #1a1a1a;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 1px;
}
.muzeark-cc__streak {
    font-size: 12px;
    color: #f97316;
    font-weight: 700;
}
.muzeark-cc__pillars {
    padding: 18px 18px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.muzeark-cc__pillar {
    display: flex;
    align-items: center;
    gap: 14px;
}
.muzeark-cc__icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.muzeark-cc__icon-wrap--pro {
    background: linear-gradient(135deg, #1a1508, #2a1f0a);
    border: 1.5px solid #e2ba8740;
}
.muzeark-cc__icon-wrap--writer {
    background: linear-gradient(135deg, #081a0a, #0a2a10);
    border: 1.5px solid #22c55e40;
}
.muzeark-cc__icon { font-size: 20px; position: relative; z-index: 2; }
.muzeark-cc__ring-svg {
    position: absolute;
    inset: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    transform: rotate(-90deg);
}
.muzeark-cc__ring-bg {
    fill: none;
    stroke: #ffffff10;
    stroke-width: 2.5;
}
.muzeark-cc__ring-fill {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 144.51; /* 2 * PI * 23 */
    stroke-dashoffset: 144.51; /* starts empty */
    transition: stroke-dashoffset 0.8s ease;
}
.muzeark-cc__ring-fill--pro {
    stroke: #e2ba87;
    filter: drop-shadow(0 0 3px #e2ba8760);
}
.muzeark-cc__ring-fill--writer {
    stroke: #22c55e;
    filter: drop-shadow(0 0 3px #22c55e60);
}
.muzeark-cc__info { flex: 1; min-width: 0; }
.muzeark-cc__info-top {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 2px;
}
.muzeark-cc__tag {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #666;
}
.muzeark-cc__level {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}
.muzeark-cc__progress-text {
    font-size: 11px;
    color: #555;
    margin-bottom: 6px;
}
.muzeark-cc__bar {
    height: 4px;
    background: #1a1a1a;
    border-radius: 2px;
    overflow: hidden;
}
.muzeark-cc__fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 2px;
}
.muzeark-cc__fill--pro { background: linear-gradient(90deg, #c49a5c, #e2ba87); }
.muzeark-cc__fill--writer { background: linear-gradient(90deg, #16a34a, #22c55e); }
.muzeark-cc__fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15) 50%, transparent);
    animation: ccShimmer 2.5s ease-in-out infinite;
}
@keyframes ccShimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}
/* Feeds */
.muzeark-cc__feeds {
    padding: 14px 18px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.muzeark-cc__feed-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #444;
    margin-bottom: 6px;
    padding-left: 2px;
}
.muzeark-cc__feed-items {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.muzeark-cc__feed {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    background: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.muzeark-cc__feed:hover { border-color: #333; }
.muzeark-cc__feed-icon { font-size: 13px; opacity: 0.7; }
.muzeark-cc__feed-val { font-size: 12px; font-weight: 800; color: #fff; }
.muzeark-cc__feed-text { font-size: 11px; color: #888; font-weight: 600; }
.muzeark-cc__feed-pts { font-size: 10px; font-weight: 700; margin-left: 2px; }
.muzeark-cc__feed-pts--pro { color: #e2ba87; }
.muzeark-cc__feed-pts--writer { color: #22c55e; }
/* Divider */
/* ── CC Perks ──────────────────────────── */
.muzeark-cc__perks {
    padding: 8px 0;
    margin-top: 4px;
}
.muzeark-cc__perks-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--muzeark-text-muted, #888);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.muzeark-cc__perk {
    font-size: 12px;
    color: var(--muzeark-text, #ccc);
    padding: 3px 0;
    line-height: 1.4;
}

.muzeark-cc__divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #222, transparent);
    margin: 14px 18px 0;
}
/* Actions */
.muzeark-cc__actions {
    padding: 14px 18px 16px;
    display: flex;
    gap: 8px;
}
.muzeark-cc__btn {
    flex: 1;
    padding: 10px 6px;
    border-radius: 8px;
    border: none;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
    background: #1a1a1a;
    color: #888;
}
.muzeark-cc__btn:hover { background: #222; color: #ccc; }
.muzeark-cc__btn--primary {
    background: #e2ba87;
    color: #1a1008;
}
.muzeark-cc__btn--primary:hover { background: #d4a872; }

/* ═══ URGENT BANNER ═══ */
.muzeark-dash-urgent {
    background: #1a0a0a;
    border: 1px solid #e74c3c30;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.muzeark-dash-urgent__icon { font-size: 18px; }
.muzeark-dash-urgent__text { flex: 1; }
.muzeark-dash-urgent__title { font-size: 13px; font-weight: 700; color: #e74c3c; }
.muzeark-dash-urgent__sub { font-size: 11px; color: #666; }
.muzeark-dash-urgent__pts { font-size: 10px; font-weight: 700; color: #e2ba87; white-space: nowrap; }

/* ═══ SUBSCRIPTION (slim) ═══ */
.muzeark-dash-sub {
    background: #111;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.muzeark-dash-sub__icon { font-size: 24px; opacity: 0.6; }
.muzeark-dash-sub__info { flex: 1; }
.muzeark-dash-sub__tier { font-size: 14px; font-weight: 800; }
.muzeark-dash-sub__meta { font-size: 11px; color: #555; }
.muzeark-dash-sub__btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #333;
    background: transparent;
    color: #999;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.muzeark-dash-sub__btn--gold {
    border-color: #e2ba87;
    color: #e2ba87;
}


/* Quick Stats */
.muzeark-dashboard__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--mz-spacing-md);
    margin-bottom: var(--mz-spacing-lg);
}

.muzeark-stat-card {
    background: var(--mz-surface);
    border-radius: var(--mz-radius-lg);
    padding: var(--mz-spacing-lg);
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.muzeark-stat-card:hover {
    transform: translateY(-2px);
    background: var(--mz-surface-hover);
}

.muzeark-stat-card__icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: var(--mz-spacing-sm);
}

.muzeark-stat-card__value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--mz-text-primary);
    line-height: 1;
}

.muzeark-stat-card__label {
    font-size: 0.8rem;
    color: var(--mz-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: var(--mz-spacing-xs);
    display: block;
}

/* Subscription */
.muzeark-subscription {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.muzeark-subscription__info {
    display: flex;
    align-items: center;
    gap: var(--mz-spacing-md);
}

.muzeark-subscription__icon {
    font-size: 1.5rem;
}

.muzeark-subscription__plan {
    display: block;
    font-weight: 600;
    color: var(--mz-text-primary);
}

.muzeark-subscription__status {
    font-size: 0.85rem;
    color: var(--mz-text-muted);
}

.muzeark-subscription__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.muzeark-subscription__manage {
    background: rgba(255,255,255,0.08);
    color: var(--mz-text-secondary, #aaa);
    border: 1px solid rgba(255,255,255,0.1);
}
.muzeark-subscription__manage:hover {
    background: rgba(255,255,255,0.12);
    color: var(--mz-text, #fff);
}

/* Member Status Card - 3 Column Layout */
.muzeark-subscription-card {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 0;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.muzeark-sub-col {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.muzeark-sub-col--left {
    background: #1a1a1a;
}
.muzeark-sub-col--center {
    background: #222;
    border-left: 1px solid #333;
    border-right: 1px solid #333;
}
.muzeark-sub-col--right {
    background: #1a1a1a;
}

/* Left Column - Tier Badge */
.muzeark-sub-crown {
    color: #e2ba87;
    margin-bottom: 4px;
}
.muzeark-sub-tier {
    font-size: 18px;
    font-weight: 700;
    color: #e2ba87;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.muzeark-sub-avatar {
    width: 48px;
    height: 48px;
    background: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.muzeark-sub-avatar svg {
    width: 28px;
    height: 28px;
    fill: #e2ba87;
}
.muzeark-sub-renews {
    font-size: 11px;
    color: #888;
    background: #2a2a2a;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}
.muzeark-sub-renews strong {
    color: #fff;
}

/* Center Column - Downloads Counter */
.muzeark-sub-label {
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
    text-align: center;
}
.muzeark-sub-bar-wrap {
    width: 100%;
    max-width: 280px;
    margin-bottom: 16px;
}
.muzeark-sub-bar {
    height: 12px;
    background: #333;
    border-radius: 6px;
    overflow: hidden;
}
.muzeark-sub-bar__fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #ef4444, #f59e0b);
    transition: width 0.3s ease;
}
.muzeark-sub-bar__fill--unlimited {
    width: 100%;
    background: linear-gradient(90deg, #e2ba87, #f0d4a8, #e2ba87);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.muzeark-sub-count {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    line-height: 1;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.muzeark-sub-count__num {
    color: #ef4444;
    transition: color 0.3s ease;
}
.muzeark-sub-count__sep {
    color: #666;
    font-size: 36px;
}
.muzeark-sub-count__total {
    color: #888;
}
.muzeark-sub-count--unlimited .muzeark-sub-count__num {
    color: #e2ba87;
    font-size: 64px;
}
.muzeark-sub-reset {
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.muzeark-sub-reset span {
    color: #f59e0b;
}

/* Right Column - Subscription Toggle */
.muzeark-sub-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.muzeark-sub-toggle__label {
    font-size: 18px;
    font-weight: 700;
    color: #666;
}
.muzeark-sub-toggle--on .muzeark-sub-toggle__label {
    color: #fff;
}
.muzeark-sub-toggle__switch {
    width: 52px;
    height: 28px;
    background: #444;
    border-radius: 14px;
    position: relative;
    cursor: default;
    transition: background 0.3s ease;
}
.muzeark-sub-toggle--on .muzeark-sub-toggle__switch {
    background: #22c55e;
}
.muzeark-sub-toggle__knob {
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left 0.3s ease;
}
.muzeark-sub-toggle--on .muzeark-sub-toggle__knob {
    left: 26px;
}
.muzeark-sub-auto {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}
.muzeark-sub-manage {
    font-size: 12px;
}

/* Footer */
.muzeark-sub-footer {
    grid-column: 1 / -1;
    text-align: center;
    padding: 12px;
    font-size: 12px;
    color: #666;
    background: #151515;
    border-top: 1px solid #333;
}

/* Locked/Upgrade CTA States */
.muzeark-sub-locked {
    text-align: center;
    padding: 20px 16px;
}
.muzeark-sub-locked__icon {
    color: #666;
    margin-bottom: 12px;
}
.muzeark-sub-locked__icon svg {
    opacity: 0.6;
}
.muzeark-sub-locked__title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.muzeark-sub-locked__text {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
    line-height: 1.4;
}
.muzeark-sub-locked__btn {
    display: inline-block;
}

/* Lapsed member variant */
.muzeark-sub-locked--lapsed .muzeark-sub-locked__icon {
    color: #e2ba87;
}
.muzeark-sub-locked--lapsed .muzeark-sub-locked__icon svg {
    opacity: 0.8;
}
.muzeark-sub-locked--lapsed .muzeark-sub-locked__title {
    color: #e2ba87;
}

/* Tier badge states */
.muzeark-sub-tier--active {
    color: #e2ba87;
}
.muzeark-sub-tier--lapsed {
    color: #888;
}

/* Upgrade link in left column */
.muzeark-sub-upgrade-link {
    color: #e2ba87;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: color 0.2s;
}
.muzeark-sub-upgrade-link:hover {
    color: #f0d4a8;
}
.muzeark-sub-renews--cta {
    background: linear-gradient(135deg, rgba(226,186,135,0.15), rgba(226,186,135,0.05));
    border-color: rgba(226,186,135,0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .muzeark-subscription-card {
        grid-template-columns: 1fr;
    }
    .muzeark-sub-col--center {
        border-left: none;
        border-right: none;
        border-top: 1px solid #333;
        border-bottom: 1px solid #333;
    }
    .muzeark-sub-col {
        padding: 20px;
    }
}

.muzeark-btn--gold {
    background: linear-gradient(135deg, var(--mz-accent), #f0d4a8);
    color: #000;
    font-weight: 600;
}

.muzeark-btn--gold:hover {
    background: linear-gradient(135deg, #f0d4a8, var(--mz-accent));
}

/* Recent Writes */
.muzeark-dashboard__writes {
    display: flex;
    flex-direction: column;
    gap: var(--mz-spacing-sm);
}

.muzeark-write-item {
    display: flex;
    align-items: center;
    gap: var(--mz-spacing-md);
    padding: var(--mz-spacing-sm);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--mz-radius-md);
    cursor: pointer;
    transition: background 0.2s ease;
}

.muzeark-write-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.muzeark-write-item__artwork {
    width: 48px;
    height: 48px;
    border-radius: var(--mz-radius-sm);
    object-fit: cover;
}

.muzeark-write-item__info {
    flex: 1;
    min-width: 0;
}

.muzeark-write-item__title {
    font-weight: 500;
    color: var(--mz-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.muzeark-write-item__beat {
    font-size: 0.8rem;
    color: var(--mz-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.muzeark-write-item__open {
    padding: var(--mz-spacing-xs) var(--mz-spacing-sm);
    font-size: 0.8rem;
}

/* Recent Projects */
.muzeark-dashboard__projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--mz-spacing-md);
}

.muzeark-project-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--mz-radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.muzeark-project-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
}

.muzeark-project-card__cover {
    aspect-ratio: 1;
    width: 100%;
    object-fit: cover;
}

.muzeark-project-card__info {
    padding: var(--mz-spacing-sm);
}

.muzeark-project-card__title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--mz-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 0.25rem 0;
}

.muzeark-project-card__count {
    font-size: 0.75rem;
    color: var(--mz-text-muted);
}

.muzeark-project-card--new {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    background: transparent;
}

.muzeark-project-card--new:hover {
    border-color: var(--mz-accent);
    background: rgba(226, 186, 135, 0.05);
}

.muzeark-project-card--new svg {
    width: 32px;
    height: 32px;
    color: var(--mz-text-muted);
    margin-bottom: var(--mz-spacing-xs);
}

.muzeark-project-card--new span {
    font-size: 0.8rem;
    color: var(--mz-text-muted);
}

/* Recent Beats */
.muzeark-dashboard__beats {
    display: flex;
    flex-direction: column;
    gap: var(--mz-spacing-sm);
}

.muzeark-beat-item {
    display: flex;
    align-items: center;
    gap: var(--mz-spacing-md);
    padding: var(--mz-spacing-sm);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--mz-radius-md);
    cursor: pointer;
    transition: background 0.2s ease;
}

.muzeark-beat-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.muzeark-beat-item__artwork {
    width: 48px;
    height: 48px;
    border-radius: var(--mz-radius-sm);
    object-fit: cover;
}

.muzeark-beat-item__info {
    flex: 1;
    min-width: 0;
}

.muzeark-beat-item__title {
    font-weight: 500;
    color: var(--mz-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.muzeark-beat-item__meta {
    font-size: 0.8rem;
    color: var(--mz-text-muted);
}

.muzeark-beat-item__price {
    font-weight: 600;
    color: var(--mz-text-muted);
    font-size: 0.85rem;
}

.muzeark-beat-item__play {
    width: 40px;
    height: 40px;
    border-radius: var(--mz-radius);
    background: var(--mz-accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.muzeark-beat-item__play:hover {
    transform: scale(1.05);
    background: var(--mz-accent-hover);
}

/* Transactions */
.muzeark-dashboard__transactions {
    display: flex;
    flex-direction: column;
    gap: var(--mz-spacing-sm);
}

.muzeark-transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--mz-spacing-sm);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--mz-radius-md);
}

.muzeark-transaction-item__info {
    flex: 1;
}

.muzeark-transaction-item__items {
    font-weight: 500;
    color: var(--mz-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.muzeark-transaction-item__date {
    font-size: 0.8rem;
    color: var(--mz-text-muted);
}

.muzeark-transaction-item__total {
    font-weight: 600;
    color: var(--mz-accent);
}

/* Mobile Dashboard */
@media (max-width: 768px) {
    /* Ensure dashboard view displays on mobile */
    .muzeark-app[data-view="dashboard"] .muzeark-dashboard-view {
        display: block !important;
        height: 100%;
        overflow-y: auto;
    }
    
    /* Ensure main area is visible for dashboard */
    .muzeark-app[data-view="dashboard"] .muzeark-main {
        display: flex !important;
    }
    
    .muzeark-dashboard {
        padding: var(--mz-spacing-md);
    }
    
    .muzeark-dashboard__header h2 {
        font-size: 1.5rem;
    }
    
    .muzeark-dashboard__actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--mz-spacing-sm);
    }
    
    .muzeark-dashboard__actions .muzeark-btn {
        flex: 1;
        min-width: 80px;
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .muzeark-dashboard__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--mz-spacing-sm);
    }
    
    .muzeark-stat-card {
        padding: var(--mz-spacing-md);
    }
    
    .muzeark-stat-card__value {
        font-size: 1.5rem;
    }
    
    .muzeark-creators-club__stats {
        gap: var(--mz-spacing-md);
    }
    
    .muzeark-creators-club__stat-value {
        font-size: 1.25rem;
    }
    
    .muzeark-subscription {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--mz-spacing-md);
    }
    
    .muzeark-subscription .muzeark-btn {
        width: 100%;
    }
    
    .muzeark-dashboard__projects {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .muzeark-creators-club__actions {
        flex-direction: column;
    }
    
    .muzeark-creators-club__actions .muzeark-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .muzeark-dashboard__stats {
        gap: var(--mz-spacing-xs);
    }
    
    .muzeark-stat-card {
        padding: var(--mz-spacing-sm);
    }
    
    .muzeark-stat-card__icon {
        font-size: 1.25rem;
    }
    
    .muzeark-stat-card__value {
        font-size: 1.25rem;
    }
    
    .muzeark-stat-card__label {
        font-size: 0.7rem;
    }
}

/* ======================================== */
/* MY BEATS & CONTRACTS - v3.22.9 */
/* ======================================== */
/* ========================================
   MY BEATS SECTION - Collapsible with Badge
   ======================================== */

.muzeark-my-beats {
    background: var(--mz-surface);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius-lg);
    margin: var(--mz-spacing-md);
    overflow: hidden;
}

/* URGENT variant - red background */
.muzeark-my-beats--urgent {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.muzeark-my-beats--urgent .muzeark-my-beats__title {
    color: var(--mz-error);
}

.muzeark-my-beats--urgent .muzeark-my-beats__title svg {
    color: var(--mz-error);
}

.muzeark-my-beats__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--mz-spacing-md);
    cursor: pointer;
    transition: background var(--mz-transition);
    user-select: none;
}

.muzeark-my-beats__header:hover {
    background: var(--mz-surface-hover);
}

.muzeark-my-beats__title {
    display: flex;
    align-items: center;
    gap: var(--mz-spacing-sm);
    font-size: 16px;
    font-weight: 600;
    color: var(--mz-text);
}

.muzeark-my-beats__title svg {
    width: 20px;
    height: 20px;
    color: var(--mz-accent);
}

.muzeark-my-beats__count {
    color: var(--mz-text-secondary);
    font-weight: 400;
}

.muzeark-my-beats__actions {
    display: flex;
    align-items: center;
    gap: var(--mz-spacing-sm);
}

/* Notification Badge */
.muzeark-my-beats__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: var(--mz-error);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 12px;
}

.muzeark-my-beats__badge--success {
    background: var(--mz-success);
}

/* Yellow badge for URGENT section */
.muzeark-my-beats__badge--urgent {
    background: #fbbf24;
    color: #000;
    font-weight: 700;
}

.muzeark-my-beats__badge.shake {
    animation: badge-shake 0.6s ease-in-out;
}

@keyframes badge-shake {
    0%, 100% { transform: translateX(0) rotate(0); }
    20% { transform: translateX(-3px) rotate(-5deg); }
    40% { transform: translateX(3px) rotate(5deg); }
    60% { transform: translateX(-3px) rotate(-5deg); }
    80% { transform: translateX(3px) rotate(5deg); }
}

/* Pulse animation for attention */
.muzeark-my-beats__badge.pulse {
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* Expand/Collapse Icon */
.muzeark-my-beats__toggle {
    width: 24px;
    height: 24px;
    color: var(--mz-text-secondary);
    transition: transform var(--mz-transition);
}

.muzeark-my-beats.expanded .muzeark-my-beats__toggle {
    transform: rotate(180deg);
}

/* Content Area */
.muzeark-my-beats__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.muzeark-my-beats.expanded .muzeark-my-beats__content {
    max-height: 600px;
    overflow-y: auto;
}

/* Beat List */
.muzeark-my-beats__list {
    padding: 0 var(--mz-spacing-md) var(--mz-spacing-md);
}

.muzeark-my-beats__item {
    display: flex;
    align-items: center;
    gap: var(--mz-spacing-md);
    padding: var(--mz-spacing-sm) 0;
    border-bottom: 1px solid var(--mz-border);
}

.muzeark-my-beats__item:last-child {
    border-bottom: none;
}

.muzeark-my-beats__item-info {
    flex: 1;
    min-width: 0;
}

.muzeark-my-beats__item-name {
    font-weight: 500;
    color: var(--mz-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.muzeark-my-beats__item-price {
    font-size: 12px;
    color: var(--mz-text-secondary);
}

.muzeark-my-beats__item-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 10px;
}

.muzeark-my-beats__item-badge--member {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

/* Source-specific item borders */
.muzeark-my-beats__item--purchased {
    border-left: 2px solid rgba(46, 204, 113, 0.4);
}

.muzeark-my-beats__item--member {
    border-left: 2px solid rgba(59, 130, 246, 0.4);
}

/* Status Badges */
.muzeark-my-beats__status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.muzeark-my-beats__status--needs-signature {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.muzeark-my-beats__status--signed {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.muzeark-my-beats__status--registered {
    background: rgba(226, 186, 135, 0.15);
    color: var(--mz-accent);
}

/* Action Buttons */
.muzeark-my-beats__item-actions {
    display: flex;
    gap: var(--mz-spacing-xs);
}

.muzeark-my-beats__btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all var(--mz-transition);
    white-space: nowrap;
}

.muzeark-my-beats__btn--sign {
    background: var(--mz-accent);
    color: #000;
}

.muzeark-my-beats__btn--sign:hover {
    background: var(--mz-accent-hover);
}

.muzeark-my-beats__btn--register {
    background: transparent;
    border: 1px solid var(--mz-accent);
    color: var(--mz-accent);
}

.muzeark-my-beats__btn--register:hover {
    background: var(--mz-accent);
    color: #000;
}

.muzeark-my-beats__btn--view,
.muzeark-my-beats__btn--download {
    background: transparent;
    border: 1px solid var(--mz-border);
    color: var(--mz-text-secondary);
}

.muzeark-my-beats__btn--view:hover,
.muzeark-my-beats__btn--download:hover {
    border-color: var(--mz-text-secondary);
    color: var(--mz-text);
}

/* Empty State */
.muzeark-my-beats__empty {
    padding: var(--mz-spacing-lg);
    text-align: center;
    color: var(--mz-text-secondary);
}

/* ========================================
   CONTRACT MODAL
   ======================================== */

.muzeark-contract-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--mz-spacing-md);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.muzeark-contract-modal.open {
    opacity: 1;
    visibility: visible;
}

.muzeark-contract-modal__container {
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    background: var(--mz-surface);
    border-radius: var(--mz-radius-lg);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.muzeark-contract-modal.open .muzeark-contract-modal__container {
    transform: translateY(0);
}

.muzeark-contract-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--mz-spacing-md) var(--mz-spacing-lg);
    border-bottom: 1px solid var(--mz-border);
}

.muzeark-contract-modal__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--mz-text);
}

.muzeark-contract-modal__beat-name {
    color: var(--mz-accent);
}

.muzeark-contract-modal__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--mz-text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--mz-transition);
}

.muzeark-contract-modal__close:hover {
    background: var(--mz-surface-hover);
    color: var(--mz-text);
}

.muzeark-contract-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: var(--mz-spacing-lg);
}

/* Contract Content Styles */
.muzeark-contract {
    color: var(--mz-text);
    font-size: 14px;
    line-height: 1.6;
}

.muzeark-contract h2 {
    font-size: 20px;
    margin-bottom: var(--mz-spacing-xs);
    color: var(--mz-text);
}

.muzeark-contract h3 {
    font-size: 16px;
    margin-top: var(--mz-spacing-lg);
    margin-bottom: var(--mz-spacing-sm);
    color: var(--mz-accent);
}

.muzeark-contract p {
    margin-bottom: var(--mz-spacing-sm);
}

.muzeark-contract ul {
    margin-bottom: var(--mz-spacing-sm);
    padding-left: var(--mz-spacing-lg);
}

.muzeark-contract li {
    margin-bottom: var(--mz-spacing-xs);
}

.muzeark-contract__header {
    text-align: center;
    margin-bottom: var(--mz-spacing-lg);
    padding-bottom: var(--mz-spacing-md);
    border-bottom: 1px solid var(--mz-border);
}

.muzeark-contract__subtitle {
    color: var(--mz-accent);
    font-weight: 600;
}

/* Splits Table */
.muzeark-contract__splits {
    width: 100%;
    border-collapse: collapse;
    margin: var(--mz-spacing-md) 0;
    font-size: 13px;
}

.muzeark-contract__splits th,
.muzeark-contract__splits td {
    padding: var(--mz-spacing-sm);
    text-align: left;
    border: 1px solid var(--mz-border);
}

.muzeark-contract__splits th {
    background: var(--mz-surface-hover);
    font-weight: 600;
}

.muzeark-contract__splits td:first-child {
    font-weight: 500;
}

/* Signature Block */
.muzeark-contract__signatures {
    margin-top: var(--mz-spacing-lg);
    padding-top: var(--mz-spacing-md);
    border-top: 1px solid var(--mz-border);
}

/* Modal Footer - Signature Area */
.muzeark-contract-modal__footer {
    padding: var(--mz-spacing-lg);
    border-top: 1px solid var(--mz-border);
    background: var(--mz-bg);
}

.muzeark-contract-modal__agree {
    display: flex;
    align-items: flex-start;
    gap: var(--mz-spacing-sm);
    margin-bottom: var(--mz-spacing-md);
}

.muzeark-contract-modal__checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--mz-accent);
    cursor: pointer;
    margin-top: 2px;
}

.muzeark-contract-modal__agree-text {
    font-size: 14px;
    color: var(--mz-text-secondary);
}

.muzeark-contract-modal__signature-field {
    margin-bottom: var(--mz-spacing-md);
}

.muzeark-contract-modal__signature-label {
    display: block;
    font-size: 13px;
    color: var(--mz-text-secondary);
    margin-bottom: var(--mz-spacing-xs);
}

.muzeark-contract-modal__signature-input {
    width: 100%;
    padding: var(--mz-spacing-sm) var(--mz-spacing-md);
    background: var(--mz-surface);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    color: var(--mz-text);
    font-size: 16px;
    font-family: 'Brush Script MT', cursive, sans-serif;
}

.muzeark-contract-modal__signature-input:focus {
    outline: none;
    border-color: var(--mz-accent);
}

.muzeark-contract-modal__signature-input::placeholder {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: italic;
}

.muzeark-contract-modal__buttons {
    display: flex;
    gap: var(--mz-spacing-sm);
    justify-content: flex-end;
}

.muzeark-contract-modal__btn {
    padding: var(--mz-spacing-sm) var(--mz-spacing-lg);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--mz-radius);
    border: none;
    cursor: pointer;
    transition: all var(--mz-transition);
}

.muzeark-contract-modal__btn--cancel {
    background: transparent;
    border: 1px solid var(--mz-border);
    color: var(--mz-text-secondary);
}

.muzeark-contract-modal__btn--cancel:hover {
    border-color: var(--mz-text-secondary);
    color: var(--mz-text);
}

.muzeark-contract-modal__btn--sign {
    background: var(--mz-accent);
    color: #000;
}

.muzeark-contract-modal__btn--sign:hover {
    background: var(--mz-accent-hover);
}

.muzeark-contract-modal__btn--sign:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* View Contract Modal (signed) */
.muzeark-contract-modal__signed-info {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: var(--mz-radius);
    padding: var(--mz-spacing-md);
    margin-bottom: var(--mz-spacing-md);
}

.muzeark-contract-modal__signed-badge {
    display: flex;
    align-items: center;
    gap: var(--mz-spacing-sm);
    color: var(--mz-success);
    font-weight: 600;
    margin-bottom: var(--mz-spacing-xs);
}

.muzeark-contract-modal__signed-details {
    font-size: 13px;
    color: var(--mz-text-secondary);
}

.muzeark-contract-modal__hash {
    font-family: monospace;
    font-size: 11px;
    color: var(--mz-text-muted);
    word-break: break-all;
    margin-top: var(--mz-spacing-xs);
}

/* Loading State */
.muzeark-contract-modal__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--mz-spacing-xl);
    color: var(--mz-text-secondary);
}

.muzeark-contract-modal__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--mz-border);
    border-top-color: var(--mz-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: var(--mz-spacing-md);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .muzeark-my-beats__item {
        flex-wrap: wrap;
    }
    
    .muzeark-my-beats__item-info {
        flex: 1 1 60%;
    }
    
    .muzeark-my-beats__status {
        order: 3;
        flex: 1 1 100%;
        justify-content: center;
        margin-top: var(--mz-spacing-sm);
    }
    
    .muzeark-my-beats__item-actions {
        order: 4;
        flex: 1 1 100%;
        justify-content: center;
        margin-top: var(--mz-spacing-sm);
    }
    
    .muzeark-contract-modal__container {
        max-height: 95vh;
    }
    
    .muzeark-contract-modal__body {
        padding: var(--mz-spacing-md);
    }
    
    .muzeark-contract__splits {
        font-size: 11px;
    }
    
    .muzeark-contract__splits th,
    .muzeark-contract__splits td {
        padding: var(--mz-spacing-xs);
    }
}

/* ========================================
   COMING SOON COMPONENTS - v3.53.0
   ======================================== */

.muzeark-coming-soon-wrapper {
    position: relative;
    opacity: 0.7;
}

.muzeark-coming-soon-wrapper .muzeark-btn {
    pointer-events: none;
    opacity: 0.5;
}

.muzeark-coming-soon-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #e2ba87, #c9a06d);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.muzeark-coming-soon-message {
    text-align: center;
    padding: 60px 20px;
    max-width: 400px;
    margin: 0 auto;
}

.muzeark-coming-soon-message .muzeark-coming-soon-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.muzeark-coming-soon-message h3 {
    font-size: 24px;
    color: var(--mz-accent);
    margin: 0 0 16px;
    font-weight: 700;
    letter-spacing: 2px;
}

.muzeark-coming-soon-message p {
    color: var(--mz-text-secondary);
    line-height: 1.6;
    margin: 0 0 12px;
}

.muzeark-coming-soon-message .muzeark-coming-soon-note {
    color: var(--mz-text-muted);
    font-size: 13px;
    font-style: italic;
}

/* ========================================
   SONG SUBMISSION SECTION - v3.22.9
   ======================================== */

.muzeark-song-submit__content {
    text-align: center;
    padding: var(--mz-spacing-lg);
}

.muzeark-song-submit__content p {
    color: var(--mz-text-secondary);
    margin-bottom: var(--mz-spacing-md);
}

.muzeark-song-submit__benefits {
    background: var(--mz-surface-hover);
    border-radius: var(--mz-radius);
    padding: var(--mz-spacing-md);
    line-height: 1.8;
    text-align: left;
    display: inline-block;
}

.muzeark-song-submit__content .muzeark-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--mz-spacing-sm);
    margin: var(--mz-spacing-md) 0;
}

.muzeark-song-submit__note {
    font-size: 12px;
    color: var(--mz-text-muted);
}

.muzeark-song-submit__note a {
    color: var(--mz-accent);
    text-decoration: none;
}

.muzeark-song-submit__note a:hover {
    text-decoration: underline;
}

/* ========================================
   CONTRACT SUCCESS STATE - v3.22.9
   ======================================== */

.muzeark-contract-modal__success {
    text-align: center;
    padding: var(--mz-spacing-xl) var(--mz-spacing-lg);
}

.muzeark-contract-modal__success-icon {
    margin-bottom: var(--mz-spacing-lg);
}

.muzeark-contract-modal__success-icon svg {
    filter: drop-shadow(0 4px 12px rgba(0, 163, 42, 0.3));
}

.muzeark-contract-modal__success-title {
    color: #00a32a;
    font-size: 24px;
    margin: 0 0 var(--mz-spacing-lg);
}

.muzeark-contract-modal__success-details {
    background: var(--mz-surface-hover);
    border-radius: var(--mz-radius);
    padding: var(--mz-spacing-lg);
    margin-bottom: var(--mz-spacing-lg);
    text-align: left;
}

.muzeark-contract-modal__success-details p {
    margin: var(--mz-spacing-sm) 0;
    color: var(--mz-text);
}

.muzeark-contract-modal__success-details code {
    font-size: 10px;
    word-break: break-all;
    color: var(--mz-text-muted);
}

.muzeark-contract-modal__success-note {
    color: var(--mz-text-secondary);
    font-size: 14px;
}

/* ========================================
   MY LIBRARY VIEW - v3.22.9
   ======================================== */

.muzeark-library-view {
    display: none;
    padding: var(--mz-spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.muzeark-library__header {
    margin-bottom: var(--mz-spacing-xl);
}

.muzeark-library__header h2 {
    font-size: 28px;
    margin: 0 0 var(--mz-spacing-sm);
    color: var(--mz-text);
}

.muzeark-library__subtitle {
    color: var(--mz-text-muted);
    margin: 0;
}

/* Filters */
.muzeark-library__filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--mz-spacing-md);
    margin-bottom: var(--mz-spacing-lg);
    flex-wrap: wrap;
}

.muzeark-library__tabs {
    display: flex;
    gap: var(--mz-spacing-xs);
    background: var(--mz-surface);
    border-radius: var(--mz-radius);
    padding: 4px;
}

.muzeark-library__tab {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: calc(var(--mz-radius) - 2px);
    color: var(--mz-text-secondary);
    cursor: pointer;
    font-size: 14px;
    transition: var(--mz-transition);
}

.muzeark-library__tab:hover {
    color: var(--mz-text);
}

.muzeark-library__tab.active {
    background: var(--mz-accent);
    color: #000;
}

.muzeark-library__search {
    display: flex;
    align-items: center;
    gap: var(--mz-spacing-sm);
    background: var(--mz-surface);
    border-radius: var(--mz-radius);
    padding: 8px 12px;
    min-width: 200px;
}

.muzeark-library__search svg {
    color: var(--mz-text-muted);
    flex-shrink: 0;
}

.muzeark-library__search input {
    background: transparent;
    border: none;
    color: var(--mz-text);
    flex: 1;
    outline: none;
    font-size: 14px;
}

/* Stats */
.muzeark-library__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--mz-spacing-md);
    margin-bottom: var(--mz-spacing-xl);
}

.muzeark-library__stat {
    background: var(--mz-surface);
    border-radius: var(--mz-radius);
    padding: var(--mz-spacing-lg);
    text-align: center;
}

.muzeark-library__stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--mz-text);
    display: block;
}

.muzeark-library__stat-value--success {
    color: #00a32a;
}

.muzeark-library__stat-value--warning {
    color: #dba617;
}

.muzeark-library__stat-label {
    font-size: 12px;
    color: var(--mz-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* List */
.muzeark-library__list {
    display: flex;
    flex-direction: column;
    gap: var(--mz-spacing-sm);
}

.muzeark-library__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--mz-spacing-xl);
    color: var(--mz-text-muted);
    gap: var(--mz-spacing-md);
}

.muzeark-library__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--mz-border);
    border-top-color: var(--mz-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.muzeark-library__empty {
    text-align: center;
    padding: var(--mz-spacing-xl);
    color: var(--mz-text-muted);
}

.muzeark-library__empty svg {
    margin-bottom: var(--mz-spacing-md);
    opacity: 0.5;
}

/* Library Item */
.muzeark-library__item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: var(--mz-spacing-md);
    background: var(--mz-surface);
    border-radius: var(--mz-radius);
    padding: var(--mz-spacing-md) var(--mz-spacing-lg);
    transition: var(--mz-transition);
}

.muzeark-library__item:hover {
    background: var(--mz-surface-hover);
}

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

.muzeark-library__item-name {
    font-weight: 600;
    color: var(--mz-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.muzeark-library__item-meta {
    display: flex;
    gap: var(--mz-spacing-md);
    font-size: 12px;
    color: var(--mz-text-muted);
}

.muzeark-library__item-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.muzeark-library__item-date-label {
    font-size: 10px;
    color: var(--mz-text-muted);
    text-transform: uppercase;
}

.muzeark-library__item-date-value {
    font-size: 13px;
    color: var(--mz-text-secondary);
}

/* Status badges - reuse from my-beats */
.muzeark-library__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.muzeark-library__status--signed {
    background: rgba(0, 163, 42, 0.15);
    color: #4ade80;
}

.muzeark-library__status--unsigned {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* Actions */
.muzeark-library__actions {
    display: flex;
    gap: var(--mz-spacing-xs);
}

.muzeark-library__btn {
    padding: 8px 16px;
    border-radius: var(--mz-radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--mz-transition);
    white-space: nowrap;
}

.muzeark-library__btn--sign {
    background: var(--mz-accent);
    color: #000;
}

.muzeark-library__btn--sign:hover {
    background: var(--mz-accent-hover);
}

.muzeark-library__btn--view {
    background: var(--mz-surface-hover);
    color: var(--mz-text);
}

.muzeark-library__btn--view:hover {
    background: var(--mz-border);
}

.muzeark-library__btn--download {
    background: transparent;
    color: var(--mz-text-secondary);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.muzeark-library__btn--download:hover {
    color: var(--mz-text);
    background: var(--mz-surface-hover);
}

/* Pagination */
.muzeark-library__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--mz-spacing-lg);
    margin-top: var(--mz-spacing-xl);
    padding-top: var(--mz-spacing-lg);
    border-top: 1px solid var(--mz-border);
}

.muzeark-library__page-btn {
    display: flex;
    align-items: center;
    gap: var(--mz-spacing-xs);
    padding: 8px 16px;
    background: var(--mz-surface);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    color: var(--mz-text);
    cursor: pointer;
    transition: var(--mz-transition);
}

.muzeark-library__page-btn:hover:not(:disabled) {
    background: var(--mz-surface-hover);
}

.muzeark-library__page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.muzeark-library__page-info {
    font-size: 14px;
    color: var(--mz-text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .muzeark-library__filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .muzeark-library__tabs {
        justify-content: center;
    }
    
    .muzeark-library__search {
        min-width: 100%;
    }
    
    .muzeark-library__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--mz-spacing-xs);
    }
    
    .muzeark-library__stat {
        padding: var(--mz-spacing-sm);
    }
    
    .muzeark-library__stat-value {
        font-size: 20px;
    }
    
    .muzeark-library__stat-label {
        font-size: 9px;
    }
    
    .muzeark-library__item {
        grid-template-columns: 1fr;
        gap: var(--mz-spacing-sm);
    }
    
    .muzeark-library__item-date {
        align-items: flex-start;
        flex-direction: row;
        gap: var(--mz-spacing-sm);
    }
    
    .muzeark-library__actions {
        justify-content: flex-start;
    }
}

/* LIBRARY VIEW VISIBILITY */
.muzeark-app[data-view="library"] .muzeark-library-view {
    display: block;
    position: relative;
    z-index: 10;
    background: var(--mz-bg);
}

.muzeark-app[data-view="library"] .muzeark-tracks,
.muzeark-app[data-view="library"] .muzeark-filters,
.muzeark-app[data-view="library"] .muzeark-no-results,
.muzeark-app[data-view="library"] .muzeark-loading,
.muzeark-app[data-view="library"] .muzeark-dashboard-view,
.muzeark-app[data-view="library"] .muzeark-projects-view,
.muzeark-app[data-view="library"] .muzeark-bundles-view,
.muzeark-app[data-view="library"] .muzeark-mobile-card,
.muzeark-app[data-view="library"] .muzeark-elite-banner {
    display: none !important;
}

.muzeark-app[data-view="library"] .muzeark-main {
    padding: 0;
    overflow-y: auto;
}

.muzeark-app[data-view="library"] .muzeark-library-view {
    height: 100%;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .muzeark-app[data-view="library"] .muzeark-library-view {
        padding: var(--mz-spacing-md);
    }
}

/* HIDE LIBRARY VIEW WHEN OTHER VIEWS ACTIVE */
.muzeark-app[data-view="beats"] .muzeark-library-view,
.muzeark-app[data-view="dashboard"] .muzeark-library-view,
.muzeark-app[data-view="projects"] .muzeark-library-view,
.muzeark-app[data-view="bundles"] .muzeark-library-view,
.muzeark-app[data-view="moods"] .muzeark-library-view,
.muzeark-app:not([data-view]) .muzeark-library-view {
    display: none !important;
}

/* Library Pull Indicator */
.muzeark-library__pull-indicator {
    display: none;
    justify-content: center;
    padding: 12px 0 8px;
}

.muzeark-library__pull-indicator .muzeark-pull-bar {
    width: 40px;
    height: 4px;
    background: var(--mz-border);
    border-radius: 2px;
}

@media (max-width: 1024px) {
    .muzeark-library__pull-indicator {
        display: flex;
    }
}

/* Beat highlight animation (for direct links) */
.muzeark-track--highlighted {
    animation: beatHighlight 3s ease-out;
}

@keyframes beatHighlight {
    0% {
        background: rgba(218, 165, 32, 0.3);
        box-shadow: 0 0 0 2px var(--mz-accent);
    }
    100% {
        background: transparent;
        box-shadow: none;
    }
}
/* ============================================================
   TRACK H: SONG REGISTRATION & CHARTS
   Add this to the end of muzeark.css
   ============================================================ */

/* ================================
   Song Status Badges
   ================================ */
.muzeark-song-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.muzeark-song-badge svg {
    flex-shrink: 0;
}

.muzeark-song-badge--pending {
    background: rgba(240, 173, 78, 0.15);
    color: #f0ad4e;
}

.muzeark-song-badge--verified {
    background: rgba(92, 184, 92, 0.15);
    color: #5cb85c;
}

.muzeark-song-badge--rejected {
    background: rgba(217, 83, 79, 0.15);
    color: #d9534f;
}

/* ================================
   Song Registration Form
   ================================ */
.muzeark-song-form {
    background: var(--muzeark-surface, #1a1a1a);
    border: 1px solid var(--muzeark-border, #333);
    border-radius: 12px;
    margin: 8px 0;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.muzeark-song-form__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--muzeark-surface-alt, #222);
    border-bottom: 1px solid var(--muzeark-border, #333);
}

.muzeark-song-form__header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--muzeark-text, #fff);
}

.muzeark-song-form__close {
    background: none;
    border: none;
    color: var(--muzeark-text-muted, #888);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.muzeark-song-form__close:hover {
    color: var(--muzeark-text, #fff);
}

.muzeark-song-form__body {
    padding: 20px;
}

.muzeark-song-form__beat {
    margin: 0 0 16px 0;
    padding: 10px 14px;
    background: var(--muzeark-surface-alt, #222);
    border-radius: 8px;
    font-size: 13px;
    color: var(--muzeark-text-muted, #aaa);
}

.muzeark-song-form__beat strong {
    color: var(--muzeark-text, #fff);
}

.muzeark-song-form__rejection {
    margin-bottom: 16px;
    padding: 12px 14px;
    background: rgba(217, 83, 79, 0.1);
    border: 1px solid rgba(217, 83, 79, 0.3);
    border-radius: 8px;
    font-size: 13px;
    color: #d9534f;
}

.muzeark-song-form__field {
    margin-bottom: 16px;
}

.muzeark-song-form__field label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muzeark-text-muted, #aaa);
}

.muzeark-song-form__field input {
    width: 100%;
    padding: 12px 14px;
    background: var(--muzeark-input-bg, #111);
    border: 1px solid var(--muzeark-border, #333);
    border-radius: 8px;
    font-size: 14px;
    color: var(--muzeark-text, #fff);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.muzeark-song-form__field input:focus {
    outline: none;
    border-color: var(--muzeark-primary, #c9a227);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.muzeark-song-form__field input::placeholder {
    color: var(--muzeark-text-muted, #666);
}

.muzeark-song-form__divider {
    margin: 20px 0 16px;
    padding-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muzeark-text-muted, #888);
    border-bottom: 1px solid var(--muzeark-border, #333);
}

.muzeark-song-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.muzeark-song-form__footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    background: var(--muzeark-surface-alt, #222);
    border-top: 1px solid var(--muzeark-border, #333);
}

/* Register Song Button Variants */
.muzeark-library__btn--register,
.muzeark-my-beats__btn--register {
    background: var(--muzeark-primary, #c9a227);
    color: #000;
}

.muzeark-library__btn--register:hover,
.muzeark-my-beats__btn--register:hover {
    background: var(--muzeark-primary-hover, #d4b23a);
}

.muzeark-library__btn--pending,
.muzeark-my-beats__btn--pending {
    background: rgba(240, 173, 78, 0.15);
    color: #f0ad4e;
    border: 1px solid rgba(240, 173, 78, 0.3);
}

.muzeark-library__btn--edit,
.muzeark-my-beats__btn--edit {
    background: rgba(217, 83, 79, 0.15);
    color: #d9534f;
    border: 1px solid rgba(217, 83, 79, 0.3);
}

.muzeark-library__btn--charts,
.muzeark-my-beats__btn--charts {
    background: rgba(92, 184, 92, 0.15);
    color: #5cb85c;
    border: 1px solid rgba(92, 184, 92, 0.3);
}

/* ================================
   Charts View
   ================================ */
.muzeark-charts-view {
    padding: 24px;
}

.muzeark-charts__header {
    margin-bottom: 24px;
}

.muzeark-charts__header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--muzeark-text, #fff);
}

.muzeark-charts__subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--muzeark-text-muted, #888);
}

.muzeark-charts__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--muzeark-border, #333);
}

.muzeark-charts__tab {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--muzeark-border, #333);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muzeark-text-muted, #888);
    cursor: pointer;
    transition: all 0.2s;
}

.muzeark-charts__tab:hover {
    border-color: var(--muzeark-text-muted, #888);
    color: var(--muzeark-text, #fff);
}

.muzeark-charts__tab.active {
    background: var(--muzeark-primary, #c9a227);
    border-color: var(--muzeark-primary, #c9a227);
    color: #000;
}

.muzeark-charts__panel {
    display: none;
}

.muzeark-charts__panel.active {
    display: block;
}

.muzeark-charts__table {
    width: 100%;
    border-collapse: collapse;
}

.muzeark-charts__table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muzeark-text-muted, #888);
    border-bottom: 1px solid var(--muzeark-border, #333);
}

.muzeark-charts__table tbody tr {
    transition: background 0.2s;
}

.muzeark-charts__table tbody tr:hover {
    background: var(--muzeark-surface-alt, #222);
}

.muzeark-charts__table tbody td {
    padding: 16px;
    font-size: 14px;
    color: var(--muzeark-text, #fff);
    border-bottom: 1px solid var(--muzeark-border, #2a2a2a);
}

.muzeark-charts__rank {
    width: 50px;
    font-size: 18px;
    font-weight: 700;
    color: var(--muzeark-text-muted, #666);
}

.muzeark-charts__top3 .muzeark-charts__rank {
    color: var(--muzeark-primary, #c9a227);
}

.muzeark-charts__title strong {
    display: block;
    margin-bottom: 2px;
}

.muzeark-charts__link {
    font-size: 12px;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.muzeark-charts__link:hover {
    opacity: 1;
}

.muzeark-charts__streams {
    font-weight: 600;
    color: var(--muzeark-primary, #c9a227);
}

.muzeark-charts__empty,
.muzeark-charts__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.muzeark-charts__empty svg,
.muzeark-charts__placeholder svg {
    margin-bottom: 16px;
    color: var(--muzeark-text-muted, #666);
}

.muzeark-charts__empty h4,
.muzeark-charts__placeholder h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--muzeark-text, #fff);
}

.muzeark-charts__empty p,
.muzeark-charts__placeholder p {
    margin: 0;
    font-size: 14px;
    color: var(--muzeark-text-muted, #888);
}

.muzeark-charts__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.muzeark-charts__loading p {
    margin-top: 16px;
    color: var(--muzeark-text-muted, #888);
}

.muzeark-charts__error {
    padding: 40px;
    text-align: center;
    color: var(--muzeark-text-muted, #888);
}

.muzeark-charts__cta {
    margin-top: 16px;
    padding: 10px 24px;
    background: var(--muzeark-accent, #22c55e);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.muzeark-charts__cta:hover { opacity: 0.85; }

/* ── Season Race ──────────────────────────── */
.muzeark-season { padding: 20px 0; }

.muzeark-season__header {
    text-align: center;
    margin-bottom: 24px;
}
.muzeark-season__header h3 {
    margin: 0 0 4px;
    font-size: 22px;
    color: var(--muzeark-text, #fff);
    letter-spacing: 1px;
}
.muzeark-season__subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--muzeark-text-muted, #999);
}

.muzeark-season__race {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.muzeark-season__racer {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.muzeark-season__racer-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.muzeark-season__medal { font-size: 18px; }
.muzeark-season__name {
    font-weight: 600;
    color: var(--muzeark-text, #fff);
    flex: 1;
}
.muzeark-season__bars {
    font-size: 12px;
    color: var(--muzeark-text-muted, #888);
    font-variant-numeric: tabular-nums;
}

.muzeark-season__bar-track {
    height: 8px;
    background: var(--muzeark-border, #333);
    border-radius: 4px;
    overflow: hidden;
}
.muzeark-season__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #3b82f6);
    border-radius: 4px;
    transition: width 0.6s ease;
    min-width: 2px;
}

/* First place gets gold fill */
.muzeark-season__racer:first-child .muzeark-season__bar-fill {
    background: linear-gradient(90deg, #f59e0b, #eab308);
}

.muzeark-season__footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--muzeark-border, #333);
    font-size: 13px;
    color: var(--muzeark-text-muted, #888);
}

/* ================================
   Elite Exclusivity Banner
   ================================ */

.muzeark-elite-banner {
    margin: 0 0 2px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.muzeark-elite-banner__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1458 40%, #1a0a2e 100%);
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
}

/* Shimmer effect */
.muzeark-elite-banner__header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a855f7, #c084fc, #a855f7, transparent);
    opacity: 0.7;
}

.muzeark-elite-banner__header:hover {
    background: linear-gradient(135deg, #1a0a2e 0%, #3d1a6e 40%, #1a0a2e 100%);
}

.muzeark-elite-banner__left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.muzeark-elite-banner__crown {
    font-size: 24px;
    line-height: 1;
}

.muzeark-elite-banner__title {
    font-size: 15px;
    font-weight: 800;
    color: #e2d6f0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.muzeark-elite-banner__highlight {
    color: #c084fc;
}

.muzeark-elite-banner__stats {
    font-size: 13px;
    color: #a08cb8;
    margin-left: 4px;
}
.muzeark-elite-banner__stats strong {
    color: #d4bfff;
}

.muzeark-elite-banner__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.muzeark-elite-banner__badge {
    background: rgba(124, 58, 237, 0.25);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
}

.muzeark-elite-banner__chevron {
    color: #a08cb8;
    transition: transform 0.3s ease;
}

.muzeark-elite-banner.is-open .muzeark-elite-banner__chevron {
    transform: rotate(180deg);
}

/* Body — collapsed by default */
.muzeark-elite-banner__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, overflow 0s 0.4s;
    background: rgba(26, 10, 46, 0.5);
    border-top: 1px solid rgba(124, 58, 237, 0);
}

.muzeark-elite-banner.is-open .muzeark-elite-banner__body {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: max-height 0.4s ease, overflow 0s 0s;
    border-top-color: rgba(124, 58, 237, 0.2);
}

/* Custom scrollbar for banner */
.muzeark-elite-banner__body::-webkit-scrollbar {
    width: 4px;
}
.muzeark-elite-banner__body::-webkit-scrollbar-track {
    background: transparent;
}
.muzeark-elite-banner__body::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 4px;
}
.muzeark-elite-banner__body::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.6);
}

/* Beats inside banner get a subtle purple left border */
.muzeark-elite-banner__body .muzeark-track {
    border-left: 3px solid rgba(124, 58, 237, 0.3);
    padding-left: 12px;
}

.muzeark-elite-banner__body .muzeark-track:hover {
    border-left-color: #a855f7;
}

/* Hide LICENSE, DOWNLOAD, PROJECT buttons inside elite banner for non-elite */
.muzeark-elite-banner--locked .muzeark-elite-banner__body .muzeark-btn--license,
.muzeark-elite-banner--locked .muzeark-elite-banner__body .muzeark-btn--member-dl,
.muzeark-elite-banner--locked .muzeark-elite-banner__body .muzeark-btn--add-project {
    display: none !important;
}

/* BECOME ELITE join button (replaces LICENSE for locked beats) */
.muzeark-btn--elite-join {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff !important;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: filter 0.2s, box-shadow 0.3s;
}
.muzeark-btn--elite-join:hover {
    filter: brightness(1.2);
}
.muzeark-btn--elite-join svg {
    fill: rgba(255,255,255,0.8);
}

/* Pulse glow when elite beat is playing */
.muzeark-btn--elite-join.is-pulsing {
    animation: elitePulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

@keyframes elitePulse {
    0%, 100% { box-shadow: 0 0 8px rgba(168, 85, 247, 0.3); }
    50% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.8), 0 0 40px rgba(124, 58, 237, 0.3); }
}

/* CTA at bottom of banner */
.muzeark-elite-banner__cta-wrap {
    padding: 20px;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.1));
}

.muzeark-elite-banner__cta {
    display: inline-block;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff !important;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1px;
    padding: 14px 40px;
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    transition: filter 0.2s, transform 0.2s;
}
.muzeark-elite-banner__cta:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}
.muzeark-elite-banner__cta span {
    font-size: 20px;
    margin-left: 4px;
}

.muzeark-elite-banner__cta-sub {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #a08cb8;
}

/* ================================
   Elite Exclusivity
   ================================ */

/* ELITE ONLY badge on tracks */
.muzeark-track__badge--elite {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Countdown badge */
.muzeark-track__badge--countdown {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Locked track row — subtle overlay */
.muzeark-track--elite-locked .muzeark-track__actions .muzeark-btn--write {
    opacity: 0.4;
    pointer-events: none;
}

/* Lock button replacing LICENSE */
.muzeark-btn--elite-lock {
    background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.muzeark-btn--elite-lock:hover {
    filter: brightness(1.2);
}

/* GO ELITE button in right panel (np-license) */
.muzeark-btn--elite {
    background: linear-gradient(135deg, #d97706, #f59e0b) !important;
    border: none !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: elitePulse 2s ease-in-out infinite;
}
.muzeark-btn--elite:hover {
    filter: brightness(1.15);
    transform: scale(1.02);
}
@keyframes elitePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 12px 2px rgba(245, 158, 11, 0.3); }
}

/* Elite owner (has membership) — subtle glow on locked beats */
.muzeark-track--elite-owner .muzeark-track__badge--elite {
    background: linear-gradient(135deg, #059669, #10b981);
}

/* ─── Elite Lock Modal ─── */
.muzeark-elite-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.muzeark-elite-modal__backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}
.muzeark-elite-modal__content {
    position: relative;
    background: var(--muzeark-card-bg, #1a1a2e);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: eliteModalIn 0.3s ease;
}
@keyframes eliteModalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.muzeark-elite-modal__close {
    position: absolute;
    top: 12px; right: 16px;
    background: none; border: none;
    color: var(--muzeark-text-muted, #888);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}
.muzeark-elite-modal__close:hover { color: #fff; }
.muzeark-elite-modal__icon { font-size: 48px; margin-bottom: 12px; }
.muzeark-elite-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}
.muzeark-elite-modal__beat {
    font-size: 14px;
    color: var(--muzeark-text-muted, #aaa);
    margin: 0 0 12px;
}
.muzeark-elite-modal__countdown {
    font-size: 14px;
    color: #f59e0b;
    margin: 0 0 16px;
}
.muzeark-elite-modal__desc {
    font-size: 14px;
    color: var(--muzeark-text-muted, #aaa);
    margin: 0 0 16px;
}
.muzeark-elite-modal__cta {
    display: block;
    background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    margin-bottom: 16px;
    transition: filter 0.2s;
}
.muzeark-elite-modal__cta:hover { filter: brightness(1.15); }
.muzeark-elite-modal__notify {
    border-top: 1px solid var(--muzeark-border, #333);
    padding-top: 16px;
}
.muzeark-elite-modal__notify p {
    font-size: 13px;
    color: var(--muzeark-text-muted, #888);
    margin: 0 0 8px;
}
.muzeark-elite-modal__notify-form {
    display: flex;
    gap: 8px;
}
.muzeark-elite-modal__email {
    flex: 1;
    background: var(--muzeark-bg, #111);
    border: 1px solid var(--muzeark-border, #333);
    border-radius: 6px;
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
}
.muzeark-elite-modal__email::placeholder { color: #666; }
.muzeark-elite-modal__notify-btn.muzeark-btn--success {
    border-color: #22c55e !important;
    color: #22c55e !important;
}

/* ================================
   Mobile Responsive
   ================================ */
@media (max-width: 768px) {
    .muzeark-song-form {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        overflow-y: auto;
        z-index: 1000;
        animation: slideUp 0.3s ease;
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
    
    .muzeark-song-form__row {
        grid-template-columns: 1fr;
    }
    
    .muzeark-charts-view {
        padding: 16px;
    }
    
    .muzeark-charts__tabs {
        flex-wrap: wrap;
    }
    
    .muzeark-charts__tab {
        flex: 1;
        min-width: 100px;
        text-align: center;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .muzeark-charts__table {
        display: block;
        overflow-x: auto;
    }
    
    .muzeark-charts__table thead {
        display: none;
    }
    
    .muzeark-charts__table tbody tr {
        display: flex;
        flex-wrap: wrap;
        padding: 16px;
        border-bottom: 1px solid var(--muzeark-border, #333);
    }
    
    .muzeark-charts__table tbody td {
        padding: 4px 0;
        border: none;
    }
    
    .muzeark-charts__rank {
        width: 40px;
    }
    
    .muzeark-charts__title {
        flex: 1;
    }
    
    .muzeark-charts__streams {
        width: 100%;
        margin-top: 8px;
        font-size: 13px;
    }
}

/* Mobile form backdrop */
@media (max-width: 768px) {
    .muzeark-song-form::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

/* Charts View Visibility */
.muzeark-app[data-view="charts"] .muzeark-charts-view {
    display: block !important;
}
.muzeark-app[data-view="charts"] .muzeark-tracks,
.muzeark-app[data-view="charts"] .muzeark-filters,
.muzeark-app[data-view="charts"] .muzeark-no-results,
.muzeark-app[data-view="charts"] .muzeark-loading,
.muzeark-app[data-view="charts"] .muzeark-dashboard-view,
.muzeark-app[data-view="charts"] .muzeark-projects-view,
.muzeark-app[data-view="charts"] .muzeark-library-view,
.muzeark-app[data-view="charts"] .muzeark-bundles-view,
.muzeark-app[data-view="charts"] .muzeark-mobile-card,
.muzeark-app[data-view="charts"] .muzeark-elite-banner {
    display: none !important;
}

/* =============================================
   WRITINGS VIEW
============================================= */

.muzeark-writings-view {
    display: none;
}

.muzeark-app[data-view="writings"] .muzeark-writings-view {
    display: block;
    position: relative;
    z-index: 10;
    background: var(--mz-bg);
    height: 100%;
    overflow-y: auto;
}

.muzeark-app[data-view="writings"] .muzeark-tracks,
.muzeark-app[data-view="writings"] .muzeark-filters,
.muzeark-app[data-view="writings"] .muzeark-no-results,
.muzeark-app[data-view="writings"] .muzeark-loading,
.muzeark-app[data-view="writings"] .muzeark-dashboard-view,
.muzeark-app[data-view="writings"] .muzeark-projects-view,
.muzeark-app[data-view="writings"] .muzeark-library-view,
.muzeark-app[data-view="writings"] .muzeark-bundles-view,
.muzeark-app[data-view="writings"] .muzeark-charts-view,
.muzeark-app[data-view="writings"] .muzeark-mobile-card,
.muzeark-app[data-view="writings"] .muzeark-elite-banner {
    display: none !important;
}

.muzeark-app[data-view="writings"] .muzeark-main {
    padding: 0;
    overflow-y: auto;
}

.muzeark-writings {
    padding: 24px;
    max-width: 800px;
}

.muzeark-writings__header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mz-text);
    margin: 0 0 4px 0;
}

.muzeark-writings__subtitle {
    font-size: 0.875rem;
    color: var(--mz-text-muted);
    margin: 0 0 24px 0;
}

.muzeark-writings__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: var(--mz-text-muted);
}

.muzeark-writings__empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--mz-text-muted);
}

.muzeark-writings__empty svg {
    opacity: 0.3;
    margin-bottom: 16px;
}

.muzeark-writings__empty h3 {
    font-size: 1.1rem;
    color: var(--mz-text);
    margin: 0 0 8px 0;
}

.muzeark-writings__empty p {
    font-size: 0.875rem;
    margin: 0;
}

.muzeark-writings__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
}

.muzeark-writings__item:hover {
    background: var(--mz-bg-hover, rgba(255,255,255,0.05));
}

.muzeark-writings__item-art {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.muzeark-writings__item-info {
    flex: 1;
    min-width: 0;
}

.muzeark-writings__item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--mz-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.muzeark-writings__item-beat {
    font-size: 0.8rem;
    color: var(--mz-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.muzeark-writings__item-meta {
    font-size: 0.75rem;
    color: var(--mz-text-muted);
    opacity: 0.7;
    margin-top: 2px;
}

.muzeark-writings__item-open {
    background: none;
    border: 1px solid var(--mz-border, rgba(255,255,255,0.1));
    color: var(--mz-accent, #e2ba87);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
}

.muzeark-writings__item-open:hover {
    background: var(--mz-accent, #e2ba87);
    color: #000;
}

.muzeark-writings__item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.muzeark-writings__item-delete {
    background: none;
    border: 1px solid transparent;
    color: var(--mz-muted, rgba(255,255,255,0.5));
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
}

.muzeark-writings__item-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

@media (max-width: 768px) {
    .muzeark-writings {
        padding: 16px;
    }
    
    .muzeark-writings__item {
        padding: 12px;
        gap: 12px;
    }
    
    .muzeark-writings__item-art {
        width: 44px;
        height: 44px;
    }
}

/* =============================================
   AUTH MODAL
============================================= */

.muzeark-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--mz-spacing-md);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.muzeark-auth-modal.open {
    opacity: 1;
    visibility: visible;
}

.muzeark-auth-modal__container {
    width: 100%;
    max-width: 400px;
    background: var(--mz-surface);
    border-radius: var(--mz-radius-lg);
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}

.muzeark-auth-modal.open .muzeark-auth-modal__container {
    transform: translateY(0) scale(1);
}

.muzeark-auth-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--mz-spacing-lg) var(--mz-spacing-lg) var(--mz-spacing-sm);
}

.muzeark-auth-modal__logo {
    height: 36px;
    width: auto;
}

.muzeark-auth-modal__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--mz-text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--mz-transition);
}

.muzeark-auth-modal__close:hover {
    background: var(--mz-surface-hover);
    color: var(--mz-text);
}

/* Tabs */
.muzeark-auth-modal__tabs {
    display: flex;
    border-bottom: 1px solid var(--mz-border);
    padding: 0 var(--mz-spacing-lg);
}

.muzeark-auth-modal__tab {
    flex: 1;
    padding: var(--mz-spacing-sm) var(--mz-spacing-md);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--mz-text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--mz-transition);
}

.muzeark-auth-modal__tab:hover {
    color: var(--mz-text);
}

.muzeark-auth-modal__tab.active {
    color: var(--mz-accent);
    border-bottom-color: var(--mz-accent);
}

/* Forms */
.muzeark-auth-modal__form {
    padding: var(--mz-spacing-lg);
}

.muzeark-auth-modal__field {
    margin-bottom: var(--mz-spacing-md);
}

.muzeark-auth-modal__field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--mz-text-secondary);
    margin-bottom: var(--mz-spacing-xs);
}

.muzeark-auth-modal__field input {
    width: 100%;
    padding: 10px var(--mz-spacing-md);
    background: var(--mz-bg);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    color: var(--mz-text);
    font-size: 15px;
    transition: border-color var(--mz-transition);
    box-sizing: border-box;
}

.muzeark-auth-modal__field input:focus {
    outline: none;
    border-color: var(--mz-accent);
}

.muzeark-auth-modal__field input::placeholder {
    color: var(--mz-text-muted);
    opacity: 0.5;
}

/* Error & Success Messages */
.muzeark-auth-modal__error {
    display: none;
    padding: var(--mz-spacing-sm) var(--mz-spacing-md);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--mz-radius);
    color: var(--mz-error);
    font-size: 13px;
    margin-bottom: var(--mz-spacing-md);
}

.muzeark-auth-modal__success {
    display: none;
    padding: var(--mz-spacing-sm) var(--mz-spacing-md);
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: var(--mz-radius);
    color: var(--mz-success);
    font-size: 13px;
    margin-bottom: var(--mz-spacing-md);
}

/* Submit Button */
.muzeark-auth-modal__submit {
    margin-bottom: var(--mz-spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.muzeark-auth-modal__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.muzeark-auth-modal__submit-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.muzeark-spinner--small {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Forgot Password Link */
.muzeark-auth-modal__forgot {
    display: block;
    width: 100%;
    padding: var(--mz-spacing-xs) 0;
    background: transparent;
    border: none;
    color: var(--mz-text-secondary);
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    transition: color var(--mz-transition);
}

.muzeark-auth-modal__forgot:hover {
    color: var(--mz-accent);
}

/* Forgot Password Description */
.muzeark-auth-modal__forgot-desc {
    color: var(--mz-text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: var(--mz-spacing-lg);
}

/* Back to Login */
.muzeark-auth-modal__back-to-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--mz-spacing-xs);
    width: 100%;
    padding: var(--mz-spacing-sm) 0;
    background: transparent;
    border: none;
    color: var(--mz-text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: color var(--mz-transition);
}

.muzeark-auth-modal__back-to-login:hover {
    color: var(--mz-accent);
}

/* Honeypot field â€” invisible to humans */
.muzeark-auth-modal__hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
    opacity: 0;
}

/* Turnstile widget */
.muzeark-auth-modal__turnstile {
    display: flex;
    justify-content: center;
    margin-bottom: var(--mz-spacing-md);
    min-height: 0;
}

.muzeark-auth-modal__turnstile:empty {
    display: none;
}

/* Link-style button (for "Create a free account" in Writing Pad gate) */
.muzeark-link-btn {
    background: none;
    border: none;
    color: var(--mz-accent);
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    text-decoration: underline;
    font-weight: inherit;
}

.muzeark-link-btn:hover {
    color: var(--mz-accent-hover);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .muzeark-auth-modal {
        padding: 0;
        align-items: flex-end;
    }
    
    .muzeark-auth-modal__container {
        max-width: 100%;
        border-radius: var(--mz-radius-lg) var(--mz-radius-lg) 0 0;
        max-height: 95vh;
        overflow-y: auto;
        transform: translateY(100%);
    }
    
    .muzeark-auth-modal.open .muzeark-auth-modal__container {
        transform: translateY(0);
    }
}

/* =============================================
   PROFILE MODAL (v3.57.0)
   ============================================= */
.muzeark-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.muzeark-profile-modal.open {
    opacity: 1;
    visibility: visible;
}

.muzeark-profile-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.muzeark-profile-modal__container {
    position: relative;
    z-index: 1;
    background: var(--mz-surface, #171717);
    border: 1px solid var(--mz-border, #333);
    border-radius: var(--mz-radius-lg, 12px);
    width: 90%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.muzeark-profile-modal.open .muzeark-profile-modal__container {
    transform: scale(1);
}

.muzeark-profile-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--mz-border, #333);
}

.muzeark-profile-modal__header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--mz-text, #fff);
}

.muzeark-profile-modal__close {
    background: none;
    border: none;
    color: var(--mz-text-secondary, #888);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.muzeark-profile-modal__close:hover {
    color: var(--mz-text, #fff);
    background: var(--mz-border, #333);
}

.muzeark-profile-modal__content {
    padding: 24px;
}

.muzeark-profile-modal__avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.muzeark-profile-modal__avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 8px;
}

.muzeark-profile-modal__avatar-hint {
    font-size: 12px;
    color: var(--mz-text-secondary, #888);
    text-decoration: none;
    text-align: center;
}

.muzeark-profile-modal__avatar-hint:hover {
    color: var(--mz-accent, #e2ba87);
}

/* Avatar Upload */
.muzeark-avatar-upload {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 8px;
}

.muzeark-avatar-upload:hover .muzeark-avatar-upload__overlay,
.muzeark-avatar-upload.dragover .muzeark-avatar-upload__overlay {
    opacity: 1;
}

.muzeark-avatar-preview {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.muzeark-avatar-upload__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #fff;
}

.muzeark-avatar-upload__overlay svg {
    stroke: var(--mz-accent, #e2ba87);
}

.muzeark-avatar-upload__overlay span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mz-accent, #e2ba87);
}

.muzeark-avatar-upload__progress {
    width: 100%;
    max-width: 150px;
    height: 4px;
    background: var(--mz-border, #333);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.muzeark-avatar-upload__progress-bar {
    height: 100%;
    background: var(--mz-accent, #e2ba87);
    transition: width 0.1s linear;
    width: 0%;
}

.muzeark-avatar-upload__error {
    color: var(--mz-error, #ef4444);
    font-size: 12px;
    text-align: center;
    margin-top: 8px;
}

/* Profile Form */
.muzeark-profile-form__field {
    margin-bottom: 20px;
}

.muzeark-profile-form__field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--mz-text-secondary, #888);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.muzeark-profile-form__hint {
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--mz-accent, #e2ba87);
}

.muzeark-profile-form__field input {
    width: 100%;
    padding: 12px 14px;
    background: var(--mz-bg, #0d0d0d);
    border: 1px solid var(--mz-border, #333);
    border-radius: 8px;
    color: var(--mz-text, #fff);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.muzeark-profile-form__field input:focus {
    outline: none;
    border-color: var(--mz-accent, #e2ba87);
    box-shadow: 0 0 0 2px rgba(226, 186, 135, 0.15);
}

.muzeark-profile-form__field input[readonly] {
    opacity: 0.6;
    cursor: not-allowed;
}

.muzeark-profile-form__readonly {
    display: block;
    font-size: 11px;
    color: var(--mz-text-secondary, #666);
    margin-top: 4px;
}

.muzeark-profile-form__notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(226, 186, 135, 0.1);
    border: 1px solid rgba(226, 186, 135, 0.2);
    border-radius: 6px;
    font-size: 12px;
    color: var(--mz-accent, #e2ba87);
    line-height: 1.4;
}

.muzeark-profile-form__notice svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.muzeark-profile-form__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 20px;
    color: var(--mz-text-secondary, #666);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.muzeark-profile-form__divider::before,
.muzeark-profile-form__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--mz-border, #333);
}

.muzeark-profile-form__select {
    width: 100%;
    padding: 12px 14px;
    background: var(--mz-bg, #0d0d0d);
    border: 1px solid var(--mz-border, #333);
    border-radius: 8px;
    color: var(--mz-text, #fff);
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    min-height: 52px;
}

/* PRO Select specifically - make it stand out */
#profile-pro {
    font-size: 18px;
    font-weight: 500;
    padding: 14px 48px 14px 16px;
    min-height: 56px;
    background-color: var(--mz-card, #1a1a1a);
    border-width: 2px;
}

.muzeark-profile-form__select:focus {
    outline: none;
    border-color: var(--mz-accent, #e2ba87);
    box-shadow: 0 0 0 2px rgba(226, 186, 135, 0.15);
}

.muzeark-profile-form__select option {
    background: var(--mz-card, #1a1a1a);
    color: var(--mz-text, #fff);
    padding: 8px;
}

.muzeark-profile-form__field--pro-other,
.muzeark-profile-form__field--ipi {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.muzeark-profile-form__subscription {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--mz-bg, #0d0d0d);
    border: 1px solid var(--mz-border, #333);
    border-radius: 8px;
}

.muzeark-profile-form__subscription label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--mz-text-secondary, #888);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.muzeark-profile-form__sub-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.muzeark-profile-form__sub-tier {
    font-size: 18px;
    font-weight: 600;
    color: var(--mz-text, #fff);
}

.muzeark-profile-form__sub-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    background: var(--mz-border, #333);
    color: var(--mz-text-secondary, #888);
}

.muzeark-profile-form__sub-status--active {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.muzeark-profile-form__actions {
    margin-bottom: 20px;
}

.muzeark-profile-form__actions .muzeark-btn {
    width: 100%;
}

.muzeark-profile-form__links {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--mz-border, #333);
}

.muzeark-profile-form__links a {
    font-size: 13px;
    color: var(--mz-text-secondary, #888);
    text-decoration: none;
    transition: color 0.2s;
}

.muzeark-profile-form__links a:hover {
    color: var(--mz-accent, #e2ba87);
}

/* User profile button in sidebar (clickable) */
.muzeark-user__profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: inherit;
    padding: 8px;
    margin: -8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    text-align: left;
}

.muzeark-user__profile:hover {
    background: var(--mz-border, #333);
}

.muzeark-user__edit {
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.2s;
    color: var(--mz-text-secondary, #888);
}

.muzeark-user__profile:hover .muzeark-user__edit {
    opacity: 1;
}

/* Mobile menu profile trigger */
.muzeark-mobile-menu__profile.muzeark-profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    color: inherit;
    padding: 12px 16px;
    margin: 0 -16px;
    width: calc(100% + 32px);
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 8px;
}

.muzeark-mobile-menu__profile.muzeark-profile-trigger:hover {
    background: var(--mz-border, #333);
}

/* Subscription status (replaces toggle switch) */
.muzeark-sub-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.muzeark-sub-status__tier {
    font-size: 16px;
    font-weight: 600;
    color: var(--mz-text-secondary, #888);
    transition: color 0.3s;
}

.muzeark-sub-status.active .muzeark-sub-status__tier {
    color: var(--mz-accent, #e2ba87);
}

/* Locked center column (non-members) */
.muzeark-sub-col--locked {
    position: relative;
}

.muzeark-sub-col--locked .muzeark-sub-col__content {
    filter: blur(6px);
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
}

.muzeark-sub-upsell {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: var(--mz-text, #fff);
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    transition: background 0.2s;
}

.muzeark-sub-upsell:hover {
    background: rgba(0, 0, 0, 0.5);
}

.muzeark-sub-upsell svg {
    color: var(--mz-accent, #e2ba87);
}

.muzeark-sub-upsell__text {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.muzeark-sub-upsell__cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--mz-accent, #e2ba87);
    padding: 6px 16px;
    border: 1px solid var(--mz-accent, #e2ba87);
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}

.muzeark-sub-upsell:hover .muzeark-sub-upsell__cta {
    background: var(--mz-accent, #e2ba87);
    color: #000;
}

/* Upgrade button for non-members */
.muzeark-sub-upgrade {
    margin-top: 8px;
}

/* =============================================
   GUEST TIMER GATE (PS-3 v3.28.0)
   ============================================= */
.muzeark-guest-gate {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.muzeark-guest-gate.open {
    opacity: 1;
    visibility: visible;
}

.muzeark-guest-gate__container {
    background: var(--mz-surface, #1a1a1a);
    border: 1px solid var(--mz-border, #333);
    border-radius: var(--mz-radius-lg, 12px);
    padding: 40px 32px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.muzeark-guest-gate.open .muzeark-guest-gate__container {
    transform: scale(1);
}

.muzeark-guest-gate__logo {
    height: 48px;
    margin-bottom: 20px;
}

.muzeark-guest-gate__title {
    font-size: 22px;
    font-weight: 600;
    color: var(--mz-text, #fff);
    margin-bottom: 10px;
}

.muzeark-guest-gate__text {
    font-size: 14px;
    color: var(--mz-text-secondary, #888);
    line-height: 1.6;
    margin-bottom: 24px;
}

.muzeark-guest-gate__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.muzeark-guest-gate__note {
    font-size: 13px;
    color: var(--mz-text-secondary, #888);
}

.muzeark-guest-gate__note .muzeark-link-btn {
    background: none;
    border: none;
    color: var(--mz-accent, #e2ba87);
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
    padding: 0;
}

.muzeark-guest-gate__note .muzeark-link-btn:hover {
    color: var(--mz-text, #fff);
}

/* =============================================
   AUTO BUNDLE BANNER
============================================= */
.muzeark-bundle-banner {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    z-index: 900;
    text-align: left;
    max-width: 420px;
    width: 90vw;
    animation: slideUp 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--mz-surface, #1a1a1a);
    border: 1px solid rgba(226, 186, 135, 0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.muzeark-bundle-banner__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.muzeark-bundle-banner__text {
    flex: 1;
    min-width: 0;
}
.muzeark-bundle-banner__title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.muzeark-bundle-banner__sub {
    font-size: 12px;
    color: var(--mz-text-secondary, #999);
    margin-top: 2px;
}
.muzeark-bundle-banner__dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.muzeark-bundle-banner__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(226, 186, 135, 0.4);
    background: transparent;
    transition: all 0.4s ease;
}
.muzeark-bundle-banner__dot.filled {
    background: #4ade80;
    border-color: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.4);
}
.muzeark-bundle-banner__dot.filled.free {
    background: #e2ba87;
    border-color: #e2ba87;
    box-shadow: 0 0 6px rgba(226, 186, 135, 0.4);
}
.muzeark-bundle-banner__price {
    font-size: 15px;
    font-weight: 700;
    color: #4ade80;
    flex-shrink: 0;
    text-align: right;
}
.muzeark-bundle-banner.complete {
    border-color: rgba(74, 222, 128, 0.4);
}
.muzeark-bundle-banner.complete .muzeark-bundle-banner__title {
    color: #4ade80;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* =============================================
   BUNDLE DEAL CTA CARD (in Bundles view)
============================================= */
/* =============================================
   MOBILE BOTTOM NAV BAR (Persistent)
   Hamburger | Search | Help
============================================= */
.muzeark-mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    height: calc(60px + env(safe-area-inset-bottom, 0px)); /* iPhone home indicator */
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--mz-bg-secondary, #1a1a1a);
    border-top: 1px solid var(--mz-border, #333);
    z-index: 1000;
    align-items: center;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 0;
    gap: 12px;
}

/* Show only on mobile */
@media (max-width: 767px) {
    .muzeark-mobile-bottom-nav {
        display: flex;
    }
    
    /* Add padding to main content so it doesn't get hidden behind nav */
    .muzeark-main {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
    }
    
    /* Hide old bottom bar */
    .muzeark-mobile-list-bottom {
        display: none !important;
    }
    
    /* Hide mobile list header pull indicator */
    .muzeark-mobile-list-header {
        display: none !important;
    }
}

.muzeark-bottom-nav__menu,
.muzeark-bottom-nav__help {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--mz-border, #333);
    border-radius: 8px;
    color: var(--mz-text, #fff);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.muzeark-bottom-nav__menu:hover,
.muzeark-bottom-nav__help:hover {
    background: var(--mz-bg-hover, #252525);
    border-color: var(--mz-accent, #e2ba87);
}

.muzeark-bottom-nav__menu:active,
.muzeark-bottom-nav__help:active {
    transform: scale(0.95);
}

.muzeark-bottom-nav__search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--mz-bg, #0d0d0d);
    border: 1px solid var(--mz-border, #333);
    border-radius: 8px;
    padding: 0 14px;
    height: 44px;
}

.muzeark-bottom-nav__search svg {
    color: var(--mz-text-secondary, #888);
    flex-shrink: 0;
}

.muzeark-bottom-nav__search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--mz-text, #fff);
    font-size: 16px; /* 16px prevents iOS auto-zoom on focus */
    outline: none;
    width: 100%;
}

.muzeark-bottom-nav__search input::placeholder {
    color: var(--mz-text-secondary, #888);
}

.muzeark-bottom-nav__search:focus-within {
    border-color: var(--mz-accent, #e2ba87);
}

/* Help button accent */
.muzeark-bottom-nav__help {
    color: var(--mz-text-secondary, #888);
}

.muzeark-bottom-nav__help:hover {
    color: var(--mz-accent, #e2ba87);
}

/* Mobile search active state */
@media (max-width: 767px) {
    /* Search results indicator */
    .muzeark-search-results-indicator {
        display: none;
        position: fixed;
        bottom: calc(70px + env(safe-area-inset-bottom, 0px));
        left: 0;
        right: 0;
        padding: 8px 16px;
        background: var(--mz-surface, #1a1a1a);
        border-top: 1px solid var(--mz-border, #333);
        font-size: 13px;
        color: var(--mz-text-secondary, #888);
        text-align: center;
        z-index: 999;
    }
    
    .muzeark-app.is-searching .muzeark-search-results-indicator {
        display: block;
    }
    
    .muzeark-search-results-indicator strong {
        color: var(--mz-accent, #e2ba87);
        font-weight: 600;
    }
    
    /* When searching with few results, center the content */
    .muzeark-app.is-searching .muzeark-tracks {
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 180px);
    }
    
    .muzeark-app.is-searching .muzeark-tracks:has(.muzeark-track:nth-child(-n+3):last-child) {
        justify-content: center;
        padding-top: 20px;
    }
    
    /* Better no-results state for search */
    .muzeark-app.is-searching .muzeark-no-results {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 200px;
        padding: 40px 20px;
    }
    
    .muzeark-app.is-searching .muzeark-no-results p {
        font-size: 15px;
        color: var(--mz-text-secondary, #888);
        margin-top: 12px;
    }
    
    /* Loading state while searching */
    .muzeark-app.is-searching .muzeark-loading {
        padding: 30px 20px;
    }
    
    /* Add visual cue when search is active */
    .muzeark-app.is-searching .muzeark-bottom-nav__search {
        background: rgba(226, 186, 135, 0.1);
        border-color: var(--mz-accent, #e2ba87);
    }
    
    /* Mobile search focused - adjust layout for keyboard */
    .muzeark-app.mobile-search-focused .muzeark-main {
        padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)) !important;
    }
}


/* --- Pulse System v2 — Color-Coded Actions --- */
/* Blue = WRITE, Red = LICENSE/CART, Green = PROJECT, Purple = ELITE */

/* === KEYFRAMES === */

/* Blue breathing — WRITE */
@keyframes mzPulseBlue {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
    50% { box-shadow: 0 0 14px 5px rgba(59, 130, 246, 0.5); }
}
@keyframes mzPulseBlueLight {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
    50% { box-shadow: 0 0 16px 6px rgba(37, 99, 235, 0.45); }
}

/* Red breathing — LICENSE / CART */
@keyframes mzPulseRed {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
    50% { box-shadow: 0 0 14px 5px rgba(239, 68, 68, 0.5); }
}
@keyframes mzPulseRedLight {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
    50% { box-shadow: 0 0 16px 6px rgba(220, 38, 38, 0.45); }
}

/* Green breathing — PROJECT */
@keyframes mzPulseGreen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
    50% { box-shadow: 0 0 14px 5px rgba(34, 197, 94, 0.5); }
}
@keyframes mzPulseGreenLight {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
    50% { box-shadow: 0 0 16px 6px rgba(22, 163, 74, 0.45); }
}

/* Royal Purple breathing + SCALE — ELITE */
@keyframes mzPulsePurple {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 18px 8px rgba(139, 92, 246, 0.55);
        transform: scale(1.05);
    }
}
@keyframes mzPulsePurpleLight {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(124, 58, 237, 0.5);
        transform: scale(1.05);
    }
}

/* === WRITE — Blue glow === */

/* Now Playing WRITE button — styled but NO CSS glow (JS handles sequential) */
.muzeark-app.playing #np-write {
    border-color: rgba(59, 130, 246, 0.5);
    color: #3b82f6;
}
.muzeark-app.playing #np-write svg { stroke: #3b82f6; }

/* Mobile card WRITE button — styled but no CSS glow */
.muzeark-app.playing #mc-write {
    color: #3b82f6;
}
.muzeark-app.playing #mc-write svg { stroke: #3b82f6; }

/* Beat list — WRITE on playing track — styled, no CSS glow */
.muzeark-track.playing .muzeark-btn--write {
    border-color: rgba(59, 130, 246, 0.5);
    color: #3b82f6;
}

/* === LICENSE / CART === */

/* Beat list — LICENSE: NO CSS glow on hover/playing (JS handles it) */

/* Cart FAB green pulse when has items (keep - not a track button) */
.muzeark-cart-fab.has-items {
    animation: mzPulseGreen 3.5s ease-in-out infinite;
}
.muzeark-cart-fab.has-items:hover { animation: none; }

/* Now Playing LICENSE — styled, no CSS glow */

/* Mobile card LICENSE — styled, no CSS glow */

/* === PROJECT === */

/* Beat list — Project on playing track — styled, no CSS glow */
.muzeark-track.playing .muzeark-btn--add-project {
    color: #2563eb;
}
.muzeark-track.playing .muzeark-btn--add-project svg { stroke: #2563eb; }

/* === URGENT — Red breathing on section === */

/* Dashboard URGENT contracts section */
.muzeark-my-beats--urgent {
    animation: mzPulseRed 3.5s ease-in-out infinite;
}

/* === ELITE / UPGRADE — Royal Purple + Scale breathing === */

/* Go Elite buttons — black bg, purple text, purple glow, GROWS */
.muzeark-sub-upgrade,
.muzeark-elite-cta {
    background: #000 !important;
    color: #8b5cf6 !important;
    border: 2px solid #8b5cf6 !important;
    animation: mzPulsePurple 4s ease-in-out infinite;
}
.muzeark-sub-upgrade:hover,
.muzeark-elite-cta:hover {
    animation: none;
    background: #8b5cf6 !important;
    color: #000 !important;
    transform: scale(1.05);
}

/* === REUSABLE UTILITY CLASSES === */
.muzeark-pulse-blue { animation: mzPulseBlue 3.5s ease-in-out infinite; }
.muzeark-pulse-red { animation: mzPulseRed 3.5s ease-in-out infinite; }
.muzeark-pulse-green { animation: mzPulseGreen 3.5s ease-in-out infinite; }
.muzeark-pulse-purple { animation: mzPulsePurple 4s ease-in-out infinite; }

/* =============================================
   BUTTON FIXES v3.72.6
   ============================================= */

/* --- Play button: white icon --- */
.muzeark-ctrl-btn--play {
    color: #fff !important;
}
.muzeark-ctrl-btn--play svg { color: #fff !important; }

/* --- Library: Sign Contract button — white text on dark --- */
.muzeark-library__btn--sign {
    color: #fff !important;
}
.muzeark-library__btn--sign:hover {
    color: #fff !important;
}

/* --- Cart FAB: green glow (not red, red=URGENT only) --- */
.muzeark-cart-fab.has-items {
    animation: mzPulseGreen 3.5s ease-in-out infinite;
}

/* =============================================
   GLOW REMAPPING v3.72.6
   All track button glows handled by JS sequential engine
   CSS only defines colors, not animations
   ============================================= */

/* PROJECT color on playing track */
.muzeark-track.playing .muzeark-btn--add-project {
    color: #2563eb !important;
}
.muzeark-track.playing .muzeark-btn--add-project svg { 
    stroke: #2563eb !important; 
}

/* WRITE stays blue - already correct */

/* =============================================
   STAGGERED GLOW SYSTEM — Sequential nudges
   3.5s breathing cycle, one button at a time
============================================= */
@keyframes mzGlowBlue {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
    50% { box-shadow: 0 0 12px 4px rgba(59, 130, 246, 0.45); }
}
@keyframes mzGlowGreen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
    50% { box-shadow: 0 0 12px 4px rgba(74, 222, 128, 0.45); }
}

.mz-glow-blue {
    animation: mzGlowBlue 4s ease-in-out 1 !important;
}
.mz-glow-green {
    animation: mzGlowGreen 4s ease-in-out 1 !important;
}
@keyframes mzGlowRed {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
    50% { box-shadow: 0 0 12px 4px rgba(239, 68, 68, 0.45); }
}
.mz-glow-red {
    animation: mzGlowRed 4s ease-in-out 1 !important;
}
@keyframes mzGlowPurple {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
    50% { box-shadow: 0 0 12px 4px rgba(139, 92, 246, 0.45); }
}
.mz-glow-purple {
    animation: mzGlowPurple 4s ease-in-out 1 !important;
}
.mz-glow-blue:hover,
.mz-glow-green:hover,
.mz-glow-red:hover,
.mz-glow-purple:hover {
    animation: none !important;
}

/* =============================================
   MUZEARK CELEBRATE ENGINE v1.0
   3 Tiers: Collect → Sparklers → Confetti
   ============================================= */

/* Shared container — covers full viewport, no interaction */
.mzc-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 99999999;
}

/* ==================
   TIER 1: BAR COLLECT
   ⚡ BAR — green bolt, sparks, float up
   ================== */
.mzc-bar-collect {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
    animation: mzcCollectFloat 1.4s ease-out forwards;
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.9)) drop-shadow(0 0 25px rgba(34, 197, 94, 0.5));
    vertical-align: middle;
}

.mzc-bolt {
    width: 18px !important;
    height: 18px !important;
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.8));
    animation: mzcBoltFlicker 0.15s ease-in-out 3;
}

.mzc-bar-text {
    font-family: 'Courier New', monospace;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #22c55e;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.9), 0 0 20px rgba(34, 197, 94, 0.4);
}

@keyframes mzcCollectFloat {
    0% { opacity: 0; transform: translateY(4px) scale(0.7); }
    15% { opacity: 1; transform: translateY(0) scale(1.1); }
    40% { opacity: 1; transform: translateY(-8px) scale(1); }
    100% { opacity: 0; transform: translateY(-25px) scale(0.85); }
}

@keyframes mzcBoltFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Spark particles */
.mzc-spark {
    position: absolute;
    width: 3px; height: 3px;
    background: #22c55e;
    border-radius: 50%;
    animation: mzcSparkFly 0.5s ease-out forwards;
    filter: drop-shadow(0 0 3px rgba(34, 197, 94, 0.8));
}

@keyframes mzcSparkFly {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--spark-dx, 10px), var(--spark-dy, -20px)) scale(0); }
}

/* ==================
   TIER 2: SPARKLERS
   Small sparks rise from bottom
   ================== */
.mzc-sparkler {
    position: absolute;
    bottom: 0;
    border-radius: 50%;
    animation: mzcSparklerRise linear forwards;
    filter: blur(0.5px);
    z-index: 99999;
}

@keyframes mzcSparklerRise {
    0% { opacity: 0; transform: translateY(0) scale(1); }
    10% { opacity: 1; }
    70% { opacity: 0.8; }
    100% { opacity: 0; transform: translateY(-50vh) scale(0.3); }
}

/* Sparkler toast */
.mzc-sparkler-toast {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--mz-surface, #1a1a1a);
    border: 1px solid var(--mz-accent, #e2ba87);
    border-left: 4px solid var(--mz-accent, #e2ba87);
    border-radius: 8px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    max-width: 400px;
    z-index: 99999;
}

.mzc-sparkler-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mzc-sparkler-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.mzc-sparkler-msg {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--mz-text, #fff);
    white-space: nowrap;
}

/* ==================
   TIER 3: CONFETTI
   Full confetti rain — earned, unexpected
   ================== */
.mzc-confetti-piece {
    position: absolute;
    top: -20px;
    border-radius: 2px;
    animation: mzcConfettiFall linear forwards;
    z-index: 99999;
}

@keyframes mzcConfettiFall {
    0% { opacity: 1; transform: translateY(0) translateX(0) rotate(0deg); }
    25% { opacity: 1; }
    100% { opacity: 0; transform: translateY(100vh) translateX(var(--confetti-drift, 0px)) rotate(var(--confetti-rot, 360deg)); }
}

/* Confetti banner */
.mzc-confetti-banner {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(-30px);
    background: #1a1008;
    border: 2px solid var(--mz-accent, #e2ba87);
    border-radius: 12px;
    padding: 0;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    z-index: 100000;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 30px rgba(226, 186, 135, 0.15);
    max-width: 440px;
    width: 90%;
}

.mzc-confetti-banner.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mzc-confetti-banner__inner {
    padding: 24px 32px;
    text-align: center;
}

.mzc-confetti-banner__title {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #e2ba87;
    margin: 0 0 6px;
    text-shadow: 0 0 20px rgba(226, 186, 135, 0.3);
}

.mzc-confetti-banner__sub {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: #b89a6a;
    margin: 0;
}

.mzc-confetti-banner__close {
    position: absolute;
    top: 8px; right: 12px;
    background: none;
    border: none;
    color: #b89a6a;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    pointer-events: auto;
}
.mzc-confetti-banner__close:hover { color: #e2ba87; }

