/* Tiny Experiments - Premium Styling System */

:root {
    /* Color Tokens (HSL harmonized palette - Boosted Contrast) */
    --bg-dark: HSL(222, 47%, 7%);
    --bg-card: rgba(13, 20, 35, 0.88); /* Much deeper card back for pristine contrast */
    --border-color: rgba(255, 255, 255, 0.16); /* Strengthened borders */
    
    --text-primary: #ffffff; /* Pure white primary text */
    --text-secondary: #cbd5e1; /* Slate-300 secondary text (highly legible) */
    --text-muted: #94a3b8; /* Slate-400 muted text */
    
    /* Typography Tokens */
    --font-display: 'Space Grotesk', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Module Primary Accents */
    --pact-color: HSL(263, 85%, 68%);
    --pact-gradient: linear-gradient(135deg, HSL(263, 85%, 68%) 0%, HSL(290, 80%, 60%) 100%);
    --pact-bg-light: rgba(168, 85, 247, 0.12);
    
    --seeds-color: HSL(142, 80%, 48%);
    --seeds-gradient: linear-gradient(135deg, HSL(142, 80%, 48%) 0%, HSL(160, 88%, 42%) 100%);
    --seeds-bg-light: rgba(34, 197, 94, 0.12);
    
    --reflection-color: HSL(24, 98%, 56%);
    --reflection-gradient: linear-gradient(135deg, HSL(24, 98%, 56%) 0%, HSL(345, 90%, 55%) 100%);
    --reflection-bg-light: rgba(249, 115, 22, 0.12);
    
    /* Core Shadows & Blurs */
    --glass-blur: blur(20px);
    --card-shadow: 0 16px 45px 0 rgba(0, 0, 0, 0.55);
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Basic Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.font-mono {
    font-family: var(--font-mono) !important;
}

/* Stunning Dynamic Ambient Background Shapes */
.background-decor {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: -100px;
    left: -100px;
    z-index: -1;
    pointer-events: none;
}

.background-decor-2 {
    position: fixed;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, rgba(0,0,0,0) 70%);
    bottom: -150px;
    right: -150px;
    z-index: -1;
    pointer-events: none;
}

@keyframes bgPulse {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.05); }
    100% { transform: translate(0, 0) scale(1); }
}

.animate-bg {
    animation: bgPulse 20s infinite ease-in-out alternate;
}

/* Header Design */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    color: var(--pact-color);
    animation: rotateLogo 25s linear infinite;
}

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

.logo-text h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.header-nav {
    display: flex;
    align-items: center;
}

.system-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.pulse-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--seeds-color);
    box-shadow: 0 0 8px var(--seeds-color);
    animation: blinkPulse 2s infinite;
}

@keyframes blinkPulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Glassmorphism System Cards */
.glass {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
}

.card {
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 45px 0 rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

.section-pact:hover,
.active-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 20px 45px 0 rgba(168, 85, 247, 0.15);
}

.completed-card:hover {
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 20px 45px 0 rgba(249, 115, 22, 0.15);
}

/* Framework Badges & Number Steps */
.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}

.bg-pact { background: var(--pact-gradient); box-shadow: 0 0 10px rgba(168, 85, 247, 0.4); }
.bg-seeds { background: var(--seeds-gradient); box-shadow: 0 0 10px rgba(34, 197, 94, 0.4); }
.bg-reflection { background: var(--reflection-gradient); box-shadow: 0 0 10px rgba(249, 115, 22, 0.4); }

.border-pact { border-color: rgba(168, 85, 247, 0.2); }
.border-reflection { border-color: rgba(249, 115, 22, 0.2); }

.badge {
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pact-badge { background: var(--pact-bg-light); color: HSL(290, 80%, 75%); }
.seeds-badge { background: var(--seeds-bg-light); color: HSL(142, 80%, 75%); }

.section-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Responsive Dashboard Columns layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    flex-grow: 1;
    width: 100%;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.section-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Forms & UI Inputs */
.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.col-half {
    flex: 1;
}

label {
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

input[type="text"],
select,
textarea {
    background: rgba(13, 20, 35, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--pact-color);
    background: rgba(13, 20, 35, 0.95);
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.4);
}

.help-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* Buttons Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-decoration: none;
    width: 100%;
}

