/* ==========================================================================
   WTD Mindfulness Tools - Modern App Design
   Beautiful, clean interface inspired by top mindfulness apps
   ========================================================================== */

/* Fullscreen Mode - Hide all headers and nav */
body.wtd-fullscreen-mindfulness-home #masthead,
body.wtd-fullscreen-mindfulness-home .site-header,
body.wtd-fullscreen-mindfulness-home header,
body.wtd-fullscreen-mindfulness-home .header,
body.wtd-fullscreen-mindfulness-home nav,
body.wtd-fullscreen-mindfulness-home .navigation,
body.wtd-fullscreen-mindfulness-home .wtd-header {
    display: none !important;
}

body.wtd-fullscreen-mindfulness-home {
    overflow-x: hidden;
}

/* Root Variables */
:root {
    --mindfulness-primary: #667eea;
    --mindfulness-primary-light: #764ba2;
    --mindfulness-secondary: #f093fb;
    --mindfulness-accent: #ffecd2;
    --mindfulness-success: #48bb78;
    --mindfulness-warning: #ed8936;
    --mindfulness-danger: #f56565;
    --mindfulness-dark: #2d3748;
    --mindfulness-gray: #718096;
    --mindfulness-light-gray: #f7fafc;
    --mindfulness-white: #ffffff;
    --mindfulness-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --mindfulness-radius: 20px;
    --mindfulness-radius-small: 12px;
    --mindfulness-spacing: 24px;
}

/* Color Theme Variables */
:root {
    --color-blue: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --color-teal: linear-gradient(135deg, #4fd1c7 0%, #81e6d9 100%);
    --color-orange: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    --color-red: linear-gradient(135deg, #ff6b6b 0%, #ffa8a8 100%);
    --color-purple: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --color-green: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    --color-amber: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}



/* Base Styles */
.mindfulness-app,
.mindfulness-session,
.mindfulness-login {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--mindfulness-dark);
    max-width: 800px;
    margin: 0 auto;
    padding: var(--mindfulness-spacing);
}

/* Exercise Container inside mindfulness-app - Safari compatibility */
.mindfulness-app .wtd-exercise-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Hide site header when in exercise mode */
.exercise-mode ~ #masthead,
.exercise-mode ~ .site-header,
body:has(.exercise-mode) #masthead,
body:has(.exercise-mode) .site-header,
body:has(.exercise-mode) header,
body:has(.exercise-mode) .header {
    display: none !important;
}

/* Hero Section */
.mindfulness-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: var(--mindfulness-radius);
    box-shadow: var(--mindfulness-shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

/* Exercise Mode Styling */
.mindfulness-hero.exercise-mode {
    padding: 30px 20px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.mindfulness-hero.exercise-mode.concentration-mode {
    background: #000000 !important;
    background-color: #000000 !important;
    background-image: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
    filter: none !important;
}

.mindfulness-hero.exercise-mode.concentration-mode::before {
    display: none !important;
}

.mindfulness-hero.exercise-mode.concentration-mode .exercise-title {
    color: #c9b896;
}

.mindfulness-hero.exercise-mode.concentration-mode .exercise-subtitle {
    color: #a39588;
}

.mindfulness-hero.exercise-mode.observation-mode {
    background: linear-gradient(135deg, #d6e7f3 0%, #7ba8c5 100%) !important;
    opacity: 0.9 !important;
    box-shadow: none !important;
    filter: none !important;
}

.mindfulness-hero.exercise-mode.observation-mode::before {
    display: none !important;
}

.mindfulness-hero.exercise-mode.observation-mode .exercise-title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mindfulness-hero.exercise-mode.observation-mode .exercise-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mindfulness-hero.exercise-mode.enlightenment-mode {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) !important;
    background-color: #a8edea !important;
    background-image: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
    filter: none !important;
}

.mindfulness-hero.exercise-mode.enlightenment-mode::before {
    display: none !important;
}

.mindfulness-hero.exercise-mode.enlightenment-mode .exercise-title {
    color: #2d3748;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.mindfulness-hero.exercise-mode.enlightenment-mode .exercise-subtitle {
    color: rgba(45, 55, 72, 0.8);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.mindfulness-hero.loading-exercise {
    opacity: 0.8;
    pointer-events: none;
}

.mindfulness-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0 0 8px 0;
    color: var(--mindfulness-dark);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin: 0 0 30px 0;
    color: var(--mindfulness-gray);
    font-weight: 400;
}

/* Simple Today Summary */
.today-summary {
    margin: 20px 0;
    text-align: center;
}

.summary-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Quick Action Button */
.quick-action {
    margin-top: 30px;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #f0ece8;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 200;
    font-family: 'Poppins';
    text-transform: uppercase;
    color: var(--mindfulness-dark);
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.quick-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-action-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.quick-action-duration {
    font-size: 0.875rem;
    color: var(--mindfulness-gray);
    font-weight: 400;
}

/* Intervention Grid - Circular Floating Cards */
.intervention-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 32px 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

/* Intervention Cards - Glass Morphism with Unique Gradients */
.intervention-card {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: hidden;
    animation: gentleFloat 8s ease-in-out infinite;
    /* Glass morphism base */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

/* Unique gradients for each intervention type */
.intervention-card[data-intervention="quick-calm"] {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
}

.intervention-card[data-intervention="energy-boost"] {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.3) 0%, rgba(254, 215, 170, 0.3) 100%);
}

.intervention-card[data-intervention="stress-release"] {
    background: linear-gradient(135deg, rgba(110, 231, 183, 0.3) 0%, rgba(59, 178, 184, 0.3) 100%);
}

.intervention-card[data-intervention="flame-focus"] {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(255, 195, 113, 0.3) 100%);
}

.intervention-card[data-intervention="present-moment"] {
    background: linear-gradient(135deg, rgba(129, 230, 217, 0.3) 0%, rgba(79, 172, 254, 0.3) 100%);
}

.intervention-card[data-intervention="thought-noting"] {
    background: linear-gradient(135deg, rgba(155, 81, 224, 0.3) 0%, rgba(195, 143, 252, 0.3) 100%);
}

.intervention-card[data-intervention="enlighten-me"] {
    background: linear-gradient(135deg, rgba(252, 211, 77, 0.3) 0%, rgba(241, 196, 15, 0.3) 100%);
}

/* Stress buster gradients */
.intervention-card[data-intervention="bring-me-back"] {
    background: linear-gradient(135deg, rgba(244, 164, 96, 0.3) 0%, rgba(70, 130, 180, 0.3) 100%);
}

.intervention-card[data-intervention="muscle-release"] {
    background: linear-gradient(135deg, rgba(74, 88, 153, 0.3) 0%, rgba(230, 197, 219, 0.3) 100%);
}

.intervention-card[data-intervention="safe-space"] {
    background: linear-gradient(135deg, rgba(230, 230, 250, 0.3) 0%, rgba(75, 0, 130, 0.3) 100%);
}

.intervention-card[data-intervention="sound-bath"] {
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.3) 0%, rgba(25, 25, 112, 0.3) 100%);
}

/* Intervention Sections */
.intervention-section {
    margin-bottom: 60px;
}

.intervention-section:last-child {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 8px;
    color: var(--mindfulness-dark);
    text-align: center;
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

/* Stress Buster Cards - Different from circular boosters */
.stress-busters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.stress-buster-card {
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 20px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stress-buster-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stress-buster-card .card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    margin-bottom: 15px;
}

.stress-buster-card .card-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.stress-buster-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--mindfulness-dark);
}

.stress-buster-card .card-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.stress-buster-card .card-description {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.4;
}

