/* ==========================================
   LIFE WITH PURPOSE - Goal Tracker Styles
   ========================================== */

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a28;
    --bg-input: #1e1e2e;
    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #555570;
    --accent-primary: #6c5ce7;
    --accent-glow: #7c6cf7;
    --accent-red: #e74c3c;
    --accent-orange: #f39c12;
    --accent-green: #00d2a0;
    --accent-blue: #3498db;
    --accent-pink: #e84393;
    --accent-yellow: #ffd32a;
    --accent-teal: #00b894;
    --accent-coral: #ff7675;
    --border: #2a2a3a;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 30px rgba(108,92,231,0.15);
    --transition: all 0.2s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* ==========================================
   LOGIN SCREEN
   ========================================== */

.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1040 50%, #0f1a30 100%);
}

.login-card {
    text-align: center;
    padding: 48px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    max-width: 380px;
    width: 90%;
}

.login-logo {
    font-size: 3rem;
    margin-bottom: 12px;
}

.login-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.btn-google-login {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-google-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.google-icon {
    flex-shrink: 0;
}

.demo-mode-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.login-offline {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.login-offline a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 6px 16px;
    border: 1px solid var(--accent-primary);
    border-radius: 8px;
    transition: all 0.2s;
}

.login-offline a:hover {
    background: var(--accent-primary);
    color: #fff;
    text-decoration: none;
}

.demo-warning {
    font-size: 0.72rem;
    color: #b8860b;
    margin: 10px 0 0 0;
    line-height: 1.4;
    opacity: 0.9;
}

/* Demo Mode Banner */
.demo-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #3a2a00, #2a1f00);
    border-bottom: 1px solid rgba(255, 193, 7, 0.3);
    font-size: 0.78rem;
}

.demo-banner-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
}

.demo-banner-text {
    color: #ffc107;
    opacity: 0.9;
}

.demo-banner-progress {
    flex: 1;
    max-width: 120px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.demo-banner-progress-fill {
    height: 100%;
    width: 100%;
    background: #ffc107;
    border-radius: 3px;
    transition: width 0.5s ease, background 0.3s;
}

.demo-banner-btn {
    border: none;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.demo-btn-download {
    background: rgba(255, 255, 255, 0.12);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.35);
}

.demo-btn-download:hover {
    background: rgba(255, 193, 7, 0.2);
    transform: scale(1.05);
}

.demo-btn-signin {
    background: #ffc107;
    color: #1a1a2e;
}

.demo-btn-signin:hover {
    background: #ffca2c;
    transform: scale(1.05);
}

/* User Menu in Top Bar */
.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
}

.btn-logout {
    font-size: 1rem;
    opacity: 0.7;
}

.btn-logout:hover {
    opacity: 1;
}

/* ==========================================
   UPGRADE / PRO TIER
   ========================================== */

.btn-upgrade {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    background: linear-gradient(135deg, #f9a825, #ff8f00);
    color: #1a1a2e;
    border: none;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 12px rgba(249, 168, 37, 0.3);
    animation: upgradeGlow 2s ease-in-out infinite alternate;
    white-space: nowrap;
}

@keyframes upgradeGlow {
    from { box-shadow: 0 0 8px rgba(249, 168, 37, 0.2); }
    to { box-shadow: 0 0 18px rgba(249, 168, 37, 0.5); }
}

.btn-upgrade:hover {
    transform: scale(1.08);
    box-shadow: 0 0 24px rgba(249, 168, 37, 0.6);
}

/* Upgrade Modal */
.upgrade-modal {
    max-width: 480px;
    width: 92%;
    padding: 32px 28px;
    text-align: center;
}

.upgrade-header {
    margin-bottom: 24px;
}

.upgrade-header-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 8px;
}

.upgrade-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

.upgrade-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Feature Comparison Grid */
.pro-feature-grid {
    text-align: left;
    margin-bottom: 24px;
}

