/* Clear Ground - Styles
   Version 3.0 - Visual Redesign
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */

:root {
    /* Colors - Dark Theme */
    --bg-primary: #0a0a0a;
    --bg-surface: #111111;
    --bg-surface-2: #1a1a1a;
    --bg-input: #1a1a1a;
    
    --border-subtle: #2a2a2a;
    --border-focus: #8b5cf6;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    --accent-primary: #8b5cf6;
    --accent-primary-hover: #7c4ddb;
    --accent-gold: #c9a227;
    --success: #4fd1c5;
    --danger: #f87171;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   ANIMATED BACKGROUND - NODE NETWORK
   ============================================ */

#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   LOADING SCREEN
   ============================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-lg);
    animation: pulse-glow 2s ease-in-out infinite;
}

.loading-icon img {
    width: 100%;
    height: 100%;
}

.loading-app-name {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.loading-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.loading-dots {
    display: flex;
    gap: var(--space-sm);
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: loading-pulse 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loading-pulse {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.8;
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
    }
}

/* ============================================
   APP CONTAINER
   ============================================ */

.app-container {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   GLOBAL HEADER
   ============================================ */

.global-header {
    padding: var(--space-md) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.global-header-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.global-header-icon {
    width: 28px;
    height: 28px;
    transition: all var(--transition-normal);
}

.global-header-icon.active {
    animation: header-pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 6px var(--accent-primary));
}

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

.global-header-title {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.user-selector {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
}

.user-selector:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.content-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 80px;
}

.view {
    display: none;
    padding: var(--space-md);
    animation: fadeIn var(--transition-normal);
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   VIEW HEADERS
   ============================================ */

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.view-header h2 {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    font-size: 0.95rem;
    font-weight: 400;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    font-family: inherit;
}

.btn.primary {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.btn.primary:hover {
    background: var(--accent-primary-hover);
    border-color: var(--accent-primary-hover);
}

.btn.primary:active {
    transform: scale(0.98);
}

.btn.secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-subtle);
}

.btn.secondary:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.btn.danger {
    background: transparent;
    color: var(--danger);
    border-color: var(--danger);
}

.btn.danger:hover {
    background: var(--danger);
    color: white;
}

.btn.small {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
}

.btn.tiny {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.75rem;
}

.btn.large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    width: 100%;
}

/* ============================================
   ACTION BUTTONS (Dashboard)
   ============================================ */

/* Dashboard Hero */
.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) 0;
    min-height: 25vh;
}

.hero-icon {
    width: 120px;
    height: 120px;
    opacity: 0.15;
    filter: grayscale(30%);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.action-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.05);
}

.action-btn:active {
    transform: scale(0.98);
}

.btn-icon {
    font-size: 1.5rem;
    opacity: 0.7;
}

.btn-text {
    font-size: 0.85rem;
    font-weight: 400;
}

/* Dashboard Stats Summary */
#viewDashboard .stats-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

#viewDashboard .stat-card {
    background: transparent;
    border: 1px solid var(--border-subtle);
    padding: var(--space-md) var(--space-sm);
}

#viewDashboard .stat-value {
    font-size: 1.25rem;
}

#viewDashboard .stat-label {
    font-size: 0.65rem;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Select dropdown styling */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0a0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

select option {
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: var(--space-sm);
}

/* Category filter - more prominent */
.filter-row {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    margin-bottom: var(--space-md);
}

.filter-row > select,
.filter-group {
    flex: 1;
    padding: var(--space-md);
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
}

.filter-row > select:focus,
.filter-group:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

/* ============================================
   FILTER GROUPS
   ============================================ */

.filter-group {
    margin-bottom: var(--space-md);
}

.filter-group select {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
}

.filter-row {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.filter-row select {
    flex: 1;
}

/* Toggle switch */
.toggle-container {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.toggle-container label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    transition: var(--transition-fast);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition-fast);
}

input:checked + .toggle-slider {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
    background: white;
}

/* ============================================
   MARKERS LIST
   ============================================ */

.markers-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: var(--space-sm);
}

.category-header:first-child {
    margin-top: 0;
}

.category-header:hover {
    border-color: var(--text-muted);
}

.category-header.collapsed {
    opacity: 0.7;
}

.category-header-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.category-header-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.category-header-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-surface-2);
    padding: 2px 8px;
    border-radius: 10px;
}

.category-collapse-icon {
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.category-header.collapsed .category-collapse-icon {
    transform: rotate(-90deg);
}

.category-markers {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding-left: var(--space-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.category-markers.collapsed {
    display: none;
}

.marker-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.marker-card:hover {
    border-color: var(--accent-primary);
}

.marker-card.no-value {
    opacity: 0.6;
}

.marker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.marker-name {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.marker-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-primary);
}

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

/* Gold highlight for milestones */
.marker-value.milestone {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(201, 162, 39, 0.3);
}

/* ============================================
   ASSESSMENT MODAL
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn var(--transition-normal);
}

.modal-content.large {
    max-width: 500px;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color var(--transition-fast);
}

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

.modal-body {
    padding: var(--space-lg);
}

.modal-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: var(--space-sm);
}

.modal-footer .btn {
    flex: 1;
}

/* Assessment specific */
.marker-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.current-value-display {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    text-align: center;
}

.current-value-display.hidden {
    display: none;
}

.current-value-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: var(--space-sm);
}

.current-value-amount {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-primary);
}

.assessment-input {
    margin-bottom: var(--space-md);
}

.assessment-input label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.slider-container input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-surface-2);
    border-radius: 3px;
    outline: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider-value {
    min-width: 50px;
    text-align: right;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.assessment-notes {
    margin-bottom: var(--space-md);
}

.assessment-notes label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.assessment-notes textarea {
    width: 100%;
    min-height: 100px;
    padding: var(--space-md);
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    line-height: 1.5;
}

.assessment-notes textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

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

.previous-reveal {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    text-align: center;
}

.previous-reveal.hidden {
    display: none;
}

.reveal-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.reveal-value {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent-gold);
}

/* ============================================
   ENERGY MODE TOGGLE
   ============================================ */

.mode-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.mode-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

#modeLabelSimple {
    color: var(--text-primary);
}

.mode-toggle input:checked ~ #modeLabelSimple,
.mode-toggle:has(input:checked) #modeLabelSimple {
    color: var(--text-muted);
}

.mode-toggle:has(input:checked) #modeLabelAdvanced {
    color: var(--text-primary);
}

/* ============================================
   SIMPLE MODE
   ============================================ */

.simple-setup {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: var(--space-lg);
}

.simple-section {
    width: 100%;
    margin-bottom: var(--space-xl);
    text-align: center;
}

.simple-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Work Options */
.work-options {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.work-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--bg-surface);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 90px;
    font-family: inherit;
}

.work-option:hover {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.05);
}

.work-option.active {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.work-icon {
    font-size: 1.75rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.work-option.active .work-icon {
    color: var(--accent-primary);
}

.work-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.work-option.active .work-name {
    color: var(--text-primary);
}

/* Duration Selector */
.duration-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
}

.duration-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.duration-btn:hover {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.1);
}