/* Color variations for stress busters */
.stress-buster-card.earth {
    background: linear-gradient(135deg, #e8d5b7 0%, #c9a878 100%);
}

.stress-buster-card.lavender {
    background: linear-gradient(135deg, #e6e6fa 0%, #d8b5ff 100%);
}

.stress-buster-card.ocean {
    background: linear-gradient(135deg, #e0f2f1 0%, #80deea 100%);
}

.stress-buster-card.purple {
    background: linear-gradient(135deg, #f3e5f5 0%, #ce93d8 100%);
}

/* Remove color gradients entirely */
.intervention-card::before {
    display: none;
}

/* Much smaller floating animations to stay within bounds */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateX(0px) translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateX(2px) translateY(-3px) rotate(0.2deg);
    }
    50% {
        transform: translateX(-1px) translateY(-2px) rotate(0deg);
    }
    75% {
        transform: translateX(-2px) translateY(-4px) rotate(-0.2deg);
    }
}

@keyframes gentleFloat2 {
    0%, 100% {
        transform: translateX(0px) translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateX(-2px) translateY(-2px) rotate(-0.1deg);
    }
    50% {
        transform: translateX(1px) translateY(-3px) rotate(0.1deg);
    }
    75% {
        transform: translateX(1px) translateY(-1px) rotate(0deg);
    }
}

@keyframes gentleFloat3 {
    0%, 100% {
        transform: translateX(0px) translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateX(1px) translateY(-2px) rotate(0.15deg);
    }
    50% {
        transform: translateX(-2px) translateY(-1px) rotate(-0.1deg);
    }
    75% {
        transform: translateX(2px) translateY(-3px) rotate(0.1deg);
    }
}

@keyframes gentleFloat4 {
    0%, 100% {
        transform: translateX(0px) translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateX(-1px) translateY(-3px) rotate(-0.15deg);
    }
    50% {
        transform: translateX(2px) translateY(-1px) rotate(0.1deg);
    }
    75% {
        transform: translateX(-1px) translateY(-2px) rotate(-0.05deg);
    }
}

/* Assign different animations to each card */
.intervention-card:nth-child(1) { 
    animation: gentleFloat 8s ease-in-out infinite;
    animation-delay: 0s; 
}
.intervention-card:nth-child(2) { 
    animation: gentleFloat2 9s ease-in-out infinite;
    animation-delay: 2s; 
}
.intervention-card:nth-child(3) { 
    animation: gentleFloat3 7s ease-in-out infinite;
    animation-delay: 4s; 
}
.intervention-card:nth-child(4) { 
    animation: gentleFloat4 8.5s ease-in-out infinite;
    animation-delay: 1s; 
}
.intervention-card:nth-child(5) { 
    animation: gentleFloat 7.5s ease-in-out infinite;
    animation-delay: 3s; 
}
.intervention-card:nth-child(6) { 
    animation: gentleFloat2 8.2s ease-in-out infinite;
    animation-delay: 5s; 
}
.intervention-card:nth-child(7) { 
    animation: gentleFloat3 9.2s ease-in-out infinite;
    animation-delay: 1.5s; 
}

/* Enhanced hover interaction for glass morphism bubbles */
.intervention-card:hover {
    transform: translateY(-8px) scale(1.08) rotate(2deg);
    box-shadow: 0 20px 40px rgba(31, 38, 135, 0.25),
                0 0 80px rgba(255, 255, 255, 0.5) inset;
    animation-play-state: paused;
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* Add glass shimmer effect on hover */
.intervention-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 70%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.intervention-card:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* Inner glow for depth */
.intervention-card::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 70%
    );
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.intervention-card:hover::before {
    opacity: 0.8;
}

.intervention-card:active {
    transform: translateY(-2px) scale(1.02);
    transition: transform 0.1s ease;
}

.card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.card-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--mindfulness-dark);
    letter-spacing: -0.5px;
    font-family: 'Poppins';
    letter-spacing: 1px;
    line-height: 1.2;
}

.card-subtitle {
    font-size: 0.7rem;
    color: var(--mindfulness-gray);
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
    font-family: 'Poppins';
    font-weight: 200;
    color: black;
}

.card-description {
    display: none;
}

/* Recent Sessions */
.recent-sessions {
    margin-top: 40px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.recent-sessions h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--mindfulness-dark);
    text-transform: lowercase;
}

.session-summary {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

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

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mindfulness-dark);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--mindfulness-gray);
    margin-top: 4px;
    text-transform: lowercase;
}

/* Exercise Interface in Hero */
.exercise-header {
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    margin-bottom: 30px;
    gap: 16px;
}

.exercise-info {
    text-align: center;
    justify-self: center;
}

.exercise-title {
    font-size: 2rem;
    font-weight: 300;
    margin: 0 0 4px 0;
    color: var(--mindfulness-dark);
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

.exercise-subtitle {
    font-size: 0.9rem;
    margin: 0;
    color: var(--mindfulness-gray);
    font-family: Poppins;
    font-weight: 100;
    text-transform: uppercase;
}

.back-btn {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    pointer-events: auto !important;
    user-select: none;
    outline: none;
    margin-top: 6px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.back-icon {
    font-size: 1.25rem;
    color: var(--mindfulness-dark);
    font-weight: bold;
}

.session-info {
    text-align: left;
    flex: 1;
}

.session-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    text-transform: lowercase;
}

.session-subtitle {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

/* Exercise Visualization in Hero */
.exercise-visualization {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    flex: 1;
    width: 100%;
}


/* Breathing Orb */
.breathing-orb {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.orb-outer,
.orb-inner {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orb-outer {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    animation: pulse-outer 4s ease-in-out infinite;
}

.orb-inner {
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.2);
    animation: pulse-inner 4s ease-in-out infinite;
}

.orb-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: pulse-core 4s ease-in-out infinite;
}

.breath-instruction {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 4px;
    opacity: 0.9;
}

.breath-count {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
}

/* Discrete Progress Border */
.exercise-progress-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.progress-fill-bar {
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.7) 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 0.7) 100%);
    width: 0%;
    transition: width 0.15s ease-out;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    will-change: width;
    backface-visibility: hidden;
    transform: translateZ(0);
    border-radius: 0 0 20px 0;
}

@keyframes progress-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

/* Exercise Controls in Hero */
.exercise-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 25px;
    color: var(--mindfulness-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-icon {
    font-size: 1rem;
}

.btn-text {
    font-size: 0.875rem;
    text-transform: lowercase;
}

/* Login Interface */
.mindfulness-login {
    text-align: center;
    padding: 60px 20px;
}

.login-content {
    background: var(--mindfulness-white);
    border-radius: var(--mindfulness-radius);
    padding: 40px;
    box-shadow: var(--mindfulness-shadow);
    max-width: 400px;
    margin: 0 auto;
}

.login-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--mindfulness-dark);
    text-transform: lowercase;
}

.login-content p {
    color: var(--mindfulness-gray);
    margin: 0 0 24px 0;
}

.login-btn {
    display: inline-block;
    background: var(--mindfulness-primary);
    color: var(--mindfulness-white);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: lowercase;
}