.btn-pact {
    background: var(--pact-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-pact:hover {
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
    transform: translateY(-1px);
}

.btn-seeds {
    background: var(--seeds-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-seeds:hover {
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
    transform: translateY(-1px);
}

.btn-reflection {
    background: var(--reflection-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-reflection:hover {
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Active Experiments Cards */
.active-card {
    border-left: 4px solid var(--pact-color);
    padding: 1.5rem;
}

.active-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.active-card-header h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
}

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

.active-badge {
    background: rgba(168, 85, 247, 0.15);
    color: HSL(290, 80%, 75%);
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.animate-pulse {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Stat Progress Bars */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat-bar-container {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stat-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

.fill-pact { background: var(--pact-gradient); }
.fill-seeds { background: var(--seeds-gradient); }

/* SEEDS Grid layout */
.seeds-tracker-container {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.2rem;
}

.seeds-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.seeds-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.day-slot-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition-smooth);
    user-select: none;
    position: relative;
    padding: 0.2rem;
}

.day-slot-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.day-num-lbl {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.day-status-indicator {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Day State Modifiers */
.day-slot-btn.completed {
    background: var(--seeds-bg-light);
    border-color: rgba(34, 197, 94, 0.4);
}

.day-slot-btn.completed .day-num-lbl {
    color: HSL(142, 80%, 75%);
}

.day-slot-btn.completed .day-status-indicator {
    color: var(--seeds-color);
}

.day-slot-btn.today {
    border-color: var(--pact-color);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.08);
}

.day-slot-btn.today .day-num-lbl {
    color: HSL(290, 80%, 75%);
}

.day-slot-btn.future {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.day-slot-btn.future:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.03);
}

/* Conclude action and toggle review overlays */
.card-footer-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.2rem;
}

.reflection-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.95);
    overflow-y: auto;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.6rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-left: auto;
}

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

/* Concluded section cards style */
.completed-card {
    border-left: 4px solid var(--reflection-color);
    padding: 1.5rem;
}

.completed-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.completed-card-header h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
}

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

.concluded-badge {
    background: var(--reflection-bg-light);
    color: HSL(24, 80%, 75%);
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Reflection loop display container */
.reflection-display-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pmn-col {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pmn-col h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
}

.pmn-col p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.pmn-plus h5 { color: HSL(142, 80%, 75%); }
.pmn-minus h5 { color: HSL(350, 80%, 75%); }
.pmn-next h5 { color: HSL(24, 80%, 75%); }

.pmn-plus { border-color: rgba(34, 197, 94, 0.15); }
.pmn-minus { border-color: rgba(239, 68, 68, 0.15); }
.pmn-next { border-color: rgba(249, 115, 22, 0.15); }

/* AI Advisor analysis blocks */
.ai-report-box {
    border-radius: 16px;
    overflow: hidden;
    margin-top: 1rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.ai-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    user-select: none;
    transition: var(--transition-smooth);
}

.ai-report-header:hover {
    background: rgba(139, 92, 246, 0.08);
}

.ai-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: HSL(263, 90%, 80%);
}

.ai-title-wrapper h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}

.accordion-arrow {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.ai-report-box.collapsed .accordion-arrow {
    transform: rotate(-90deg);
}

.ai-report-box.collapsed .ai-report-body {
    display: none;
}

.ai-report-body {
    padding: 1.2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    font-size: 0.85rem;
    line-height: 1.5;
}

.scrollable-content {
    max-height: 400px;
    overflow-y: auto;
}

/* AI response formatting within box */
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(139, 92, 246, 0.15);
    color: HSL(263, 90%, 80%);
    border-radius: 8px;
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.ai-intro {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.scripts-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.script-card {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
}

.script-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.4rem;
}

.script-header h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.gauge-value {
    font-size: 0.75rem;
    font-weight: 700;
}

.script-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.script-body {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.reframed-pill {
    background: rgba(139, 92, 246, 0.08);
    border-left: 3px solid var(--pact-color);
    padding: 0.5rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.78rem;
}

.ai-summary-note {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 0.8rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
    border: 1px dashed var(--border-color);
}

.ai-summary-note h5 {
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

/* Modals System Overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 30, 0.8);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 500px;
    max-width: 90%;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    background: #111a2e;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.modal-header h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-actions .btn {
    width: auto;
}

/* Form checkboxes system */
.inline-toggle {
    margin: 1.2rem 0;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.checkbox-container:hover input ~ .checkmark {
    background-color: rgba(255,255,255,0.1);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--seeds-color);
    border-color: var(--seeds-color);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

/* Processing AI screen overlay */
.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 30, 0.9);
    z-index: 500;
    display: flex;
    justify-content: center;
    align-items: center;
}

.processing-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem;
    border-radius: 20px;
    width: 450px;
    max-width: 90%;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top: 3px solid var(--pact-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.processing-box h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.processing-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* System Alerts / Messages */
.messages-container {
    margin-bottom: 2rem;
}

.message-alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    animation: alertFadeIn 0.3s ease-out;
}

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

.alert-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.alert-icon {
    font-weight: 700;
    font-size: 1rem;
}

.alert-text {
    font-size: 0.9rem;
}

.message-alert.success {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.08);
}
.message-alert.success .alert-icon {
    color: var(--seeds-color);
}

.message-alert.error {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
}
.message-alert.error .alert-icon {
    color: HSL(350, 80%, 75%);
}

.alert-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

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

/* Empty UI placeholder cards */
.empty-card {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border: 1px dashed var(--border-color);
}

/* Footer Section */
.app-footer {
    padding: 3rem 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

/* Display utility classes */
.hidden-element {
    display: none !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Media Queries for Responsive Views */
@media (max-width: 968px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .app-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* ==========================================
   METACOGNITIVE TELEMETRY & PROGRESS PANEL
   ========================================== */
.telemetry-card {
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--pact-color) !important;
    background: rgba(13, 20, 35, 0.9) !important;
}

.telemetry-card:hover {
    border-color: rgba(255, 255, 255, 0.25) rgba(255, 255, 255, 0.25) rgba(255, 255, 255, 0.25) var(--pact-color) !important;
    box-shadow: 0 16px 45px 0 rgba(168, 85, 247, 0.12) !important;
}

.telemetry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.telemetry-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.telemetry-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--pact-bg-light);
    border-radius: 8px;
    color: var(--pact-color);
    border: 1px solid rgba(168, 85, 247, 0.25);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
}

.telemetry-title-text h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    color: #ffffff;
    line-height: 1.2;
}

.telemetry-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.telemetry-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.7px;
    border: 1px solid transparent;
}

.status-optimal {
    background: rgba(34, 197, 94, 0.12);
    color: HSL(142, 90%, 70%);
    border-color: rgba(34, 197, 94, 0.25);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.15);
}