.duration-btn:active {
    transform: scale(0.95);
}

.duration-display {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-primary);
    min-width: 120px;
    text-align: center;
}

/* Simple Start Button */
.simple-start-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: var(--space-xl);
}

.simple-start-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), #a78bfa);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.simple-start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.5);
}

.simple-start-btn:active {
    transform: scale(0.98);
}

.simple-start-icon {
    width: 60px;
    height: 60px;
    filter: brightness(10);
}

.simple-start-hint {
    margin-top: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Simple Active Mode */
.simple-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: var(--space-xl);
    min-height: 400px;
}

.simple-active-work {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.simple-timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.simple-logo-btn {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), #a78bfa);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    box-shadow: 0 4px 30px rgba(139, 92, 246, 0.4);
}

.simple-logo-btn.pulsing {
    animation: simple-pulse 2s ease-in-out infinite;
}

@keyframes simple-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 30px rgba(139, 92, 246, 0.4);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 6px 40px rgba(139, 92, 246, 0.6);
    }
}

.simple-logo-icon {
    width: 70px;
    height: 70px;
    filter: brightness(10);
}

.simple-timer {
    font-size: 3rem;
    font-weight: 200;
    color: var(--text-primary);
    cursor: pointer;
    font-variant-numeric: tabular-nums;
    transition: color var(--transition-fast);
}

.simple-timer:hover {
    color: var(--accent-primary);
}

.simple-timer-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.simple-controls {
    display: flex;
    gap: var(--space-md);
    margin-top: auto;
}

/* ============================================
   TIMER
   ============================================ */

.timer-setup {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Intensity buttons */
.intensity-select {
    display: flex;
    gap: var(--space-xs);
}

.intensity-btn {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.intensity-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-secondary);
}

.intensity-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* Custom duration input */
.custom-duration {
    margin-top: var(--space-sm);
}

.custom-duration input {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
}

.custom-duration input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.custom-duration input::placeholder {
    color: var(--text-muted);
}

/* Active Timer Display */
.timer-active {
    padding: var(--space-lg) 0;
}

.timer-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-xl) var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

/* Pulsing icon */
.timer-icon-pulse {
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-lg);
    animation: icon-pulse 3s ease-in-out infinite;
}

.timer-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.5));
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.7));
    }
}

.timer-target {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    text-align: center;
}

.timer-countdown {
    font-size: 3.5rem;
    font-weight: 200;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}

/* Progress bar */
.timer-progress {
    width: 100%;
    max-width: 300px;
    margin-bottom: var(--space-sm);
}

.progress-bar {
    height: 6px;
    background: var(--bg-surface-2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), #a78bfa);
    border-radius: 3px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.timer-percentage {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timer-info {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
}

.info-row:not(:last-child) {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-sm);
}

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

.info-row span:last-child {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.timer-notes-display {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.timer-notes-display:empty {
    display: none;
}

.timer-controls {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.timer-controls .btn {
    min-width: 120px;
}

.duration-presets {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.preset-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.preset-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.preset-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* ============================================
   PROGRAMS (formerly Playlists)
   ============================================ */

.playlists-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.playlist-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.playlist-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.playlist-card-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.playlist-card-duration {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.playlist-card-items {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.playlist-card-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Playlist Items in Modal */
.playlist-items h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.playlist-items-sortable {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.playlist-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.playlist-item-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
}

.playlist-item-row select {
    min-width: 0;
    flex: 1;
    padding: var(--space-md);
    padding-right: 40px;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0a0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.playlist-item-row select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.playlist-item-marker {
    width: 100%;
}

.playlist-item-row input[type="number"] {
    width: 60px;
    padding: var(--space-md);
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    text-align: center;
    font-family: inherit;
}

.playlist-item-row input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.playlist-item-custom-note {
    display: none;
}

.playlist-item-custom-note.visible {
    display: block;
}

.playlist-item-custom-note input {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
}

.playlist-item-custom-note input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.playlist-item-custom-note input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.playlist-item-options {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-sm);
    align-items: center;
}

.playlist-item-transmission {
    min-width: 0;
    flex: 1;
}

.playlist-item-intensity {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.playlist-item-intensity button {
    padding: 4px 8px;
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    min-width: 28px;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.playlist-item-intensity button:hover {
    border-color: var(--text-muted);
}

.playlist-item-intensity button.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.playlist-item-controls {
    display: flex;
    gap: var(--space-xs);
    flex-shrink: 0;
}

.move-btn, .remove-item {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.75rem;
    transition: all var(--transition-fast);
}

.move-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.remove-item:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.playlist-total {
    padding: var(--space-md);
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    text-align: center;
    margin-top: var(--space-md);
}

.playlist-total-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: var(--space-sm);
}

.playlist-total-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Playlist Runner */
.playlist-runner {
    padding: var(--space-md);
}

.playlist-runner.hidden {
    display: none;
}

.runner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.runner-header h3 {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-primary);
}

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

.runner-current {
    text-align: center;
    padding: var(--space-xl) 0;
}

.current-item-name {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.current-item-timer {
    font-size: 3.5rem;
    font-weight: 200;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    animation: timer-pulse 2s ease-in-out infinite;
}

.current-item-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
}

.runner-queue {
    margin-bottom: var(--space-lg);
}

.queue-item {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-xs);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.runner-controls {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

/* ============================================
   STATISTICS
   ============================================ */

.stats-filter {
    margin-bottom: var(--space-lg);
}

.stats-filter select {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
}

.stats-filter select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.stats-charts {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.chart-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}

.chart-card h3 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.chart-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.chart-container {
    height: 200px;
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: var(--space-sm) 0;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Bar chart styles (for custom JS charts) */
.chart-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 4px;
    height: 100%;
    width: 100%;
}

.chart-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 40px;
}

.bar {
    width: 100%;
    background: linear-gradient(to top, var(--accent-primary), rgba(139, 92, 246, 0.5));
    border-radius: 3px 3px 0 0;
    min-height: 2px;
    transition: height var(--transition-normal);
}

.bar-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-xs);
    white-space: nowrap;
}

.bar-value {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

/* Breakdown list */
.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.breakdown-item {
    padding: var(--space-sm) 0;
}

.breakdown-bar-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.breakdown-name {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.breakdown-bar {
    height: 24px;
    background: var(--bg-surface-2);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.breakdown-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), #a78bfa);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: var(--space-sm);
    min-width: fit-content;
}

.breakdown-value {
    font-size: 0.75rem;
    color: white;
    font-weight: 500;
    white-space: nowrap;
}

/* Progress trend marker selector */
.chart-card .form-group {
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 10;
}

.chart-card .form-group select {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-surface-2);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

/* Correlation list */
.correlation-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.correlation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm);
    background: var(--bg-surface-2);
    border-radius: var(--radius-sm);
}

.correlation-name {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.correlation-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-primary);
}

.correlation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.correlation-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ============================================
   HISTORY
   ============================================ */

.history-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.tab-btn {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.tab-btn:hover {
    border-color: var(--text-muted);
}

.tab-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.history-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-xs);
}

.history-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.history-item-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.history-item-details {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   SETTINGS
   ============================================ */

.settings-section {
    margin-bottom: var(--space-xl);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.settings-section h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-subtle);
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.settings-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.settings-label {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.settings-label > span:first-child {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.settings-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Toggle switch for settings */
.toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 26px;
    transition: var(--transition-fast);
}

.toggle .toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.toggle input:checked + .toggle-slider {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(22px);
    background: white;
}

/* Setting item alternate style */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.setting-item:last-child {
    border-bottom: none;
}

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

.setting-description {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* Users list */
.users-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

/* Transmissions */
.transmissions-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.transmission-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.transmission-item.default {
    opacity: 0.7;
}

.transmission-default {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-left: var(--space-xs);
    opacity: 0.6;
}

.transmission-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    transition: color var(--transition-fast);
}

.transmission-remove:hover {
    color: var(--danger);
}

.add-transmission-row {
    display: flex;
    gap: var(--space-sm);
}

.add-transmission-row input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface-2);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
}

.add-transmission-row input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.version {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   RECENT ACTIVITY
   ============================================ */

.recent-activity h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-surface-2);
    border-radius: var(--radius-sm);
}

.activity-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.activity-details {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.activity-icon {
    font-size: 1.25rem;
    opacity: 0.7;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 0.9rem;
    color: var(--text-primary);
}

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

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-around;
    padding: var(--space-sm) 0;
    padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom));
    z-index: 100;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-sm) var(--space-md);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.65rem;
    cursor: pointer;
    transition: color var(--transition-fast);
    font-family: inherit;
    position: relative;
}

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