.login-btn:hover {
    background: var(--mindfulness-primary-light);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--mindfulness-white);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-outer {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

@keyframes pulse-inner {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

@keyframes pulse-core {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* Breathing Animations */
.breathing-orb.inhale .orb-outer { animation: breathe-in-outer 4s ease-in-out infinite; }
.breathing-orb.inhale .orb-inner { animation: breathe-in-inner 4s ease-in-out infinite; }
.breathing-orb.inhale .orb-core { animation: breathe-in-core 4s ease-in-out infinite; }

.breathing-orb.exhale .orb-outer { animation: breathe-out-outer 4s ease-in-out infinite; }
.breathing-orb.exhale .orb-inner { animation: breathe-out-inner 4s ease-in-out infinite; }
.breathing-orb.exhale .orb-core { animation: breathe-out-core 4s ease-in-out infinite; }

/* Hold States - Steady and Still */
.breathing-orb.hold1 .orb-outer { 
    animation: none; 
    transform: translate(-50%, -50%) scale(1.3); 
    opacity: 1; 
}
.breathing-orb.hold1 .orb-inner { 
    animation: none; 
    transform: translate(-50%, -50%) scale(1.4); 
    opacity: 1; 
}
.breathing-orb.hold1 .orb-core { 
    animation: none; 
    transform: translate(-50%, -50%) scale(1.5); 
    opacity: 1; 
}

.breathing-orb.hold2 .orb-outer { 
    animation: none; 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 0.7; 
}
.breathing-orb.hold2 .orb-inner { 
    animation: none; 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 0.8; 
}
.breathing-orb.hold2 .orb-core { 
    animation: none; 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 0.9; 
}

@keyframes breathe-in-outer {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

@keyframes breathe-in-inner {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; }
}

@keyframes breathe-in-core {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
}

@keyframes breathe-out-outer {
    0% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
}

@keyframes breathe-out-inner {
    0% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
}

@keyframes breathe-out-core {
    0% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
}

/* Stunning Flame Visualization */
.concentration-flame {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    min-height: 350px;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.flame-container {
    position: relative;
    width: 120px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.flame-video {
    width: 120px;
    height: 180px;
    object-fit: cover;
}

/* Simple Elegant Flame Animations */

@keyframes ambient-glow {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.05);
    }
}



.flame-instruction {
    text-align: center;
    color: var(--mindfulness-gray);
}

.instruction-text {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--mindfulness-dark);
}

.instruction-subtitle {
    display: block;
    font-size: 0.875rem;
    opacity: 0.7;
    font-style: italic;
}

/* Present Moment Button Interface */
.presence-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    min-height: 350px;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.presence-button-container + .exercise-progress-border {
    display: block;
}

.presence-button-container + .exercise-progress-border + .exercise-controls {
    display: none;
}

.presence-button {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
     background: linear-gradient(135deg, #fca486 0%, #fedbaa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 32px rgb(97 13 0 / 30%);
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.presence-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgb(97 13 0 / 40%);
}

.presence-button:active {
    transform: scale(0.95);
}

.presence-button.pressing {
    background: linear-gradient(135deg, #e8936e 0%, #dfc593 100%);
    box-shadow: 0 4px 16px rgb(97 13 0 / 40%);
    transform: scale(0.98);
}

.button-content {
    text-align: center;
    z-index: 2;
}

.button-text {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.button-subtext {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.presence-button.paused {
    background: linear-gradient(135deg, #a0a0a0 0%, #b8b8b8 100%);
    box-shadow: 0 4px 16px rgba(160, 160, 160, 0.3);
}

.presence-button.paused .button-text {
    color: rgba(255, 255, 255, 0.8);
}

.presence-button.paused .button-subtext {
    color: rgba(255, 255, 255, 0.6);
}

.presence-button.completed {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    box-shadow: 0 8px 32px rgba(132, 250, 176, 0.3);
    transform: scale(1.05);
}

.presence-button.completed .button-text {
    color: white;
}

.presence-button.completed .button-subtext {
    color: rgba(255, 255, 255, 0.9);
}

.presence-instruction {
    text-align: center;
    color: var(--mindfulness-gray);
}

.presence-instruction .instruction-text {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--mindfulness-dark);
}

.presence-instruction .instruction-subtitle {
    display: block;
    font-size: 0.875rem;
    opacity: 0.7;
    font-style: italic;
}

/* Observation Exercise Styles */
.observation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 20px;
    text-align: center;
}

.observation-button {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, #367aa6 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 32px rgb(255 255 255), 0 4px 16px rgb(255 255 255 / 68%), inset 0 2px 8px rgb(255 255 255 / 59%), inset 0 -2px 8px rgb(135 11 11 / 10%);
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    border: none;
    outline: none;
    z-index: 2;
}

.observation-button:hover {
    transform: scale(1.05);
    box-shadow: 
        0 12px 40px rgba(102, 126, 234, 0.5),
        0 8px 24px rgba(118, 75, 162, 0.4),
        inset 0 2px 8px rgba(255, 255, 255, 0.3),
        inset 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.observation-button:active {
    transform: scale(0.95);
}

.observation-button.pressed {
    background: linear-gradient(135deg, #5ab6d8d2 0%, #80d5ff 100%);
    box-shadow: 
        0 4px 16px rgba(90, 103, 216, 0.4),
        0 2px 8px rgba(107, 70, 193, 0.3),
        inset 0 2px 8px rgba(255, 255, 255, 0.15),
        inset 0 -2px 8px rgba(0, 0, 0, 0.15);
    transform: scale(0.98);
}

.observation-instruction {
    max-width: 300px;
    text-align: center;
}

.observation-instruction .instruction-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: block;
}

.observation-instruction .instruction-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.4;
}

.thought-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.counter-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.observation-notification {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #667eea;
    animation: slideIn 0.3s ease-out;
}

.notification-text {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

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

.control-btn.got-it-btn {
    position: relative;
    overflow: hidden;
}

.btn-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0 0 8px 8px;
}

.btn-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.8));
    border-radius: 0 0 8px 8px;
    transition: width 0.1s linear;
}

/* Enlightenment Exercise Styles */
.enlightenment-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 20px;
    padding-top: 80px; /* Space for quotes above */
    text-align: center;
    position: relative;
    min-height: 400px;
    overflow: visible;
}

.iceberg-container {
    position: relative;
    width: 200px;
    height: 240px;
    cursor: pointer;
    user-select: none;
    perspective: 1000px;
}

.iceberg-piece {
    position: absolute;
    left: 50%;
    border-radius: 12px;
    background: linear-gradient(135deg, #a8edea 0%, #b8f5f2 50%, #c8f7f5 100%);
    box-shadow: 
        0 8px 32px rgba(168, 237, 234, 0.4),
        inset 0 2px 8px rgba(255, 255, 255, 0.3),
        inset 0 -2px 8px rgba(168, 237, 234, 0.2);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center bottom;
}

.iceberg-piece.top {
    width: 120px;
    height: 60px;
    top: 0;
    transform: translateX(-50%);
    border-radius: 60px 60px 12px 12px;
}

.iceberg-piece.middle {
    width: 160px;
    height: 80px;
    top: 50px;
    transform: translateX(-50%);
}

.iceberg-piece.bottom {
    width: 200px;
    height: 110px;
    top: 120px;
    transform: translateX(-50%);
    border-radius: 12px 12px 40px 40px;
}

.ice-surface {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0.4) 100%);
    border-radius: inherit;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.iceberg-container:hover .iceberg-piece {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 
        0 12px 40px rgba(168, 237, 234, 0.5),
        inset 0 2px 8px rgba(255, 255, 255, 0.4),
        inset 0 -2px 8px rgba(168, 237, 234, 0.3);
}

.iceberg-piece.broken {
    animation: iceBreak 1s ease-out forwards;
}

@keyframes iceBreak {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(1.1) rotateZ(5deg);
        opacity: 0.8;
    }
    100% {
        transform: translateX(-150%) scale(0.3) rotateZ(45deg) translateY(100px);
        opacity: 0;
    }
}

.wtd-mindfulness-wisdom-quote {
    width: 85vw;
    height: auto;
    max-width: 710px;
    max-height: 80vh;
    padding: 32px 40px;
    background: rgb(255 255 255 / 98%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(168, 237, 234, 0.3);
    animation: quoteReveal 0.8s ease-out;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    min-height: auto;
    display: none;
    font-family: Cormorant;
}

.wtd-mindfulness-quote-text {
    font-size: 1.25rem;
    font-style: italic;
    color: #2d3748;
    line-height: 1.6;
    margin: 0 0 16px 0;
    position: relative;
}

.wtd-mindfulness-quote-author {
    font-size: 0.95rem;
    color: #718096;
    font-weight: 500;
    font-style: normal;
}

.wtd-mindfulness-quote-author::before {
    content: '— ';
    color: #a8edea;
}

/* Quote Close Button */
.wtd-mindfulness-quote-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    z-index: 10;
}

.wtd-mindfulness-quote-close-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #333;
    transform: scale(1.1);
}

/* Quote Progress Bar */
.wtd-mindfulness-quote-progress-bar {
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
    height: 4px;
    background: rgba(168, 237, 234, 0.2);
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.wtd-mindfulness-quote-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a8edea, #64b5f6);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 0 0 16px 16px;
}

