/* ==========================================================================
   Life Operating System - Base Theme
   Override Life OS
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    --navy: #0a0a0f;
    --navy-dark: #000000;
    --navy-mid: #111111;
    --gold: #00FF87;
    --gold-light: #66FFB8;
    --white: #e0e0e0;
    --gray: #6a8a6a;
    --gray-dark: #1a2a1a;
    --red: #ff3333;
    --green: #00d4ff;

    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;

    --radius-sm: 2px;
    --radius-md: 3px;
    --radius-lg: 4px;
    --radius-xl: 6px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.7);
    --shadow-gold: 0 0 20px rgba(0, 255, 135, 0.15);

    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
}

/* --------------------------------------------------------------------------
   Light Theme
   -------------------------------------------------------------------------- */
[data-theme="light"] {
    --navy: #f0f0eb;
    --navy-dark: #e8e8e3;
    --navy-mid: #ffffff;
    --gold: #00884a;
    --gold-light: #33aa77;
    --white: #1a1a1a;
    --gray: #5a6a5a;
    --gray-dark: #d0d4d0;
    --red: #cc2222;
    --green: #0099bb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.18);
    --shadow-gold: 0 0 16px rgba(0, 136, 74, 0.12);
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    text-shadow: none;
}

[data-theme="light"] {
    background-color: var(--navy-dark);
}

/* --------------------------------------------------------------------------
   Reset & Box Sizing
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --------------------------------------------------------------------------
   Base Elements
   -------------------------------------------------------------------------- */
html {
    font-size: 16px;
    background-color: #000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-stack);
    background-color: var(--navy-dark);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Typography Scale
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

h4 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.85);
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold-light);
}

small {
    font-size: 0.85rem;
    color: var(--gray);
}

/* --------------------------------------------------------------------------
   App Container
   -------------------------------------------------------------------------- */
#app {
    min-height: 100vh;
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* --------------------------------------------------------------------------
   Screen Transitions
   -------------------------------------------------------------------------- */
.screen-exit {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.screen-enter {
    animation: screenEnter var(--transition-slow) ease forwards;
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
button {
    font-family: var(--font-stack);
    cursor: pointer;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    background: var(--gold);
    color: var(--navy-dark);
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    letter-spacing: 0.01em;
    line-height: 1.4;
    user-select: none;
}

.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    filter: brightness(0.95);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.btn-primary:disabled {
    background: var(--gray-dark);
    color: var(--gray);
    cursor: default;
    box-shadow: none;
    transform: none;
    filter: none;
}

.btn-primary:disabled:hover {
    background: var(--gray-dark);
    color: var(--gray);
    box-shadow: none;
    transform: none;
    filter: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    letter-spacing: 0.01em;
    line-height: 1.4;
    user-select: none;
}

.btn-secondary:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.15);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
    background: rgba(0, 255, 65, 0.15);
}

.btn-secondary:disabled {
    border-color: var(--gray-dark);
    color: var(--gray);
    cursor: default;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    background: transparent;
    color: var(--gray);
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition-fast), background var(--transition-fast);
    user-select: none;
}

.btn-ghost:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    user-select: none;
}

.btn-danger:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(255, 51, 51, 0.3);
    transform: translateY(-1px);
}

.btn-danger:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

/* --------------------------------------------------------------------------
   Form Inputs
   -------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="password"],
textarea,
select {
    background: var(--navy-mid);
    border: 1px solid var(--gray-dark);
    color: var(--white);
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-stack);
    line-height: 1.5;
    width: 100%;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236a8a6a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

select option {
    background: var(--navy-mid);
    color: var(--white);
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Range / Slider Input
   -------------------------------------------------------------------------- */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--gray-dark);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.4), 0 2px 8px rgba(0, 0, 0, 0.4);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.4), 0 2px 8px rgba(0, 0, 0, 0.4);
}

input[type="range"]::-moz-range-track {
    height: 6px;
    background: var(--gray-dark);
    border-radius: 3px;
    border: none;
}

/* --------------------------------------------------------------------------
   Cards & Panels
   -------------------------------------------------------------------------- */
.card {
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
    border-color: rgba(0, 255, 65, 0.2);
    box-shadow: var(--shadow-md);
}

