:root {
    /* Light Theme */
    --bg-primary: #faf7f2;
    --bg-secondary: #f5f0e8;
    --bg-tertiary: #ebe4d8;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #7a7a7a;
    --accent-warm: #e8a87c;
    --accent-coral: #f8b4b4;
    --accent-gold: #d4a574;
    --accent-soft: #c9b99a;
    --glow-primary: rgba(232, 168, 124, 0.4);
    --glow-secondary: rgba(248, 180, 180, 0.3);
    --overlay-bg: rgba(250, 247, 242, 0.95);
    --card-bg: rgba(255, 255, 255, 0.7);
    --border-subtle: rgba(26, 26, 26, 0.1);
    --gradient-hero: linear-gradient(135deg, #faf7f2 0%, #f5e6d3 50%, #ebe4d8 100%);
    --gradient-warm: linear-gradient(180deg, #e8a87c 0%, #f8b4b4 100%);
    --gradient-soft: linear-gradient(135deg, #f5f0e8 0%, #ebe4d8 100%);
  }

  [data-theme="dark"] {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --text-primary: #f5f5f5;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;
    --accent-warm: #ff005a;
    --accent-coral: #00eeff;
    --accent-gold: #9d00ff;
    --accent-soft: #ff005a;
    --glow-primary: rgba(255, 0, 90, 0.5);
    --glow-secondary: rgba(0, 238, 255, 0.4);
    --overlay-bg: rgba(13, 13, 13, 0.95);
    --card-bg: rgba(26, 26, 26, 0.8);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --gradient-hero: linear-gradient(135deg, #0d0d0d 0%, #1a0a14 50%, #0a1419 100%);
    --gradient-warm: linear-gradient(180deg, #ff005a 0%, #9d00ff 100%);
    --gradient-soft: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
  }

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

  html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
  }

  body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
  }

  /* Noise Texture Overlay */
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  }

  /* Floating Elements */
  .floating-controls {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    gap: 1rem;
    align-items: center;
  }

  .theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }

  .theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--glow-primary);
  }

  .scroll-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    animation: pulse 2s ease-in-out infinite;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }

  .scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
  }

  .scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--accent-warm);
    border-bottom: 2px solid var(--accent-warm);
    transform: rotate(45deg);
    animation: bounce 1.5s ease-in-out infinite;
  }

  .scroll-indicator:hover .scroll-arrow {
    border-color: var(--accent-coral);
  }

  @keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(10px); }
  }

  @keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
  }

  /* Quote of the Week Widget */
  .quote-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    max-width: 280px;
    padding: 1.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .quote-widget.visible {
    transform: translateY(0);
  }

  .quote-widget-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-warm);
    margin-bottom: 0.75rem;
  }

  .quote-widget-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-primary);
  }

  .quote-widget-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
  }

  /* Panel Styles */
  .panel {
    min-height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
  }

  .panel-content {
    max-width: 600px;
    width: 100%;
    z-index: 2;
  }

  /* Chapter Label */
  .chapter-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-warm);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .chapter-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-warm) 0%, transparent 100%);
  }

  /* Typography */
  .hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
  }

  .section-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .section-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
  }

  /* Hero Panel */
  .hero-panel {
    background: var(--gradient-hero);
  }

  .hero-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, var(--glow-primary) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, var(--glow-secondary) 0%, transparent 50%);
    pointer-events: none;
  }

  .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-warm);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--glow-primary);
  }

  .hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px var(--glow-primary);
  }

  /* Audio Player */
  .audio-player {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid var(--border-subtle);
  }

  .album-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .album-art {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    background: var(--gradient-warm);
    box-shadow: 0 10px 30px var(--glow-primary);
  }

  .album-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
  }

  .album-artist {
    font-size: 0.9rem;
    color: var(--text-muted);
  }

  .audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-warm);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--glow-primary);
  }

  .play-btn:hover {
    transform: scale(1.1);
  }

  .play-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
  }

  .progress-bar {
    flex: 1;
    height: 4px;
    background: var(--border-subtle);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
  }

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

  .time-display {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 80px;
    text-align: right;
  }

  .track-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
  }

  .track-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .track-item:hover, .track-item.active {
    background: var(--gradient-warm);
    color: white;
  }

  .track-number {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 20px;
  }

  .track-item:hover .track-number,
  .track-item.active .track-number {
    color: rgba(255,255,255,0.7);
  }

  .track-name {
    flex: 1;
    font-size: 0.9rem;
  }

  .track-duration {
    font-size: 0.75rem;
    color: var(--text-muted);
  }

  .track-item:hover .track-duration,
  .track-item.active .track-duration {
    color: rgba(255,255,255,0.7);
  }

  /* Typewriter Effect */
  .typewriter {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-secondary);
  }

  .typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--accent-warm);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
  }

  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }

  /* Cards */
  .card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  .content-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--accent-warm);
  }

  .card-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-warm);
    margin-bottom: 0.5rem;
  }

  .card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
  }

  /* Square Card Grid */
  .card-grid-square {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .square-card {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }

  .square-card .card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .image-card {
    padding: 0;
    border: none;
    background: transparent;
    cursor: default;
  }

  .image-card:hover {
    transform: none;
    box-shadow: none;
  }

  .image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
  }

  @media (min-width: 768px) {
    .card-grid-square {
      grid-template-columns: repeat(3, 1fr);
      max-width: 800px;
    }
  }

  /* Breathing Exercise */
  .breathing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .breathing-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 0 60px var(--glow-primary);
    transition: transform 4s ease-in-out;
  }

  .breathing-circle.inhale {
    transform: scale(1.3);
  }

  .breathing-circle.hold {
    transform: scale(1.3);
  }

  .breathing-circle.exhale {
    transform: scale(1);
  }

  .breathing-controls {
    display: flex;
    gap: 1rem;
  }

  .breath-btn {
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    transition: all 0.3s ease;
  }

  .breath-btn:hover {
    background: var(--accent-warm);
    color: white;
    border-color: var(--accent-warm);
  }

  /* Journal */
  .journal-container {
    width: 100%;
    margin-top: 2rem;
  }

  .journal-textarea {
    width: 100%;
    min-height: 200px;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    resize: vertical;
    transition: all 0.3s ease;
  }

  .journal-textarea:focus {
    outline: none;
    border-color: var(--accent-warm);
    box-shadow: 0 0 30px var(--glow-primary);
  }

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

  .journal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
  }

  .journal-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .journal-btn.primary {
    background: var(--gradient-warm);
    color: white;
    border: none;
    box-shadow: 0 4px 15px var(--glow-primary);
  }

  .journal-btn.secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
  }

  .journal-btn:hover {
    transform: translateY(-2px);
  }

  .save-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: auto;
    display: flex;
    align-items: center;
  }

  /* Gallery */
  .gallery-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-scroll::-webkit-scrollbar {
    display: none;
  }

  .gallery-item {
    flex-shrink: 0;
    width: 280px;
    height: 380px;
    border-radius: 1.5rem;
    overflow: hidden;
    scroll-snap-align: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
  }

  .gallery-item:hover {
    transform: scale(1.02);
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
  }

  .gallery-overlay span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
  }

  /* Modal */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

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

  .modal-content {
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-primary);
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  }

  .modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
  }

  .modal-close:hover {
    background: var(--accent-warm);
    color: white;
  }

  /* Contact Form */
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .form-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
  }

  .form-input, .form-select, .form-textarea {
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
  }

  .form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-warm);
    box-shadow: 0 0 20px var(--glow-primary);
  }

  .form-textarea {
    min-height: 120px;
    resize: vertical;
  }

  .form-submit {
    padding: 1rem 2rem;
    background: var(--gradient-warm);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--glow-primary);
  }

  .form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px var(--glow-primary);
  }

  /* Quote Panel */
  .big-quote {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    padding: 2rem;
  }

  .big-quote::before {
    content: '"';
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 6rem;
    color: var(--accent-warm);
    opacity: 0.3;
    font-family: Georgia, serif;
  }

  /* Gradient Backgrounds */
  .panel-courage {
    background: linear-gradient(135deg, 
      var(--bg-primary) 0%, 
      rgba(232, 168, 124, 0.1) 50%, 
      var(--bg-secondary) 100%);
  }

  .panel-bright {
    background: linear-gradient(135deg, 
      rgba(248, 180, 180, 0.1) 0%, 
      var(--bg-primary) 50%, 
      rgba(212, 165, 116, 0.1) 100%);
  }

  [data-theme="dark"] .panel-courage {
    background: linear-gradient(135deg, 
      var(--bg-primary) 0%, 
      rgba(255, 0, 90, 0.1) 50%, 
      var(--bg-secondary) 100%);
  }

  [data-theme="dark"] .panel-bright {
    background: linear-gradient(135deg, 
      rgba(0, 238, 255, 0.1) 0%, 
      var(--bg-primary) 50%, 
      rgba(157, 0, 255, 0.1) 100%);
  }

  /* Glow Effects */
  .glow-card {
    position: relative;
  }

  .glow-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-warm);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(10px);
  }

  .glow-card:hover::before {
    opacity: 0.5;
  }

  /* Subscribe Form */
  .subscribe-form {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
  }

  .subscribe-input {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
  }

  .subscribe-input:focus {
    outline: none;
    border-color: var(--accent-warm);
  }

  .subscribe-btn {
    padding: 1rem 2rem;
    background: var(--gradient-warm);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  /* Lightbox */
  .lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }

  .lightbox.active {
    display: flex;
  }

  .lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 1rem;
  }

  .lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
  }

  /* Microcopy */
  .microcopy {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    margin-top: 2rem;
  }

  /* Visualizer Placeholder */
  .visualizer-container {
    width: 100%;
    height: 300px;
    background: var(--bg-secondary);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }

  .visualizer-bars {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 150px;
  }

  .visualizer-bar {
    width: 8px;
    background: var(--gradient-warm);
    border-radius: 4px;
    animation: visualize 0.5s ease-in-out infinite alternate;
  }

  @keyframes visualize {
    from { height: 20px; }
    to { height: var(--bar-height, 100px); }
  }

  /* Progress Dots */
  .progress-dots {
    position: fixed;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-subtle);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .progress-dot.active {
    background: var(--accent-warm);
    box-shadow: 0 0 10px var(--glow-primary);
  }

  .progress-dot:hover {
    transform: scale(1.5);
  }

  /* Desktop Layout */
  @media (min-width: 1024px) {
    html {
      scroll-snap-type: none;
    }

    .chapter-section {
      display: flex;
      min-height: 100vh;
    }

    .chapter-section .panel {
      flex: 1;
      min-height: 100vh;
      scroll-snap-align: none;
    }

    .chapter-section .panel:first-child {
      border-right: 1px solid var(--border-subtle);
    }

    .panel-content {
      max-width: 500px;
    }

    .card-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item {
      width: 350px;
      height: 450px;
    }

    .progress-dots {
      display: none;
    }
  }

  /* Animations */
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Audio Wave */
  .audio-wave {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 30px;
  }

  .audio-wave span {
    width: 3px;
    background: var(--accent-warm);
    border-radius: 2px;
    animation: wave 0.5s ease-in-out infinite;
  }

  @keyframes wave {
    0%, 100% { height: 10px; }
    50% { height: 25px; }
  }

  .audio-wave span:nth-child(2) { animation-delay: 0.1s; }
  .audio-wave span:nth-child(3) { animation-delay: 0.2s; }
  .audio-wave span:nth-child(4) { animation-delay: 0.3s; }
  .audio-wave span:nth-child(5) { animation-delay: 0.4s; }

  /* QR Code Placeholder */
  .qr-code {
    width: 150px;
    height: 150px;
    background: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto;
    font-size: 0.75rem;
    color: #333;
    text-align: center;
    padding: 1rem;
  }

  /* Toast Notifications */
  .toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    color: var(--text-primary);
  }

  .toast.active {
    transform: translateX(-50%) translateY(0);
  }

  /* Subscribe Form */
  .subscribe-form {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
  }

  .subscribe-input {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
  }

  .subscribe-input:focus {
    outline: none;
    border-color: var(--accent-warm);
    box-shadow: 0 0 20px var(--glow-primary);
  }

  .subscribe-btn {
    padding: 1rem 2rem;
    background: var(--gradient-warm);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--glow-primary);
  }

  .subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--glow-primary);
  }

  .subscribe-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
  }

  /* assets/css/rudolf.css - nine january update/Add these sections */