/* Quote animation */
@keyframes quoteReveal {
    0% {
        opacity: 0;
        transform: translate(-50%, -45%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Exercise Instruction Card - Styled like Wisdom Quote */
.exercise-instruction-card {
    width: 85vw;
    max-width: 600px;
    padding: 32px 40px;
    background: rgb(255 255 255 / 98%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(168, 237, 234, 0.3);
    animation: quoteReveal 0.8s ease-out;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1500;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.instruction-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 20px 0;
    text-align: center;
    font-family: 'biennale';
    text-transform: lowercase;
    letter-spacing: 1px;
}

.instruction-content {
    font-size: 1.6rem;
    color: #4a5568;
    line-height: 1.4;
    margin: 0 0 24px 0;
    font-family: 'Cormorant';
}

.instruction-content ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.instruction-content li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    font-size: 1.2rem;
    font-family: 'Poppins';
    font-weight: 300;
}

.instruction-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #a8edea;
    font-weight: bold;
}

/* Got It Button */
.instruction-got-it-btn {
    width: 40%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border: none;
    border-radius: 25px;
    color: #2d3748;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.instruction-got-it-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 237, 234, 0.3);
}

/* Help Button */
.exercise-help-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(168, 237, 234, 0.5);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #4a5568;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    z-index: 100;
}

.exercise-help-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

/* Back Button - Same style as help button but on left */
.exercise-back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.exercise-back-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.exercise-back-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .exercise-back-btn {
        top: 10px;
        left: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* Mobile adjustments for instruction card */
@media (max-width: 768px) {
    .exercise-instruction-card {
        width: 90vw;
        padding: 24px 20px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .instruction-title {
        font-size: 1.3rem;
    }
    
    .instruction-content {
        font-size: 1rem;
    }
    
    .exercise-help-btn {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Responsive adjustments for enlightenment quotes */


/* Responsive Design */




.exercise-loader::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--mindfulness-dark);
    border-radius: 50%;
    border-top-color: transparent;
    animation: loader-spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

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

/* ============================================
   CLEAN MOBILE RESPONSIVE CSS - REWRITTEN
   ============================================ */

/* Mobile First: Default styles are mobile-friendly */

/* Tablets (768px and below) */
@media screen and (max-width: 768px) {
    /* Make intervention grid 3 columns on mobile */
    .intervention-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
        max-width: 320px !important;
        margin: 20px auto !important;
        padding: 16px !important;
    }
    
    /* Adjust intervention cards for mobile - keep them circular */
    .intervention-card {
        width: 90px !important;
        height: 90px !important;
        padding: 12px !important;
    }
    
    /* Stress busters section - 2 cards per row */
    .stress-busters-section .intervention-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        max-width: 100% !important;
        padding: 20px !important;
    }
    
    .stress-busters-section .intervention-card {
        width: 160px !important;
        height: 160px !important;
        border-radius: 20px !important;
        padding: 25px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    /* Scale down card icons */
    .card-icon img {
        width: 20px !important;
        height: 20px !important;
    }
    
    /* Adjust text sizes */
    .card-title {
        font-size: 0.75rem !important;
        line-height: 1.1 !important;
        margin: 4px 0 2px 0 !important;
    }
    
    .card-subtitle {
        display: none !important;
    }
    
    /* Hide card descriptions on mobile */
    .card-description {
        display: none !important;
    }
    
    /* Adjust hero section */
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    /* Quick action button */
    .quick-action-btn {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
    
    /* Exercise visualization adjustments */
    .breathing-orb {
        width: 180px !important;
        height: 180px !important;
    }
    
    .orb-outer {
        width: 180px !important;
        height: 180px !important;
    }
    
    .orb-inner {
        width: 140px !important;
        height: 140px !important;
    }
    
    .orb-core {
        width: 90px !important;
        height: 90px !important;
    }

    /* Move exercise controls up on mobile to ensure visibility */
    .exercise-controls {
        position: fixed !important;
        bottom: 80px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 1000 !important;
        width: auto !important;
        margin: 0 !important;
        padding: 10px !important;
        border-radius: 30px !important;
    }
    
    /* Also adjust enlightenment controls */
    .enlightenment-controls {
        position: fixed !important;
        bottom: 80px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 1000 !important;
        width: auto !important;
        margin: 0 !important;
        padding: 10px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border-radius: 30px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Ensure exercise visualization doesn't overlap controls */
    .exercise-visualization {
        margin-bottom: 150px !important;
    }
    
    /* Account for iPhone safe area */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .exercise-controls,
        .enlightenment-controls {
            bottom: calc(80px + env(safe-area-inset-bottom)) !important;
        }
    }
}

/* Small phones (480px and below) */
@media screen and (max-width: 480px) {
    /* Even smaller intervention grid */
    .intervention-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        max-width: 280px !important;
        margin: 16px auto !important;
        padding: 12px !important;
    }
    
    .intervention-card {
        width: 80px !important;
        height: 80px !important;
        padding: 8px !important;
    }
    
    /* Stress busters section - 2 cards per row, square layout */
    .stress-busters-section .intervention-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        max-width: 100% !important;
        padding: 20px !important;
    }
    
    .stress-busters-section .intervention-card {
        width: 140px !important;
        height: 140px !important;
        border-radius: 20px !important;
        padding: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .card-icon img {
        width: 16px !important;
        height: 16px !important;
    }
    
    .card-title {
        font-size: 0.7rem !important;
    }
    
    .card-subtitle {
        font-size: 0.55rem !important;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .breathing-orb {
        width: 160px !important;
        height: 160px !important;
    }
    
    .orb-outer {
        width: 160px !important;
        height: 160px !important;
    }
    
    .orb-inner {
        width: 120px !important;
        height: 120px !important;
    }
    
    .orb-core {
        width: 80px !important;
        height: 80px !important;
    }
}

/* Enlightenment Intervention Styles */
.enlightenment-instruction {
    max-width: 300px;
    text-align: center;
}

/* === STRESS BUSTER INTERFACES === */

/* 5-4-3-2-1 Sensory Grounding */
.sensory-grounding-container {
    display: flex;
        flex-direction: column;
        align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.sensory-progress {
    margin-bottom: 40px;
}

.progress-dots {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.progress-dots .dot {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.progress-dots .dot.active {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.progress-dots .dot.completed {
    background: #4caf50;
    color: white;
}

.sensory-prompt {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.prompt-title {
        font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
}

.prompt-instruction {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
}

.sensory-counter {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: #333;
}

.counter-current {
    color: #e8d5b7;
    font-weight: 600;
}

.sensory-tap-btn {
    background: linear-gradient(135deg, #e8d5b7 0%, #c9a878 100%);
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.1rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
        margin: 0 auto;
    }

.sensory-tap-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 168, 120, 0.3);
}

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

/* Progressive Muscle Relaxation - Minimalist Redesign */
.pmr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
        padding: 20px;
    }

.pmr-timer-line {
    width: 120px;
    height: 2px;
    margin: 0 auto 25px;
    position: relative;
}

.timer-line-track {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 1px;
}

.timer-line-progress {
    position: absolute;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 1px;
    width: 0%;
    transition: width 1s linear, background-color 0.3s ease;
    transform-origin: left;
}

.timer-line-progress.relax {
    background: rgba(0, 0, 0, 0.1);
}

.pmr-body-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
}

.pmr-figure {
    position: relative;
    width: 180px;
}

.pmr-body-svg {
    width: 100%;
    height: auto;
    opacity: 0.15;
    transition: opacity 0.3s ease;
    filter: contrast(0.8) brightness(1.1);
}

.muscle-highlight {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(8px);
}

.muscle-highlight.active {
    opacity: 1;
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { 
        transform: scale(1); 
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% { 
        transform: scale(1.12); 
        background: rgba(255, 255, 255, 0.25);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    }
}

.muscle-highlight.tensed {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.muscle-highlight.relaxed {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.pmr-instruction-section {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 30px;
}

.pmr-instruction-text {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin: 0;
    transition: all 0.3s ease;
    font-family: 'Poppins';
    font-weight: 200;
}

.pmr-instruction-text.tense {
    color: #333;
     font-family: 'Poppins';
    font-weight: 300;
}

.pmr-instruction-text.relax {
    color: #508707b8;
    font-family: 'Poppins';
    font-weight: 200;

.pmr-controls {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.pmr-btn {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 8px 24px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.pmr-btn.primary {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(0, 0, 0, 0.8);
}

.pmr-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.pmr-progress {
    width: 100%;
    max-width: 600px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.progress-step {
    position: relative;
    font-size: 0.85rem;
    color: #999;
    padding-top: 25px;
    transition: all 0.3s ease;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.progress-step.active {
    color: #d8b5ff;
    font-weight: 500;
}

.progress-step.active::before {
    width: 12px;
    height: 12px;
    background: #d8b5ff;
    top: 6px;
}

.progress-step.completed {
    color: #4caf50;
}

.progress-step.completed::before {
    background: #4caf50;
}

/* Visualization Journey */
.visualization-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

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

.scene-selector h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
}

.scene-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.scene-option {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 15px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scene-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.scene-icon {
    font-size: 2.5rem;
}

.scene-name {
    font-size: 1rem;
    color: #333;
}

.visualization-journey {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.journey-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    opacity: 0.7;
}

.journey-backdrop.beach {
    background: linear-gradient(to bottom, #87CEEB 0%, #98D8E8 50%, #F0E68C 100%);
}

.journey-backdrop.forest {
    background: linear-gradient(to bottom, #228B22 0%, #32CD32 50%, #8B4513 100%);
}

.journey-backdrop.mountain {
    background: linear-gradient(to bottom, #4682B4 0%, #87CEEB 50%, #A9A9A9 100%);
}

.journey-backdrop.garden {
    background: linear-gradient(to bottom, #FFB6C1 0%, #98FB98 50%, #8FBC8F 100%);
}

.journey-text {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    text-align: center;
    z-index: 1;
}

.journey-prompt {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
}

.journey-continue {
    margin-top: 30px;
    background: linear-gradient(135deg, #80deea 0%, #42a5f5 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Sound Meditation */
.sound-meditation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.sound-selector h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.sound-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    max-width: 400px;
}

.sound-option {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 15px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
        flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sound-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.sound-icon {
    font-size: 2.5rem;
}

.sound-name {
    font-size: 1rem;
    color: #333;
}

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

.sound-visualization {
    margin-bottom: 40px;
}

.wave-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(206, 147, 216, 0.4) 0%, transparent 70%);
    animation: soundWave 3s ease-in-out infinite;
}

.wave.wave2 {
    animation-delay: 1s;
}

.wave.wave3 {
    animation-delay: 2s;
}

@keyframes soundWave {
    0% {
        width: 100px;
        height: 100px;
        opacity: 0.8;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.sound-controls {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
}

.sound-title {
        font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
}

.sound-instruction {
    font-size: 1rem;
    color: #666;
}

/* Mobile adjustments for stress busters */
@media (max-width: 768px) {
    .scene-options,
    .sound-options {
        grid-template-columns: 1fr;
        max-width: 250px;
    }
    
    /* PMR Mobile Adjustments */
    .pmr-main {
        flex-direction: column;
        gap: 40px;
    }
    
    .pmr-figure {
        width: 150px;
    }
    
    .status-title {
        font-size: 1.5rem;
    }
    
    .pmr-timer-circle {
        width: 100px;
        height: 100px;
    }
    
    .timer-text {
        font-size: 1.5rem;
    }
    
    .progress-step {
        font-size: 0.75rem;
        padding-top: 20px;
    }
    
    .progress-step:nth-child(even) {
        padding-top: 35px;
    }
}

.enlightenment-instruction .instruction-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: block;
}

.enlightenment-instruction .instruction-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.4;
}

.enlightenment-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    gap: 16px;
    z-index: 50;
}

/* Back button */
.exercise-back-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Choice Screen - Beautiful immersive design */
.intervention-choice-screen {
    max-width: 800px;
        margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.choice-title {
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.choice-subtitle {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 40px;
    font-weight: 300;
}

.choice-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.choice-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.08);
    position: relative;
    overflow: hidden;
}

.choice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.choice-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(31, 38, 135, 0.15);
}

.choice-card:hover::before {
    opacity: 1;
}

.choice-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    filter: grayscale(20%);
}

.choice-name {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: #2d3748;
}

.choice-description {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 15px;
}

.choice-count {
    font-size: 0.85rem;
    color: #a0aec0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Section back button */
.section-back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #4a5568;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .choice-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .choice-card {
        padding: 30px 20px;
    }
    
    .choice-title {
        font-size: 2rem;
    }
    
    .choice-icon {
        font-size: 2.5rem;
    }
    
    .exercise-back-btn {
        top: 10px;
        left: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* Choice Screen Buttons */
.intervention-choice-screen .choice-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.intervention-choice-screen .choice-button {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(102, 126, 234, 0.9) !important;
    color: white !important;
    border: none !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    display: inline-block !important;
    text-decoration: none !important;
}

.intervention-choice-screen .choice-button:hover {
    background: rgba(118, 75, 162, 0.9) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4) !important;
}

.intervention-choice-screen .choice-button:active {
    transform: translateY(0);
}

}

/* ======================================
   ESCAPE WITHIN - PORTAL INTERFACE
   OS 13-Jan - Stunning visualization redesign
   ====================================== */

/* Scene Selector Container */
.visualization-container {
    overflow: visible !important; /* Ensure labels aren't cut off */
}

.visualization-container .scene-selector {
    text-align: center;
    padding: 40px 20px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
}

.scene-selector-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    color: #333;
    text-transform: lowercase;
}

.scene-selector-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 60px;
    font-weight: 300;
    letter-spacing: 0.03em;
}

/* Portals Container */
.wtd-portals-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Portal Grid */
.wtd-portals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px; /* Extra space for orb navigator */
    padding-bottom: 40px; /* Extra padding for labels */
}

/* Individual Portal */
.wtd-portal {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 40px; /* More space for labels */
    position: relative;
}

.wtd-portal-frame {
    position: relative;
    width: 100%;
    padding-bottom: 140%; /* Tall rectangular portals */
    overflow: hidden;
    border-radius: 120px 120px 0 0; /* Arch shape */
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wtd-portal-inner {
    position: absolute;
    inset: 4px;
    border-radius: 116px 116px 0 0;
    overflow: hidden;
    background: #000;
}

/* Portal Scenes */
.wtd-portal-scene {
    position: absolute;
    inset: 0;
    background: #000;
    overflow: hidden;
}

/* Scene-specific backgrounds */
.wtd-portal[data-scene="beach"] .wtd-portal-scene {
    background: linear-gradient(to bottom, #87CEEB 0%, #FFE4B5 60%, #F4A460 100%);
}

.wtd-portal[data-scene="forest"] .wtd-portal-scene {
    background: linear-gradient(to bottom, #1a3a1a 0%, #2d5a2d 50%, #0f1f0f 100%);
}

.wtd-portal[data-scene="mountain"] .wtd-portal-scene {
    background: linear-gradient(to bottom, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
}

.wtd-portal[data-scene="garden"] .wtd-portal-scene {
    background: linear-gradient(to bottom, #fff0f5 0%, #ffe4e1 50%, #ffc0cb 100%);
}

/* Portal Veil (creates depth) */
.wtd-portal-veil {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

/* Portal Labels */
.wtd-portal-label {
    text-align: center;
    padding: 15px 5px;
    margin-top: 10px;
}

.wtd-portal-label h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 5px 0;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.wtd-portal-label p {
    font-size: 0.9rem;
    color: #555;
    font-weight: 400;
    margin: 0;
    opacity: 0.8;
}

/* Portal Hover States */
.wtd-portal:hover {
    transform: translateY(-10px);
}

.wtd-portal:hover .wtd-portal-veil {
    opacity: 0.3;
}

.wtd-portal.portal-hover .wtd-scene-elements > * {
    animation-play-state: running !important;
}

.wtd-portal.portal-selected {
    transform: scale(1.05);
}

.wtd-portal.portal-entering .wtd-portal-frame {
    animation: portalGlow 0.6s ease-out;
}

@keyframes portalGlow {
    0% { box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1), 0 0 0 rgba(255, 255, 255, 0); }
    50% { box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1), 0 0 30px rgba(255, 255, 255, 0.6); }
    100% { box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1), 0 0 0 rgba(255, 255, 255, 0); }
}

/* Scene Elements - Beach */
.beach-elements .wave {
    position: absolute;
    width: 200%;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    left: -50%;
    border-radius: 50%;
}

.beach-elements .wave-1 {
    bottom: 30%;
    animation: wave1 8s ease-in-out infinite;
}

.beach-elements .wave-2 {
    bottom: 35%;
    animation: wave2 10s ease-in-out infinite;
    animation-delay: -2s;
}

.beach-elements .wave-3 {
    bottom: 40%;
    animation: wave3 12s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes wave1 {
    0%, 100% { transform: translateX(-20px) scaleY(0.8); }
    50% { transform: translateX(20px) scaleY(1.2); }
}

@keyframes wave2 {
    0%, 100% { transform: translateX(30px) scaleY(0.9); }
    50% { transform: translateX(-30px) scaleY(1.1); }
}

@keyframes wave3 {
    0%, 100% { transform: translateX(-40px) scaleY(0.7); }
    50% { transform: translateX(40px) scaleY(1.3); }
}

.beach-elements .sun {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    top: 20%;
    right: 20%;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: sunPulse 4s ease-in-out infinite;
}

@keyframes sunPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    50% { transform: scale(1.1); box-shadow: 0 0 30px rgba(255, 215, 0, 0.7); }
}

.beach-elements .sand-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(244, 164, 96, 0.7);
    border-radius: 50%;
}

.beach-elements .particle-1 {
    top: 60%;
    left: 20%;
    animation: sandFloat1 15s linear infinite;
}

.beach-elements .particle-2 {
    top: 70%;
    left: 50%;
    animation: sandFloat2 20s linear infinite;
}

.beach-elements .particle-3 {
    top: 65%;
    left: 80%;
    animation: sandFloat3 18s linear infinite;
}

@keyframes sandFloat1 {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(50px, -100px); opacity: 0; }
}

@keyframes sandFloat2 {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(-30px, -120px); opacity: 0; }
}

@keyframes sandFloat3 {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(40px, -110px); opacity: 0; }
}

/* Scene Elements - Forest */
.forest-elements .tree {
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 60%;
    background: linear-gradient(to top, #2c1810 0%, #3e2717 100%);
    clip-path: polygon(40% 100%, 60% 100%, 55% 0%, 45% 0%);
}

.forest-elements .tree-1 { left: 20%; }
.forest-elements .tree-2 { left: 50%; height: 70%; }
.forest-elements .tree-3 { left: 75%; height: 55%; }

.forest-elements .leaf {
    position: absolute;
    width: 8px;
    height: 10px;
    background: #228B22;
    border-radius: 0 100% 0 100%;
}

.forest-elements .falling-leaf-1 {
    top: 30%;
    left: 30%;
    animation: leafFall1 10s linear infinite;
}

.forest-elements .falling-leaf-2 {
    top: 20%;
    left: 70%;
    animation: leafFall2 12s linear infinite;
    animation-delay: -3s;
}

@keyframes leafFall1 {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(20px, 150px) rotate(360deg); opacity: 0; }
}

@keyframes leafFall2 {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(-30px, 180px) rotate(-360deg); opacity: 0; }
}

.forest-elements .firefly {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #FFFF00;
    border-radius: 50%;
    box-shadow: 0 0 6px #FFFF00;
}

.forest-elements .firefly-1 {
    top: 50%;
    left: 30%;
    animation: fireflyDance1 15s ease-in-out infinite;
}

.forest-elements .firefly-2 {
    top: 40%;
    left: 60%;
    animation: fireflyDance2 18s ease-in-out infinite;
    animation-delay: -5s;
}

@keyframes fireflyDance1 {
    0%, 100% { transform: translate(0, 0); opacity: 0.2; }
    25% { transform: translate(30px, -20px); opacity: 1; }
    50% { transform: translate(-20px, -40px); opacity: 0.4; }
    75% { transform: translate(10px, 10px); opacity: 1; }
}

@keyframes fireflyDance2 {
    0%, 100% { transform: translate(0, 0); opacity: 0.3; }
    33% { transform: translate(-40px, 20px); opacity: 1; }
    66% { transform: translate(20px, -30px); opacity: 0.5; }
}

.forest-elements .mist {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    animation: mistDrift 20s ease-in-out infinite;
}

@keyframes mistDrift {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 0.6; transform: translateY(-10px); }
}

/* Scene Elements - Mountain */
.mountain-elements .peak {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
}

.mountain-elements .peak-1 {
    left: 10%;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 80px solid #4a5568;
}

.mountain-elements .peak-2 {
    left: 40%;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 100px solid #2d3748;
}

.mountain-elements .peak-3 {
    left: 70%;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 70px solid #4a5568;
}

.mountain-elements .cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 100px;
}

.mountain-elements .floating-cloud-1 {
    width: 40px;
    height: 15px;
    top: 30%;
    left: 20%;
    animation: cloudFloat1 25s linear infinite;
}

.mountain-elements .floating-cloud-2 {
    width: 50px;
    height: 18px;
    top: 20%;
    left: 60%;
    animation: cloudFloat2 30s linear infinite;
    animation-delay: -10s;
}

@keyframes cloudFloat1 {
    0% { transform: translateX(-20px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(100px); opacity: 0; }
}

@keyframes cloudFloat2 {
    0% { transform: translateX(20px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(-100px); opacity: 0; }
}

.mountain-elements .star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
}

.mountain-elements .star-1 {
    top: 15%;
    left: 30%;
    animation: starTwinkle 3s ease-in-out infinite;
}

.mountain-elements .star-2 {
    top: 25%;
    left: 70%;
    animation: starTwinkle 4s ease-in-out infinite;
    animation-delay: -1s;
}

.mountain-elements .star-3 {
    top: 20%;
    left: 50%;
    animation: starTwinkle 3.5s ease-in-out infinite;
    animation-delay: -2s;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Scene Elements - Garden */
.garden-elements .blossom {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #FFB6C1;
    border-radius: 50%;
}

.garden-elements .petal-1 {
    top: 25%;
    left: 20%;
    animation: petalFloat1 15s linear infinite;
}

.garden-elements .petal-2 {
    top: 20%;
    left: 60%;
    animation: petalFloat2 18s linear infinite;
    animation-delay: -5s;
}

.garden-elements .petal-3 {
    top: 30%;
    left: 40%;
    animation: petalFloat3 20s linear infinite;
    animation-delay: -10s;
}

@keyframes petalFloat1 {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(30px, 100px) rotate(360deg); opacity: 0; }
}

@keyframes petalFloat2 {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(-20px, 120px) rotate(-360deg); opacity: 0; }
}

@keyframes petalFloat3 {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(10px, 110px) rotate(180deg); opacity: 0; }
}

.garden-elements .stone {
    position: absolute;
    background: #808080;
    border-radius: 50%;
}

.garden-elements .zen-stone-1 {
    width: 20px;
    height: 15px;
    bottom: 20%;
    left: 30%;
}

.garden-elements .zen-stone-2 {
    width: 25px;
    height: 18px;
    bottom: 25%;
    left: 60%;
}

.garden-elements .ripple {
    position: absolute;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 50%;
    bottom: 30%;
    left: 50%;
    transform: translate(-50%, 50%);
}

.garden-elements .ripple-1 {
    width: 30px;
    height: 30px;
    animation: rippleExpand 4s ease-out infinite;
}

.garden-elements .ripple-2 {
    width: 30px;
    height: 30px;
    animation: rippleExpand 4s ease-out infinite;
    animation-delay: -2s;
}

@keyframes rippleExpand {
    0% { width: 30px; height: 30px; opacity: 1; }
    100% { width: 80px; height: 80px; opacity: 0; }
}

.garden-elements .koi {
    position: absolute;
    width: 15px;
    height: 8px;
    background: linear-gradient(90deg, #FF6347 0%, #FFA500 50%, #FFFFFF 100%);
    border-radius: 50% 0 50% 0;
    bottom: 35%;
    left: 45%;
    animation: koiSwim 20s ease-in-out infinite;
}

@keyframes koiSwim {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -10px) rotate(15deg); }
    50% { transform: translate(-15px, -20px) rotate(-10deg); }
    75% { transform: translate(10px, 5px) rotate(5deg); }
}

/* Mystical Orb Navigator */
.wtd-orb-navigator {
    position: relative;
    width: 100%;
    height: 60px;
    margin-top: 20px; /* Changed from -30px to avoid overlapping labels */
}

.wtd-orb-track {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-50%);
}

.wtd-orb {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #666 0%, #333 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Journey Experience */
.visualization-journey {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
}

.journey-immersion {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Layered Backdrop */
.journey-backdrop {
    position: absolute;
    inset: 0;
}

.backdrop-layer {
    position: absolute;
    inset: 0;
    opacity: 0.8;
}

/* Scene-specific backdrops */
.journey-backdrop[data-scene="beach"] .layer-1 {
    background: linear-gradient(135deg, #87CEEB 0%, #98D8E8 50%, #B0E0E6 100%);
}

.journey-backdrop[data-scene="beach"] .layer-2 {
    background: radial-gradient(circle at 70% 30%, rgba(255, 223, 0, 0.3) 0%, transparent 50%);
}

.journey-backdrop[data-scene="beach"] .layer-3 {
    background: linear-gradient(to top, rgba(244, 164, 96, 0.2) 0%, transparent 40%);
}

.journey-backdrop[data-scene="forest"] .layer-1 {
    background: linear-gradient(135deg, #013a00 0%, #064e00 50%, #0a5f00 100%);
}

.journey-backdrop[data-scene="forest"] .layer-2 {
    background: radial-gradient(circle at 30% 70%, rgba(34, 139, 34, 0.3) 0%, transparent 60%);
}

.journey-backdrop[data-scene="forest"] .layer-3 {
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.3) 100%);
}

.journey-backdrop[data-scene="mountain"] .layer-1 {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.journey-backdrop[data-scene="mountain"] .layer-2 {
    background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
}

.journey-backdrop[data-scene="mountain"] .layer-3 {
    background: linear-gradient(to top, rgba(74, 85, 104, 0.3) 0%, transparent 50%);
}

.journey-backdrop[data-scene="garden"] .layer-1 {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4e1 50%, #ffc0cb 100%);
}

.journey-backdrop[data-scene="garden"] .layer-2 {
    background: radial-gradient(circle at 80% 80%, rgba(255, 182, 193, 0.3) 0%, transparent 60%);
}

.journey-backdrop[data-scene="garden"] .layer-3 {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, transparent 30%);
}

/* Journey Content */
.journey-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.journey-text-container {
    max-width: 800px;
    padding: 0 40px;
    text-align: center;
}

.journey-prompt {
    font-size: 2rem;
    font-weight: 300;
    color: white;
    line-height: 1.6;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.prompt-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Ambient Elements Container */
.ambient-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Ambient Bubbles (Beach) */
.ambient-bubble {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 100%);
    border-radius: 50%;
    bottom: -20px;
    left: calc(20% + var(--random-x, 0) * 60%);
    animation: bubbleRise 8s linear infinite;
    --random-x: 0.5;
}

@keyframes bubbleRise {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(calc(sin(var(--random-x) * 3.14) * 30px)); opacity: 0; }
}

/* Ambient Trees (Forest) */
.ambient-tree {
    position: absolute;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to top, #2c1810 0%, #3e2717 50%, #4a332a 100%);
    clip-path: polygon(40% 100%, 60% 100%, 55% 20%, 50% 0%, 45% 20%);
    opacity: 0.3;
    z-index: 1;
}

/* Ambient Fireflies (Forest) */
.ambient-firefly {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFFF00;
    border-radius: 50%;
    box-shadow: 0 0 8px #FFFF00, 0 0 15px rgba(255, 255, 0, 0.5);
    top: calc(30% + var(--random-y, 0) * 40%);
    left: calc(10% + var(--random-x, 0) * 80%);
    animation: fireflyFloat 15s ease-in-out infinite;
    z-index: 3;
}

@keyframes fireflyFloat {
    0%, 100% { 
        transform: translate(0, 0); 
        opacity: 0.2; 
    }
    20% { 
        transform: translate(30px, -20px); 
        opacity: 1; 
    }
    40% { 
        transform: translate(-20px, -40px); 
        opacity: 0.4; 
    }
    60% { 
        transform: translate(40px, 10px); 
        opacity: 1; 
    }
    80% { 
        transform: translate(-30px, 30px); 
        opacity: 0.6; 
    }
}

/* Ambient Leaves (Forest) */
.ambient-leaf {
    position: absolute;
    width: 15px;
    height: 18px;
    background: #228B22;
    border-radius: 0 100% 0 100%;
    top: -20px;
    left: calc(10% + var(--random-x, 0) * 80%);
    animation: gentleLeafFall 20s ease-in-out infinite; /* Slower, smoother animation */
    --random-x: 0.5;
    z-index: 2;
}

@keyframes gentleLeafFall {
    0% { 
        transform: translateY(0) translateX(0) rotate(0deg); 
        opacity: 0; 
    }
    5% { 
        opacity: 0.7; 
    }
    25% {
        transform: translateY(25vh) translateX(calc(var(--sway, 1) * 30px)) rotate(90deg);
    }
    50% {
        transform: translateY(50vh) translateX(calc(var(--sway, 1) * -20px)) rotate(180deg);
    }
    75% {
        transform: translateY(75vh) translateX(calc(var(--sway, 1) * 40px)) rotate(270deg);
    }
    95% { 
        opacity: 0.7; 
    }
    100% { 
        transform: translateY(100vh) translateX(calc(var(--sway, 1) * -10px)) rotate(360deg); 
        opacity: 0; 
    }
}

/* Ambient Stars (Mountain) */
.ambient-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    top: calc(10% + var(--random-y, 0) * 40%);
    left: calc(10% + var(--random-x, 0) * 80%);
    animation: gentleStarTwinkle 4s ease-in-out infinite;
    --random-x: 0.5;
    --random-y: 0.5;
}

@keyframes gentleStarTwinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Ambient Petals (Garden) */
.ambient-petal {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #FFB6C1;
    border-radius: 50%;
    top: -20px;
    left: calc(15% + var(--random-x, 0) * 70%);
    animation: gentlePetalFall 15s linear infinite;
    --random-x: 0.5;
}

@keyframes gentlePetalFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Progress Constellation */
.progress-constellation {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.star-node {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.star-node.active {
    background: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transform: scale(1.5);
}

/* Journey Continue Button */
.journey-float-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100; /* Ensure button is clickable */
    pointer-events: auto; /* Force pointer events */
}

.journey-float-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-50%) translateY(-2px);
}

.journey-float-btn.return-mode {
    background: rgba(255, 255, 255, 0.2);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

/* Ensure button children don't block clicks */
.journey-float-btn span {
    pointer-events: none;
}

.journey-float-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* Scene Transition Effects */
.scene-selector.scene-transitioning {
    opacity: 0.5;
    transform: scale(0.95);
    transition: all 0.6s ease-out;
}

.journey-immersion.fading-out {
    opacity: 0;
    transform: scale(1.05);
    transition: all 0.6s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .wtd-portals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .journey-prompt {
        font-size: 1.5rem;
    }
    
    .progress-constellation {
        bottom: 80px;
    }
    
    .journey-float-btn {
        bottom: 30px;
        padding: 12px 30px;
    }
}

@media (max-width: 480px) {
    .scene-selector-title {
        font-size: 2rem;
    }
    
    .wtd-portal-label h3 {
        font-size: 1rem;
    }
    
    .journey-prompt {
        font-size: 1.2rem;
        padding: 0 20px;
    }
}

/* Ambient Elements Container for Exercise View */
#ambientElements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#ambientElements .wtd-scene-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Ensure scene elements work in both portal preview and exercise view */
.wtd-scene-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Mindfulness immersive fullscreen mode */
body.mindfulness-immersive #masthead,
body.mindfulness-immersive #colophon,
body.mindfulness-immersive .site-header,
body.mindfulness-immersive .site-footer {
    display: none !important;
}

body.mindfulness-immersive .wtd-mindfulness-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    overflow: hidden;
}

/* Sound Sanctuary - Immersive Experience */
.sound-sanctuary-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    z-index: 100;
}

/* Hide standard controls when in Sound Sanctuary */
.sound-sanctuary-container[data-hide-controls="true"] ~ .exercise-controls,
.sound-sanctuary-container[data-hide-controls="true"] ~ .exercise-help-btn {
    display: none !important;
}

/* Ensure sanctuary controls always visible */
.sanctuary-controls {
    display: flex !important;
    visibility: visible !important;
}

/* Help Button */
.sanctuary-help-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 20;
    font-size: 1.2rem;
}

.sanctuary-help-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Instructions Modal Styles */
.instructions-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.instructions-section {
    margin-bottom: 30px;
}

.instructions-section h4 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    font-weight: 100;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
}

