:root {
    /* --- Premium Therapy Theme --- */
    --bg-color: #0d1117;
    --surface-color: rgba(30, 41, 59, 0.4);
    --surface-glass: rgba(255, 255, 255, 0.08);
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --card-gradient: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    --accent-glow: #6366f1;
    
    /* Text */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;

    /* Dimensions */
    --nav-height: 80px;
    --header-height: 70px;
    --radius-pill: 50px;
    --radius-lg: 28px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 40%);
    color: var(--text-main);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- Typography --- */
h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
}

h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.overline {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #a855f7; /* Purple accent */
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

/* --- Layout --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: env(safe-area-inset-top);
    z-index: 20;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

main {
    flex: 1;
    position: relative;
    margin-top: var(--header-height);
    height: 100%;
    overflow: hidden;
}

.view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 24px;
    padding-bottom: 140px; /* Space for floating nav */
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.view.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 10;
}

/* --- Components: Buttons --- */
.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform 0.2s;
}

.btn-icon:active { transform: scale(0.9); }

.btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 20px;
    border-radius: var(--radius-pill);
    font-size: 1.1rem;
    font-weight: 700;
    width: 100%;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn:active {
    transform: scale(0.98);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
    margin-top: 15px;
    font-size: 1rem;
}

/* --- Components: Cards --- */
.card {
    background: var(--card-gradient);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 26px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
}

.card:active { transform: scale(0.98); }

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px;
    background: var(--surface-glass);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Navigation (Floating Pill) --- */
nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    height: 70px;
    background: rgba(30, 41, 59, 0.85); /* Slightly darker for contrast */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s;
    opacity: 0.6;
}

.nav-item.active {
    color: white;
    opacity: 1;
    transform: translateY(-2px);
}

.nav-item svg {
    margin-bottom: 4px;
    stroke-width: 2.5;
}

/* --- Player Components --- */
.visual-container {
    width: 100%;
    height: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    background: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.visual-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff; /* Since illustrations have white bg */
}

.timer-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 40px auto;
}

.timer-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.timer-circle-bg {
    fill: none;
    stroke: rgba(255,255,255,0.1);
    stroke-width: 8;
}

.timer-circle-fg {
    fill: none;
    stroke: url(#gradient); /* We will add a gradient def to SVG */
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
}