.status-optimal .status-dot {
    background-color: var(--seeds-color);
    box-shadow: 0 0 8px var(--seeds-color);
}

.status-pending {
    background: rgba(249, 115, 22, 0.12);
    color: HSL(24, 95%, 70%);
    border-color: rgba(249, 115, 22, 0.25);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.15);
}

.status-pending .status-dot {
    background-color: var(--reflection-color);
    box-shadow: 0 0 8px var(--reflection-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.telemetry-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.telemetry-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 1.5rem;
}

@media (max-width: 850px) {
    .telemetry-metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.metric-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.1rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
}

.metric-card.large-metric {
    justify-content: space-between;
    gap: 0.6rem;
}

.metric-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.metric-label {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.8px;
}

.metric-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.text-purple {
    color: HSL(290, 85%, 75%);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.text-orange {
    color: HSL(24, 85%, 70%);
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.2);
}

.text-green {
    color: HSL(142, 85%, 70%);
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.telemetry-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
}

/* Today's Checklist */
.today-pact-tracker {
    border-top: 1px dashed var(--border-color);
    padding-top: 1.2rem;
}

.tracker-title {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.tracker-row-container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tracker-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 1.25rem;
    transition: var(--transition-smooth);
    flex-wrap: wrap;
    gap: 1rem;
}

.tracker-item-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.tracker-item-card.logged {
    border-left: 3px solid var(--seeds-color);
    border-color: var(--border-color) var(--border-color) var(--border-color) var(--seeds-color);
}

.tracker-item-card.pending {
    border-left: 3px solid var(--reflection-color);
    border-color: var(--border-color) var(--border-color) var(--border-color) var(--reflection-color);
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.item-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
}

.item-day {
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.item-action-wrapper {
    display: flex;
    align-items: center;
}

.logged-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--seeds-color);
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-sm {
    padding: 0.45rem 1rem !important;
    font-size: 0.78rem !important;
    border-radius: 6px !important;
    width: auto !important;
}

.btn-outline-warning {
    background: transparent;
    border: 1px solid var(--reflection-color);
    color: var(--reflection-color);
}

.btn-outline-warning:hover {
    background: var(--reflection-bg-light);
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.35);
}

/* ==========================================
   METACOGNITIVE LABORATORY V2 PREMIUM ADDITIONS
   ========================================== */

/* Discovery Zone & Field Notes layout */
.discovery-card {
    border-left: 4px solid var(--pact-color) !important;
}

.discovery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (max-width: 968px) {
    .discovery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.field-notes-panel, .hypothesis-generator-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.field-notes-panel h4, .hypothesis-generator-panel h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.6rem;
    margin-bottom: 0.2rem;
    letter-spacing: 0.3px;
}