.sound-demo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

.demo-sphere {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.demo-sphere img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(20, 20, 40, 0.5);
    padding: 15px;
    object-fit: contain;
}

.demo-sphere span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: lowercase;
}

.frequency-demo {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.freq-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    min-width: 120px;
}

.freq-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.freq-symbol {
    font-size: 1.5rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
}

.freq-name {
    font-size: 0.8rem;
    text-transform: lowercase;
    letter-spacing: 0.05rem;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.tips-list li {
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 100;
    letter-spacing: 0.0625rem; /* 1px */
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.tips-list li:before {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.sanctuary-interface {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Cosmic Background */
.sanctuary-cosmos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cosmic-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #0a0a2e 0%, #020210 50%, #000 100%);
}

.star-field {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, #ddd, transparent),
        radial-gradient(1px 1px at 50px 50px, #fff, transparent),
        radial-gradient(1px 1px at 80px 10px, #fff, transparent),
        radial-gradient(2px 2px at 130px 80px, #eee, transparent);
    background-size: 200px 200px;
    animation: starFloat 200s linear infinite;
}

@keyframes starFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-100%); }
}

.aurora-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 255, 170, 0.1) 30%,
        rgba(0, 170, 255, 0.1) 60%,
        transparent 100%
    );
    animation: auroraFlow 20s ease-in-out infinite;
}