.nav-btn.active {
    color: var(--text-primary);
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.nav-icon {
    font-size: 1.25rem;
}

.nav-label {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
    position: fixed;
    top: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    pointer-events: none;
}

.toast {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    animation: toastIn 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--danger);
}

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

/* ============================================
   EMPTY STATES
   ============================================ */

.empty-state {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   UTILITIES
   ============================================ */

.hidden {
    display: none !important;
}

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

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

.text-accent {
    color: var(--accent-primary);
}

.text-gold {
    color: var(--accent-gold);
}

/* ============================================
   PROFILE PAGE
   ============================================ */

/* Profile Card in Settings */
.profile-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-card:hover {
    background: rgba(139, 92, 246, 0.1);
}

.profile-card:active {
    transform: scale(0.98);
}

.profile-card-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.profile-card-content {
    flex: 1;
}

.profile-card-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.profile-card-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.profile-card-arrow {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Back Button */
.back-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-sm);
    margin-right: var(--space-sm);
    margin-left: calc(-1 * var(--space-sm));
}

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

/* Profile User Info */
.profile-user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg) 0;
    margin-bottom: var(--space-md);
}

.profile-avatar {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
    opacity: 0.7;
}

.profile-username {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
}

/* Network Connection Card */
.network-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    transition: all var(--transition-normal);
}

.network-card.connected {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.network-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.network-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all var(--transition-normal);
}

.network-card.connected .network-icon {
    color: var(--accent-primary);
    animation: network-pulse 3s ease-in-out infinite;
}

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

.network-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.network-description p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.network-card.connected .network-description p {
    color: var(--text-primary);
}

/* Intentions Section */
.intentions-section {
    margin-bottom: var(--space-lg);
}

.intentions-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.intentions-icon {
    font-size: 1.25rem;
    color: var(--accent-gold);
}

.intentions-header h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.intentions-intro {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-lg);
}

/* Intention Tabs */
.intention-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    background: var(--bg-surface-2);
    padding: var(--space-xs);
    border-radius: var(--radius-md);
}

.intention-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.intention-tab.active {
    background: var(--bg-surface);
    color: var(--text-primary);
}

/* Tab color hints */
.intention-tab[data-tab="release"] .tab-icon {
    color: #f87171;
}

.intention-tab[data-tab="raise"] .tab-icon {
    color: var(--accent-primary);
}

.intention-tab[data-tab="realize"] .tab-icon {
    color: var(--accent-gold);
}

.intention-tab.active[data-tab="release"] {
    border-bottom: 2px solid #f87171;
}

.intention-tab.active[data-tab="raise"] {
    border-bottom: 2px solid var(--accent-primary);
}

.intention-tab.active[data-tab="realize"] {
    border-bottom: 2px solid var(--accent-gold);
}

/* Intention Content */
.intention-content {
    display: none;
}

.intention-content.active {
    display: block;
}

/* Intention Cards */
.intention-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.intention-card:hover {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.05);
}

.intention-card:active {
    transform: scale(0.99);
}

.intention-card.has-content {
    border-color: var(--border-subtle);
}

.intention-card.has-content .intention-preview {
    color: var(--text-primary);
}

.intention-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.intention-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.intention-edit {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.intention-card:hover .intention-edit {
    opacity: 1;
}

.intention-preview {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Privacy Note */
.privacy-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding: var(--space-md);
}

/* Intention Modal */
#intentionModal .modal-body {
    padding: var(--space-md);
}

.intention-helper {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

#intentionTextarea {
    width: 100%;
    min-height: 200px;
    padding: var(--space-md);
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
}

#intentionTextarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

#intentionTextarea::placeholder {
    color: var(--text-muted);
}

/* ============================================
   AWAKEN SECTION
   ============================================ */

/* Awaken Launcher */
.awaken-intro {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.practice-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: var(--space-md);
}

.practice-card:hover {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.05);
}

.practice-card:active {
    transform: scale(0.99);
}

.practice-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    opacity: 0.8;
    flex-shrink: 0;
}

.practice-content {
    flex: 1;
}

.practice-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm) 0;
}

.practice-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 var(--space-md) 0;
}

.practice-meta {
    display: flex;
    gap: var(--space-md);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.practice-completed {
    color: var(--success);
}

.practice-arrow {
    font-size: 1.25rem;
    color: var(--text-muted);
    align-self: center;
}

.coming-soon-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: var(--space-xl);
    font-style: italic;
}

/* Awaken Session (Immersive) */
.awaken-session-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.awaken-session-view.active {
    display: flex;
}

.session-exit-btn {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 10;
    transition: color var(--transition-fast);
}

.session-exit-btn:hover {
    color: var(--text-primary);
}

.session-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-xl);
    padding-top: 60px;
    overflow-y: auto;
    text-align: center;
}

.session-text {
    max-width: 400px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.session-text p {
    margin-bottom: var(--space-md);
}

.session-text p:last-child {
    margin-bottom: 0;
}

/* Session Timer */
.session-timer {
    margin: var(--space-xl) 0;
    width: 100%;
    max-width: 300px;
}

.timer-display {
    font-size: 2.5rem;
    font-weight: 200;
    color: var(--accent-primary);
    text-align: center;
    font-variant-numeric: tabular-nums;
    margin-bottom: var(--space-md);
}

.timer-progress {
    width: 100%;
    height: 4px;
    background: var(--bg-surface-2);
    border-radius: 2px;
    overflow: hidden;
}

.timer-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), #a78bfa);
    border-radius: 2px;
    transition: width 0.1s linear;
    width: 100%;
}

