:root {
    /* Warm color palette */
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;

    /* Backgrounds */
    --bg-dark: #0c0a09;
    --bg-warm: #1c1917;
    --bg-card: rgba(254, 243, 199, 0.03);
    --bg-glass: rgba(254, 243, 199, 0.05);

    /* Text */
    --text-primary: #fef3c7;
    --text-secondary: rgba(254, 243, 199, 0.6);
    --text-muted: rgba(254, 243, 199, 0.4);

    /* Borders */
    --border-glass: rgba(254, 243, 199, 0.08);

    /* Gradients */
    --gradient-warm: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    --gradient-subtle: linear-gradient(180deg, transparent, rgba(251, 191, 36, 0.03));

    /* Shadows */
    --glow-amber: 0 0 40px rgba(251, 191, 36, 0.2);

    /* Animation */
    --transition-slow: 0.6s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
    min-height: 100%;
    min-height: -webkit-fill-available;
    background: var(--bg-dark);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    min-height: 100lvh;
    min-height: -webkit-fill-available;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

/* No scroll - for fullscreen pages */
body.no-scroll,
html.no-scroll {
    overflow: hidden;
    height: auto;
    min-height: 100%;
    min-height: 100svh;
    height: 100dvh;
    min-height: 100lvh;
    min-height: -webkit-fill-available;
    position: relative;
    width: 100%;
}

/* Typography - Optimized for Outfit */
h1 {
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h2 {
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h3 {
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.text-muted {
    color: var(--text-muted);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-amber {
    color: var(--amber-400);
}

/* Glass card */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 24px;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gradient-warm);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--glow-amber);
    text-decoration: none;
    width: 100%;
}

.btn-primary:hover,
.btn-primary:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

/* Activity Circle - Core breathing animation */
.activity-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--glow-amber);
    transition: transform 4s ease-in-out;
}

.activity-circle.inhale {
    animation: breatheIn 4s ease-in-out forwards;
}

.activity-circle.exhale {
    animation: breatheOut 4s ease-in-out forwards;
}

@keyframes breatheIn {
    from {
        transform: scale(0.8);
        opacity: 0.7;
    }

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

@keyframes breatheOut {
    from {
        transform: scale(1.2);
        opacity: 1;
    }

    to {
        transform: scale(0.8);
        opacity: 0.7;
    }
}

/* Safe areas */
.safe-top {
    padding-top: env(safe-area-inset-top, 20px);
}

.safe-bottom {
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* Fullscreen activity view */
.activity-view {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 100;
}

.activity-view .phrase {
    font-size: 1.5rem;
    font-weight: 300;
    text-align: center;
    max-width: 280px;
    margin-top: 60px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Progress bar */
.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-warm);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-warm);
    transition: width 0.1s linear;
}

/* Skip button */
.skip-btn {
    position: fixed;
    top: 40px;
    right: 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

/* Emoji buttons for check-in */
.emoji-scale {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.emoji-btn {
    font-size: 2.5rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50%;
    padding: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    filter: grayscale(0.5);
}

.emoji-btn:hover,
.emoji-btn.selected {
    border-color: var(--amber-400);
    filter: grayscale(0);
    transform: scale(1.1);
}

/* Hydration confirmation */
.check-icon {
    font-size: 4rem;
    color: var(--amber-400);
}

/* Movement stretches */
.stretch-instruction {
    font-size: 1.1rem;
    text-align: center;
    max-width: 300px;
    color: var(--text-secondary);
}

/* Audio player */
.audio-visualizer {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 2px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.3);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(251, 191, 36, 0);
    }
}

/* Donation prompt */
.donation-card {
    max-width: 340px;
    text-align: center;
    padding: 32px 24px;
}

.donation-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Settings */
.settings-group {
    margin-bottom: 24px;
}

.settings-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    margin-bottom: 8px;
}

/* Toggle switch */
.toggle {
    width: 50px;
    height: 28px;
    background: var(--bg-warm);
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: background var(--transition-normal);
}

.toggle.active {
    background: var(--amber-500);
}

.toggle::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: left var(--transition-normal);
}

.toggle.active::after {
    left: 25px;
}

/* Slider */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--border-glass);
    border-radius: 2px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--amber-400);
    border-radius: 50%;
    cursor: pointer;
}

/* Utilities */
.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

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

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 1rem;
}

/* Mobile optimizations */
@media (max-width: 400px) {
    .activity-circle {
        width: 160px;
        height: 160px;
    }

    .activity-view .phrase {
        font-size: 1.25rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

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

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

/* Disclaimer */
.disclaimer {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    padding: 16px;
    line-height: 1.5;
}