@keyframes auroraFlow {
    0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scaleY(1.2); opacity: 0.5; }
}

/* Welcome Screen */
.sanctuary-welcome {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.sanctuary-title {
    font-size: 4rem;
    font-weight: 100;
    letter-spacing: 0.5rem;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { opacity: 0.8; text-shadow: 0 0 30px rgba(255, 255, 255, 0.5); }
    50% { opacity: 1; text-shadow: 0 0 50px rgba(255, 255, 255, 0.8); }
}

.sanctuary-subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.3rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
}

.sanctuary-enter-btn {
    position: relative;
    margin-top: 3rem;
    padding: 1.5rem 3rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.2rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sanctuary-enter-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.sanctuary-enter-btn:hover .btn-glow {
    width: 300px;
    height: 300px;
}

/* Sound Universe */
.sound-universe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Central Mandala */
.central-mandala {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    margin: 0;
    padding: 0;
}

.mandala-svg {
    width: 100%;
    height: 100%;
    animation: mandalaSpin 60s linear infinite;
}

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

.mandala-core {
    fill: none;
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 2;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    animation: corePulse 4s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% { r: 30; opacity: 0.8; }
    50% { r: 35; opacity: 1; }
}

.frequency-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

.frequency-value {
    font-size: 1.5rem;
    font-weight: 300;
}

.frequency-unit {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Sound Spheres */
.sound-spheres {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.sound-sphere {
    position: absolute;
    width: 120px;
    height: 120px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sound-sphere[data-position="top-left"] {
    top: 20%;
    left: 20%;
}

.sound-sphere[data-position="top-right"] {
    top: 20%;
    right: 20%;
}

.sound-sphere[data-position="bottom-left"] {
    bottom: 20%;
    left: 20%;
}

.sound-sphere[data-position="bottom-right"] {
    bottom: 20%;
    right: 20%;
}

.sphere-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(100, 200, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.sound-sphere.active .sphere-glow {
    opacity: 1;
    transform: scale(1.5);
    animation: sphereGlow 3s ease-in-out infinite;
}

@keyframes sphereGlow {
    0%, 100% { transform: scale(1.5); opacity: 0.5; }
    50% { transform: scale(1.8); opacity: 0.8; }
}

.sphere-core {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: rgba(20, 20, 40, 0.5);
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
}

.sphere-core::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(0, 0, 30, 0.1), 
        rgba(0, 0, 50, 0.3));
    transition: opacity 0.3s ease;
}

.sound-sphere.active .sphere-core::before {
    opacity: 0.5;
}

.sound-sphere:hover .sphere-core::before {
    opacity: 0.4;
}

.sphere-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 3;
}

.sound-sphere.active .sphere-particles {
    opacity: 1;
}

.sphere-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-transform: lowercase;
    letter-spacing: 0.1rem;
}

.sphere-volume {
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    pointer-events: none;
}

.volume-ring {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.sound-sphere.active .volume-ring {
    opacity: 1;
    transform: scale(1);
    animation: volumePulse 2s ease-in-out infinite;
}

@keyframes volumePulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

/* Binaural Controls */
.binaural-controls {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.binaural-selector {
    display: flex;
    gap: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    justify-content: center;
}

.binaural-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.binaural-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.8);
}

.binaural-btn.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.wave-icon {
    font-size: 1.5rem;
    font-weight: bold;
}

.wave-name {
    font-size: 0.8rem;
    text-transform: lowercase;
}

/* Breathing Guide */
.breathing-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 15;
}