/* Session Options */
.session-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
    max-width: 350px;
    margin-top: var(--space-md);
}

.session-option {
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.session-option:hover {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.1);
}

.session-option:active {
    transform: scale(0.98);
}

.session-option.selected {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.15);
}

/* Session Text Input */
.session-input {
    width: 100%;
    max-width: 400px;
    margin-top: var(--space-md);
}

#sessionTextInput {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: none;
}

#sessionTextInput:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

#sessionTextInput::placeholder {
    color: var(--text-muted);
}

/* Session Footer */
.session-footer {
    padding: var(--space-lg);
    padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.session-continue-btn {
    padding: var(--space-md) var(--space-xl);
    background: var(--accent-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    min-width: 150px;
}

.session-continue-btn:hover {
    opacity: 0.9;
}

.session-continue-btn:active {
    transform: scale(0.98);
}

.session-continue-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.session-continue-btn.hidden {
    display: none;
}

/* Session Progress Dots */
.session-progress {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.progress-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-subtle);
    transition: background var(--transition-fast);
}

.progress-dot.completed {
    background: var(--accent-primary);
}

.progress-dot.current {
    background: var(--accent-primary);
    box-shadow: 0 0 6px var(--accent-primary);
}

/* Session Complete View */
.awaken-complete-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 1000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-xl);
}

.awaken-complete-view.active {
    display: flex;
}

.complete-content {
    text-align: center;
    max-width: 400px;
}

.complete-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: var(--space-lg);
}

.complete-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm) 0;
}

.complete-message {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: var(--space-xl);
}

.complete-summary {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    text-align: left;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
}

.summary-item:last-child {
    border-bottom: none;
}

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

.summary-value {
    color: var(--text-primary);
}

/* Modal small variant */
.modal-content.small {
    max-width: 320px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 380px) {
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .stats-summary {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xs);
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .timer-time {
        font-size: 3rem;
    }
}

/* ============================================
   SIGNAL FEATURE
   ============================================ */

/* Signal Home Card (Dashboard) */
.signal-home-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-lg);
    margin-top: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.signal-home-card:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    border-color: var(--accent-primary);
}

.signal-home-icon {
    font-size: 1.75rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 50%;
}

.signal-home-content {
    flex: 1;
}

.signal-home-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.signal-home-stats {
    display: flex;
    gap: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.signal-streak {
    color: var(--warning);
}

.signal-home-arrow {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Signal Stats Bar */
.signal-stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.signal-today-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.signal-today-count strong {
    color: var(--text-primary);
}

.signal-streak-badge {
    font-size: 0.9rem;
    color: var(--warning);
}

/* Signal Prompt */
.signal-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-2xl) var(--space-lg);
}

.signal-prompt-icon {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 30px rgba(139, 92, 246, 0.4);
    animation: signal-pulse 2.5s ease-in-out infinite;
}

.signal-prompt-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 40px rgba(139, 92, 246, 0.5);
}

.signal-prompt-icon:active {
    transform: scale(0.98);
}

@keyframes signal-pulse {
    0%, 100% {
        box-shadow: 0 4px 30px rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 4px 50px rgba(139, 92, 246, 0.6);
    }
}

.signal-bolt {
    font-size: 4rem;
    filter: brightness(10);
}

.signal-prompt-text {
    margin-top: var(--space-lg);
    font-size: 1rem;
    color: var(--text-muted);
}

.signal-category-filter {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.signal-category-filter label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.signal-category-filter select {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Signal Display */
.signal-display {
    animation: fadeIn 0.3s ease;
}

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

.signal-card-full {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.signal-category-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

/* Category badge colors */
.signal-category-badge.foundations {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.signal-category-badge.presence {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.signal-category-badge.collective-wisdom {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.signal-category-badge.creation {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.signal-category-badge.thought-leaders {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
}

.signal-lesson-number {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: var(--space-sm);
}

.signal-lesson-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: 1.4;
}

.signal-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

.signal-content p {
    margin-bottom: var(--space-md);
}

.signal-actions {
    display: flex;
    justify-content: flex-end;
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border-subtle);
    margin-top: var(--space-lg);
}

.signal-favorite-btn {
    background: none;
    border: none;
    padding: var(--space-sm);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

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

.signal-favorite-btn .favorite-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.signal-favorite-btn.active .favorite-icon {
    color: #ef4444;
}

.signal-buttons {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.signal-buttons .btn {
    flex: 1;
}

.signal-another-btn {
    margin-top: var(--space-md);
}

/* Signal Reader (Full-screen step-by-step) */
.signal-reader-view {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding: 0;
}

.signal-reader-view.active {
    display: flex;
}

.signal-reader-exit {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    padding: var(--space-sm);
    transition: color var(--transition-fast);
}

.signal-reader-exit:hover {
    color: var(--text-primary);
}

.signal-reader-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-xl);
    padding-top: 80px;
    text-align: center;
    overflow: hidden;
}

.signal-reader-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-primary);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

/* Reader badge colors */
.signal-reader-badge.foundations {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.signal-reader-badge.presence {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.signal-reader-badge.collective-wisdom {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.signal-reader-badge.creation {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.signal-reader-badge.thought-leaders {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
}

.signal-reader-number {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.signal-reader-number.visible {
    opacity: 1;
}

.signal-reader-text {
    max-width: 360px;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-primary);
    animation: fadeInUp 0.4s ease;
}

.signal-reader-text.title-step {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signal-reader-dots {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.signal-reader-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-surface-2);
    transition: all var(--transition-fast);
}

.signal-reader-dot.active {
    background: var(--accent-primary);
    transform: scale(1.2);
}

.signal-reader-dot.completed {
    background: var(--accent-secondary);
}

.signal-reader-nav {
    display: flex;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom, 0px));
    background: var(--bg-primary);
}

.signal-nav-btn {
    padding: var(--space-md) var(--space-xl);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.signal-nav-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.signal-nav-btn.primary {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.signal-nav-btn.primary:hover {
    background: var(--accent-hover);
}

.signal-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.signal-reader-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom, 0px));
    background: var(--bg-primary);
}

.signal-reader-actions .signal-favorite-btn {
    padding: var(--space-md);
}

.signal-reader-actions .signal-favorite-btn .favorite-icon {
    font-size: 2rem;
}

.signal-final-buttons {
    display: flex;
    gap: var(--space-md);
    width: 100%;
    max-width: 300px;
}

.signal-final-buttons .btn {
    flex: 1;
}

/* Signal Nav Skip Button */
.signal-nav-btn.skip {
    background: transparent;
    border-color: var(--text-muted);
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: var(--space-sm) var(--space-md);
}

.signal-nav-btn.skip:hover {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

/* Signal End Screen */
.signal-end-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    padding-bottom: calc(var(--space-2xl) + env(safe-area-inset-bottom, 0px));
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.signal-end-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: var(--space-xl);
}

.signal-end-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.signal-end-message {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 300px;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

/* Signal Rating */
.signal-rating {
    margin-bottom: var(--space-xl);
}

.signal-rating-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.signal-rating-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
}

.signal-rating-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--border-subtle);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.signal-rating-btn:hover {
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.signal-rating-btn.selected {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.15);
}

.signal-rating-btn[data-rating="up"].selected {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
}

.signal-rating-btn[data-rating="down"].selected {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.rating-icon {
    font-size: 1.75rem;
}

/* Signal End Actions */
.signal-end-actions {
    margin-bottom: var(--space-xl);
}

.signal-favorite-btn.large {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.signal-favorite-btn.large:hover {
    border-color: var(--accent-primary);
}

.signal-favorite-btn.large.active {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.signal-favorite-btn.large .favorite-icon {
    font-size: 1.25rem;
}

.signal-favorite-btn.large .favorite-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.signal-favorite-btn.large.active .favorite-text {
    color: #ef4444;
}

.signal-done-btn {
    min-width: 200px;
}

/* Signal Order Toggle */
.signal-order-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-subtle);
}

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

.order-btn {
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.order-btn:hover {
    border-color: var(--accent-primary);
}

.order-btn.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Modal small variant */
.modal.small .modal-content {
    max-width: 320px;
}

/* Signal Notification Banner */
.signal-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(124, 58, 237, 0.95));
    backdrop-filter: blur(10px);
    padding: var(--space-lg);
    padding-top: calc(var(--space-lg) + env(safe-area-inset-top, 0px));
    z-index: 2000;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.signal-notification.visible {
    transform: translateY(0);
}

.signal-notification-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.signal-notification-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.signal-notification-text {
    flex: 1;
}

.signal-notification-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.signal-notification-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.signal-notification-actions {
    display: flex;
    gap: var(--space-sm);
}

.signal-notification-btn {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    border: none;
}

.signal-notification-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.signal-notification-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.signal-notification-btn.primary {
    background: white;
    color: var(--accent-primary);
}

.signal-notification-btn.primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Signal Settings */
.signal-settings-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.signal-settings-section:last-child {
    border-bottom: none;
}

.signal-settings-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.signal-goal-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.signal-goal-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.signal-goal-btn:hover {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.1);
}

.signal-goal-value {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-primary);
    min-width: 60px;
    text-align: center;
}

.signal-time-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.signal-time-row select {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.signal-time-row span {
    color: var(--text-muted);
}

.signal-category-setting {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
}

.signal-category-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.signal-category-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.signal-category-ratio {
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 500;
    min-width: 40px;
    text-align: right;
}

.signal-category-setting input[type="range"] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-surface-2);
    border-radius: 2px;
    outline: none;
}

.signal-category-setting input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
}

.signal-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.signal-stat-item {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
}

.signal-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.signal-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* Lesson Content Info */
.signal-lesson-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.lesson-count-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
}