.card-elevated {
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-gold { color: var(--gold); }
.text-gray { color: var(--gray); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mt-2xl { margin-top: var(--spacing-2xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mb-2xl { margin-bottom: var(--spacing-2xl); }

.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.w-full { width: 100%; }
.hidden { display: none; }

/* --------------------------------------------------------------------------
   Scrollbar (Webkit)
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--navy-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-dark);
    border-radius: 4px;
    border: 2px solid var(--navy-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-dark) var(--navy-dark);
}

/* --------------------------------------------------------------------------
   Selection
   -------------------------------------------------------------------------- */
::selection {
    background: rgba(0, 255, 65, 0.3);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Tablet and below */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-danger {
        padding: 10px 24px;
        font-size: 0.95rem;
    }

    .card,
    .card-elevated {
        padding: var(--spacing-md);
    }
}

/* Mobile */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-danger {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-primary.mt-lg,
    .btn-primary.mt-xl,
    .btn-secondary.mt-lg,
    .btn-secondary.mt-xl {
        width: 100%;
    }

    .card,
    .card-elevated {
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
    }

    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="date"],
    input[type="time"],
    input[type="password"],
    textarea,
    select {
        padding: 10px;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   Onboarding Flow
   ========================================================================== */

.onboarding-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.onboarding-heading {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
    text-align: center;
    line-height: 1.3;
}

.onboarding-sub {
    color: var(--gray);
    font-size: 0.88rem;
    text-align: center;
    margin: -0.8rem 0 1.2rem;
    line-height: 1.5;
}

.onboarding-subtext {
    color: var(--gray);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.onboarding-welcome {
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 500px;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

/* --- Life Area Grid --- */

.area-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 600px;
    width: 100%;
}

@media (min-width: 520px) {
    .area-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.area-card {
    background: var(--navy-mid);
    border: 2px solid var(--gray-dark);
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
    text-align: center;
    font-size: 0.95rem;
    color: var(--white);
    user-select: none;
}

.area-card:hover {
    border-color: var(--gold-light);
    background: rgba(0, 255, 65, 0.05);
}

.area-card.selected {
    border-color: var(--gold);
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.12);
}

.area-count {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 12px;
    text-align: center;
}

/* --- Custom Area Input --- */

.custom-area-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 16px;
    max-width: 600px;
    width: 100%;
}

/* --- Slider Controls --- */

.slider-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.slider-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.slider-label {
    flex: 1;
    color: var(--white);
    font-size: 0.95rem;
    min-width: 100px;
}

.slider-value {
    width: 40px;
    text-align: center;
    color: var(--gold);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.2rem;
}

/* --- Radar Chart Container --- */

.radar-container {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 340px;
}

/* --- Onboarding Inputs --- */

.onboarding-input {
    width: 100%;
    background: var(--navy-mid);
    border: 1px solid var(--gray-dark);
    color: var(--white);
    padding: 16px;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    min-height: 80px;
    font-family: var(--font-stack);
    line-height: 1.6;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.onboarding-input:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.15);
}

.onboarding-input::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

/* --- Back Arrow --- */

.back-arrow {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--gold);
    cursor: pointer;
    font-size: 1.5rem;
    background: none;
    border: none;
    padding: 8px;
    line-height: 1;
    transition: opacity var(--transition-fast);
}

.back-arrow:hover {
    opacity: 0.7;
}

/* --- Step Container --- */

.step-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Transition Animation --- */

.onboarding-transition {
    animation: neonPulse 2s ease-in-out;
}

@keyframes neonPulse {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* ==========================================================================
   Dashboard
   ========================================================================== */

.dashboard {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
}

.dashboard-greeting {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 2px;
}

.mode-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(0, 255, 65, 0.1);
    color: var(--green);
    vertical-align: middle;
    margin-left: 6px;
}

.dashboard-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard-date {
    color: var(--gray);
    font-size: 0.9rem;
}

.streak-badge {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
}

.settings-icon {
    color: var(--gold);
    cursor: pointer;
    font-size: 1.4rem;
    background: none;
    border: none;
    padding: 4px;
    transition: opacity 0.2s;
}

.settings-icon:hover {
    opacity: 0.7;
}

/* --- Radar Section --- */

.radar-section {
    display: flex;
    justify-content: center;
    margin: 0 auto 30px;
    max-width: 400px;
}

/* --- Pulse Stats --- */

.pulse-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .pulse-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pulse-card {
    background: var(--navy-mid);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
}

.pulse-icon {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.pulse-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-mono);
}

.pulse-label {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-note {
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: -16px;
    margin-bottom: 24px;
    font-style: italic;
}

/* --- Action Cards --- */

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

.action-card {
    background: var(--navy-mid);
    border: 1px solid var(--gray-dark);
    border-radius: 16px;
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.action-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.action-card.primary {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.action-card.muted {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.action-card-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.action-card-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
}

.action-card-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 4px;
}

/* --- Section Title --- */

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

/* --- Insights --- */

.insight-card {
    background: var(--navy-mid);
    border-radius: 12px;
    padding: 16px 40px 16px 16px;
    border-left: 3px solid var(--gold);
    margin-bottom: 8px;
    position: relative;
}

.insight-icon {
    margin-right: 8px;
}

.insight-message {
    color: var(--white);
    font-size: 0.9rem;
}

.insight-dismiss {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--gray);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem;
}

.insight-dismiss:hover {
    color: var(--gold);
}

/* --- Timeline --- */

.timeline-entry {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.timeline-entry:hover {
    background: rgba(255, 255, 255, 0.02);
}

.timeline-icon {
    width: 32px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.timeline-date {
    color: var(--gray);
    font-size: 0.8rem;
    width: 60px;
    flex-shrink: 0;
}

.timeline-summary {
    color: var(--white);
    font-size: 0.9rem;
    flex: 1;
}

.timeline-details {
    padding: 12px 0 12px 32px;
    color: var(--gray);
    font-size: 0.85rem;
    display: none;
}

.timeline-details.expanded {
    display: block;
}

/* --- Empty State --- */

.empty-state {
    text-align: center;
    color: var(--gray);
    font-style: italic;
    padding: 30px;
    font-size: 0.95rem;
}

/* --- Warning Banner --- */

.warning-banner {
    background: rgba(0, 255, 65, 0.15);
    color: var(--gold);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
}

/* --- Area Detail --- */

.area-detail {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.area-detail-heading {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 24px;
}

.area-detail-list {
    list-style: none;
    padding: 0;
}

.area-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Daily Log Flow
   ========================================================================== */

.daily-step {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.daily-heading {
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 32px;
    text-align: center;
}

.energy-cards,
.mood-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 600px;
}

.energy-card,
.mood-card {
    background: var(--navy-mid);
    border: 2px solid var(--gray-dark);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 90px;
    flex: 1;
}

.energy-card:hover,
.mood-card:hover {
    border-color: var(--gold-light);
    transform: translateY(-2px);
}

.energy-card.selected,
.mood-card.selected {
    border-color: var(--gold);
    background: rgba(0, 255, 65, 0.1);
}

.energy-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-mono);
    display: block;
    margin-bottom: 4px;
}

.energy-label {
    font-size: 0.8rem;
    color: var(--gray);
}

.mood-face {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 4px;
}

.mood-label {
    font-size: 0.8rem;
    color: var(--gray);
}

.daily-input {
    width: 100%;
    max-width: 500px;
    padding: 16px;
    background: var(--navy-mid);
    border: 1px solid var(--gray-dark);
    border-radius: 12px;
    color: var(--white);
    font-size: 1.1rem;
    font-family: inherit;
}

.daily-input:focus {
    border-color: var(--gold);
    outline: none;
}

.priority-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.priority-btn {
    padding: 16px 32px;
    border-radius: 12px;
    background: var(--navy-mid);
    border: 2px solid var(--gray-dark);
    color: var(--white);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
}

.priority-btn:hover {
    border-color: var(--gold-light);
    transform: translateY(-2px);
}

.priority-focus {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 24px;
    text-align: center;
    font-style: italic;
}

.done-check {
    font-size: 4rem;
    color: var(--gold);
    animation: doneScale 0.6s ease-out;
}

.done-text {
    font-size: 1.5rem;
    color: var(--gold);
    margin-top: 16px;
    font-weight: 600;
}

@keyframes doneScale {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cancel-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--gray);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
}

.cancel-btn:hover {
    color: var(--gold);
}

/* ==========================================================================
   Weekly Check-in Flow
   ========================================================================== */

.weekly-step {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.weekly-heading {
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 24px;
    text-align: center;
}

/* --- Ratings --- */

.rating-group {
    width: 100%;
    max-width: 500px;
    margin-bottom: 12px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rating-name {
    flex: 1;
    color: var(--white);
    font-weight: 500;
}

.rating-prev {
    color: var(--gray);
    font-size: 0.8rem;
}

.rating-slider {
    flex: 2;
}

.rating-value {
    width: 32px;
    text-align: center;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1rem;
}

.radar-live {
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

/* --- Wins --- */

.win-group {
    width: 100%;
    max-width: 500px;
}

.win-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.win-number {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1rem;
}

.win-input {
    flex: 1;
    padding: 16px;
    background: var(--navy-mid);
    border: 1px solid var(--gray-dark);
    border-radius: 12px;
    color: var(--white);
    font-size: 1.1rem;
    font-family: inherit;
    animation: fadeSlideIn 0.3s ease;
}

.win-input:focus {
    border-color: var(--gold);
    outline: none;
}

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

/* --- Area Chips --- */

.area-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.area-chip {
    background: var(--navy-mid);
    border: 1px solid var(--gray-dark);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.85rem;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.area-chip:hover {
    border-color: var(--gold-light);
}

.area-chip.selected {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(0, 255, 65, 0.1);
}

/* --- Coaching Question --- */

.coaching-question {
    font-size: 1.3rem;
    color: var(--gold);
    font-style: italic;
    text-align: center;
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* --- Summary Card --- */

.summary-card {
    max-width: 600px;
    width: 100%;
    background: var(--navy-mid);
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 32px;
    margin: 0 auto;
}

.summary-radar {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.summary-section {
    margin-bottom: 20px;
}

.summary-section-title {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.summary-wins {
    list-style: none;
    padding: 0;
}

.summary-wins li {
    padding: 4px 0;
    color: var(--white);
    font-size: 0.95rem;
}

.summary-wins li::before {
    content: "\2713 ";
    color: var(--gold);
    margin-right: 8px;
}

.summary-question {
    font-style: italic;
    color: var(--gold);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.summary-answer {
    color: var(--white);
    font-size: 0.95rem;
}

.summary-intention {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
}

.summary-area-badge {
    display: inline-block;
    background: rgba(0, 255, 65, 0.15);
    color: var(--gold);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 8px;
}

.summary-branding {
    text-align: center;
    color: var(--gray-dark);
    font-size: 0.75rem;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Inner Critic Journal
   ========================================================================== */

.journal-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.journal-heading {
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 24px;
    text-align: center;
}

.journal-textarea {
    width: 100%;
    max-width: 500px;
    min-height: 120px;
    padding: 16px;
    background: var(--navy-mid);
    border: 1px solid var(--gray-dark);
    border-radius: 12px;
    color: var(--white);
    font-size: 1.05rem;
    font-family: inherit;
    resize: vertical;
}

.journal-textarea:focus {
    border-color: var(--gold);
    outline: none;
}

.journal-textarea::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

.journal-quote {
    background: var(--navy-mid);
    border-left: 3px solid var(--gold);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    font-style: italic;
    color: var(--white);
    font-size: 1rem;
    max-width: 500px;
    width: 100%;
}

.category-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 24px;
}

.btn-signal {
    padding: 20px 32px;
    border-radius: 12px;
    background: transparent;
    border: 2px solid var(--green);
    color: var(--green);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-signal:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.btn-noise {
    padding: 20px 32px;
    border-radius: 12px;
    background: transparent;
    border: 2px solid var(--red);
    color: var(--red);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-noise:hover {
    background: rgba(255, 51, 51, 0.1);
    transform: translateY(-2px);
}

.btn-wonder {
    display: block;
    width: 100%;
    padding: 14px 32px;
    border-radius: 12px;
    background: transparent;
    border: 2px solid #00d4ff;
    color: #00d4ff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 16px;
}

.btn-wonder:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.noise-fadeout {
    animation: noiseFade 1.5s ease-out forwards;
}

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

.noise-message {
    color: var(--gray);
    font-style: italic;
    margin-top: 20px;
    font-size: 1.1rem;
}

/* --- Journal Pattern View --- */

.journal-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.journal-nav-btn {
    padding: 8px 20px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid var(--gray-dark);
    color: var(--gray);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.journal-nav-btn:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
}

.journal-nav-btn.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(0, 255, 65, 0.1);
}

.pattern-stats {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 24px;
}

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

.pattern-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.pattern-stat-value.signal {
    color: var(--green);
}

.pattern-stat-value.noise {
    color: var(--red);
}

.pattern-stat-value.wonder {
    color: #00d4ff;
}

.pattern-stat-label {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 4px;
}

.pattern-chart {
    margin: 24px 0;
    width: 100%;
}

.pattern-month {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-bottom: 4px;
}

.pattern-bar {
    border-radius: 4px 4px 0 0;
    min-width: 20px;
    transition: height 0.3s;
}

.pattern-bar.signal {
    background: var(--green);
}

.pattern-bar.noise {
    background: var(--red);
}

.pattern-bar.wonder {
    background: #00d4ff;
}

.pattern-month-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

.journal-entry {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.journal-entry-date {
    color: var(--gray);
    font-size: 0.8rem;
    min-width: 50px;
}

.category-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-badge.signal {
    background: rgba(0, 212, 255, 0.15);
    color: var(--green);
}

.category-badge.noise {
    background: rgba(255, 51, 51, 0.15);
    color: var(--red);
}

.category-badge.wonder {
    background: rgba(0, 212, 255, 0.12);
    color: #00d4ff;
}

.journal-entry-thought {
    color: var(--white);
    font-size: 0.9rem;
    margin-top: 4px;
}

.journal-entry-followup {
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 4px;
    font-style: italic;
}

.view-patterns-link {
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 30px;
    cursor: pointer;
    text-decoration: underline;
}

.view-patterns-link:hover {
    color: var(--gold);
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.suggestion-chip {
    background: transparent;
    border: 1px solid rgba(0, 255, 135, 0.3);
    color: var(--gray);
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: border-color var(--transition-fast), color var(--transition-fast);
    font-family: var(--font-stack);
    white-space: nowrap;
}

.suggestion-chip:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.suggestion-chip.used {
    opacity: 0.35;
    border-style: dashed;
    pointer-events: none;
}

.skip-link {
    display: block;
    color: var(--gray);
    font-size: 0.8rem;
    margin-top: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: underline;
    opacity: 0.7;
}

.skip-link:hover {
    opacity: 1;
    color: var(--gold);
}

.skipped-items-section {
    margin: 0 0 16px 0;
    padding: 12px 16px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    background: rgba(0, 255, 65, 0.04);
}

.skipped-items-title {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.skipped-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skipped-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid rgba(0, 255, 65, 0.4);
    color: var(--green);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.skipped-chip:hover {
    background: rgba(0, 255, 65, 0.1);
}

.skipped-chip-dismiss {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1;
}

/* ==========================================================================
   Monthly Deep Dive
   ========================================================================== */

.monthly-step {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.monthly-heading {
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 24px;
    text-align: center;
}

.monthly-sub-heading {
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 12px;
    text-align: center;
    font-weight: 600;
}

.monthly-gate-message {
    font-size: 1.1rem;
    color: var(--gray);
    text-align: center;
    margin-bottom: 24px;
    max-width: 450px;
    line-height: 1.7;
}

/* --- Animated Radar --- */

.radar-animated {
    width: 100%;
    max-width: 340px;
    margin: 0 auto 24px;
}

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

.radar-animated-polygon {
    opacity: 0;
}

.radar-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.radar-legend-item {
    font-size: 0.8rem;
    color: var(--gray);
    padding: 4px 10px;
    border-radius: 10px;
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid rgba(0, 255, 65, 0.15);
}

.radar-legend-item.highlighted {
    color: var(--gold);
    background: rgba(0, 255, 65, 0.15);
    border-color: var(--gold);
    font-weight: 600;
}

/* --- Prompt Cards --- */

.prompt-card {
    background: var(--navy-mid);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 16px 0;
    width: 100%;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.prompt-question {
    color: var(--gold);
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.prompt-textarea {
    min-height: 70px;
    max-height: 150px;
}

/* --- Intention vs Reality Comparison --- */

.intention-comparison {
    display: flex;
    gap: 24px;
    width: 100%;
    max-width: 650px;
    margin-bottom: 24px;
}

.intention-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.intention-col-title {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 600;
}

.intention-entry {
    background: var(--navy-mid);
    border-radius: var(--radius-md);
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.intention-week-label {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.intention-text {
    font-size: 0.9rem;
    color: var(--white);
    line-height: 1.4;
}

.intention-rating {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 2px 0;
}

.intention-drain {
    font-size: 0.8rem;
    color: var(--red);
    margin-top: 6px;
    font-style: italic;
}

/* --- Snapshot Card --- */

.snapshot-card {
    max-width: 600px;
    width: 100%;
    background: var(--navy-mid);
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 32px;
    margin: 0 auto;
}

.snapshot-month-title {
    text-align: center;
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.snapshot-theme-text {
    color: var(--white);
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 500;
}

.snapshot-reflection {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 8px;
    padding-left: 12px;
    border-left: 2px solid rgba(0, 255, 65, 0.3);
}

.snapshot-focus-areas {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* --- Focus Chips --- */

.focus-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 500px;
}

/* --- Responsive --- */

@media (max-width: 600px) {
    .intention-comparison {
        flex-direction: column;
        gap: 16px;
    }

    .monthly-step {
        padding: 24px 16px;
    }

    .snapshot-card {
        padding: 20px;
    }
}

/* ==========================================================================
   Settings Screen
   ========================================================================== */

.settings-screen {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.settings-heading {
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 32px;
    margin-top: 40px;
}

.settings-section {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--gray-dark);
    padding-bottom: 24px;
}

.settings-section-title {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.settings-warning-text {
    color: var(--gray);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 16px;
}

.theme-cards {
    display: flex;
    gap: 12px;
}

.theme-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid var(--gray-dark);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.theme-card.selected {
    border-color: var(--gold);
}

.theme-card:hover:not(.selected) {
    border-color: var(--gray);
}

.theme-swatch {
    width: 100%;
    height: 48px;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.theme-swatch-dark {
    background: #0a0a0f;
    border: 1px solid #1a2a1a;
}

.theme-swatch-dark::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    height: 4px;
    background: #00FF87;
    border-radius: 2px;
    opacity: 0.8;
}

.theme-swatch-light {
    background: #f0f0eb;
    border: 1px solid #d0d4d0;
}

.theme-swatch-light::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    height: 4px;
    background: #00884a;
    border-radius: 2px;
    opacity: 0.8;
}

.theme-card-label {
    font-size: 0.85rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-mono);
}

.settings-list-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.settings-list-item span {
    color: var(--white);
    font-size: 0.95rem;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--red);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.btn-remove:hover {
    background: rgba(255, 51, 51, 0.15);
}

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

.settings-screen .btn-danger {
    background: none;
    border: 1px solid var(--red);
    color: var(--red);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background var(--transition-fast), color var(--transition-fast);
}

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

.add-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 12px;
}

.add-row .input-field {
    flex: 1;
}

.settings-count {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.settings-error {
    color: var(--red);
    font-size: 0.9rem;
    margin-top: 8px;
}

.storage-indicator {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 24px;
}

.storage-warning {
    color: var(--gold);
}

.settings-version {
    text-align: center;
    color: var(--gray-dark);
    font-size: 0.8rem;
    margin-top: 32px;
    padding-top: 16px;
}

/* ==========================================================================
   Accessibility: Focus-Visible
   ========================================================================== */

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Remove default focus outline only when not using keyboard */
:focus:not(:focus-visible) {
    outline: none;
}

/* Capacity warning banner */
.capacity-banner {
    background: rgba(0, 255, 65, 0.15);
    color: var(--gold);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
}

/* ==========================================================================
   Matrix / Jarvis Visual Effects
   ========================================================================== */

/* Circuit grid background */
body {
    background-image:
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* CRT vignette - darkened edges */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(
        ellipse at center,
        transparent 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

/* Scan lines overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.04) 2px,
        rgba(0, 0, 0, 0.04) 4px
    );
}

/* Heading flicker effect */
@keyframes textFlicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.7; }
    94% { opacity: 1; }
    96% { opacity: 0.85; }
    97% { opacity: 1; }
}

.onboarding-heading,
.dashboard-title,
.daily-heading,
.weekly-heading,
.monthly-heading,
.journal-heading,
.settings-heading {
    animation: textFlicker 4s ease-in-out infinite;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

/* Selection highlight */
::selection {
    background: rgba(0, 255, 65, 0.3);
    color: var(--white);
}

/* Neon glow on primary buttons */
.btn-primary {
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.4), 0 0 50px rgba(0, 255, 65, 0.1);
}

/* Neon border glow on cards */
.card:hover,
.card-elevated:hover {
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.1), var(--shadow-md);
}

/* Terminal cursor blink for inputs */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.15), 0 0 20px rgba(0, 255, 65, 0.08);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--gray-dark);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Done check glow */
.done-check {
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5), 0 0 40px rgba(0, 255, 65, 0.2);
}

/* Coaching question glow */
.coaching-question {
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.2);
}

/* Print: hide effects */
@media print {
    body::before,
    body::after {
        display: none;
    }
}

/* ==========================================================================
   Gate / Sales Landing Page
   ========================================================================== */

.gate-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Title section */
.gate-title-wrap {
    text-align: center;
    margin-bottom: 48px;
}

.gate-title {
    font-family: var(--font-mono);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow:
        0 0 10px rgba(0, 255, 65, 0.4),
        0 0 30px rgba(0, 255, 65, 0.2),
        0 0 60px rgba(0, 255, 65, 0.1);
    margin-bottom: 16px;
    animation: titleGlow 3s ease-in-out infinite alternate, typeReveal 1.5s steps(24) forwards;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--gold);
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 10px rgba(0, 255, 65, 0.4), 0 0 30px rgba(0, 255, 65, 0.2); }
    100% { text-shadow: 0 0 15px rgba(0, 255, 65, 0.6), 0 0 40px rgba(0, 255, 65, 0.3), 0 0 80px rgba(0, 255, 65, 0.15); }
}

@keyframes typeReveal {
    from { width: 0; }
    to { width: 100%; border-right-color: transparent; }
}

.gate-tagline {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--gray);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Feature cards */
.gate-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 700px;
    margin-bottom: 48px;
}

.gate-feature-card {
    background: var(--navy);
    border: 1px solid var(--gray-dark);
    border-left: 3px solid var(--gold);
    padding: 20px;
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.gate-feature-card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
}

.gate-feature-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.gate-feature-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.gate-feature-desc {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
}

/* Code entry section */
.gate-code-section {
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin-bottom: 32px;
}

.gate-code-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 12px;
}

.gate-code-row {
    display: flex;
    gap: 8px;
}

.gate-code-input {
    flex: 1;
    background: var(--navy-mid);
    border: 2px solid var(--gray-dark);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    outline: none;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.gate-code-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.15), 0 0 20px rgba(0, 255, 65, 0.1);
}

.gate-code-input::placeholder {
    color: var(--gray-dark);
    opacity: 1;
}

.gate-unlock-btn {
    background: var(--gold);
    color: var(--navy-dark);
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 28px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: box-shadow var(--transition-base), transform var(--transition-fast);
    white-space: nowrap;
}

.gate-unlock-btn:hover {
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.4), 0 0 50px rgba(0, 255, 65, 0.15);
    transform: translateY(-1px);
}

.gate-unlock-btn:active {
    transform: translateY(0);
}

.gate-unlock-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.gate-error {
    color: var(--red);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-top: 12px;
    text-shadow: 0 0 8px rgba(255, 51, 51, 0.3);
}

/* Buy CTA */
.gate-buy-cta {
    text-align: center;
    margin-bottom: 40px;
}

.gate-buy-text {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.gate-buy-link {
    display: inline-block;
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    padding: 12px 32px;
    border: 1px solid var(--gold);
    border-radius: var(--radius-md);
    transition: background var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
}

.gate-buy-link:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    transform: translateY(-1px);
}

/* Footer */
.gate-footer {
    text-align: center;
}

.gate-brand {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}

.gate-sub {
    font-size: 0.75rem;
    color: var(--gray-dark);
}

/* Unlock animation */
.gate-unlock-animation {
    animation: gateUnlock 0.6s ease-out forwards;
}

@keyframes gateUnlock {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.02); }
    100% { opacity: 0; transform: scale(1.05); }
}

/* Responsive */
@media (max-width: 600px) {
    .gate-title {
        font-size: 1.6rem;
        letter-spacing: 0.08em;
        white-space: normal;
        border-right: none;
        animation: titleGlow 3s ease-in-out infinite alternate;
    }

    .gate-features {
        grid-template-columns: 1fr;
    }

    .gate-code-row {
        flex-direction: column;
    }

    .gate-unlock-btn {
        width: 100%;
    }
}

/* Mobile fix: add-row stacking (must be after base styles to win cascade) */
@media (max-width: 480px) {
    .custom-area-row,
    .add-row {
        flex-direction: column;
    }

    .custom-area-row > *,
    .add-row > * {
        width: 100%;
    }
}

/* ========================================================
   ROBOT MASCOT
   ======================================================== */

.robot {
    position: relative;
    width: 120px;
    margin: 0 auto;
    image-rendering: pixelated;
}
.robot.small {
    transform: scale(0.5);
    transform-origin: bottom center;
}

.robot-head {
    width: 72px;
    height: 48px;
    background: #0a120a;
    border: 2px solid #00ff4166;
    border-top-color: #00ff4188;
    border-left-color: #00ff4188;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 8px #00ff4111, inset 0 0 4px #00ff4108;
}
.robot-head::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 12px; height: 6px;
    background: #00ff41;
}
.robot-head::after {
    content: '';
    position: absolute;
    top: 4px; left: 4px;
    width: 4px; height: 12px;
    background: #00ff4133;
    box-shadow: 0 16px 0 #00ff4133;
}

.robot-visor {
    position: absolute;
    top: 8px; left: 6px; right: 6px;
    height: 32px;
    background: #111;
    border: 2px solid #00ff4144;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.robot-antenna-l, .robot-antenna-r {
    position: absolute;
    top: -18px;
    width: 3px;
    height: 18px;
    background: #1a2a1a;
}
.robot-antenna-l { left: 8px; transform: rotate(-8deg); }
.robot-antenna-r { right: 8px; transform: rotate(8deg); }
.robot-antenna-l::before, .robot-antenna-r::before {
    content: '';
    position: absolute;
    top: -4px; left: -1px;
    width: 5px; height: 4px;
    background: #00ff41;
    box-shadow: 0 0 4px #00ff41;
    animation: antTipFlicker 1.2s steps(2) infinite;
}
.robot-antenna-r::before { animation-delay: 0.6s; }
@keyframes antTipFlicker {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.25; }
}

.robot-eye {
    width: 12px;
    height: 12px;
    background: #00ff41;
    box-shadow: 0 0 6px #00ff41, 0 0 12px #00ff4144;
    position: relative;
}
.robot-eye::after {
    content: '';
    width: 4px; height: 4px;
    background: #66ffaa;
    position: absolute;
    top: 0; left: 0;
}

.robot-mouth { display: none; }

.robot-neck {
    width: 24px;
    height: 6px;
    background: #1a2a1a;
    margin: 0 auto;
    border-left: 2px solid #2a3a2a;
    border-right: 2px solid #152015;
    position: relative;
}

.robot-body {
    width: 52px;
    height: 36px;
    background: #0a120a;
    border: 2px solid #00ff4166;
    border-top-color: #00ff4188;
    border-left-color: #00ff4188;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 8px #00ff4111, inset 0 0 4px #00ff4108;
}
.robot-body::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%;
    transform: translateX(-50%);
    width: 20px; height: 6px;
    background: repeating-linear-gradient(0deg, #00ff4122 0px, #00ff4122 2px, #0a120a 2px, #0a120a 4px);
}

.robot-chest {
    width: 8px;
    height: 8px;
    background: #00ff41;
    margin: 4px auto 0;
    box-shadow: 0 0 4px #00ff41;
    animation: chestBlink 2s steps(2) infinite;
}
@keyframes chestBlink {
    0%, 69% { opacity: 1; }
    70%, 100% { opacity: 0.3; }
}

.robot-body-accent {
    position: absolute;
    width: 6px; height: 2px;
    background: #00ff41aa;
    top: 10px;
    box-shadow: 0 0 2px #00ff4166;
}
.robot-body-accent.bl { left: 4px; }
.robot-body-accent.br { right: 4px; }

.robot-shoulder {
    position: absolute;
    width: 8px; height: 8px;
    background: #1a2a1a;
    border: 1px solid #2a3a2a;
    border-radius: 50%;
    top: 2px;
}
.robot-shoulder.sl { left: -6px; }
.robot-shoulder.sr { right: -6px; }

.robot-arm {
    width: 10px;
    height: 24px;
    background: #0a120a;
    border: 2px solid #00ff4166;
    border-top-color: #00ff4188;
    position: absolute;
    top: 8px;
}
.robot-arm.left { left: -16px; }
.robot-arm.right { right: -16px; }

.robot-hand {
    position: absolute;
    bottom: -8px; left: -2px;
    width: 14px; height: 8px;
    background: #1a2a1a;
    border: 1px solid #2a3a2a;
}
.robot-hand::before {
    content: '';
    position: absolute;
    bottom: 0; left: 2px;
    width: 3px; height: 4px;
    background: #152015;
    box-shadow: 5px 0 0 #152015;
}

.robot-legs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 0;
}
.robot-hip {
    width: 6px; height: 6px;
    background: #1a2a1a;
    border-radius: 50%;
    margin: 0 auto 0;
}
.robot-leg { text-align: center; }
.robot-leg-seg {
    width: 12px;
    height: 16px;
    background: #0a120a;
    border: 2px solid #00ff4166;
    border-top-color: #00ff4188;
    margin: 0 auto;
}
.robot-foot {
    width: 18px;
    height: 8px;
    background: #0a120a;
    border: 2px solid #00ff4166;
    border-top-color: #00ff4188;
    margin: 0 auto;
}

/* Speech bubble */
.robot-speech {
    background: #0a0a0a;
    border: 2px solid #00ff4144;
    padding: 6px 8px;
    font-family: 'Cascadia Mono', monospace;
    font-size: 9px;
    color: #00ff41;
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
    text-align: center;
}
.robot-speech::after {
    content: '';
    width: 6px; height: 6px;
    background: #0a0a0a;
    border-right: 2px solid #00ff4144;
    border-bottom: 2px solid #00ff4144;
    transform: rotate(45deg);
    position: absolute;
    bottom: -5px; left: 50%;
    margin-left: -4px;
}

/* Robot wrapper (for centering + speech) */
.robot-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
}

/* ---- STATE: IDLE ---- */
.robot.idle {
    animation: pixelFloat 2s steps(4) infinite;
}
.robot.idle.small {
    animation: pixelFloatSmall 2s steps(4) infinite;
}
@keyframes pixelFloat {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-4px); }
    50% { transform: translateY(-6px); }
    75% { transform: translateY(-2px); }
}
@keyframes pixelFloatSmall {
    0%, 100% { transform: scale(0.5) translateY(0); }
    25% { transform: scale(0.5) translateY(-4px); }
    50% { transform: scale(0.5) translateY(-6px); }
    75% { transform: scale(0.5) translateY(-2px); }
}
.robot.idle .robot-eye {
    animation: pixelBlink 4s steps(1) infinite;
}
@keyframes pixelBlink {
    0%, 43%, 47%, 100% { height: 12px; }
    44%, 46% { height: 2px; }
}
.robot.idle .robot-head {
    animation: headTilt 6s steps(1) infinite;
}
@keyframes headTilt {
    0%, 82%, 92%, 100% { transform: rotate(0deg); }
    84%, 90% { transform: rotate(-2deg); }
}

/* ---- STATE: WAVING ---- */
.robot.waving {
    animation: pixelFloat 2s steps(4) infinite;
}
.robot.waving .robot-arm.right {
    animation: armWave 1.2s steps(1) infinite;
    transform-origin: top center;
}
@keyframes armWave {
    0%, 100% { transform: rotate(-10deg); }
    25% { transform: rotate(-50deg); }
    50% { transform: rotate(-30deg); }
    75% { transform: rotate(-50deg); }
}
.robot.waving .robot-eye {
    animation: pixelBlink 3s steps(1) infinite;
}

/* ---- STATE: CELEBRATING ---- */
.robot.celebrating {
    animation: pixelBounce 0.6s steps(1) infinite;
}
@keyframes pixelBounce {
    0%, 100% { transform: translateY(0); }
    20% { transform: translateY(-8px); }
    40% { transform: translateY(-16px); }
    60% { transform: translateY(-8px); }
    80% { transform: translateY(-2px); }
}
.robot.celebrating .robot-eye {
    background: #ff4444;
    box-shadow: -4px -4px 0 #ff4444, 4px -4px 0 #ff4444;
    animation: none;
}
.robot.celebrating .robot-eye::after { background: #ff6666; }
.robot.celebrating .robot-arm.left {
    transform: rotate(35deg);
    transform-origin: bottom center;
}
.robot.celebrating .robot-arm.right {
    transform: rotate(-35deg);
    transform-origin: bottom center;
}
.pixel-confetti {
    position: absolute;
    width: 4px; height: 4px;
}
.pixel-confetti:nth-child(1) { top: -4px; left: 16px; background: #00ff41; animation: confettiRise 1s steps(4) infinite; }
.pixel-confetti:nth-child(2) { top: -8px; right: 16px; background: #33ff66; animation: confettiRise 1s steps(4) infinite 0.15s; }
.pixel-confetti:nth-child(3) { top: 0; left: 0; background: #ffaa00; animation: confettiRise 1s steps(4) infinite 0.3s; }
.pixel-confetti:nth-child(4) { top: -12px; right: 0; background: #00ff41; animation: confettiRise 1s steps(4) infinite 0.45s; }
.pixel-confetti:nth-child(5) { top: -6px; left: 50%; background: #66ffaa; animation: confettiRise 1s steps(4) infinite 0.6s; }
.pixel-confetti:nth-child(6) { top: -2px; right: 25%; background: #ffaa00; animation: confettiRise 1s steps(4) infinite 0.75s; }
@keyframes confettiRise {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-20px); opacity: 1; }
    75% { transform: translateY(-28px); opacity: 0.4; }
    100% { transform: translateY(-36px); opacity: 0; }
}

/* ---- STATE: SLEEPING ---- */
.robot.sleeping {
    animation: snore 4s steps(1) infinite;
}
@keyframes snore {
    0%, 49% { transform: rotate(0deg); }
    50%, 100% { transform: rotate(2deg); }
}
.robot.sleeping .robot-eye {
    height: 2px;
    background: #00ff4144;
    box-shadow: none;
    animation: none;
}
.robot.sleeping .robot-eye::after { display: none; }
.robot.sleeping .robot-antenna-l::before,
.robot.sleeping .robot-antenna-r::before {
    opacity: 0.1;
    animation: none;
}
.robot.sleeping .robot-chest {
    opacity: 0.1;
    animation: sleepPulse 4s steps(2) infinite;
}
@keyframes sleepPulse {
    0%, 49% { opacity: 0.06; }
    50%, 100% { opacity: 0.15; }
}
.robot-zzz {
    position: absolute;
    top: -10px; right: -20px;
    display: none;
}
.robot.sleeping .robot-zzz { display: block; }
.robot-zzz span {
    display: block;
    font-family: 'Cascadia Mono', monospace;
    color: #00ff4188;
    font-weight: bold;
    line-height: 1;
}
.robot-zzz span:nth-child(1) { font-size: 16px; animation: pixelZzz 3s steps(3) infinite; }
.robot-zzz span:nth-child(2) { font-size: 12px; opacity: 0.6; margin-left: -4px; animation: pixelZzz 3s steps(3) infinite 0.5s; }
.robot-zzz span:nth-child(3) { font-size: 9px; opacity: 0.3; margin-left: -8px; animation: pixelZzz 3s steps(3) infinite 1s; }
@keyframes pixelZzz {
    0% { transform: translateY(0) translateX(0); opacity: 0.8; }
    33% { transform: translateY(-6px) translateX(4px); opacity: 0.5; }
    66% { transform: translateY(-12px) translateX(8px); opacity: 0.2; }
    100% { transform: translateY(-18px) translateX(12px); opacity: 0; }
}

/* ---- STATE: LOADING (antenna pulse + body glow) ---- */
.robot.loading .robot-antenna-l::before,
.robot.loading .robot-antenna-r::before {
    animation: loadingAntPulse 0.8s steps(2) infinite;
    background: #ffaa00;
    box-shadow: 0 0 8px #ffaa00;
}
@keyframes loadingAntPulse {
    0%, 49% { opacity: 1; transform: scale(1); }
    50%, 100% { opacity: 0.3; transform: scale(1.5); }
}
.robot.loading .robot-body {
    box-shadow: 0 0 16px #00ff4133, inset 0 0 8px #00ff4122;
    animation: bodyLoadGlow 0.8s steps(2) infinite;
}
@keyframes bodyLoadGlow {
    0%, 49% { box-shadow: 0 0 8px #00ff4111, inset 0 0 4px #00ff4108; }
    50%, 100% { box-shadow: 0 0 24px #00ff4155, inset 0 0 12px #00ff4133; }
}
.robot.loading .robot-eye {
    animation: loadingEyes 0.8s steps(2) infinite;
}
@keyframes loadingEyes {
    0%, 49% { background: #ffaa00; box-shadow: 0 0 6px #ffaa00; }
    50%, 100% { background: #00ff41; box-shadow: 0 0 6px #00ff41; }
}

/* ---- Splash screen robot container ---- */
.splash-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.splash-logo {
    font-family: 'Cascadia Mono', monospace;
    color: #00ff41;
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    margin-top: 24px;
    text-shadow: 0 0 12px #00ff4166;
}
.splash-tagline {
    font-family: 'Cascadia Mono', monospace;
    color: #00ff4166;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    margin-top: 8px;
}

/* ---- Export UI ---- */
.export-btn {
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 1.1rem;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}
.export-btn:hover { opacity: 1; }
.export-menu {
    background: var(--navy);
    border: 1px solid var(--gray-dark);
    border-radius: var(--radius-md);
    padding: 8px 0;
    position: absolute;
    right: 0; top: 100%;
    min-width: 200px;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}
.export-menu-item {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--white);
    padding: 10px 16px;
    text-align: left;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background var(--transition-fast);
}
.export-menu-item:hover { background: var(--navy-mid); }
.export-menu-item .export-item-desc {
    display: block;
    color: var(--gray);
    font-size: 0.75rem;
    margin-top: 2px;
}

/* -------------------------------------------------------------------------
   Step Progress Dots
   ------------------------------------------------------------------------- */
.step-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0 4px;
}
.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-dark);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.step-dot.active {
    background: var(--gold);
    box-shadow: 0 0 6px var(--gold);
}

/* -------------------------------------------------------------------------
   North Star Card (Dashboard)
   ------------------------------------------------------------------------- */
.north-star-card {
    border-left: 3px solid var(--gold);
    background: var(--navy-mid);
    padding: 12px 16px;
    margin: 0 0 16px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background var(--transition-fast);
}
.north-star-card:hover { background: #161f16; }
.north-star-label {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 6px;
    font-family: var(--font-mono);
}
.north-star-text {
    color: var(--white);
    font-size: 0.88rem;
    line-height: 1.55;
    font-style: italic;
}
.north-star-card.collapsed .north-star-text::after {
    content: ' …';
    color: var(--gray);
}

/* -------------------------------------------------------------------------
   Daily Log Card Enhancements
   ------------------------------------------------------------------------- */
.energy-card-label {
    font-size: 0.6rem;
    color: var(--gray);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}
.mood-card-emoji {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 2px;
    line-height: 1;
}

/* -------------------------------------------------------------------------
   Monthly Unlock Progress Bar
   ------------------------------------------------------------------------- */
.unlock-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--gray-dark);
    border-radius: 2px;
    margin: 8px 0 4px;
    overflow: hidden;
}
.unlock-progress-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    transition: width 0.4s ease;
}
.unlock-progress-label {
    font-size: 0.72rem;
    color: var(--gray);
    letter-spacing: 0.04em;
}

/* ==========================================================================
   EmoSort
   ========================================================================== */

.emosort-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.emosort-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin: 48px 0 4px;
}

.emosort-subheading {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0 0 20px;
}

.emosort-done {
    color: var(--gray);
    font-size: 0.9rem;
    text-align: center;
    padding: 24px;
}

.emosort-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
    align-content: flex-start;
    margin-bottom: 20px;
    min-height: 100px;
}

.emosort-chip {
    padding: 8px 16px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid rgba(224, 224, 224, 0.3);
    color: var(--white);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.emosort-chip:hover {
    border-color: var(--green);
    color: var(--green);
}

.emosort-chip.selected {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(0, 255, 65, 0.08);
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.2);
}

.emosort-zones {
    display: flex;
    gap: 8px;
    padding-bottom: env(safe-area-inset-bottom);
}

.emosort-zone {
    flex: 1;
    border-radius: 12px;
    padding: 12px 8px;
    min-height: 100px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.emosort-zone.heart {
    background: rgba(255, 80, 80, 0.06);
    border-color: rgba(255, 80, 80, 0.2);
}

.emosort-zone.heart:hover {
    background: rgba(255, 80, 80, 0.12);
}

.emosort-zone.brain {
    background: rgba(0, 212, 255, 0.06);
    border-color: rgba(0, 212, 255, 0.2);
}

.emosort-zone.brain:hover {
    background: rgba(0, 212, 255, 0.12);
}

.emosort-zone.trash {
    background: rgba(100, 100, 100, 0.06);
    border-color: rgba(100, 100, 100, 0.2);
}

.emosort-zone.trash:hover {
    background: rgba(100, 100, 100, 0.12);
}

.emosort-zone-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    text-align: center;
    margin-bottom: 2px;
}

.emosort-zone.heart .emosort-zone-label { color: #ff6060; }
.emosort-zone.brain .emosort-zone-label { color: #00d4ff; }
.emosort-zone.trash .emosort-zone-label { color: var(--gray); }

.emosort-zone-desc {
    font-size: 0.7rem;
    color: var(--gray);
    text-align: center;
    margin-bottom: 8px;
}

.emosort-placed {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.emosort-placed-chip {
    padding: 4px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--white);
    font-size: 0.75rem;
    cursor: pointer;
    text-align: center;
    width: 100%;
    transition: background 0.15s;
}

.emosort-placed-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    text-decoration: line-through;
    color: var(--gray);
}