.breathing-guide.active {
    opacity: 1;
}

.breath-circle {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.breath-inner {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: breathCycle 8s ease-in-out infinite;
}

@keyframes breathCycle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(8); opacity: 0.3; }
}

.breath-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    z-index: 1;
}

/* Timer */
.meditation-timer {
    position: absolute;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.timer-display {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 100;
    letter-spacing: 0.05rem;
}

.timer-progress {
    margin-top: 10px;
    width: 60px;
    height: 60px;
    margin: 10px auto 0;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

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

.progress-fill {
    fill: none;
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 3;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s linear;
}

/* Master Controls */
.sanctuary-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    z-index: 10;
}

.control-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1.5rem;
}

.control-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.control-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.control-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.control-label {
    position: absolute;
    bottom: -25px;
    font-size: 0.8rem;
    text-transform: lowercase;
    letter-spacing: 0.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.control-btn:hover .control-label {
    opacity: 0.6;
}

/* Hide labels on smaller buttons */
#playPause .control-label {
    display: none;
}

/* Sanctuary Modal */
.sanctuary-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: rgba(20, 20, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-title {
    font-size: 2rem;
    font-weight: 100;
    letter-spacing: 0.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 30px 0;
    text-transform: lowercase;
}

.modal-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin: 0 0 30px 0;
    font-weight: 300;
    letter-spacing: 0.02rem;
}