.lesson-category-name {
    font-weight: 500;
    color: var(--text-primary);
}

.lesson-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Signal History */
.signal-history-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    overflow-x: auto;
    padding-bottom: var(--space-xs);
}

.history-tab {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    font-family: inherit;
}

.history-tab:hover {
    border-color: var(--accent-primary);
}

.history-tab.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.signal-history-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.signal-history-item {
    padding: var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.signal-history-item:hover {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.05);
}

.signal-history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-xs);
}

.signal-history-title {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
}

.signal-history-favorite {
    color: #ef4444;
    font-size: 0.9rem;
}

.signal-history-meta {
    display: flex;
    gap: var(--space-md);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.signal-history-category {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Safe area for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
    .content-area {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

/* ============================================
   HABIT TRACKER STYLES
   ============================================ */

/* Home Card */
.habit-home-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-top: var(--space-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.habit-home-card:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.5);
}

.habit-home-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #10B981;
    margin-right: var(--space-md);
}

.habit-home-content {
    flex: 1;
}

.habit-home-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.habit-home-stats {
    display: flex;
    gap: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.habit-streak {
    color: #f97316;
}

.habit-home-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Habits View */
.habits-date {
    text-align: center;
    padding: var(--space-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.habits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    padding: var(--space-md);
}

.habit-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.habit-card:hover {
    border-color: rgba(16, 185, 129, 0.5);
}

.habit-card.completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border-color: #10B981;
}

.habit-card.completed .habit-icon {
    color: #10B981;
}

.habit-card.auto-tracked {
    opacity: 0.85;
}

.habit-card.auto-tracked::after {
    content: 'Auto';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.65rem;
    background: rgba(139, 92, 246, 0.3);
    color: var(--accent-primary);
    padding: 2px 6px;
    border-radius: 4px;
}

.habit-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.habit-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.habit-check {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: transparent;
    transition: all 0.2s ease;
}

.habit-card.completed .habit-check {
    background: #10B981;
    border-color: #10B981;
    color: white;
}

/* Habits Summary */
.habits-summary {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-lg);
    margin-top: var(--space-md);
}

.habits-summary-item {
    text-align: center;
}

.habits-summary-value {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: #10B981;
}

.habits-summary-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.habits-footer {
    text-align: center;
    padding: var(--space-lg);
}

/* Habit Settings */
.habit-settings-section {
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.habit-settings-section h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.habit-settings-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.habit-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.habit-setting-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.habit-setting-icon {
    font-size: 1.3rem;
}

.habit-setting-name {
    font-weight: 500;
    color: var(--text-primary);
}

.habit-setting-auto {
    font-size: 0.75rem;
    color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: var(--space-sm);
}

.custom-habits-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.custom-habit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.custom-habit-name {
    color: var(--text-primary);
}

.custom-habit-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-sm);
    font-size: 1.2rem;
}

.custom-habit-delete:hover {
    color: #ef4444;
}

.add-habit-form {
    display: flex;
    gap: var(--space-sm);
}

.add-habit-form input {
    flex: 1;
}

/* Habit Statistics */
.habit-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.habit-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.habit-stat-name {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.habit-stat-icon {
    font-size: 1rem;
}

.habit-stat-value {
    font-weight: 600;
    color: #10B981;
}

.habit-stats-summary {
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-md);
    margin-top: var(--space-md);
}

.habit-stat-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    font-size: 0.9rem;
}

.habit-stat-row span {
    color: var(--text-secondary);
}

.habit-stat-row strong {
    color: var(--text-primary);
}

/* Empty State */
.habits-empty {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
}

.habits-empty p {
    margin-bottom: var(--space-md);
}

/* ============================================
   ATTUNEMENTS STYLES
   ============================================ */

/* Home Card */
.attunement-home-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-top: var(--space-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.attunement-home-card:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.5);
}

.attunement-home-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #FBBF24;
    margin-right: var(--space-md);
}

.attunement-home-content {
    flex: 1;
}

.attunement-home-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.attunement-home-stats {
    display: flex;
    gap: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.attunement-available {
    color: #FBBF24;
}

.attunement-home-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Attunements Browse View */
.attunements-intro {
    text-align: center;
    color: var(--text-secondary);
    padding: var(--space-md);
    font-size: 0.95rem;
}

.attunements-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md);
}

