/* ANXIETY MEDITATION APP - CSS */
/* Calming night/indigo theme for deep sleep and anxiety relief */

:root {
    --color-primary: #7B68EE;
    --color-secondary: #4ECDC4;
    --color-accent: #E8A87C;
    --gradient-calm: linear-gradient(135deg, #7B68EE 0%, #4ECDC4 100%);
    --gradient-night: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-primary: #0a0a1e;
    --bg-secondary: #111133;
    --bg-card: rgba(20, 20, 60, 0.7);
    --text-primary: #E8E8F0;
    --text-secondary: #9999CC;
    --text-muted: #6666AA;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-button: 0 4px 15px rgba(123, 104, 238, 0.4);
    --shadow-glow: 0 0 20px rgba(123, 104, 238, 0.3);
}

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

html,
body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.app-container {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* ─── Background Animation ─────────────────────────────────────────────────── */

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, #0a0a1e 0%, #111133 30%, #1a1030 60%, #0a0a1e 100%);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: white;
    box-shadow:
        25px 50px 0 rgba(255, 255, 255, 0.6),
        75px 130px 0 rgba(255, 255, 255, 0.4),
        150px 80px 0 rgba(255, 255, 255, 0.7),
        200px 180px 0 rgba(255, 255, 255, 0.3),
        250px 40px 0 rgba(255, 255, 255, 0.5),
        300px 160px 0 rgba(255, 255, 255, 0.6),
        50px 200px 0 rgba(255, 255, 255, 0.4),
        120px 250px 0 rgba(255, 255, 255, 0.5),
        180px 300px 0 rgba(255, 255, 255, 0.3),
        280px 280px 0 rgba(255, 255, 255, 0.7),
        350px 120px 0 rgba(255, 255, 255, 0.4),
        80px 350px 0 rgba(255, 255, 255, 0.6),
        320px 50px 0 rgba(255, 255, 255, 0.5),
        380px 200px 0 rgba(255, 255, 255, 0.3),
        100px 100px 0 rgba(255, 255, 255, 0.7);
    animation: twinkle 4s ease-in-out infinite alternate;
}

.stars::after {
    width: 1px;
    height: 1px;
    box-shadow:
        55px 80px 0 rgba(255, 255, 255, 0.5),
        115px 160px 0 rgba(255, 255, 255, 0.3),
        190px 120px 0 rgba(255, 255, 255, 0.6),
        230px 220px 0 rgba(255, 255, 255, 0.4),
        290px 70px 0 rgba(255, 255, 255, 0.5),
        340px 190px 0 rgba(255, 255, 255, 0.7),
        70px 240px 0 rgba(255, 255, 255, 0.3),
        160px 280px 0 rgba(255, 255, 255, 0.6),
        210px 340px 0 rgba(255, 255, 255, 0.4),
        310px 310px 0 rgba(255, 255, 255, 0.5),
        390px 150px 0 rgba(255, 255, 255, 0.3),
        40px 380px 0 rgba(255, 255, 255, 0.5),
        360px 80px 0 rgba(255, 255, 255, 0.4);
    animation: twinkle 3s ease-in-out infinite alternate-reverse;
}

@keyframes twinkle {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: floatParticle 20s ease-in-out infinite;
}

.floating-particles::before {
    width: 300px;
    height: 300px;
    background: var(--color-primary);
    top: -100px;
    right: -100px;
}

.floating-particles::after {
    width: 250px;
    height: 250px;
    background: var(--color-secondary);
    bottom: -80px;
    left: -80px;
    animation-delay: -10s;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ─── Header ────────────────────────────────────────────────────────────────── */

.header {
    text-align: center;
    padding: 1.5rem 1rem 0.5rem;
    position: relative;
    z-index: 10;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.moon-icon {
    filter: drop-shadow(0 0 10px rgba(123, 104, 238, 0.5));
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient-calm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.settings-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.settings-btn:hover {
    color: var(--color-primary);
    background: rgba(123, 104, 238, 0.15);
}

/* ─── Main Content ──────────────────────────────────────────────────────────── */

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.screen {
    display: none;
    width: 100%;
    max-width: 500px;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ─── Glass Card ────────────────────────────────────────────────────────────── */

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(123, 104, 238, 0.15);
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

/* ─── Home Screen ───────────────────────────────────────────────────────────── */

.home-screen .welcome-card {
    text-align: center;
}

.home-screen .welcome-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: var(--gradient-calm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-screen .welcome-card>p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Program Cards */
.program-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.program-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(123, 104, 238, 0.15);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
    transition: width 0.3s ease;
}

.program-card[data-program="sleep-stretches"]::before {
    background: var(--color-primary);
}

.program-card[data-program="anxiety-protocol"]::before {
    background: var(--color-secondary);
}

.program-card[data-program="home-kriya"]::before {
    background: var(--color-accent);
}

.program-card:hover {
    transform: translateY(-2px);
    border-color: rgba(123, 104, 238, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.program-card:hover::before {
    width: 6px;
}

.program-card:active {
    transform: translateY(0);
}

.program-emoji {
    font-size: 2.2rem;
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.program-info {
    flex: 1;
}

.program-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.program-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.program-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.program-card:hover .program-arrow {
    transform: translateX(4px);
    color: var(--color-primary);
}

/* ─── Practice Screen ───────────────────────────────────────────────────────── */

.practice-container {
    width: 100%;
}

/* Back Button */
.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: var(--color-primary);
}

/* Program Title Badge */
.program-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.program-badge .badge-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(123, 104, 238, 0.1);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(123, 104, 238, 0.2);
}

/* Progress Bar */
.progress-container {
    margin-bottom: 1.25rem;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-calm);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
    width: 0%;
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.progress-dot.completed {
    background: var(--color-secondary);
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.progress-dot.active {
    background: var(--color-primary);
    box-shadow: 0 0 15px rgba(123, 104, 238, 0.7);
    transform: scale(1.3);
}

/* Pose Card */
.pose-card {
    position: relative;
    overflow: hidden;
}

.pose-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pose-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-calm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pose-info {
    flex: 1;
}

.pose-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pose-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

/* Breathing Indicator */
.breathing-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
}

.breath-text {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.breathing-indicator.inhale .breath-text {
    color: #4ECDC4;
}

.breathing-indicator.exhale .breath-text {
    color: #FF6B9D;
}

.breathing-indicator.hold .breath-text {
    color: #FFE66D;
}

.breath-animation {
    width: 40px;
    height: 8px;
    border-radius: 9999px;
    position: relative;
    overflow: hidden;
}

.breathing-indicator.inhale .breath-animation {
    background: rgba(78, 205, 196, 0.3);
}

.breathing-indicator.exhale .breath-animation {
    background: rgba(255, 107, 157, 0.3);
}

.breathing-indicator.hold .breath-animation {
    background: rgba(255, 230, 109, 0.3);
}

.breath-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 9999px;
}

.breathing-indicator.inhale .breath-animation::after {
    background: #4ECDC4;
    animation: inhaleAnim 4s ease-in-out infinite;
}

.breathing-indicator.exhale .breath-animation::after {
    background: #FF6B9D;
    animation: exhaleAnim 4s ease-in-out infinite;
}

.breathing-indicator.hold .breath-animation::after {
    background: #FFE66D;
    animation: holdAnim 2s ease-in-out infinite;
    width: 100%;
}

@keyframes inhaleAnim {

    0%,
    100% {
        width: 30%;
    }

    50% {
        width: 100%;
    }
}

@keyframes exhaleAnim {

    0%,
    100% {
        width: 30%;
    }

    50% {
        width: 100%;
    }
}

@keyframes holdAnim {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Pose SVG / Illustration Area */
.pose-animation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 220px;
    position: relative;
    margin-bottom: 1.5rem;
}

.breath-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.breath-visual.inhale {
    background: radial-gradient(circle, rgba(78, 205, 196, 0.15) 0%, transparent 70%);
    animation: bigInhale 4s ease-in-out infinite;
}

.breath-visual.exhale {
    background: radial-gradient(circle, rgba(255, 107, 157, 0.15) 0%, transparent 70%);
    animation: bigExhale 4s ease-out infinite;
}

.breath-visual.hold {
    background: radial-gradient(circle, rgba(255, 230, 109, 0.1) 0%, transparent 70%);
    animation: bigHold 2s ease-in-out infinite;
}

@keyframes bigInhale {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

@keyframes bigExhale {
    0% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }
}

@keyframes bigHold {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.7;
    }
}

.pose-svg {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pose-svg svg {
    width: 180px;
    height: 180px;
    filter: drop-shadow(0 4px 20px rgba(123, 104, 238, 0.2));
}

.pose-image {
    max-width: 100%;
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    animation: poseEnter 0.5s ease-out, poseBreathing 4s ease-in-out 0.5s infinite;
}

@keyframes poseEnter {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes poseBreathing {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Sanskrit text */
.sanskrit-name {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-style: italic;
}

/* Sub-steps for Yoga Nidra */
.sub-steps {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(123, 104, 238, 0.06);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-primary);
}

.sub-steps li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.8;
    list-style: none;
    padding-left: 1.5rem;
    position: relative;
}

.sub-steps li::before {
    content: '•';
    position: absolute;
    left: 0.25rem;
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* Repetitions badge */
.repetitions-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.8rem;
    background: rgba(78, 205, 196, 0.12);
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

/* Timer */
.timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 1.5rem;
}

.timer-ring {
    width: 110px;
    height: 110px;
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.timer-progress {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}

.timer-display {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.timer-seconds {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-calm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    transition: transform 0.15s ease;
}

.timer-seconds.warning {
    animation: timerPulse 0.3s ease;
}

@keyframes timerPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.timer-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pose Instructions */
.pose-instructions {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.description-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.control-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: var(--gradient-calm);
    color: white;
    box-shadow: var(--shadow-button);
}

.control-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(123, 104, 238, 0.5);
}

.control-btn:active {
    transform: translateY(0);
}

.control-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.control-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ─── Completion Screen ─────────────────────────────────────────────────────── */

.completion-card {
    text-align: center;
}

.celebration-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.celebrate-ring {
    animation: celebrateRotate 3s linear infinite;
}

@keyframes celebrateRotate {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -314;
    }
}

.checkmark {
    animation: drawCheck 0.8s ease-out forwards;
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.completion-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.completion-card>p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.completion-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-calm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ─── Primary Button ────────────────────────────────────────────────────────── */

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-calm);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-button);
    transition: all 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(123, 104, 238, 0.5);
}

.primary-btn:active {
    transform: translateY(0);
}

.primary-btn svg {
    width: 20px;
    height: 20px;
}

/* ─── Settings Modal ────────────────────────────────────────────────────────── */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.modal-content {
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    background: var(--gradient-calm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    margin-bottom: 1.5rem;
}

.setting-item {
    margin-bottom: 1.5rem;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.setting-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: -0.5rem;
    margin-bottom: 0.75rem;
}

.time-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.time-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(123, 104, 238, 0.3);
    background: rgba(123, 104, 238, 0.1);
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.time-btn:hover {
    background: rgba(123, 104, 238, 0.25);
    border-color: var(--color-primary);
}

.time-display {
    text-align: center;
    min-width: 80px;
}

.time-display span:first-child {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-calm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.time-unit {
    font-size: 1rem;
    color: var(--text-muted);
}

.time-presets {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.preset-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(123, 104, 238, 0.2);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: rgba(123, 104, 238, 0.15);
    border-color: var(--color-primary);
}

.preset-btn.active {
    background: var(--gradient-calm);
    color: white;
    border-color: transparent;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 400px) {
    .glass-card {
        padding: 1.25rem;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .program-card {
        padding: 1rem;
    }

    .pose-svg svg {
        width: 140px;
        height: 140px;
    }

    .timer-ring {
        width: 90px;
        height: 90px;
    }

    .timer-seconds {
        font-size: 1.6rem;
    }
}

@media (min-width: 768px) {
    .header {
        padding-top: 2rem;
    }

    .glass-card {
        padding: 2.5rem;
    }

    .logo h1 {
        font-size: 2rem;
    }
}