.pro-grid-header {
    display: grid;
    grid-template-columns: 1fr 50px 50px;
    gap: 8px;
    padding: 0 0 8px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

.pro-col-label {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.pro-col-pro {
    color: #f9a825;
}

.pro-feature-row {
    display: grid;
    grid-template-columns: 1fr 50px 50px;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    align-items: center;
}

.pro-highlight-row {
    background: rgba(249, 168, 37, 0.04);
    border-radius: 4px;
    padding: 6px 8px;
}

.pro-feature-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pro-highlight-row .pro-feature-name {
    color: var(--text-primary);
    font-weight: 600;
}

.pro-check {
    text-align: center;
    color: #27ae60;
    font-weight: 700;
    font-size: 0.9rem;
}

.pro-cross {
    text-align: center;
    color: var(--text-muted);
    opacity: 0.4;
    font-size: 0.9rem;
}

/* CTA Section */
.upgrade-cta-section {
    padding-top: 8px;
}

.upgrade-price {
    margin-bottom: 14px;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #f9a825;
}

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

.btn-go-pro {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #f9a825, #ff8f00);
    color: #1a1a2e;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(249, 168, 37, 0.4);
}

.btn-go-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(249, 168, 37, 0.6);
}

.upgrade-guarantee {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 12px;
    opacity: 0.7;
}

/* Pro Lock Badge on feature buttons */
.pro-lock-badge {
    display: inline-block;
    font-size: 0.6rem;
    background: linear-gradient(135deg, #f9a825, #ff8f00);
    color: #1a1a2e;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 800;
    margin-left: 4px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

/* ==========================================
   TOP BAR
   ========================================== */

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.streak-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2a1a0a, #3a2010);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid #4a3020;
}

.streak-flame {
    font-size: 1.2rem;
    animation: flicker 1.5s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.top-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.btn-icon.synced {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* ==========================================
   PRAISE BANNER
   ========================================== */

.praise-banner {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: linear-gradient(135deg, #1a1040, #2a1060);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius);
    padding: 20px 40px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(108,92,231,0.4);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.praise-banner.hidden {
    display: none;
}

.praise-banner.praise-animate {
    opacity: 1;
    animation: praiseSlideIn 0.5s ease forwards;
}

.praise-banner.praise-fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
}

@keyframes praiseSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.praise-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent-yellow);
    line-height: 1.5;
    font-style: italic;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #5a4bd6);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(108,92,231,0.4);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
    width: 100%;
    border-radius: var(--radius);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-danger {
    background: rgba(231,76,60,0.15);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger:hover {
    background: rgba(231,76,60,0.3);
}

/* ==========================================
   MODALS
   ========================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.hidden {
    display: none;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.modal h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ==========================================
   STATE PRIMING
   ========================================== */

.priming-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.priming-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.priming-check {
    width: 24px;
    height: 24px;
    accent-color: var(--accent-green);
    cursor: pointer;
    flex-shrink: 0;
}

.btn-timer {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.timer-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-top: 8px;
    font-variant-numeric: tabular-nums;
}

.timer-display.hidden {
    display: none;
}

.energy-level {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
}

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

.energy-level input[type="range"] {
    flex: 1;
    accent-color: var(--accent-orange);
}

#energyValue, #commitmentValue, #editCommitmentValue {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-orange);
    min-width: 24px;
    text-align: center;
}

/* ==========================================
   OUTCOME FORM
   ========================================== */

.outcome-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.required {
    color: #e84393;
    font-weight: 700;
}

.outcome-label {
    color: var(--accent-blue);
    font-size: 1rem;
    letter-spacing: 2px;
}

.purpose-label {
    color: var(--accent-orange);
}

.action-label {
    color: var(--accent-green);
}

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

.input-field {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    width: 100%;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.15);
}

/* Make date picker calendar icon visible on dark backgrounds */
.input-field[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8) brightness(1.3);
    cursor: pointer;
}

.input-field[type="date"]::-webkit-datetime-edit {
    color: var(--text-primary);
}

.input-large {
    font-size: 1.2rem;
    padding: 16px;
}

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

.action-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

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

.est-input {
    max-width: 80px;
    min-width: 60px;
    flex: 0 0 80px !important;
    text-align: center;
}

.action-extra-cat {
    max-width: 110px;
    min-width: 80px;
    flex: 0 0 110px !important;
    font-size: 0.8rem;
}

.est-select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    min-width: 90px;
}

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

/* Category checkboxes for actions */
.category-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cat-checkbox-label {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 20px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.cat-checkbox-label:has(.cat-checkbox:checked) {
    background: var(--cat-color, var(--accent-primary));
    color: #fff;
    border-color: var(--cat-color, var(--accent-primary));
    font-weight: 600;
}

.cat-checkbox {
    width: 14px;
    height: 14px;
    accent-color: var(--cat-color, var(--accent-primary));
    cursor: pointer;
}

.cat-checkbox-text {
    white-space: nowrap;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.commitment-box {
    background: var(--bg-input);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.commitment-box input[type="range"] {
    width: 100%;
    accent-color: var(--accent-primary);
}

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

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
}

/* ==========================================
   DAILY FOCUS + WHEEL OF LIFE ROW
   ========================================== */

.daily-focus-row {
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 24px;
    margin-bottom: 40px;
    align-items: stretch;
}

.daily-focus {
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.focus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.focus-header h2 {
    font-size: 1.2rem;
}

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

.focus-category-filter {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.focus-cat-btn {
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

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

.focus-cat-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), #5a4bd6);
    border-color: var(--accent-primary);
    color: #fff;
}

.next-action-card {
    background: linear-gradient(135deg, #1a1040, #0f1a30);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-glow);
    margin-bottom: 12px;
}

.next-action-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 12px;
}

.next-action-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent-primary);
    text-transform: uppercase;
}

.next-action-outcome-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.na-progress-text {
    font-size: 0.72rem;
    color: var(--text-secondary);
    white-space: nowrap;
    font-weight: 600;
}

.na-progress-bar {
    width: 80px;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}

.na-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-green));
    transition: width 0.4s ease;
}