.attunement-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.attunement-card:hover {
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateY(-2px);
}

.attunement-card.received {
    border-color: rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), transparent);
}

.attunement-card.locked {
    opacity: 0.6;
}

.attunement-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.attunement-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.attunement-card-series {
    font-size: 0.75rem;
    background: rgba(251, 191, 36, 0.2);
    color: #FBBF24;
    padding: 2px 8px;
    border-radius: 4px;
}

.attunement-card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.attunement-card-meta {
    display: flex;
    gap: var(--space-md);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.attunement-card-status {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 1.2rem;
}

.attunement-card-status.received::after {
    content: '✓';
    color: #10B981;
}

.attunement-card-status.locked::after {
    content: '🔒';
}

/* Attunement Detail View */
.attunement-detail-view {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    padding: 0;
    background: var(--bg-primary);
    z-index: 1000;
}

.attunement-detail-view.active {
    display: flex;
}

.attunement-detail-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding: var(--space-xl) var(--space-xl) 0;
}

.attunement-series-badge {
    display: inline-block;
    background: rgba(251, 191, 36, 0.2);
    color: #FBBF24;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: var(--space-sm);
}

.attunement-series-badge:empty {
    display: none;
}

.attunement-detail-header h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.attunement-detail-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.attunement-detail-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    padding-bottom: 180px;
    overflow-y: auto;
}

.attunement-detail-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    text-align: center;
    max-width: 600px;
}

.attunement-detail-nav {
    display: flex;
    justify-content: center;
    padding: var(--space-sm);
}

.attunement-dots {
    display: flex;
    gap: 8px;
}

.attunement-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.2s ease;
}

.attunement-dot.active {
    background: #FBBF24;
    transform: scale(1.2);
}

.attunement-detail-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    z-index: 10;
}

.attunement-locked-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.locked-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

/* Attunement Process View */
.attunement-process-view {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-xl);
    background: radial-gradient(circle at center, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
}

.attunement-process-view.active {
    display: flex;
}

.attunement-process-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.attunement-process-header h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
}

.attunement-process-series {
    color: #FBBF24;
    font-size: 0.9rem;
}

.attunement-process-visual {
    margin-bottom: var(--space-xl);
}

.attunement-orb {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(251, 191, 36, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: attunement-pulse 3s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(251, 191, 36, 0.3);
}

.attunement-orb-inner {
    font-size: 4rem;
    color: #FBBF24;
    animation: attunement-rotate 10s linear infinite;
}

@keyframes attunement-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 60px rgba(251, 191, 36, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 100px rgba(251, 191, 36, 0.5);
    }
}

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

.attunement-process-timer {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.attunement-countdown {
    font-size: 3rem;
    font-weight: 300;
    font-family: monospace;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.attunement-progress-bar {
    width: 200px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 0 auto var(--space-md);
    overflow: hidden;
}

.attunement-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FBBF24, #F59E0B);
    border-radius: 2px;
    width: 0%;
    transition: width 1s linear;
}

.attunement-status {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Attunement Complete View */
.attunement-complete-view {
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-xl);
}

.attunement-complete-view.active {
    display: flex;
}

.attunement-complete-content {
    text-align: center;
    max-width: 500px;
}

.attunement-complete-icon {
    font-size: 4rem;
    color: #10B981;
    margin-bottom: var(--space-lg);
    animation: attunement-complete-glow 2s ease-in-out infinite;
}

@keyframes attunement-complete-glow {
    0%, 100% { text-shadow: 0 0 20px rgba(16, 185, 129, 0.5); }
    50% { text-shadow: 0 0 40px rgba(16, 185, 129, 0.8); }
}

.attunement-complete-content h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.attunement-complete-name {
    color: #FBBF24;
    font-size: 1.2rem;
    margin-bottom: var(--space-xl);
}

.attunement-usage-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    text-align: left;
}

.attunement-usage-info h3 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.usage-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* My Attunements View */
.my-attunements-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md);
}

.my-attunement-card {
    background: var(--bg-card);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.my-attunement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
}

.my-attunement-name {
    font-weight: 600;
    color: var(--text-primary);
}

.my-attunement-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.my-attunement-series {
    font-size: 0.75rem;
    background: rgba(251, 191, 36, 0.2);
    color: #FBBF24;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: var(--space-sm);
    display: inline-block;
}

.my-attunement-usage {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-color);
    margin-top: var(--space-sm);
}

.my-attunement-usage-toggle {
    background: none;
    border: none;
    color: var(--accent-primary);
    cursor: pointer;
    font-size: 0.85rem;
    padding: var(--space-sm) 0;
}

.my-attunements-empty {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
}

/* Attunement Settings View */
.attunement-settings-section {
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.attunement-settings-section h3 {
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.admin-attunements-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.admin-attunement-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.admin-attunement-info {
    flex: 1;
}

.admin-attunement-name {
    font-weight: 500;
    color: var(--text-primary);
}

.admin-attunement-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-attunement-actions {
    display: flex;
    gap: var(--space-sm);
}

.admin-attunement-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    font-size: 1rem;
    color: var(--text-muted);
}

.admin-attunement-actions button:hover {
    color: var(--text-primary);
}

.admin-attunement-actions button.delete:hover {
    color: #ef4444;
}

/* Series empty state */
.attunements-empty {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
}

/* Series heading in attunements list */
.attunement-series-heading {
    color: #FBBF24;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: var(--space-lg) 0 var(--space-sm) 0;
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
}

.attunement-series-heading:first-child {
    margin-top: 0;
}

/* ============================================
   SHADOW SECTION STYLES
   ============================================ */

/* Home Card */
.shadow-home-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-top: var(--space-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.shadow-home-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.5);
}

.shadow-home-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #8B5CF6;
    margin-right: var(--space-md);
}

.shadow-home-content {
    flex: 1;
}

.shadow-home-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.shadow-home-stats {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.shadow-home-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Shadow Main View */
.shadow-intro {
    text-align: center;
    color: var(--text-secondary);
    padding: var(--space-md);
    font-size: 0.95rem;
}

.shadow-tools-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md);
}

.shadow-tool-card {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.shadow-tool-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.shadow-tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #8B5CF6;
    margin-right: var(--space-md);
    flex-shrink: 0;
}

.shadow-tool-content {
    flex: 1;
}

.shadow-tool-content h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.shadow-tool-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.shadow-tool-progress {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

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

.shadow-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B5CF6, #A78BFA);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.shadow-progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.shadow-tool-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.shadow-tool-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-left: var(--space-md);
}

/* Integrate/Process Stats Bar */
.integrate-stats-bar,
.process-stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.integrate-progress,
.process-progress {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.integrate-percentage,
.process-percentage {
    font-size: 1.1rem;
    font-weight: 600;
    color: #8B5CF6;
}

/* Integrate/Process Prompt */
.integrate-prompt,
.process-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    min-height: 300px;
}

.integrate-prompt-icon,
.process-prompt-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
}