.field-notes-form {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 8px;
}

.notes-input-row {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

@media (max-width: 576px) {
    .notes-input-row {
        flex-direction: column;
    }
    .notes-input-row select,
    .btn-note-submit {
        width: 100% !important;
    }
}

.notes-input-row select {
    flex-shrink: 0;
    width: 130px;
    background: rgba(13, 20, 35, 0.8);
    cursor: pointer;
}

.notes-input-row input[type="text"] {
    flex-grow: 1;
    background: rgba(13, 20, 35, 0.8);
}

.btn-note-submit {
    flex-shrink: 0;
    width: auto !important;
    white-space: nowrap;
}

.field-notes-history {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-right: 0.5rem;
    margin-top: 0.5rem;
}

.field-note-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.8rem;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.field-note-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: transparent;
    transition: var(--transition-smooth);
}

.field-note-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.08);
    transform: translateY(-1px);
}

.field-note-item:hover::before {
    background: var(--pact-color);
}

.field-note-item .note-text {
    color: var(--text-secondary);
    font-style: italic;
    word-break: break-word;
}

.field-note-item .note-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    align-self: flex-end;
}

/* Category badges for logs */
.note-cat-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-insight {
    background: rgba(168, 85, 247, 0.15);
    color: HSL(290, 85%, 75%);
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.badge-energy {
    background: rgba(20, 184, 166, 0.15);
    color: HSL(170, 85%, 75%);
    border: 1px solid rgba(20, 184, 166, 0.25);
}

.badge-mood {
    background: rgba(249, 115, 22, 0.15);
    color: HSL(24, 85%, 75%);
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.badge-encounter {
    background: rgba(59, 130, 246, 0.15);
    color: HSL(217, 85%, 75%);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.empty-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
}

/* Hypothesis Generator Wizard */
.wizard-container {
    background: rgba(13, 20, 35, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    min-height: 275px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.wizard-step {
    display: none;
    flex-direction: column;
    gap: 0.9rem;
    animation: wizardStepFadeIn 0.3s ease-out;
}

.wizard-step.active {
    display: flex;
}

.wiz-num {
    font-size: 0.7rem;
    color: var(--pact-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.wizard-step h5 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.wiz-help {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.wiz-reference {
    background: rgba(0, 0, 0, 0.25);
    border-left: 3px solid var(--pact-color);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    overflow-wrap: break-word;
    max-height: 80px;
    overflow-y: auto;
}

.wizard-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.4rem;
}

.wizard-actions button {
    width: auto !important;
}

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

/* ==========================================
   EPIC 2: MINDFUL EXECUTION & MAGIC WINDOWS
   ========================================== */

/* Magic Window tags inside Active Experiment cards */
.active-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
    margin-bottom: 0.4rem;
}

.active-meta-pill {
    font-size: 0.72rem;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
}

/* Kairos Ritual Section styling */
.kairos-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(249, 115, 22, 0.05);
    border: 1px dashed rgba(249, 115, 22, 0.25);
    border-radius: 8px;
    padding: 0.8rem 1.1rem;
    margin-bottom: 1.25rem;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.kairos-action-bar button {
    width: auto !important;
    white-space: nowrap;
}

/* Kairos Breathing Ritual Full Screen Overlay */
.kairos-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: kairosOverlayFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.kairos-box {
    max-width: 480px;
    width: 90%;
    text-align: center;
    padding: 3rem 2.5rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.breathing-circle-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.8rem;
}

.breathing-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.75) 0%, rgba(139, 92, 246, 0.2) 70%);
    box-shadow: 0 0 45px rgba(168, 85, 247, 0.5);
    transition: transform 0.1s ease-out;
}

.breathing-countdown {
    position: absolute;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.kairos-guidance {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
    min-height: 3.2rem;
    max-width: 320px;
}

@keyframes breathingPulse {
    0% { transform: scale(1.0); opacity: 0.7; box-shadow: 0 0 30px rgba(168, 85, 247, 0.3); }
    50% { transform: scale(1.35); opacity: 1.0; box-shadow: 0 0 60px rgba(168, 85, 247, 0.6); }
    100% { transform: scale(1.0); opacity: 0.7; box-shadow: 0 0 30px rgba(168, 85, 247, 0.3); }
}

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

/* ==========================================
   EPIC 2: MISS-BUT-DIAGNOSED "GOOD MISTAKES"
   ========================================== */

/* Completed Diagnostic day modifier */
.day-slot-btn.completed-diagnostic {
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.45);
}

.day-slot-btn.completed-diagnostic .day-num-lbl {
    color: HSL(24, 85%, 75%);
}

.day-slot-btn.completed-diagnostic .day-status-indicator {
    color: var(--reflection-color);
    text-shadow: 0 0 8px var(--reflection-color);
}

.day-slot-btn.completed-diagnostic:hover {
    background: rgba(249, 115, 22, 0.2);
    border-color: rgba(249, 115, 22, 0.65);
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.25);
}

/* Triple check details tooltip styling */
.diagnostic-tooltip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 260px;
    padding: 1.1rem;
    border-radius: 12px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    box-shadow: var(--card-shadow);
    text-align: left;
    border: 1px solid rgba(249, 115, 22, 0.4) !important;
    background: rgba(10, 16, 28, 0.97) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.diagnostic-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(249, 115, 22, 0.4) transparent transparent transparent;
}