/* Update the Audio Player container to be taller */
.audio-player {
  /* ... existing styles ... */
  display: flex;
  flex-direction: column;
  min-height: 500px; /* Taller player */
}

/* Update the track list to handle scrolling better */
.track-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  flex: 1; /* Takes up remaining space in player */
  margin-top: 1rem;
  padding-right: 0.5rem; /* Space for scrollbar */
  /* Custom Scrollbar Styling */
  scrollbar-width: thin;
  scrollbar-color: var(--accent-warm) var(--bg-secondary);
}

/* Webkit Scrollbar (Chrome/Safari) */
.track-list::-webkit-scrollbar {
  width: 6px;
}

.track-list::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 3px;
}

.track-list::-webkit-scrollbar-thumb {
  background-color: var(--accent-warm);
  border-radius: 3px;
  border: 1px solid var(--bg-secondary);
}

/* assets/css/rudolf.css */

/* 1. Force the Panel to be exactly one screen tall (Mobile & Desktop) */
.panel {
  height: 100dvh;          /* dynamic viewport height (fixes mobile address bar jumps) */
  min-height: 100dvh;      
  overflow: hidden;        /* PREVENTS the panel from stretching */
  padding: 1rem;           /* Reduce padding on mobile to save space */
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative; 
}

/* 2. Make the Content Container Flexible */
.panel-content {
  max-height: 100%;        /* Never exceed the panel */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 3. The Elastic Audio Player */
.audio-player {
  display: flex;
  flex-direction: column;
  
  /* Smart Height Logic */
  max-height: 70dvh;       /* The player can take up to 70% of the screen height */
  min-height: 0;           /* Allow it to shrink if needed */
  
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  padding: 1.5rem;         /* Slightly smaller padding for mobile safety */
  border: 1px solid var(--border-subtle);
  margin-top: 1rem;
}

/* 4. The Header (Art + Title) - Keep it rigid */
.album-info {
  flex-shrink: 0;          /* Don't squash the album art */
  margin-bottom: 1rem;
}

/* 5. The Controls (Play/Bar) - Keep it rigid */
.audio-controls {
  flex-shrink: 0;          /* Don't squash the buttons */
  margin-bottom: 1rem;
}

/* 6. The Track List - THIS is what scrolls */
.track-list {
  overflow-y: auto;        /* Scroll INSIDE the list */
  flex-grow: 1;            /* Take up all remaining space */
  min-height: 0;           /* Critical for flex scrolling */
  padding-right: 0.5rem;
  
  /* Scrollbar Styling */
  scrollbar-width: thin;
  scrollbar-color: var(--accent-warm) transparent;
}

/* Make album art smaller on very small screens to save space */
@media (max-height: 700px) {
  .album-art {
    width: 60px;
    height: 60px;
  }
  .audio-player {
    padding: 1rem;
  }
}
/* assets/css/rudolf.css */

.panel-content {
  max-height: 100%;        /* Never exceed the panel height */
  width: 100%;
  max-width: 600px;
  z-index: 2;
  
  /* Flex centering */
  display: flex;
  flex-direction: column;
  justify-content: center;
  
  /* SCROLL SAFETY: Allow content to scroll if text is too long for mobile */
  overflow-y: auto;        
  padding-right: 10px;     /* Prevent scrollbar from overlapping text */
}