.integrate-prompt-icon:hover,
.process-prompt-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.3);
}

.integrate-symbol,
.process-symbol {
    font-size: 3rem;
    color: #8B5CF6;
}

.integrate-prompt-text,
.process-prompt-text {
    margin-top: var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   INTEGRATE READER VIEW (Signal-style)
   ============================================ */

.integrate-reader-view,
.process-reader-view {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding: 0;
}

.integrate-reader-view.active,
.process-reader-view.active {
    display: flex;
}

.integrate-reader-exit,
.process-reader-exit {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    padding: var(--space-sm);
    transition: color var(--transition-fast);
}

.integrate-reader-exit:hover,
.process-reader-exit:hover {
    color: var(--text-primary);
}

.integrate-reader-content,
.process-reader-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-xl);
    padding-top: 80px;
    padding-bottom: 100px;
    text-align: center;
    overflow: hidden;
}

.integrate-reader-badge,
.process-reader-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(139, 92, 246, 0.2);
    color: #8B5CF6;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-xl);
}

.polarity-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.polarity-left,
.polarity-right {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: var(--space-md) var(--space-lg);
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-md);
    max-width: 300px;
    text-align: center;
}

.polarity-separator {
    font-size: 2rem;
    color: #8B5CF6;
}

.integrate-reader-text,
.process-reader-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: var(--space-lg);
}

.integrate-reader-dots,
.process-reader-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.integrate-reader-nav,
.process-reader-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    z-index: 10;
}

.integrate-nav-btn,
.process-nav-btn {
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    min-width: 120px;
}

.integrate-nav-btn.primary,
.process-nav-btn.primary {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    border-color: transparent;
    color: white;
}

.integrate-nav-btn.skip,
.process-nav-btn.skip {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

/* Emotion Display */
.emotion-display {
    margin-bottom: var(--space-xl);
}

.emotion-name {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: capitalize;
}

/* ============================================
   INTEGRATION/PROCESS ANIMATION
   ============================================ */

.integrate-animation-screen,
.process-animation-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    padding: var(--space-xl);
}

.integrate-animation-screen.hidden,
.process-animation-screen.hidden {
    display: none;
}

.integrate-animation-polarity,
.process-animation-emotion {
    margin-bottom: var(--space-xl);
    text-align: center;
}

.integrate-animation-polarity .polarity-left,
.integrate-animation-polarity .polarity-right {
    display: block;
    margin: var(--space-sm) auto;
    font-size: 1.2rem;
    padding: var(--space-sm) var(--space-md);
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-md);
}

.integrate-animation-polarity .polarity-separator {
    display: block;
    font-size: 1.5rem;
    color: #8B5CF6;
}

.process-animation-emotion .emotion-name {
    font-size: 2rem;
}

.integrate-animation-orb,
.process-animation-orb {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
    animation: integrate-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 80px rgba(139, 92, 246, 0.4);
}

.integrate-orb-inner,
.process-orb-inner {
    font-size: 4rem;
    color: #8B5CF6;
    animation: integrate-rotate 8s linear infinite;
}

@keyframes integrate-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 60px rgba(139, 92, 246, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 100px rgba(139, 92, 246, 0.5);
    }
}

@keyframes integrate-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.integrate-animation-timer,
.process-animation-timer {
    font-size: 3rem;
    font-weight: 600;
    color: #8B5CF6;
    margin-bottom: var(--space-sm);
}

.integrate-animation-text,
.process-animation-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: var(--space-xl);
}

.integrate-animation-progress,
.process-animation-progress {
    width: 200px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.integrate-animation-bar,
.process-animation-bar {
    height: 100%;
    background: linear-gradient(90deg, #8B5CF6, #A78BFA);
    width: 0%;
    transition: width 0.1s linear;
}

/* ============================================
   INTEGRATION/PROCESS COMPLETE SCREEN
   ============================================ */

.integrate-complete-screen,
.process-complete-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    padding: var(--space-xl);
    text-align: center;
}

.integrate-complete-screen.hidden,
.process-complete-screen.hidden {
    display: none;
}

.integrate-complete-icon,
.process-complete-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #10B981;
    margin-bottom: var(--space-lg);
}

.integrate-complete-title,
.process-complete-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.integrate-complete-polarity,
.process-complete-emotion {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-md);
}

.integrate-complete-message,
.process-complete-message {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: var(--space-xl);
    max-width: 300px;
}

.integrate-complete-actions,
.process-complete-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
    max-width: 280px;
}

/* Shadow History */
.shadow-history-list {
    padding: var(--space-md);
}

.shadow-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    border: 1px solid var(--border-color);
}

.shadow-history-item.completed {
    border-left: 3px solid #10B981;
}

.shadow-history-item.skipped {
    border-left: 3px solid var(--text-muted);
    opacity: 0.7;
}

.shadow-history-text {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.shadow-history-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Deep Clean */
.deep-clean-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 60vh;
    justify-content: center;
}

.deep-clean-state {
    text-align: center;
    max-width: 400px;
}

.deep-clean-state.hidden {
    display: none;
}

.deep-clean-icon {
    font-size: 4rem;
    color: #8B5CF6;
    margin-bottom: var(--space-lg);
}

.deep-clean-state h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.deep-clean-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.deep-clean-orb {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-xl);
    animation: deep-clean-pulse 4s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.3);
}

.deep-clean-orb-inner {
    font-size: 4rem;
    color: #8B5CF6;
}

@keyframes deep-clean-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 60px rgba(139, 92, 246, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 100px rgba(139, 92, 246, 0.5);
    }
}

.deep-clean-progress {
    margin-bottom: var(--space-md);
}

.deep-clean-days {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.deep-clean-current {
    font-size: 3rem;
    font-weight: 600;
    color: #8B5CF6;
}

.deep-clean-separator {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.deep-clean-total {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.deep-clean-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: var(--space-sm);
}

.deep-clean-progress-bar {
    width: 100%;
    max-width: 250px;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin: var(--space-md) auto;
    overflow: hidden;
}

.deep-clean-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B5CF6, #A78BFA);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.deep-clean-status {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-xl);
}

.deep-clean-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.deep-clean-complete-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #10B981;
    margin: 0 auto var(--space-lg);
}

.deep-clean-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn.large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.1rem;
}

.btn.danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.btn.danger:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* ============================================
   LIBERATION & HAPPINESS TOOL
   ============================================ */

/* Liberation card in Shadow grid */
.shadow-tool-card.liberation {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
}

.shadow-tool-card.liberation .shadow-tool-icon {
    color: #EC4899;
}

.shadow-tool-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

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

.liberation-streak {
    font-size: 0.85rem;
    color: #F59E0B;
}

/* Liberation Main View */
.liberation-stats-row {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
}

.liberation-stat-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
}

.liberation-stat-card.streak {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border-color: rgba(245, 158, 11, 0.3);
}

.liberation-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: #EC4899;
    margin-bottom: var(--space-xs);
}

.liberation-stat-card.streak .liberation-stat-value {
    color: #F59E0B;
}

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