.day-slot-btn.completed-diagnostic:hover .diagnostic-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.diagnostic-tooltip strong {
    color: #ffffff;
}

.diagnostic-tooltip p {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
}

.tooltip-correct {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.4rem;
    margin-top: 0.5rem !important;
    color: HSL(142, 85%, 70%) !important;
}

/* Check-In Modal: Triple Check toggled forms */
.triple-check-section {
    animation: tripleCheckSlideDown 0.25s ease-out;
    margin-top: 0.8rem;
}

.diagnostic-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--border-color) 20%, var(--border-color) 80%, rgba(255, 255, 255, 0) 100%);
    margin: 1.5rem 0;
}

.diagnostic-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--reflection-color);
    margin-bottom: 0.4rem;
    letter-spacing: 0.3px;
}

.diagnostic-intro {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
    line-height: 1.4;
}

@keyframes tripleCheckSlideDown {
    from { opacity: 0; max-height: 0; transform: translateY(-8px); overflow: hidden; }
    to { opacity: 1; max-height: 450px; transform: translateY(0); }
}

/* ==========================================
   EPIC 3: METACOGNITIVE STEERING SHEET
   ========================================== */

/* Conclude Form part subtitles */
.form-section-title {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 0.4rem;
    margin-bottom: 1.1rem;
}

/* Completed Archives: steering signals dashboard display */
.steering-sheet-display {
    background: rgba(249, 115, 22, 0.03);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.steering-sheet-display h5 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--reflection-color);
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
    border-bottom: 1px solid rgba(249, 115, 22, 0.15);
    padding-bottom: 0.5rem;
}

.steering-sheet-display strong {
    color: #ffffff;
}

.steering-sheet-display .decision-val {
    border-top: 1px solid rgba(249, 115, 22, 0.15);
    padding-top: 0.5rem;
    margin-top: 0.3rem;
    color: HSL(24, 90%, 75%);
    font-size: 0.82rem;
}

/* ==========================================
   EPIC 4: COPYS AND TOAST NOTIFICATIONS
   ========================================== */

/* Glassmorphic Toast confirmation cards */
.toast-card {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.4rem;
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    background: rgba(10, 16, 28, 0.94) !important;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    z-index: 10000;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6);
    transform: translateY(15px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--seeds-bg-light);
    color: var(--seeds-color);
    font-weight: 700;
    font-size: 0.8rem;
}

/* Highlight pulse for sending wizard configurations */
.highlight-pulse {
    animation: dashboardHighlightPulseEffect 1.5s ease-in-out infinite alternate;
}

@keyframes dashboardHighlightPulseEffect {
    0% { box-shadow: 0 0 0 rgba(168, 85, 247, 0); border-color: var(--border-color); }
    100% { box-shadow: 0 0 25px rgba(168, 85, 247, 0.45); border-color: var(--pact-color); }
}

/* Hypothesis Chain display in Share Laboratory and Public Pledge */
.hypothesis-chain-display {
    background: rgba(168, 85, 247, 0.03);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    font-size: 0.8rem;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hypothesis-chain-display h5 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--pact-color);
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
    padding-bottom: 0.4rem;
}

.hypothesis-chain-display strong {
    color: #ffffff;
}

/* Pivot alerts text styling */
.alert-pivot {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
    font-size: 0.78rem;
    color: HSL(290, 85%, 75%);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

/* User Profile Header & Logout Styling */
.user-profile-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.user-avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--pact-gradient);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    font-family: var(--font-display);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.user-email-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.btn-logout-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.3rem 0.7rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-family: var(--font-display);
}

.btn-logout-header:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-logout-header svg {
    transition: transform 0.2s ease;
}

.btn-logout-header:hover svg {
    transform: translateX(2px);
}


