@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%); color: #e0e7ff; min-height: 100vh; }
.header { background: rgba(15, 12, 41, 0.9); padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #4c1d95; backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 1000; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.8rem; font-weight: 800; }
.logo-svg { width: 50px; height: 50px; }
.user-info { display: flex; align-items: center; gap: 1rem; }
.btn-signout { background: rgba(255,255,255,0.1); color: white; border: none; padding: 0.6rem 1.2rem; border-radius: 50px; cursor: pointer; font-weight: 600; }
.container { max-width: 1400px; margin: 0 auto; padding: 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.stat-card { background: rgba(76, 29, 149, 0.3); padding: 1.8rem; border-radius: 20px; text-align: center; border: 1px solid rgba(168, 85, 247, 0.4); }
.stat-value { font-size: 3rem; font-weight: 800; background: linear-gradient(135deg, #a855f7, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.tabs { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; justify-content: center; }
.tab { padding: 1rem 2rem; border-radius: 50px; background: rgba(255,255,255,0.05); cursor: pointer; transition: all 0.3s; font-weight: 600; }
.tab.active { background: linear-gradient(135deg, #a855f7, #ec4899); }
.frequencies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.frequency-card { background: rgba(76, 29, 149, 0.2); border-radius: 20px; padding: 2rem; border: 2px solid rgba(168, 85, 247, 0.3); transition: all 0.4s; }
.frequency-card:hover { transform: translateY(-8px); border-color: #ec4899; }
.frequency-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.frequency-hz { font-size: 2rem; color: #a855f7; margin: 0.5rem 0; }
.play-btn { width: 100%; padding: 1.2rem; margin-top: 1rem; background: linear-gradient(135deg, #a855f7, #ec4899); border: none; border-radius: 15px; color: white; font-weight: 700; cursor: pointer; }
.play-btn.playing { background: #ef4444; }
.manifestation-section { margin-top: 4rem; background: rgba(15, 12, 41, 0.6); border-radius: 24px; padding: 3rem; border: 1px solid rgba(212, 175, 55, 0.3); }
.manifestation-title { text-align: center; font-size: 2.5rem; margin-bottom: 2rem; background: linear-gradient(135deg, #d4af37, #00d4aa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.intention-form { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.form-group { display: flex; flex-direction: column; }
.form-group label { margin-bottom: 0.5rem; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea { padding: 1rem; border-radius: 12px; border: 2px solid rgba(0, 212, 170, 0.3); background: rgba(248, 249, 250, 0.1); color: white; }
.intensity-slider { display: flex; align-items: center; gap: 1rem; }
.slider { flex: 1; }
.bath-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.bath-card { background: rgba(212, 175, 55, 0.1); border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 20px; padding: 2rem; text-align: center; cursor: pointer; transition: all 0.4s; }
.bath-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3); }
.bath-title { font-size: 1.4rem; font-weight: 700; color: #d4af37; margin: 1rem 0; }
.benefits-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; padding: 0; }
.benefits-list li { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.85rem; }

/* Manifestation Toolkit */
.manifestation-hero { text-align: center; margin-bottom: 2.5rem; }
.manifestation-title { font-size: 2.5rem; font-weight: 700; background: linear-gradient(45deg, #00d4aa, #d4af37); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.5rem; }
.manifestation-subtitle { color: rgba(224, 231, 255, 0.8); max-width: 720px; margin: 0 auto; font-size: 1.1rem; }
.manifestation-dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.manifest-card { background: rgba(248, 249, 250, 0.05); border: 1px solid rgba(0, 212, 170, 0.2); border-radius: 20px; padding: 1.75rem; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; }
.manifest-card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(0, 212, 170, 0.2); border-color: #00d4aa; }
.manifest-card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; color: #00d4aa; display: flex; align-items: center; gap: 0.5rem; }
.manifest-form { display: flex; flex-direction: column; gap: 1rem; }
.manifest-form label { font-weight: 600; margin-bottom: 0.35rem; }
.manifest-input, .manifest-textarea, .manifest-select { width: 100%; padding: 0.85rem 1rem; border-radius: 14px; border: 1px solid rgba(0, 212, 170, 0.3); background: rgba(15, 12, 41, 0.4); color: #e0e7ff; }
.manifest-input:focus, .manifest-textarea:focus, .manifest-select:focus { outline: none; border-color: #00d4aa; box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.15); }
.manifest-textarea { min-height: 110px; resize: vertical; }
.manifest-slider { display: flex; align-items: center; gap: 0.75rem; }
.manifest-slider input[type="range"] { flex: 1; accent-color: #00d4aa; }
.manifest-slider-value { font-family: 'JetBrains Mono', monospace; color: #d4af37; font-size: 1.1rem; min-width: 32px; text-align: center; }
.manifest-stats { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 0.75rem; }
.manifest-stat { background: rgba(0, 212, 170, 0.08); padding: 0.9rem; border-radius: 14px; text-align: center; }
.manifest-stat-value { font-size: 1.6rem; font-weight: 700; color: #00d4aa; }
.manifest-stat-label { font-size: 0.9rem; color: rgba(224, 231, 255, 0.75); }
.manifest-session { display: flex; flex-direction: column; gap: 1rem; }
.manifest-timer { text-align: center; padding: 1.2rem; background: rgba(0, 212, 170, 0.08); border-radius: 16px; }
.manifest-timer-value { font-size: 2.4rem; font-weight: 700; font-family: 'JetBrains Mono', monospace; color: #00d4aa; }
.manifest-buttons { display: grid; grid-template-columns: repeat(3, minmax(90px, 1fr)); gap: 0.75rem; }
.btn-manifest { border: none; border-radius: 14px; padding: 0.85rem; font-weight: 600; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.btn-primary { background: linear-gradient(120deg, #00d4aa, #d4af37); color: #0f0c29; }
.btn-secondary { background: rgba(255, 255, 255, 0.08); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.15); }
.btn-danger { background: linear-gradient(120deg, #f87171, #fb923c); color: #0f0c29; }
.btn-manifest:disabled { opacity: 0.5; cursor: not-allowed; }
.manifest-recommendations { display: flex; flex-direction: column; gap: 0.85rem; }
.recommendation-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(248, 249, 250, 0.02); cursor: pointer; transition: border-color 0.2s, transform 0.2s; }
.recommendation-card:hover { border-color: #00d4aa; transform: translateY(-2px); }
.recommendation-details { display: flex; flex-direction: column; gap: 0.2rem; }
.recommendation-meta { font-size: 0.85rem; color: rgba(224, 231, 255, 0.7); }
.recommendation-action { border: none; background: rgba(0, 212, 170, 0.18); border-radius: 999px; padding: 0.45rem 1.35rem; font-weight: 600; color: #0f0c29; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 212, 170, 0.35); transition: transform 0.2s, box-shadow 0.2s, background 0.2s; }
.recommendation-action:hover { transform: translateY(-1px); background: linear-gradient(120deg, #00d4aa, #34d399); box-shadow: 0 10px 20px rgba(0, 212, 170, 0.25); }
.recommendation-action:focus-visible { outline: 2px solid rgba(0, 212, 170, 0.8); outline-offset: 2px; }
.manifest-achievements { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.achievement-card { text-align: center; padding: 1rem; border-radius: 18px; border: 1px dashed rgba(255, 255, 255, 0.2); background: rgba(248, 249, 250, 0.03); transition: border-color 0.3s, box-shadow 0.3s; }
.achievement-card.unlocked { border-style: solid; border-color: #d4af37; box-shadow: 0 0 20px rgba(212, 175, 55, 0.25); }
.achievement-icon { font-size: 1.8rem; margin-bottom: 0.4rem; }
.achievement-name { font-weight: 600; margin-bottom: 0.2rem; color: #d4af37; }
.achievement-desc { font-size: 0.85rem; color: rgba(224, 231, 255, 0.7); }
.manifest-baths { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.manifest-bath-card { border-radius: 22px; border: 1px solid rgba(212, 175, 55, 0.35); padding: 1.5rem; background: rgba(248, 249, 250, 0.04); text-align: center; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; }
.manifest-bath-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(212, 175, 55, 0.25); }
.manifest-bath-name { font-size: 1.2rem; font-weight: 600; color: #d4af37; margin-bottom: 0.5rem; }
.manifest-bath-freqs { font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: #00d4aa; margin-bottom: 0.35rem; }
.manifest-bath-desc { font-size: 0.9rem; color: rgba(224, 231, 255, 0.75); margin-bottom: 0.9rem; }
.manifest-empty { color: rgba(224, 231, 255, 0.7); font-style: italic; text-align: center; padding: 1rem 0; }
.notification-toast { position: fixed; top: 96px; right: 24px; background: linear-gradient(120deg, #00d4aa, #4ade80); color: #0f0c29; padding: 1rem 1.3rem; border-radius: 16px; box-shadow: 0 15px 35px rgba(0, 212, 170, 0.3); font-weight: 600; z-index: 2000; animation: toast-in 0.25s ease; }
@keyframes toast-in { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toast-out { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }

/* Composer Workspace */
.composer-hero { text-align: center; margin-bottom: 2.5rem; }
.composer-title { font-size: 2.4rem; font-weight: 700; background: linear-gradient(120deg, #8b5cf6, #00d4aa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.composer-subtitle { color: rgba(224, 231, 255, 0.8); font-size: 1rem; max-width: 720px; margin: 0.5rem auto 0; }
.composer-grid { display: grid; grid-template-columns: 320px 1fr 280px; gap: 1.5rem; }
.composer-panel { background: rgba(248, 249, 250, 0.05); border: 1px solid rgba(139, 92, 246, 0.25); border-radius: 22px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.composer-panel h3 { font-size: 1.1rem; color: #c4b5fd; margin-bottom: 0.5rem; }
.composer-panel-header { display: flex; flex-direction: column; gap: 0.75rem; }
.composer-filters { display: flex; flex-direction: column; gap: 0.6rem; }
.composer-search, .composer-select, .composer-title-input { width: 100%; padding: 0.75rem 0.9rem; border-radius: 14px; border: 1px solid rgba(139, 92, 246, 0.4); background: rgba(15, 12, 41, 0.4); color: #e0e7ff; }
.composer-search:focus, .composer-select:focus, .composer-title-input:focus { outline: none; border-color: #00d4aa; box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.15); }
.composer-library-list { display: flex; flex-direction: column; gap: 0.75rem; overflow-y: auto; max-height: 520px; padding-right: 0.5rem; }
.composer-library-card { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 1rem; background: rgba(248, 249, 250, 0.03); display: flex; flex-direction: column; gap: 0.4rem; }
.composer-library-card h4 { font-size: 1rem; font-weight: 600; }
.composer-library-meta { font-size: 0.85rem; color: rgba(224, 231, 255, 0.7); display: flex; justify-content: space-between; }
.composer-library-card button { margin-top: 0.5rem; border: none; border-radius: 12px; padding: 0.55rem; background: linear-gradient(120deg, #00d4aa, #34d399); color: #0f0c29; font-weight: 600; cursor: pointer; }
.builder-panel { gap: 1.25rem; }
.builder-header { display: flex; flex-direction: column; gap: 0.9rem; }
.builder-mode { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.9rem; }
.builder-mode label { display: flex; align-items: center; gap: 0.35rem; cursor: pointer; }
.composer-layers { display: flex; flex-direction: column; gap: 1rem; min-height: 180px; }
.composer-layer { border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; padding: 1rem; background: rgba(248, 249, 250, 0.03); display: flex; flex-direction: column; gap: 0.75rem; }
.composer-layer-header { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.composer-layer-name { font-weight: 600; }
.composer-layer-meta { font-size: 0.85rem; color: rgba(224, 231, 255, 0.7); }
.composer-layer-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; }
.composer-control { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; }
.composer-control input[type="range"] { accent-color: #8b5cf6; }
.composer-layer-remove { border: none; border-radius: 999px; padding: 0.35rem 0.9rem; background: rgba(248, 113, 113, 0.2); color: #fca5a5; font-weight: 600; cursor: pointer; }
.composer-empty-state { text-align: center; padding: 2rem; border: 1px dashed rgba(255, 255, 255, 0.2); border-radius: 18px; color: rgba(224, 231, 255, 0.7); }
.composer-timeline-wrapper { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px; padding: 1rem; background: rgba(248, 249, 250, 0.02); }
.composer-timeline { display: flex; flex-direction: column; gap: 0.5rem; }
.composer-timeline-row { position: relative; height: 32px; background: rgba(15, 12, 41, 0.4); border-radius: 12px; overflow: hidden; }
.composer-timeline-bar { position: absolute; top: 0; left: 0; height: 100%; border-radius: 12px; background: linear-gradient(120deg, #8b5cf6, #ec4899); box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4); }
.composer-timeline-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; }
.composer-summary { margin-top: 0.75rem; font-size: 0.9rem; color: rgba(224, 231, 255, 0.75); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.composer-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.composer-actions button { flex: 1; min-width: 140px; border: none; border-radius: 14px; padding: 0.85rem 1rem; font-weight: 600; cursor: pointer; }
.btn-compose-primary { background: linear-gradient(120deg, #00d4aa, #34d399); color: #0f0c29; }
.btn-compose-secondary { background: rgba(255, 255, 255, 0.08); color: #f8fafc; border: 1px solid rgba(255, 255, 255, 0.15); }
.btn-compose-danger { background: linear-gradient(120deg, #f87171, #fb7185); color: #0f0c29; }
.composer-saved-list { display: flex; flex-direction: column; gap: 0.75rem; max-height: 520px; overflow-y: auto; padding-right: 0.5rem; }
.composer-saved-card { border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 0.75rem; background: rgba(15, 12, 41, 0.35); display: flex; flex-direction: column; gap: 0.4rem; }
.composer-saved-card h4 { font-size: 1rem; }
.composer-saved-meta { font-size: 0.8rem; color: rgba(224, 231, 255, 0.7); }
.composer-saved-actions { display: flex; gap: 0.5rem; }
.composer-saved-actions button { flex: 1; border: none; border-radius: 12px; padding: 0.5rem; font-weight: 600; cursor: pointer; }
.composer-saved-actions .load-btn { background: rgba(0, 212, 170, 0.2); color: #34d399; }
.composer-saved-actions .delete-btn { background: rgba(248, 113, 113, 0.15); color: #fca5a5; }
.composer-empty-saved { text-align: center; color: rgba(224, 231, 255, 0.6); font-size: 0.9rem; padding: 1rem 0; }

@media (max-width: 768px) {
	.manifest-buttons { grid-template-columns: 1fr; }
	.manifestation-dashboard { grid-template-columns: 1fr; }
  .composer-grid { grid-template-columns: 1fr; }
}