.instructions-section p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    font-weight: 100;
    letter-spacing: 0.0625rem; /* 1px */
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    letter-spacing: 0.05rem;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-cancel {
    background: rgba(255, 255, 255, 0.1);
}

.modal-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.modal-confirm {
    background: rgba(255, 100, 100, 0.2);
    color: #fff;
}

.modal-confirm:hover {
    background: rgba(255, 100, 100, 0.3);
    border-color: rgba(255, 100, 100, 0.5);
}

/* ======================================
   ESCAPE WITHIN - ETHEREAL DREAMSCAPE EXPERIENCE
   OS 29-Dec - Unique aurora-inspired background
   ====================================== */

/* Ethereal Aurora Background */
.visualization-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(255, 182, 193, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 0%, rgba(173, 216, 230, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 100%, rgba(255, 218, 185, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, #f5f0e8 0%, #fae6d7 40%, #e8ddd4 100%);
    z-index: -3;
}

/* Aurora Borealis effect */
.visualization-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    right: -10%;
    height: 150%;
    background: 
        linear-gradient(45deg, 
            transparent 30%, 
            rgba(255, 182, 193, 0.1) 35%, 
            rgba(173, 216, 230, 0.15) 40%, 
            rgba(255, 218, 185, 0.1) 45%, 
            transparent 50%),
        linear-gradient(-45deg, 
            transparent 40%, 
            rgba(221, 160, 221, 0.08) 45%, 
            rgba(176, 224, 230, 0.12) 50%, 
            transparent 55%);
    background-size: 200% 200%, 250% 250%;
    animation: auroraFlow 30s ease-in-out infinite;
    filter: blur(40px);
    opacity: 0.6;
    z-index: -2;
}

@keyframes auroraFlow {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); }
    25% { transform: translateY(-10%) translateX(5%) scale(1.1); }
    50% { transform: translateY(5%) translateX(-5%) scale(0.95); }
    75% { transform: translateY(-5%) translateX(10%) scale(1.05); }
}

/* Floating dream orbs */
.visualization-container .scene-selector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 182, 193, 0.4) 0%, transparent 8%),
        radial-gradient(circle at 80% 20%, rgba(173, 216, 230, 0.3) 0%, transparent 6%),
        radial-gradient(circle at 40% 40%, rgba(255, 218, 185, 0.35) 0%, transparent 7%),
        radial-gradient(circle at 70% 70%, rgba(221, 160, 221, 0.3) 0%, transparent 5%),
        radial-gradient(circle at 90% 50%, rgba(176, 224, 230, 0.4) 0%, transparent 9%);
    background-size: 600px 600px, 400px 400px, 500px 500px, 450px 450px, 700px 700px;
    background-position: -300px 0, 0 0, -150px -150px, 0 0, 200px -100px;
    animation: dreamFloat 120s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes dreamFloat {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(100px, -100px) rotate(360deg); }
}

/* Update text colors for dreamy theme */
.visualization-container .scene-selector-title {
    color: #5a4a42;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.visualization-container .scene-selector-subtitle {
    color: #7a6a62;
}

/* Enhance portal frames for ethereal theme */
.wtd-portal-frame {
    background: linear-gradient(135deg, 
        rgba(255, 245, 235, 0.8) 0%, 
        rgba(255, 235, 225, 0.6) 50%, 
        rgba(255, 245, 235, 0.8) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.wtd-portal-label h3 {
    color: #5a4a42;
}

.wtd-portal-label p {
    color: #8a7a72;
}

/* Hide the orb navigator */
.wtd-orb-navigator {
    display: none !important;
}

/* Remove extra margin since orb is gone */
.wtd-portals-grid {
    margin-bottom: 40px !important;
}

/* Escape Within Instruction Modal */
.escape-instructions-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    overflow-y: auto;
}

.escape-instructions-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 60px 40px;
    background: linear-gradient(135deg, 
        rgba(255, 245, 235, 0.95) 0%, 
        rgba(250, 240, 230, 0.98) 50%, 
        rgba(255, 235, 225, 0.95) 100%);
    border-radius: 30px;
    border: 1px solid rgba(90, 74, 66, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: relative;
}

.escape-instructions-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: rgba(90, 74, 66, 0.1);
    border: 1px solid rgba(90, 74, 66, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.escape-instructions-close:hover {
    background: rgba(90, 74, 66, 0.2);
    transform: rotate(90deg);
}

.escape-instructions-close::before,
.escape-instructions-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #5a4a42;
}

.escape-instructions-close::before {
    transform: rotate(45deg);
}

.escape-instructions-close::after {
    transform: rotate(-45deg);
}

.escape-instructions-header {
    text-align: center;
    margin-bottom: 50px;
}

.escape-instructions-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #5a4a42;
    margin-bottom: 15px;
    text-transform: lowercase;
    letter-spacing: 0.1em;
}

.escape-instructions-header p {
    font-size: 1.1rem;
    color: #7a6a62;
    font-weight: 100;
}

/* Escape Within help button */
.escape-help-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: rgba(255, 235, 225, 0.8);
    border: 1px solid rgba(90, 74, 66, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

.escape-help-btn:hover {
    background: rgba(255, 225, 215, 0.9);
    transform: scale(1.1);
}

.escape-help-btn::before {
    content: '?';
    font-size: 1.5rem;
    color: #5a4a42;
    font-weight: 300;
}

/* Instructions section styling */
.escape-instructions-modal .instructions-section {
    margin-bottom: 40px;
}

.escape-instructions-modal .instructions-section h3 {
    font-size: 1.4rem;
    color: #5a4a42;
    margin-bottom: 15px;
    font-weight: 300;
}

.escape-instructions-modal .instructions-section p {
    font-size: 0.95rem;
    color: #7a6a62;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Portal demo grid for instructions */
.portal-demo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.demo-portal {
    text-align: center;
    padding: 20px;
    background: rgba(90, 74, 66, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(90, 74, 66, 0.1);
}

.demo-portal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    background: rgba(255, 218, 185, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.demo-portal h4 {
    font-size: 0.9rem;
    color: #5a4a42;
    margin-bottom: 5px;
    font-weight: 300;
    text-transform: lowercase;
}

.demo-portal p {
    font-size: 0.8rem;
    color: #8a7a72;
    font-weight: 100;
}