.next-action-text {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.next-action-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.next-action-buttons {
    display: flex;
    gap: 12px;
}

.pomodoro-display {
    text-align: center;
    margin-top: 16px;
}

.pomodoro-display.hidden {
    display: none;
}

.pomodoro-time {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-variant-numeric: tabular-nums;
    margin-bottom: 12px;
}

/* Task Timer */
.btn-timer-start {
    background: linear-gradient(135deg, #00b894, #00d2a0);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-timer-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 210, 160, 0.35);
}

.task-timer-display {
    text-align: center;
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(0, 210, 160, 0.1), rgba(0, 184, 148, 0.05));
    border: 1px solid rgba(0, 210, 160, 0.3);
    border-radius: var(--radius);
}

.task-timer-display.hidden {
    display: none;
}

.task-timer-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.task-timer-time {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00d2a0;
    font-variant-numeric: tabular-nums;
    margin-bottom: 12px;
}

.task-timer-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-timer-control {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-timer-control:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-timer-stop {
    background: rgba(232, 67, 147, 0.2);
    color: #e84393;
    border: 1px solid rgba(232, 67, 147, 0.4);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-timer-stop:hover {
    background: rgba(232, 67, 147, 0.3);
}

/* Task Check-In Modal */
.check-in-modal {
    text-align: center;
    max-width: 420px;
    padding: 32px;
}

.check-in-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.check-in-modal h2 {
    color: var(--accent-secondary);
    margin-bottom: 16px;
}

.check-in-time {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.check-in-time strong {
    color: #00d2a0;
}

.check-in-task {
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.check-in-task strong {
    color: var(--accent-primary);
    display: block;
    margin-top: 8px;
    font-size: 1.1rem;
}

.check-in-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-in-buttons .btn-primary {
    padding: 14px 24px;
    font-size: 1.05rem;
}

.check-in-buttons .btn-secondary {
    padding: 10px 20px;
}

/* Pick For Me Modal */
.pick-for-me-modal {
    text-align: center;
    max-width: 480px;
    padding: 32px;
    position: relative;
}

.pick-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.pick-for-me-modal h2 {
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.pick-subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.time-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}

.time-option-btn {
    padding: 12px 20px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.time-option-btn:hover {
    border-color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.1);
}

.time-option-btn.active {
    border-color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.2);
    color: var(--accent-primary);
}

.pick-result {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 16px;
}

.pick-result.hidden {
    display: none;
}

.pick-result-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.pick-result-task {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pick-result-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.pick-category {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-close-pick {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 10px;
    line-height: 1;
}

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

.btn-pick-for-me {
    background: linear-gradient(135deg, #f39c12, #e17055);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-pick-for-me:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.35);
}

/* Input Error State */
.input-error {
    border-color: #e84393 !important;
    background: rgba(232, 67, 147, 0.1) !important;
}

/* Values Modal */
.values-modal {
    max-width: 480px;
    padding: 32px;
}

.values-modal h2 {
    color: #f1c40f;
    margin-bottom: 8px;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.value-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.value-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.value-input {
    flex: 1;
}

.values-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

/* Pick for me values display */
.pick-values-match {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #f1c40f;
}

.pick-value-tag {
    display: inline-block;
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 2px;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

/* Business Pack Modal */
#businessPackOverlay {
    background: rgba(5, 30, 15, 0.85);
}

.business-pack-modal {
    max-width: 600px;
    padding: 32px;
    background: linear-gradient(135deg, #0a2e1a, #132f1e, #1a3a25);
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.business-pack-modal h2 {
    color: #27ae60;
    margin-bottom: 8px;
}

.business-wheel-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.business-wheel-svg {
    max-width: 450px;
    max-height: 420px;
}


.business-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-business-pack {
    width: 100%;
    margin-top: 16px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #27ae60, #1e8449);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-business-pack:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

/* Business Mode - green hue for entire page */
body.business-mode {
    background: #060f0a;
}

body.business-mode #app {
    background: #0a1610;
}

body.business-mode .top-bar {
    background: #0c1a12;
    border-bottom-color: rgba(39, 174, 96, 0.15);
}

body.business-mode .login-card {
    background: #0c1a12;
    border-color: rgba(39, 174, 96, 0.2);
}

body.business-mode .next-action-card {
    background: linear-gradient(135deg, #0a2e1a, #0c2416);
    border-color: #27ae60;
}

body.business-mode .wheel-of-life-card {
    background: linear-gradient(135deg, #0a2e1a, #0c2416);
    border-color: rgba(39, 174, 96, 0.25);
}

body.business-mode .wheel-chart-container {
    max-width: 460px;
}

body.business-mode .wheel-svg {
    font-size: 14px;
}

body.business-mode .motivation-card {
    background: #101e15;
    border-color: rgba(39, 174, 96, 0.15);
}

body.business-mode .outcome-item {
    background: #101e15;
    border-color: rgba(39, 174, 96, 0.15);
}

body.business-mode .modal {
    background: #101e15;
    border-color: rgba(39, 174, 96, 0.2);
}

body.business-mode .mode-toggle-btn.active {
    background: #27ae60;
    color: #fff;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.4);
}

body.business-mode .focus-cat-btn {
    border-color: rgba(39, 174, 96, 0.2);
}

body.business-mode .focus-cat-btn.active {
    background: #27ae60;
    border-color: #27ae60;
    color: #fff;
}

body.business-mode .btn-add-outcome {
    background: #101e15;
    border-color: rgba(39, 174, 96, 0.3);
}

body.business-mode input,
body.business-mode select,
body.business-mode textarea {
    background: #0a1610;
    border-color: rgba(39, 174, 96, 0.2);
}

body.business-mode .outcomes-section {
    border-color: rgba(39, 174, 96, 0.1);
}

.daily-progress {
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-green));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
}

/* ==========================================
   MOTIVATION QUOTE
   ========================================== */

.motivation-card {
    margin-top: 16px;
    background: linear-gradient(135deg, #0f1a2a, #1a1040);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.motivation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow), var(--accent-orange));
}

.motivation-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.motivation-icon {
    font-size: 1.3rem;
}

.motivation-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent-orange);
    flex: 1;
}

.motivation-refresh {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.motivation-refresh:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: rotate(180deg);
}

.motivation-quote {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-style: italic;
    padding: 8px 14px;
    border-left: 3px solid currentColor;
    border-radius: 0 8px 8px 0;
    background: rgba(255,255,255,0.03);
    transition: color 0.4s ease, border-color 0.4s ease;
}

.motivation-author {
    font-size: 0.8rem;
    color: var(--accent-yellow);
    font-weight: 700;
    padding-left: 14px;
    letter-spacing: 0.5px;
    transition: color 0.4s ease;
}

/* ==========================================
   WHEEL OF LIFE
   ========================================== */

.wheel-of-life-card {
    background: linear-gradient(135deg, #111827, #0f172a);
    border: 1px solid rgba(108, 92, 231, 0.25);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.wheel-of-life-card h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    text-align: center;
}

.wheel-period {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    background: var(--bg-input);
    padding: 2px 10px;
    border-radius: 50px;
    margin-left: 8px;
}

.wheel-chart-container {
    width: 100%;
    max-width: 360px;
    margin: 0 auto 10px;
}

.wheel-svg {
    width: 100%;
    height: auto;
}


.wheel-balance-score {
    padding: 14px 16px;
    background: linear-gradient(135deg, #251458, #1b1045, #131035) !important;
    border: 1px solid #7c6cf7;
    border-radius: var(--radius);
    box-shadow: 0 0 25px rgba(108, 92, 231, 0.35), inset 0 1px 0 rgba(108, 92, 231, 0.15);
}

.balance-level {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-orange);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.balance-count {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.balance-bar-wrap {
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.balance-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #f39c12, #e17055);
    transition: width 0.6s ease;
}

.balance-message {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==========================================
   OUTCOMES SECTION
   ========================================== */

.outcomes-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 {
    font-size: 1.3rem;
}

.filter-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.tab {
    background: none;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Outcome Card */
.outcome-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-primary);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.outcome-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    filter: brightness(1.1);
}

.outcome-card.completed {
    opacity: 0.6;
    border-color: var(--accent-green);
}

.outcome-card.completed::before {
    background: var(--accent-green) !important;
}

.outcome-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.outcome-header-left {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
}

.outcome-wheel-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.outcome-result {
    font-size: 1.1rem;
    font-weight: 600;
}

.outcome-header-btns {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.outcome-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: var(--transition);
    border-radius: 4px;
}

.outcome-btn:hover {
    color: var(--text-primary);
    background: var(--bg-input);
}

.outcome-purpose {
    color: var(--accent-orange);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: rgba(243, 156, 18, 0.08);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-orange);
}

.outcome-actions-list {
    list-style: none;
    margin-bottom: 16px;
}

.outcome-actions-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.outcome-actions-list li:last-child {
    border-bottom: none;
}

.completed-actions-toggle {
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 4px;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
}

.completed-actions-toggle:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.toggle-arrow {
    display: inline-block;
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.completed-actions-group {
    border-top: 1px solid rgba(255,255,255,0.05);
}

.completed-actions-group li {
    opacity: 0.6;
}

/* Drag and drop styles */
.outcome-actions-list li.draggable {
    cursor: grab;
}

.outcome-actions-list li.draggable:active {
    cursor: grabbing;
}

.outcome-actions-list li.dragging {
    opacity: 0.4;
    background: rgba(108,92,231,0.1);
}

.outcome-actions-list li.drag-over {
    border-top: 2px solid var(--accent-primary);
    padding-top: 6px;
}

.drag-handle {
    color: var(--text-muted);
    cursor: grab;
    font-size: 1rem;
    flex-shrink: 0;
    user-select: none;
    padding: 0 2px;
}

.drag-handle:active {
    cursor: grabbing;
}

.action-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-green);
    cursor: pointer;
    flex-shrink: 0;
}

.action-text {
    flex: 1;
    cursor: pointer;
}

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

.action-text.done {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Category count badge on actions */
.cat-count-badge {
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 8px;
    background: rgba(108, 92, 231, 0.15);
    color: #6c5ce7;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.action-est {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.outcome-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.outcome-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.outcome-progress-bar {
    width: 80px;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
}

.outcome-progress-fill {
    height: 100%;
    background: var(--accent-green);
    border-radius: 3px;
    transition: width 0.3s ease;
}

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

.outcome-deadline.urgent {
    color: var(--accent-red);
    font-weight: 600;
}

.btn-add-outcome {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 20px;
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-add-outcome .plus {
    font-size: 1.5rem;
    font-weight: 300;
}

/* ==========================================
   MOMENTUM SECTION
   ========================================== */

.momentum-section {
    margin-bottom: 40px;
}

.momentum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.momentum-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.momentum-card h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.score-display {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ==========================================
   ACTION LOG
   ========================================== */

.action-log-section {
    margin-bottom: 40px;
}

.action-log-section h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.action-log {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.empty-state {
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
}

.log-day-header {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-primary);
    padding: 12px 0 6px;
    border-bottom: 1px solid rgba(108,92,231,0.2);
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.log-day-header:first-child {
    padding-top: 0;
    margin-top: 0;
}

.log-day-total {
    font-size: 0.75rem;
    font-weight: 600;
    color: #00d2a0;
    letter-spacing: 0.5px;
    text-transform: none;
    background: rgba(0, 210, 160, 0.12);
    padding: 3px 10px;
    border-radius: 12px;
}

.log-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-check {
    color: var(--accent-green);
    font-size: 1.1rem;
}

.log-time {
    color: var(--text-muted);
    font-size: 0.8rem;
    min-width: 60px;
}

.log-text {
    flex: 1;
}

.log-points {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.log-actual-time {
    color: #00d2a0;
    font-size: 0.8rem;
    padding: 2px 8px;
    background: rgba(0, 210, 160, 0.15);
    border-radius: 10px;
    margin-right: 8px;
}

.log-category {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==========================================
   WEEKLY REVIEW
   ========================================== */

.weekly-review-modal {
    max-width: 700px;
}

.review-section {
    margin-bottom: 28px;
}

.review-section h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.progress-ring-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: var(--bg-input);
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--accent-green);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 1s ease;
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
}

.wins-list {
    list-style: none;
}

.wins-list li {
    padding: 8px 12px;
    background: rgba(0,210,160,0.08);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.wins-list li::before {
    content: '\2713 ';
    color: var(--accent-green);
    margin-right: 8px;
}

.carry-list {
    list-style: none;
}

.carry-list li {
    padding: 8px 12px;
    background: rgba(231,76,60,0.08);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.carry-list li::before {
    content: '\26A0 ';
    margin-right: 8px;
}

.momentum-display {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.momentum-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================
   MOVEMENT MODAL
   ========================================== */

.movement-modal {
    text-align: center;
    max-width: 680px;
}

.movement-exercises {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
    text-align: left;
}

.exercise-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

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

.exercise-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.exercise-emoji {
    font-size: 3rem;
    line-height: 1;
    flex-shrink: 0;
}

.exercise-info {
    flex: 1;
}

.exercise-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.exercise-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.exercise-equipment {
    background: var(--bg-dark);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
}

.exercise-duration {
    color: var(--accent-green);
    font-weight: 600;
}

.exercise-focus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.exercise-focus-tag {
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exercise-how-to {
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.exercise-how-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.exercise-step {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 3px 0;
    line-height: 1.5;
}

.exercise-add-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(0, 210, 160, 0.1);
    border: 1px solid rgba(0, 210, 160, 0.3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.exercise-add-checkbox:hover {
    background: rgba(0, 210, 160, 0.15);
    border-color: rgba(0, 210, 160, 0.5);
}

.exercise-add-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #00d2a0;
    cursor: pointer;
}

.exercise-add-checkbox span {
    font-size: 0.85rem;
    color: #00d2a0;
    font-weight: 500;
}

.movement-bottom-actions {
    margin-top: 16px;
}

/* ==========================================
   EXTENDED BREAK MODAL
   ========================================== */

.extended-break-modal {
    text-align: center;
    max-width: 520px;
}

.extended-break-content {
    margin-top: 20px;
}

.break-timer-display {
    margin-bottom: 24px;
}

.break-time {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-green);
    font-variant-numeric: tabular-nums;
    margin-bottom: 8px;
}

.break-hint {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.break-suggestions {
    background: var(--bg-input);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.break-suggestion-item {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.break-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ==========================================
   EDIT ACTION / OUTCOME / ADD ACTION MODALS
   ========================================== */

.edit-action-modal,
.add-action-modal {
    max-width: 480px;
}

.edit-outcome-modal {
    max-width: 640px;
}

.edit-action-buttons {
    display: flex;
    gap: 12px;
}

.edit-action-buttons .btn-primary {
    flex: 1;
}

.edit-action-buttons .btn-danger {
    flex: 0;
    white-space: nowrap;
}

/* ==========================================
   SCROLLBAR
   ========================================== */

::-webkit-scrollbar {
    width: 6px;
}

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

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

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

/* ==========================================
   MODE TOGGLE (Personal/Business)
   ========================================== */

.mode-toggle-container {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--bg-dark);
    padding: 4px;
    border-radius: 12px;
    width: fit-content;
}

.mode-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.mode-toggle-btn:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.mode-toggle-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), #5a4bd6);
    color: #fff;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.4);
}

.mode-toggle-btn .mode-icon {
    font-size: 1.2rem;
}

/* ==========================================
   LEVERAGE SCORE BADGES
   ========================================== */

.leverage-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.leverage-badge.leverage-high {
    background: rgba(0, 210, 160, 0.2);
    color: #00d2a0;
    border: 1px solid rgba(0, 210, 160, 0.4);
}

.leverage-badge.leverage-mid {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.4);
}

.leverage-badge.leverage-low {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.4);
}

/* ==========================================
   FOCUS BADGE
   ========================================== */

.focus-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(108, 92, 231, 0.1));
    color: var(--accent-primary);
    border: 1px solid rgba(108, 92, 231, 0.4);
    margin-left: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

body.business-mode .focus-badge {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.2), rgba(39, 174, 96, 0.1));
    color: #27ae60;
    border-color: rgba(39, 174, 96, 0.4);
}

/* Back Burner Outcomes */
.outcome-card.back-burner {
    opacity: 0.5;
    border-style: dashed;
    filter: grayscale(30%);
}

.outcome-card.back-burner::after {
    content: 'ON HOLD';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-orange);
    background: rgba(243, 156, 18, 0.15);
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

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

@media (max-width: 768px) {
    .top-bar {
        padding: 12px 16px;
    }

    .main-content {
        padding: 16px;
    }

    .daily-focus-row {
        grid-template-columns: 1fr;
    }

    .outcomes-grid {
        grid-template-columns: 1fr;
    }

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

    .modal {
        padding: 20px;
        margin: 10px;
    }

    .next-action-text {
        font-size: 1.1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .action-input-row {
        flex-direction: column;
    }

    .est-input {
        max-width: 100% !important;
        flex: 1 !important;
    }

    .est-select {
        min-width: unset;
    }

    .mode-toggle-container {
        width: 100%;
    }

    .mode-toggle-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* ==========================================
   OUTCOME DRAG AND DROP
   ========================================== */
.outcome-drag-handle {
    cursor: grab;
    font-size: 1.2rem;
    color: var(--text-secondary);
    opacity: 0.5;
    transition: var(--transition);
    padding: 4px 6px;
    user-select: none;
    flex-shrink: 0;
    border-radius: 4px;
}

.outcome-drag-handle:hover {
    opacity: 1;
    color: var(--accent-orange);
    background: rgba(243, 156, 18, 0.1);
}

.outcome-drag-handle:active {
    cursor: grabbing;
}

.outcome-card {
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.outcome-card.outcome-dragging {
    opacity: 0.3;
    transform: scale(0.97);
    border-style: dashed;
}

.outcome-card.outcome-drag-over {
    border-color: var(--accent-orange) !important;
    box-shadow: 0 0 0 2px var(--accent-orange), 0 4px 24px rgba(243, 156, 18, 0.25);
    transform: scale(1.02);
}

/* ==========================================
   ARCHIVE SYSTEM
   ========================================== */
.archive-modal {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

.archive-period-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.archive-tab {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.archive-tab:hover {
    border-color: var(--accent-orange);
    color: var(--text-primary);
}

.archive-tab.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #000;
}

.archive-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.archive-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.archive-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-orange);
}

.archive-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.archive-outcome {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
    border-left: 3px solid var(--accent-orange);
}

.archive-outcome-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.archive-outcome-result {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.archive-outcome-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    margin-left: 12px;
}

.archive-outcome-purpose {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-style: italic;
}

.archive-outcome-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(243,156,18,0.15);
    color: var(--accent-orange);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.archive-actions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-actions-list li {
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.archive-actions-list li::before {
    content: '\2713';
    color: #00d2a0;
    font-weight: 700;
}

.archive-outcome-actions-toggle {
    background: none;
    border: none;
    color: var(--accent-orange);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 4px 0;
    font-weight: 600;
}

.archive-outcome-actions-toggle:hover {
    text-decoration: underline;
}

.archive-unarchive-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 12px;
    transition: var(--transition);
    margin-top: 8px;
}

.archive-unarchive-btn:hover {
    border-color: #ff7675;
    color: #ff7675;
}

/* Archive button on completed outcome cards */
.btn-archive-outcome {
    background: var(--accent-orange);
    color: #000;
    border: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-archive-outcome:hover {
    background: var(--accent-yellow);
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .next-action-buttons {
        flex-direction: column;
    }

    .daily-progress {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .progress-bar {
        width: 100%;
    }

    .edit-action-buttons {
        flex-direction: column;
    }

    .sheets-buttons {
        flex-direction: column;
    }

    .exercise-emoji {
        font-size: 2.5rem;
    }

    .exercise-name {
        font-size: 1rem;
    }

    .praise-banner {
        top: 60px;
        padding: 16px 20px;
    }

    .praise-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .momentum-grid {
        grid-template-columns: 1fr;
    }

    .logo-text {
        display: none;
    }

    .streak-bar {
        font-size: 0.85rem;
        padding: 6px 14px;
    }

    .exercise-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .exercise-meta {
        flex-direction: column;
        gap: 4px;
    }
}

/* ==========================================
   HELP GUIDE
   ========================================== */

.btn-help {
    font-weight: 700;
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    box-shadow: 0 0 12px rgba(108,92,231,0.4);
}
.btn-help:hover {
    background: var(--accent-glow);
    box-shadow: 0 0 20px rgba(108,92,231,0.6);
    transform: scale(1.1);
}

body.business-mode .btn-help {
    background: #27ae60;
    box-shadow: 0 0 12px rgba(39,174,96,0.4);
}
body.business-mode .btn-help:hover {
    background: #2ecc71;
    box-shadow: 0 0 20px rgba(39,174,96,0.6);
}

.help-modal {
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
}

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

.help-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 4px;
}

.help-tagline {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 28px;
}

.help-section {
    margin-bottom: 28px;
}

.help-section h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--accent-primary);
}

body.business-mode .help-section h3 {
    color: #27ae60;
}

.help-section > p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

/* NCI principle cards */
.help-nci-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.help-nci-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.help-nci-icon {
    font-size: 1.4rem;
}

.help-nci-card strong {
    font-size: 0.88rem;
    color: var(--text-primary);
}

.help-nci-card span:last-child {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Quick start steps */
.help-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.help-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.help-step-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

body.business-mode .help-step-num {
    background: #27ae60;
}

.help-step-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.help-step-content strong {
    font-size: 0.95rem;
}

.help-step-content span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.help-btn-ref {
    background: rgba(108,92,231,0.2);
    color: var(--accent-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
}

body.business-mode .help-btn-ref {
    background: rgba(39,174,96,0.2);
    color: #27ae60;
}

/* Button guide */
.help-buttons-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.help-button-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

.help-btn-icon {
    font-size: 1.2rem;
    min-width: 30px;
    text-align: center;
}

.help-button-row > span:last-child {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.help-button-row strong {
    color: var(--text-primary);
}

/* Schedule grid */
.help-schedule {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.help-schedule-row {
    display: grid;
    grid-template-columns: 50px 1fr 50px 1fr;
    gap: 8px;
    align-items: center;
}

.help-day {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--accent-primary);
    text-transform: uppercase;
}

body.business-mode .help-day {
    color: #27ae60;
}

.help-focus {
    font-size: 0.88rem;
    color: var(--text-secondary);
    background: var(--bg-input);
    padding: 4px 10px;
    border-radius: 4px;
}

.help-day-note {
    grid-column: 3 / 5;
    font-size: 0.82rem;
    color: var(--accent-green);
    font-style: italic;
}

/* Pro tips */
.help-tips {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.help-tips li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}

.help-tips li::before {
    content: '\25B6';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: 0.7rem;
    top: 3px;
}

body.business-mode .help-tips li::before {
    color: #27ae60;
}

.help-tips li strong {
    color: var(--text-primary);
}

/* Help modal scrollbar */
.help-modal::-webkit-scrollbar {
    width: 6px;
}
.help-modal::-webkit-scrollbar-track {
    background: var(--bg-card);
}
.help-modal::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

@media (max-width: 600px) {
    .help-modal {
        padding: 20px;
        max-height: 90vh;
    }
    .help-nci-grid {
        grid-template-columns: 1fr;
    }
    .help-schedule-row {
        grid-template-columns: 45px 1fr;
    }
    .help-schedule-row > :nth-child(3),
    .help-schedule-row > :nth-child(4) {
        grid-column: auto;
    }
    .help-day-note {
        grid-column: 1 / 3;
    }
}

/* ==========================================
   EVENING SEED PLANTING
   ========================================== */

.evening-seed-modal {
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
}

.evening-seed-modal h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.seed-section {
    margin-top: 24px;
}

.seed-section h3 {
    font-size: 1.05rem;
    color: var(--accent-green);
    margin-bottom: 8px;
}

.seed-hint {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 10px;
}

.seed-section .input-field {
    margin-bottom: 8px;
}

.seed-tomorrow-preview {
    margin-top: 10px;
}

.seed-outcome {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 10px;
}

.seed-outcome-title {
    font-weight: 700;
    font-size: 0.95rem;
    padding-left: 12px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.seed-action-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.seed-action-list li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 6px 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seed-action-list li::before {
    content: '\25CB';
    margin-right: 8px;
    color: var(--accent-primary);
}

.seed-est {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(108,92,231,0.15);
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

.seed-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 20px;
    font-style: italic;
}

/* ==========================================
   WIND DOWN RITUAL
   ========================================== */

.wind-down-modal {
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
}

.wind-down-modal h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.wind-down-steps {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wind-down-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 16px;
    border: 1px solid var(--border);
}

.wind-down-icon {
    font-size: 1.8rem;
    min-width: 40px;
    text-align: center;
}

.wind-down-content {
    flex: 1;
}

.wind-down-content strong {
    font-size: 1rem;
    display: block;
    margin-bottom: 4px;
}

.wind-down-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.btn-wind-timer {
    font-size: 0.82rem;
    padding: 6px 14px;
}

.wind-timer-display {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-top: 6px;
    font-family: monospace;
}

.wind-down-check {
    width: 22px;
    height: 22px;
    accent-color: var(--accent-green);
    cursor: pointer;
    margin-top: 4px;
}

.sleep-reminder {
    margin-top: 24px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: linear-gradient(135deg, #1a1040, #0f0a2a);
    border: 1px solid rgba(108,92,231,0.3);
    border-radius: var(--radius);
    padding: 18px;
}

.sleep-reminder-icon {
    font-size: 2.2rem;
    min-width: 40px;
    text-align: center;
}

.sleep-reminder-text strong {
    color: var(--accent-yellow);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 6px;
}

.sleep-reminder-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 600px) {
    .evening-seed-modal,
    .wind-down-modal {
        padding: 20px;
        max-height: 90vh;
    }
    .wind-down-step {
        flex-direction: column;
    }
    .sleep-reminder {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================
   2-LINE BUTTON LABELS
   ========================================== */
.btn-line {
    display: block;
    line-height: 1.15;
    font-size: 0.65rem;
}

.focus-cat-btn .btn-line,
.tab .btn-line {
    font-size: 0.65rem;
}

.pill .btn-line {
    font-size: 0.72rem;
}

.focus-cat-btn,
.tab {
    text-align: center;
    line-height: 1.1;
    padding: 6px 10px;
}

.pill {
    text-align: center;
    line-height: 1.15;
}

/* ==========================================
   CATEGORY GUIDE BUTTON + MODAL
   ========================================== */
.btn-cat-guide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-primary);
    background: transparent;
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    margin-left: 8px;
    vertical-align: middle;
    transition: var(--transition);
    line-height: 1;
}

.btn-cat-guide:hover {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 12px rgba(108, 92, 231, 0.4);
}

body.business-mode .btn-cat-guide {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

body.business-mode .btn-cat-guide:hover {
    background: var(--accent-green);
    color: #fff;
    box-shadow: 0 0 12px rgba(0, 210, 160, 0.4);
}

.cat-guide-modal {
    max-width: 550px;
}

.cat-guide-item {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
}

.cat-guide-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.cat-guide-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cat-guide-free-day {
    background: linear-gradient(135deg, #1a1a28, #1a1040);
    border: 1px dashed var(--accent-yellow);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-top: 14px;
}

.cat-guide-free-day .cat-guide-desc {
    color: var(--text-primary);
    font-size: 0.82rem;
}

/* Help schedule free day highlight */
.help-free-day {
    color: var(--accent-yellow) !important;
    font-weight: 600;
}

/* Focus action button (timer icon on each task) */
.btn-focus-action {
    background: none;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 0.7rem;
    cursor: pointer;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-focus-action:hover {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.4);
}

body.business-mode .btn-focus-action {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

body.business-mode .btn-focus-action:hover {
    background: var(--accent-green);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 210, 160, 0.4);
}

/* Action deadline badge */
.action-deadline-badge {
    font-size: 0.6rem;
    padding: 1px 5px;
    border-radius: 8px;
    background: rgba(52, 152, 219, 0.15);
    color: var(--accent-blue);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.action-deadline-badge.soon {
    background: rgba(243, 156, 18, 0.15);
    color: var(--accent-orange);
}

.action-deadline-badge.urgent {
    background: rgba(231, 76, 60, 0.2);
    color: var(--accent-red);
    font-weight: 700;
}

.action-deadline-badge.overdue {
    background: rgba(231, 76, 60, 0.3);
    color: #ff5252;
    font-weight: 700;
}

/* Action row deadline input */
.action-deadline-input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.7rem;
    padding: 4px 6px;
    max-width: 120px;
    cursor: pointer;
}

.action-deadline-input::-webkit-calendar-picker-indicator {
    filter: invert(0.8) brightness(1.3);
    cursor: pointer;
}

/* ==========================================
   GAMIFICATION SYSTEM STYLES
   NCI-Powered Dopamine Hit System
   ========================================== */

/* --- Level Badge (Top Bar) --- */
.level-badge-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-purple);
    white-space: nowrap;
}

.level-emoji {
    font-size: 0.9rem;
}

.level-title {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Level Progress Section --- */
.level-progress-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 0 2px;
}

.level-progress-track {
    flex: 1;
    height: 6px;
    background: var(--bg-card);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.level-next-info {
    font-size: 0.6rem;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 100px;
    text-align: right;
}

/* --- Combo Display --- */
.combo-display {
    text-align: center;
    padding: 8px 12px;
    margin-top: 8px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(243, 156, 18, 0.15));
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.85rem;
    color: #ff6b6b;
    letter-spacing: 1px;
}

.combo-fire {
    font-size: 1.1rem;
}

.combo-mult {
    background: rgba(231, 76, 60, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 4px;
}

.combo-display.combo-pulse {
    animation: comboPulse 0.6s ease;
}

@keyframes comboPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); box-shadow: 0 0 20px rgba(231, 76, 60, 0.4); }
    100% { transform: scale(1); }
}

/* --- Daily Challenges Section --- */
.daily-challenges-section {
    margin-top: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}

.challenges-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--accent-yellow);
    text-transform: uppercase;
}

.challenges-icon {
    font-size: 0.85rem;
}

.challenge-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    margin-bottom: 5px;
    background: rgba(255, 211, 42, 0.05);
    border: 1px solid rgba(255, 211, 42, 0.15);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.challenge-card.completed {
    background: rgba(0, 210, 160, 0.1);
    border-color: rgba(0, 210, 160, 0.3);
}

.challenge-card.completed .challenge-text {
    text-decoration: line-through;
    opacity: 0.7;
}

.challenge-emoji {
    font-size: 1rem;
    flex-shrink: 0;
}

.challenge-info {
    flex: 1;
    min-width: 0;
}

.challenge-text {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
}

.challenge-xp {
    font-size: 0.6rem;
    color: var(--accent-yellow);
    font-weight: 700;
}

.challenge-status {
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* --- Badges / Trophies Section --- */
.badges-section {
    margin-top: 24px;
}

.badges-section h2 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.badges-subtitle {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
}

.badge-item.earned {
    background: rgba(108, 92, 231, 0.1);
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: 0 0 12px rgba(108, 92, 231, 0.15);
}

.badge-item.locked {
    opacity: 0.4;
    filter: grayscale(0.8);
}

.badge-emoji {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.badge-name {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.badge-item.earned .badge-name {
    color: var(--accent-purple);
}

.badge-xp {
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 2px;
    opacity: 0.6;
}

.badge-xp.earned {
    color: var(--accent-green);
    opacity: 1;
}

.badge-item.faded {
    opacity: 0.5;
    border-style: dashed;
}

.badge-item.faded:hover {
    opacity: 0.75;
}

.badge-type {
    font-size: 0.4rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: absolute;
    top: 3px;
    right: 4px;
}

.badge-item {
    position: relative;
}

.badge-count {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 0.45rem;
    font-weight: 900;
    color: var(--accent-yellow);
    background: rgba(255, 211, 42, 0.2);
    padding: 1px 4px;
    border-radius: 6px;
}

.badge-again {
    font-size: 0.45rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-top: 1px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* --- Power Score Bar (inside Action Log header) --- */
.pwr-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(52, 152, 219, 0.10));
    border: 1px solid rgba(108, 92, 231, 0.25);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 12px;
}

.pwr-bar-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    min-width: 60px;
}

.pwr-score-big {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--accent-purple);
    line-height: 1.1;
}

.pwr-score-label {
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent-blue);
    text-transform: uppercase;
}

.pwr-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.pwr-stat {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.pwr-stat-actions {
    background: rgba(0, 210, 160, 0.15);
    color: #00d2a0;
}

.pwr-stat-cats {
    background: rgba(108, 92, 231, 0.15);
    color: #a29bfe;
}

.pwr-stat-streak {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.pwr-stat-combo {
    background: rgba(231, 76, 60, 0.15);
    color: #ff6b6b;
}

.pwr-stat-beat {
    background: rgba(0, 210, 160, 0.2);
    color: #00d2a0;
}

.pwr-stat-chase {
    background: rgba(255, 211, 42, 0.12);
    color: #ffd32a;
}

.pwr-mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 28px;
    flex-shrink: 0;
}

.pwr-mini-bar {
    width: 10px;
    min-height: 4px;
    background: rgba(108, 92, 231, 0.25);
    border-radius: 2px 2px 0 0;
    transition: height 0.3s ease;
}

.pwr-mini-bar.pwr-active {
    background: linear-gradient(180deg, var(--accent-purple), var(--accent-blue));
    box-shadow: 0 0 6px rgba(108, 92, 231, 0.4);
}

/* --- Confetti Container --- */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: -10px;
    opacity: 0;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg) scale(0.5);
    }
}

/* --- Level Up Overlay --- */
.level-up-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.level-up-card {
    text-align: center;
    padding: 40px 50px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid var(--accent-purple);
    border-radius: 20px;
    box-shadow: 0 0 60px rgba(108, 92, 231, 0.4), 0 0 120px rgba(108, 92, 231, 0.1);
    animation: levelUpPop 0.5s ease forwards;
}

@keyframes levelUpPop {
    0% { transform: scale(0.3); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.level-up-emoji {
    font-size: 4rem;
    margin-bottom: 10px;
    animation: levelUpBounce 1s ease infinite;
}

@keyframes levelUpBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.level-up-label {
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--accent-yellow);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.level-up-title {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.level-up-msg {
    font-size: 0.8rem;
    color: var(--text-secondary);
    max-width: 300px;
    line-height: 1.5;
    font-style: italic;
}

/* --- Badge Unlock Overlay --- */
.badge-unlock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

.badge-unlock-card {
    text-align: center;
    padding: 35px 45px;
    background: linear-gradient(135deg, #1a1a2e, #0d1b2a);
    border: 2px solid var(--accent-yellow);
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(255, 211, 42, 0.3);
    animation: levelUpPop 0.5s ease forwards;
}

.badge-unlock-emoji {
    font-size: 3.5rem;
    margin-bottom: 8px;
}

.badge-unlock-label {
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--accent-yellow);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.badge-unlock-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.badge-unlock-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* --- Challenge Complete Toast --- */
.challenge-toast {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: linear-gradient(135deg, rgba(255, 211, 42, 0.2), rgba(243, 156, 18, 0.2));
    border: 1px solid rgba(255, 211, 42, 0.5);
    color: var(--accent-yellow);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 9997;
    opacity: 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(255, 211, 42, 0.15);
}

.challenge-toast.toast-animate {
    animation: toastSlideIn 0.4s ease forwards, toastSlideOut 0.4s ease 3s forwards;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastSlideOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* --- Streak Glow (7+ days) --- */
.streak-flame {
    animation: flameFlicker 1s ease-in-out infinite;
}

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