.liberation-intro {
    padding: 0 var(--space-md);
    margin-bottom: var(--space-lg);
}

.liberation-intro p {
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
}

.liberation-instructions {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: 0 var(--space-md) var(--space-xl);
}

.liberation-instructions h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.liberation-instructions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.liberation-instructions li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: var(--space-xs) 0;
    padding-left: var(--space-lg);
    position: relative;
}

.liberation-instructions li::before {
    content: "•";
    color: #EC4899;
    position: absolute;
    left: 0;
}

.liberation-start-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-xl);
}

.liberation-prompt-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(139, 92, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.2);
    animation: liberation-pulse-soft 3s ease-in-out infinite;
}

.liberation-prompt-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(236, 72, 153, 0.3);
}

@keyframes liberation-pulse-soft {
    0%, 100% {
        box-shadow: 0 0 40px rgba(236, 72, 153, 0.2);
    }
    50% {
        box-shadow: 0 0 60px rgba(236, 72, 153, 0.3);
    }
}

.liberation-symbol {
    font-size: 3.5rem;
    color: #EC4899;
}

.liberation-prompt-text {
    margin-top: var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Liberation Process View */
.liberation-process-view {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding: 0;
}

.liberation-process-view.active {
    display: flex;
}

.liberation-exit-btn {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    padding: var(--space-sm);
}

.liberation-process-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    padding-bottom: 120px;
    text-align: center;
}

.liberation-stage-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(236, 72, 153, 0.2);
    color: #EC4899;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.liberation-stage-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    font-weight: 500;
}

.liberation-step-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-primary);
    max-width: 500px;
    margin-bottom: var(--space-xl);
    font-style: italic;
    padding: var(--space-md);
    background: rgba(236, 72, 153, 0.05);
    border-radius: var(--radius-md);
    border-left: 3px solid #EC4899;
}

.liberation-feel-notice {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    max-width: 400px;
}

.liberation-timer-display {
    margin-bottom: var(--space-lg);
}

.liberation-timer-circle {
    width: 120px;
    height: 120px;
    position: relative;
}

.liberation-timer-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.liberation-timer-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 4;
}

.liberation-timer-progress {
    fill: none;
    stroke: #EC4899;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.1s linear;
}

.liberation-timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 600;
    color: #EC4899;
}

.liberation-step-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 300px;
}

.liberation-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s ease;
}

.liberation-step-dot.active {
    background: #EC4899;
    transform: scale(1.2);
}

.liberation-step-dot.completed {
    background: #10B981;
}

.liberation-process-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.liberation-process-nav .btn {
    min-width: 200px;
}

.liberation-process-nav .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Liberation Complete View */
.liberation-complete-view {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.liberation-complete-view.active {
    display: flex;
}

.liberation-complete-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    text-align: center;
}

.liberation-complete-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #10B981;
    margin-bottom: var(--space-lg);
}

.liberation-complete-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.liberation-complete-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.liberation-closing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    max-width: 400px;
    width: 100%;
}

.liberation-closing-card h3 {
    font-size: 1rem;
    color: #EC4899;
    margin-bottom: var(--space-md);
}

.liberation-closing-instruction {
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.liberation-closing-optional {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.liberation-complete-stats {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.liberation-complete-stat {
    text-align: center;
}

.liberation-complete-stat .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: #EC4899;
    margin-bottom: var(--space-xs);
}

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

/* Liberation Energy Toggle */
.liberation-energy-toggle {
    margin: 0 var(--space-md) var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
}

.liberation-toggle-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.liberation-toggle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.liberation-toggle-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.liberation-toggle-description {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Energy indicator in process view */
.liberation-energy-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(236, 72, 153, 0.15);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    font-size: 0.8rem;
    color: #EC4899;
}

.liberation-energy-indicator.active {
    display: flex;
}

.liberation-energy-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #EC4899;
    animation: energy-pulse 2s ease-in-out infinite;
}

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

/* ============================================
   SHADOW TOOLS GAMIFICATION
   ============================================ */

/* Complete screen stats */
.complete-stats {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin: var(--space-lg) 0;
    width: 100%;
    max-width: 300px;
}

.complete-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
}

.complete-stat-row:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.complete-stat-row.level {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-bottom: none;
}

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

.complete-stat-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.complete-stat-value.target-met {
    color: #10B981;
}

.complete-stat-row.level .complete-stat-value {
    color: #8B5CF6;
    font-weight: 600;
}

/* Shadow Settings View */
.shadow-settings-content {
    padding: var(--space-md);
}

.shadow-settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.shadow-settings-section h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.shadow-settings-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.shadow-settings-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.shadow-target-display {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 60px;
    text-align: center;
}

.shadow-settings-level {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.shadow-settings-level .level-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.shadow-settings-level .level-badge {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.shadow-settings-level .level-name {
    font-weight: 500;
    color: var(--text-primary);
}

.shadow-settings-level .level-progress {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.shadow-settings-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.shadow-settings-info h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.shadow-levels-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.shadow-level-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.shadow-level-item .level-badge {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Shadow tool card level badge */
.shadow-tool-level {
    margin-top: var(--space-sm);
    font-size: 0.8rem;
    color: #8B5CF6;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.tool-level-badge {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: white;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
}

/* ============================================
   PUSH NOTIFICATIONS SETTINGS
   ============================================ */

.push-settings-content {
    padding: var(--space-md);
}

.push-settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.push-settings-section.main-toggle {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border-color: rgba(59, 130, 246, 0.3);
}

.push-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.push-toggle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.push-toggle-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.push-toggle-status {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.push-toggle-status.enabled {
    color: #10B981;
}

.push-toggle-status.disabled {
    color: #EF4444;
}

.push-settings-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--space-md);
    line-height: 1.5;
}

.push-settings-section h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.push-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.push-section-header h3 {
    margin-bottom: 0;
}

.push-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.push-setting-item:last-of-type {
    border-bottom: none;
}

.push-setting-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.push-setting-name {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.push-setting-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.push-setting-time {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0 var(--space-md);
    padding-left: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.push-setting-time input[type="time"] {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
}

/* Mindful Alerts List */
.mindful-alerts-list {
    margin-top: var(--space-md);
}

.empty-alerts-message {
    text-align: center;
    padding: var(--space-lg);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.mindful-alert-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
}

.mindful-alert-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
}

.mindful-alert-name {
    font-weight: 500;
    color: var(--text-primary);
}

.mindful-alert-toggle {
    flex-shrink: 0;
}

.mindful-alert-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--space-sm);
}

.mindful-alert-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mindful-alert-actions {
    display: flex;
    gap: var(--space-sm);
}

.mindful-alert-actions button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
}

.mindful-alert-actions button:hover {
    color: var(--text-primary);
}

.mindful-alert-actions button.delete:hover {
    color: #EF4444;
}

/* Alert Modal */
#alertModal .modal-content {
    max-width: 400px;
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.time-range-inputs {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.time-range-inputs input[type="time"] {
    flex: 1;
    padding: var(--space-sm);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.time-range-inputs span {
    color: var(--text-muted);
}
