@charset "UTF-8";

:root {
    --bg: #07090e;
    --surface: rgba(13, 18, 28, 0.72);
    --surface-hover: rgba(22, 30, 48, 0.82);
    --glass: rgba(12, 17, 26, 0.68);
    --elev: rgba(18, 25, 38, 0.88);
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.24);
    --border-accent: rgba(0, 230, 118, 0.4);
    --rim: rgba(255, 255, 255, 0.35);
    --txt: #f8fafc;
    --txt-sec: #cbd5e1;
    --dim: rgba(203, 213, 225, 0.62);
    --dim-sub: rgba(148, 163, 184, 0.45);
    --c1: #00e676;
    --c2: #00b0ff;
    --c3: #a855f7;
    --pulse: 1;
    --beat-bass: 0;
    --beat-kick: 0;
    --dock-h: 62px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body:not(.dark-mode) {
    --bg: #0a111a;
    --surface: rgba(255, 255, 255, 0.18);
    --surface-hover: rgba(255, 255, 255, 0.28);
    --glass: rgba(255, 255, 255, 0.22);
    --elev: rgba(255, 255, 255, 0.35);
    --border: rgba(255, 255, 255, 0.32);
    --border-hover: rgba(255, 255, 255, 0.5);
    --rim: rgba(255, 255, 255, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Geist", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: -0.012em;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--txt);
}

/* Beat-reactive WebGL Fluid Shader Canvas */
#shader-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
    transition: opacity 0.5s ease;
    transform: scale(calc(1 + var(--beat-bass, 0) * 0.02));
    transition: transform 0.1s ease-out;
}

/* Background image blurred overlay */
.bg-image-layer {
    position: fixed;
    inset: -30px;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: blur(55px) brightness(0.28) saturate(140%);
    opacity: 0.65;
    transition: background-image 0.9s var(--ease-out);
    pointer-events: none;
}

/* Beat-reactive radial shockwave pulse */
.bg-beat-ripple {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 40%, rgba(0, 230, 118, calc(var(--beat-kick, 0) * 0.08)) 0%, transparent 65%);
    transition: background 0.05s linear;
}

/* Studio Global Header Bar */
.studio-header {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 12px 18px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@media (min-width: 768px) {
    .studio-header {
        max-width: 680px;
    }
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s var(--ease-out), opacity 0.2s;
}

.brand-badge:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.brand-logo-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 230, 118, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.brand-logo-icon svg {
    width: 15px;
    height: 15px;
    color: #07090e;
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #fff;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-title .pro-tag {
    font-size: 0.58rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--txt-sec);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-sub {
    font-size: 0.65rem;
    color: var(--dim);
    letter-spacing: 0.03em;
    font-weight: 600;
    text-transform: uppercase;
}

.header-meta-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.studio-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(14, 21, 33, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--txt-sec);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.2s var(--ease-out);
}

.studio-status-pill:hover {
    border-color: var(--border-hover);
    background: rgba(22, 32, 50, 0.7);
    color: #fff;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c1);
    box-shadow: 0 0 8px var(--c1);
    animation: statusBreathe 2s infinite ease-in-out;
}

@keyframes statusBreathe {
    0%, 100% { opacity: 0.8; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.25); }
}

.hi-res-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.15), rgba(0, 176, 255, 0.15));
    border: 1px solid rgba(0, 230, 118, 0.3);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--c1);
    text-transform: uppercase;
}

/* Floating Toast notifications */
.app-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-35px);
    z-index: 999;
    background: rgba(14, 20, 32, 0.94);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.6), inset 0 1px 0 var(--rim);
    padding: 8px 18px;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s var(--ease-out), opacity 0.28s ease;
}

.app-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.28);
}