@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@400;700&family=Outfit:wght@200;300;400;500;600;700&family=Inter:wght@200;300;400;500;600&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
    --bg-color: #000000;
    --card-bg: #0c0c0c;
    --card-border: rgba(255, 255, 255, 0.05);
    
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-dim: #333333;
    --border-color: rgba(255, 255, 255, 0.06);
    
    --font-display: 'Syncopate', sans-serif;
    --font-sans: 'DM Sans', sans-serif;
    --font-mono: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Film Grain Texture Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* View Visiblity System */
.view-active {
    display: block;
    opacity: 1;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-hidden {
    display: none !important;
    opacity: 0;
}


/* --- 1. OPENING SCREEN (ECLIPSE) --- */
#opening-screen {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

.opening-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%; width: 100%;
    position: relative;
}

.logo-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.8em;
    margin-bottom: 0px;
    opacity: 0.9;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    position: absolute;
    top: 15%;
    text-align: center;
    padding-left: 0.8em; /* To center because of letter-spacing */
    z-index: 10;
    white-space: nowrap;
}

.portal-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Light beam from top to bottom */
.vertical-light-beam {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, 
        rgba(230, 70, 30, 0.05) 0%, 
        rgba(230, 70, 30, 0.3) 40%, 
        rgba(255, 80, 40, 0.95) 50%, 
        rgba(230, 70, 30, 0.3) 60%, 
        rgba(230, 70, 30, 0.05) 100%
    );
    box-shadow: 0 0 12px rgba(230, 70, 30, 0.5);
    z-index: 1;
    pointer-events: none;
    transition: all 1s ease;
}

/* Corona glow around the eclipse */
.portal-sphere-glow {
    position: absolute;
    width: 204px; height: 204px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 70, 30, 0.7) 0%, rgba(212, 63, 31, 0.15) 60%, transparent 80%);
    filter: blur(10px);
    z-index: 2;
    animation: breathing 6s ease-in-out infinite;
    pointer-events: none;
}

/* Perfect black circle representing the moon covering the sun */
.portal-sphere {
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background-color: #000000;
    border: 1.5px solid rgba(230, 70, 30, 0.7);
    box-shadow: 0 0 45px rgba(230, 70, 30, 0.5);
    z-index: 3;
    cursor: pointer;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-sphere:hover {
    border-color: #ff5028;
    box-shadow: 0 0 65px rgba(230, 70, 30, 0.8), inset 0 0 20px rgba(230, 70, 30, 0.2);
}

/* Ground reflection at the bottom */
.opening-content::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.tap-instruction {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.5em;
    color: var(--text-secondary);
    opacity: 0.5;
    animation: fadePulse 3s infinite;
    position: absolute;
    bottom: 12%;
    z-index: 10;
    padding-left: 0.5em;
}

@keyframes breathing {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.04); opacity: 0.85; }
    100% { transform: scale(1); opacity: 0.6; }
}

@keyframes fadePulse {
    0% { opacity: 0.25; }
    50% { opacity: 0.6; }
    100% { opacity: 0.25; }
}

.portal-expanding {
    transform: scale(12) !important;
    border-color: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 0 150px rgba(255, 255, 255, 0.8) !important;
    background-color: #ffffff !important;
}

.portal-beam-expanding {
    width: 25px !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 0 80px rgba(255, 255, 255, 0.8) !important;
}


/* --- 2. MAIN APPLICATION LAYOUT --- */
.app-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: var(--bg-color);
    padding-bottom: 75px; /* Leave space for bottom navigation bar */
}

/* Header */
.app-header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    background-color: var(--bg-color);
    z-index: 50;
    position: relative;
}

@media (min-width: 768px) {
    .app-header {
        height: 80px;
    }
}

.header-logo {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    padding-left: 0.3em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo i {
    color: #ffffff;
    font-size: 0.8rem;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.7));
    margin-left: -0.1em;
}

/* Viewport */
.app-viewport {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden; /* Lock horizontal overflow */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    position: relative;
    scrollbar-width: none;
    scroll-behavior: smooth;
    width: 100%;
    min-width: 0;
}

.app-viewport::-webkit-scrollbar {
    display: none;
}

/* Section visibility */
.tab-section {
    width: 100%;
    max-width: 480px;
    min-width: 0; /* Prevent flex width expansion */
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tab-section.active {
    display: block;
    opacity: 1;
    animation: slideUpFade 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Custom Cards */
.custom-card {
    width: 100%;
    min-width: 0; /* Prevent flex width expansion */
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    margin-bottom: 25px;
}

.custom-card h3 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
}

.custom-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 300;
}


/* --- TAB 1: TRACK (CONSISTENCY TRACKER) --- */
.tracker-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.consistency-gauge {
    margin-bottom: 30px;
}

.gauge-ring {
    width: 144px;
    height: 144px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.05);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.01);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gauge-number {
    font-family: var(--font-sans);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.gauge-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Accountability details */
.card-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

/* Task Tracker input row & habits list */
.habits-adder {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.habits-adder:focus-within {
    border-color: rgba(255, 255, 255, 0.3);
}

.habits-adder input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
}

.habits-adder button {
    background: transparent;
    border: none;
    color: var(--text-primary);
    opacity: 0.6;
    cursor: pointer;
    padding: 4px 8px;
    transition: opacity 0.3s;
}

.habits-adder button:hover {
    opacity: 1;
}

.habits-list {
    display: flex;
    flex-direction: column;
}

.habit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5px;
    border-bottom: 1px solid rgba(255,255,255,0.01);
}

.habit-left {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    flex: 1;
}

.habit-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: transparent;
    transition: all 0.3s ease;
}

.habit-row.completed .habit-dot {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.habit-name {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-secondary);
    transition: color 0.3s;
}

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

.delete-habit-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    padding: 5px;
}

.habit-row:hover .delete-habit-btn {
    opacity: 0.6;
}

.delete-habit-btn:hover {
    color: #ff5555 !important;
    opacity: 1 !important;
}


/* --- TAB 2: AUDIT (PROFILE OPTIMIZER) --- */
.tool-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
    padding: 10px 5px;
}

.premium-badge {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 6px 16px;
}

.tool-intro h1 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-primary);
}

.tool-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

.audience-tag {
    font-size: 0.72rem;
    color: var(--text-dim);
    line-height: 1.5;
    font-style: italic;
    max-width: 320px;
}

/* Actions Buttons */
.btn-primary {
    background-color: var(--text-primary);
    color: #000;
    border: none;
    border-radius: 16px;
    padding: 18px 36px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 12px rgba(255,255,255,0.06);
    text-transform: uppercase;
}

.btn-primary:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

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

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 18px 32px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background-color: rgba(255,255,255,0.02);
    transform: translateY(-1px);
}

.large-action {
    width: 100%;
    padding: 18px 36px;
    border-radius: 100px;
}

/* Sub-step sequencing */
.sub-step-view {
    display: none;
    width: 100%;
}

.sub-step-view.active {
    display: block;
    animation: slideUpFade 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.sub-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding-bottom: 15px;
}

.step-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-primary);
}

.step-back-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    opacity: 0.5;
    padding: 5px 8px;
    transition: opacity 0.3s;
}

.step-back-btn:hover {
    opacity: 1;
}

/* Audit Step Questions styling */
.question-container {
    display: none;
}

.question-container.active {
    display: block;
    animation: slideUpFade 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.question-container .next-step-btn {
    width: 100%;
    margin-top: 24px !important;
}

.question-number {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 15px;
}

.question-container h2 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 30px;
}

.options-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.opt-btn {
    width: 100%;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 16px;
    padding: 20px 24px;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.opt-btn::after {
    content: '→';
    font-size: 0.95rem;
    opacity: 0.5;
    transition: transform 0.3s;
}

.opt-btn:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.015);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.opt-btn:hover::after {
    opacity: 1;
}

.opt-btn.clicked {
    background-color: rgba(255, 80, 40, 0.04);
    border-color: #ff5028;
    box-shadow: inset 0 0 12px rgba(255, 80, 40, 0.2), 0 0 15px rgba(255, 80, 40, 0.25);
    color: #ffffff;
    transform: scale(0.99);
}

/* Upload zone */
.upload-zone-wrapper {
    padding: 20px 0;
}

.drop-zone {
    border: 1px dashed var(--border-color);
    border-radius: 20px;
    padding: 55px 30px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.drop-zone:hover {
    border-color: rgba(255,255,255,0.3);
    background-color: rgba(255,255,255,0.005);
}

.drop-zone i {
    font-size: 2.2rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.drop-zone:hover i {
    color: var(--text-primary);
    transform: translateY(-3px);
}

.format-tag {
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* Loaders */
.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 60px 0;
}

.circular-spinner {
    width: 40px; height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Audit Results lists */
.result-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 25px;
}

.result-card {
    background: rgba(255, 255, 255, 0.005);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
}

.result-card .tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}

.result-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 300;
    color: #dddddd;
}

.full-width {
    width: 100%;
}


/* --- TAB 3: CREATE (CONTENT FORGE) --- */
.menu-intro {
    margin-bottom: 35px;
    text-align: center;
}

.menu-intro h1 {
    font-family: var(--font-sans);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.menu-intro .subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.tools-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.tool-card {
    width: 100%;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px 25px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.tool-card:hover {
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}

.tool-card-body h3 {
    font-family: var(--font-sans);
    font-size: 1.45rem;
    letter-spacing: 0.05em;
    font-weight: 800;
    color: var(--text-primary);
}

.role-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-top: 4px;
    margin-bottom: 12px;
}

.tool-card-body .desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 300;
}

/* Tool Input Panels */
.tool-input-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

textarea {
    width: 100%;
    height: 120px;
    background: rgba(255,255,255,0.01);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    color: white;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    outline: none;
    resize: none;
    transition: border-color 0.3s;
}

textarea:focus {
    border-color: rgba(255,255,255,0.25);
}

input[type="text"] {
    width: 100%;
    background: rgba(255,255,255,0.01);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px 20px;
    color: white;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-color: rgba(255,255,255,0.25);
}

/* Selector buttons for stories */
.pill-selector {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.pill-selector::-webkit-scrollbar {
    display: none;
}

.pill-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 9px 20px;
    border-radius: 100px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    white-space: nowrap;
}

.pill-btn.active {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background-color: rgba(255,255,255,0.02);
}

/* Outputs */
.generator-output {
    background: rgba(255, 255, 255, 0.005);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 25px 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 300;
    color: #dddddd;
    margin-top: 15px;
    animation: slideDown 0.4s ease;
}

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


/* --- TAB 4: LEARN (THE LIBRARY) --- */
.library-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.library-card {
    padding: 35px 25px;
}

.library-read-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    font-weight: 600;
    padding: 18px;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.library-read-btn:hover {
    border-color: rgba(255,255,255,0.3);
    background-color: rgba(255,255,255,0.015);
}

.library-read-btn::after {
    content: '→';
    font-size: 1rem;
    opacity: 0.6;
    transition: transform 0.3s;
}

.library-read-btn:hover::after {
    opacity: 1;
}

/* Reader Drawer overlay */
.reader-drawer {
    position: fixed;
    bottom: -100vh; left: 0;
    width: 100vw; height: 85vh;
    background-color: #080808;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-radius: 25px 25px 0 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: bottom 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 -20px 50px rgba(0,0,0,0.8);
}

.reader-drawer.active {
    bottom: 0;
}

.drawer-header {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 30px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

#drawer-title {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    font-weight: 800;
    margin-left: 20px;
    text-transform: uppercase;
}

#close-drawer-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s;
}

#close-drawer-btn:hover {
    opacity: 1;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.library-item-editorial {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.library-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

.library-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.library-formula {
    background: rgba(255,255,255,0.015);
    border-left: 2px solid var(--text-primary);
    padding: 10px 16px;
    margin-bottom: 10px;
    font-style: italic;
    color: #cccccc;
    font-size: 0.85rem;
}

.library-example {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}


/* --- 2. MODES MENU (PANTALLA 2) --- */
#modes-menu {
    position: absolute;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 950;
    padding: 40px 20px;
    overflow-y: auto;
}

.modes-menu-content {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modes-header {
    text-align: center;
    margin-bottom: 40px;
}

.modes-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.8em;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
    margin-bottom: 12px;
    padding-left: 0.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.modes-logo i {
    color: #ffffff;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.8));
    margin-left: -0.3em;
    letter-spacing: normal;
}

.modes-subtitle {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.modes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
}

.mode-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 22px 28px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.01) 0%, transparent 60%);
    pointer-events: none;
}

.mode-card h3 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #ffffff;
}

.mode-card p {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.mode-card .mode-icon-arrow {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: var(--text-secondary);
    opacity: 0.3;
    transition: all 0.3s;
}

.mode-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

.mode-card:hover .mode-icon-arrow {
    opacity: 1;
    transform: translateY(-50%);
    color: #ffffff;
}


/* --- ECLIPSE DOCK (NAV FLOTANTE) --- */
#eclipse-nav-trigger {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
    z-index: 1001;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

#eclipse-nav-trigger:hover {
    border-color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
}

#eclipse-nav-trigger.menu-open {
    transform: translateX(-50%) rotate(180deg);
    border-color: #ffffff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.7);
}

#eclipse-nav-trigger.dimmed {
    opacity: 0.2;
}

#eclipse-nav-trigger.dimmed:hover {
    opacity: 1;
}

#eclipse-nav-menu {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(12, 12, 12, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 12px 30px;
    display: flex;
    gap: 30px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

#eclipse-nav-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.eclipse-nav-item {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    padding: 5px 0;
    position: relative;
}

.eclipse-nav-item:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.eclipse-nav-item.active {
    color: #ffffff;
}

.eclipse-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; width: 100%; height: 1px;
    background-color: #ffffff;
    box-shadow: 0 0 5px #ffffff;
}


/* --- MONTH-TO-MONTH TRACKER --- */
.tracker-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.month-navigator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 5px;
}

.month-nav-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: white;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.month-nav-btn:hover {
    border-color: rgba(255,255,255,0.3);
    background-color: rgba(255,255,255,0.02);
}

.current-month-display {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tracker-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 768px) {
    .tracker-grid-layout {
        grid-template-columns: 1.3fr 1fr;
    }
}

.calendar-card {
    padding: 25px;
}

.calendar-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.calendar-header-day {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 15px;
    column-gap: 10px;
}

.calendar-day-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.calendar-day-cell:hover {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

.calendar-day-cell.other-month {
    opacity: 0.15;
    pointer-events: none;
}

.calendar-day-number {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 4px;
}

.calendar-day-progress-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-dim);
    transition: background-color 0.3s;
}

.calendar-day-cell.selected {
    background-color: rgba(255,255,255,0.03);
    border-color: rgba(255, 255, 255, 0.3);
}

.calendar-day-cell.completed-high .calendar-day-progress-dot {
    background-color: #ff5028;
    box-shadow: 0 0 6px #ff5028;
}

.calendar-day-cell.completed-mid .calendar-day-progress-dot {
    background-color: #ffffff;
    box-shadow: 0 0 6px rgba(255,255,255,0.8);
}

.calendar-day-cell.completed-low .calendar-day-progress-dot {
    background-color: #555555;
}

.day-detail-card {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.day-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.day-detail-title {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.day-detail-pct {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #ff5028;
    font-weight: 500;
}

.day-habits-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chart-card {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chart-wrapper {
    width: 100%;
    height: 160px;
    position: relative;
    margin-top: 10px;
}

.chart-wrapper svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

#btn-go-home {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.15rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
    pointer-events: auto;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

@media (min-width: 768px) {
    #btn-go-home {
        left: 25px;
    }
}

#btn-go-home:hover {
    opacity: 1;
}

.app-header {
    position: relative;
    pointer-events: auto !important;
}

.app-wrapper {
    padding-bottom: 90px;
}

/* --- General Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* --- STATS OVERVIEW HEADER --- */
.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    align-items: center;
    text-align: center;
}

@media (max-width: 480px) {
    .logo-title {
        font-size: 1.15rem;
        letter-spacing: 0.4em;
        padding-left: 0.4em;
    }
    .modes-logo {
        font-size: 1.05rem;
        letter-spacing: 0.4em;
        padding-left: 0.4em;
    }
    .stats-overview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .tracker-matrix-table .matrix-first-col {
        min-width: 125px !important;
        max-width: 125px !important;
        font-size: 0.72rem;
    }
    .tracker-matrix-table th,
    .tracker-matrix-table td {
        padding: 8px 6px;
    }
    .matrix-cell {
        width: 28px !important;
        min-width: 28px !important;
    }
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.stat-box .stat-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.stat-box .stat-val {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.stat-box.progress-box {
    align-items: center;
}

.progress-bar-container {
    width: 100%;
    max-width: 150px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 4px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffffff 0%, #ff5028 100%);
    box-shadow: 0 0 8px rgba(255, 80, 40, 0.5);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: #ff5028;
    text-shadow: 0 0 5px rgba(255, 80, 40, 0.3);
    margin-top: 2px;
}

/* --- HORIZONTAL TRACKER MATRIX TABLE --- */
.tracker-matrix-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: #060606;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.tracker-matrix-wrapper::-webkit-scrollbar {
    height: 6px;
}

.tracker-matrix-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.tracker-matrix-table {
    border-collapse: collapse;
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-primary);
}

.tracker-matrix-table th,
.tracker-matrix-table td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
    white-space: nowrap;
}

/* Weeks block headers */
.tracker-matrix-table .week-header {
    background-color: rgba(255, 255, 255, 0.015);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Weekday column headers */
.tracker-matrix-table .day-name-header {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Day number column headers */
.tracker-matrix-table .day-num-header {
    font-size: 0.75rem;
    color: var(--text-primary);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Freeze the first column (My Habits / Done / Progress Rows) */
.tracker-matrix-table .matrix-first-col {
    position: sticky;
    left: 0;
    background-color: #0c0c0c;
    z-index: 10;
    text-align: left;
    font-weight: 400;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 4px 0 8px rgba(0,0,0,0.5);
    min-width: 180px;
    max-width: 180px;
    white-space: normal;
    word-break: break-word;
}

/* Zebra striping and row hover effects */
.tracker-matrix-table tr:nth-child(even) td:not(.matrix-first-col) {
    background-color: rgba(255, 255, 255, 0.015);
}

.tracker-matrix-table tr:hover td:not(.matrix-first-col) {
    background-color: rgba(255, 255, 255, 0.035) !important;
}

.tracker-matrix-table tr:hover .matrix-first-col {
    background-color: #121212 !important;
}

/* Highlight columns for weekends or current day */
.tracker-matrix-table td.today-col,
.tracker-matrix-table th.today-col {
    background-color: rgba(255, 80, 40, 0.02) !important;
}

/* Cells styling */
.matrix-cell {
    cursor: pointer;
    transition: background-color 0.2s;
    width: 32px;
    min-width: 32px;
}

.matrix-cell:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Circular check dot container */
.matrix-check-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: transparent;
    margin: 0 auto;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.matrix-cell.checked .matrix-check-dot {
    background-color: #ff5028;
    border-color: #ff5028;
    box-shadow: 0 0 8px #ff5028;
    transform: scale(1.1);
}

/* Bottom Summary Rows */
.tracker-matrix-table .summary-row {
    background-color: rgba(255, 255, 255, 0.005);
}

.tracker-matrix-table .summary-row td {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tracker-matrix-table .summary-row td:first-child {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--text-primary);
    font-weight: 500;
}

.tracker-matrix-table .progress-row td {
    color: #ff5028 !important;
    font-weight: 600 !important;
    text-shadow: 0 0 4px rgba(255, 80, 40, 0.2);
}

.tracker-matrix-table .progress-row td:first-child {
    color: var(--text-primary) !important;
}

/* --- OUTPUT MODE SELECTOR & TELEPROMPTER / EDITOR VIEWS --- */
.output-mode-selector {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 4px;
    margin-bottom: 20px;
    width: fit-content;
}

.mode-toggle-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.mode-toggle-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.02);
}

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

/* Copy Button Layout */
.output-actions-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
    width: 100%;
}

.copy-output-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.copy-output-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.copy-output-btn.success {
    background: rgba(255, 80, 40, 0.08);
    border-color: #ff5028;
    color: #ff5028;
    box-shadow: 0 0 10px rgba(255, 80, 40, 0.2);
}

/* Views Styles */
.output-editor-view {
    display: block;
    animation: fadeIn 0.3s ease;
}

.output-teleprompter-view {
    --teleprompter-font-size: 1.85rem;
    display: none;
    font-family: var(--font-sans) !important;
    font-size: var(--teleprompter-font-size) !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
    color: #ffffff !important;
    text-align: center;
    padding: 30px 15px;
    border: none !important;
    border-radius: 0;
    background-color: transparent !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    outline: none !important;
    animation: fadeIn 0.3s ease;
    cursor: text;
}

.output-teleprompter-view p {
    font-family: var(--font-sans) !important;
    font-weight: 700 !important;
    font-size: var(--teleprompter-font-size) !important;
    color: #ffffff !important;
    margin-bottom: 25px;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
}

.output-teleprompter-view p:last-child {
    margin-bottom: 0;
}

/* Button & Card Micro-interactions */
.opt-btn, .btn-primary, .btn-secondary, .mode-card, .eclipse-nav-item, .library-read-btn, .book-item {
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.opt-btn:active, .btn-primary:active, .btn-secondary:active, .mode-card:active, .eclipse-nav-item:active, .book-item:active {
    transform: scale(0.98) !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15) !important;
}

/* Focus Header Group & Timer Display */
.focus-header-group {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
}

@media (min-width: 768px) {
    .focus-header-group {
        right: 25px;
        gap: 12px;
    }
}

.focus-timer-display {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: #ff5028;
    text-shadow: 0 0 10px rgba(255, 80, 40, 0.5);
    letter-spacing: 0.05em;
    background: rgba(255, 80, 40, 0.05);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 80, 40, 0.2);
    white-space: nowrap;
    line-height: 1;
}

/* Focus Mode Button Styling */
#btn-focus-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    padding: 8px 16px;
    border-radius: 100px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: auto;
    text-transform: uppercase;
}

#btn-focus-toggle:hover {
    opacity: 1;
    border-color: var(--text-primary);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

#btn-focus-toggle.focus-active {
    background-color: var(--text-primary);
    color: #000000;
    border-color: var(--text-primary);
    opacity: 1;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Focus Mode Active State Overrides */
@keyframes focusPulse {
    0% { background-color: #000000; }
    50% { background-color: #030303; }
    100% { background-color: #000000; }
}

body.focus-mode-active {
    animation: focusPulse 12s ease-in-out infinite !important;
    background-color: #000000 !important;
}

body.focus-mode-active .grain-overlay {
    opacity: 0.09 !important;
}

body.focus-mode-active .month-navigator,
body.focus-mode-active .stats-overview-card,
body.focus-mode-active .chart-card,
body.focus-mode-active .habits-manager-card,
body.focus-mode-active .menu-intro,
body.focus-mode-active .result-validation-card,
body.focus-mode-active .result-structure-card,
body.focus-mode-active .output-actions-bar {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.focus-mode-active #btn-go-home,
body.focus-mode-active .header-logo,
body.focus-mode-active .step-back-btn,
body.focus-mode-active .sub-header {
    opacity: 0.3 !important;
    transition: opacity 0.3s;
    pointer-events: auto !important;
}

body.focus-mode-active #btn-go-home:hover,
body.focus-mode-active .step-back-btn:hover {
    opacity: 0.85 !important;
}

/* Hide navigation dock and menu in focus mode to prevent overlapping */
body.focus-mode-active #eclipse-nav-trigger,
body.focus-mode-active #eclipse-nav-menu {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.focus-mode-active .app-wrapper {
    padding-bottom: 0 !important;
}

body.focus-mode-active .app-viewport {
    padding: 20px !important;
    justify-content: center;
}

body.focus-mode-active .tab-section {
    max-width: 600px !important;
}

body.focus-mode-active .custom-card,
body.focus-mode-active .result-card,
body.focus-mode-active .result-script-card,
body.focus-mode-active .opt-btn,
body.focus-mode-active .drop-zone,
body.focus-mode-active textarea,
body.focus-mode-active input {
    border: none !important;
    background-color: #050505 !important;
    box-shadow: none !important;
}

body.focus-mode-active textarea, 
body.focus-mode-active input {
    color: #ffffff !important;
}

/* Premium Script Card Delivery Styling */
.result-script-card {
    background: linear-gradient(180deg, #0d0d0d 0%, #060606 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.01) !important;
    border-radius: 20px !important;
    padding: 30px !important;
    position: relative;
    margin-top: 15px;
    animation: fadeIn 0.4s ease;
}

.result-script-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.result-script-card hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    margin: 20px 0;
}

.result-script-card p {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.7;
    color: #e0e0e0;
}

.result-script-card strong {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ffffff;
    display: block;
    margin-bottom: 8px;
    opacity: 0.7;
}

/* Learn Tab Redesign Shelf Styling */
.library-shelf {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.book-item {
    background: linear-gradient(135deg, #121212 0%, #080808 100%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.book-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, #161616 0%, #0d0d0d 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.book-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.book-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.book-author {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.book-icon {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.5;
    transition: transform 0.3s;
}

.book-item:hover .book-icon {
    opacity: 1;
    color: #ffffff;
}

/* Fullscreen Reader Drawer Custom Overrides */
.reader-drawer {
    position: fixed;
    bottom: -100vh; left: 0;
    width: 100vw; height: 100vh !important;
    background-color: #050505;
    border-top: none !important;
    border-radius: 0 !important;
    z-index: 2500 !important;
    display: flex;
    flex-direction: column;
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -20px 50px rgba(0,0,0,0.9);
}

.reader-drawer.active {
    bottom: 0;
}

.drawer-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background-color: #090909;
}

.btn-external-link {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.btn-external-link:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.02);
}

.drawer-body {
    flex: 1;
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0;
    width: 100%;
    height: 100%;
}

/* Reader Drawer Positioning inside app-wrapper */
.reader-drawer {
    position: absolute;
    top: 100%; left: 0;
    width: 100%; height: 100% !important;
    background-color: #050505;
    border-top: none !important;
    border-radius: 0 !important;
    z-index: 2500 !important;
    display: flex;
    flex-direction: column;
    transition: top 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -20px 50px rgba(0,0,0,0.9);
}

.reader-drawer.active {
    top: 0;
    bottom: auto;
}

/* Button & Card Active Inset glow */
.opt-btn:active, .btn-primary:active, .btn-secondary:active, .mode-toggle-btn:active, .copy-output-btn:active, .library-read-btn:active, .book-item:active, #btn-focus-toggle:active, #btn-ignition-start:active {
    box-shadow: inset 0 0 15px rgba(255, 80, 40, 0.25), 0 0 15px rgba(255, 80, 40, 0.15) !important;
    transform: scale(0.97) !important;
}

/* Font Size Controls in Teleprompter Mode */
.font-size-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 100px;
}

.font-size-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 6px;
    transition: all 0.2s;
}

.font-size-btn:hover {
    color: #ffffff;
}

/* Saved Scripts History Shelf */
.saved-scripts-shelf {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    animation: fadeIn 0.4s ease;
}

.saved-scripts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.saved-script-item {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.saved-script-item:hover {
    border-color: rgba(255, 80, 40, 0.25);
    background: rgba(255, 80, 40, 0.02);
}

.saved-script-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.saved-script-meta {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin-top: 2px;
}

.btn-delete-saved-script {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 6px;
    transition: all 0.3s;
}

.btn-delete-saved-script:hover {
    color: #ff5555 !important;
}

/* Looping Cosmic Life Glow */
@keyframes solarBreathing {
    0% { opacity: 0.12; transform: scale(1) translate(-50%, -50%); }
    50% { opacity: 0.25; transform: scale(1.15) translate(-48%, -48%); }
    100% { opacity: 0.12; transform: scale(1) translate(-50%, -50%); }
}

.app-viewport::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 450px; height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 70, 30, 0.12) 0%, rgba(230, 70, 30, 0.02) 50%, transparent 80%);
    filter: blur(40px);
    z-index: -1;
    transform: translate(-50%, -50%);
    animation: solarBreathing 14s ease-in-out infinite;
    pointer-events: none;
}

@keyframes beamEnergy {
    0% { opacity: 0.7; }
    50% { opacity: 1; box-shadow: 0 0 16px rgba(230, 70, 30, 0.7); }
    100% { opacity: 0.7; }
}

.vertical-light-beam {
    animation: beamEnergy 4s ease-in-out infinite;
}

@keyframes logoPulse {
    0% { text-shadow: 0 0 6px rgba(255,80,40,0.6); color: #ffffff; }
    50% { text-shadow: 0 0 15px rgba(255,80,40,1), 0 0 30px rgba(255,80,40,0.5); color: #ff5028; }
    100% { text-shadow: 0 0 6px rgba(255,80,40,0.6); color: #ffffff; }
}

.header-logo i, .modes-logo i {
    animation: logoPulse 3s infinite ease-in-out;
}

/* Focus Ignition Overlay */
.focus-ignition-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.focus-ignition-overlay.view-hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.ignition-box {
    width: 90%;
    max-width: 400px;
    background: #0a0a0a;
    border: 1px solid rgba(230, 70, 30, 0.15);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(230, 70, 30, 0.05);
    border-radius: 24px;
    padding: 35px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ignition-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: #ffffff;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(230, 70, 30, 0.2);
}

.ignition-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.music-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111111;
    padding: 15px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.03);
}

.music-toggle-row span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Switch slider styles */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #222222;
    transition: .4s;
    border-radius: 34px;
    border: 1px solid rgba(255,255,255,0.05);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px; width: 16px;
    left: 3px; bottom: 3px;
    background-color: #888888;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #ff5028;
    border-color: rgba(255, 80, 40, 0.2);
}

input:checked + .slider:before {
    transform: translateX(22px);
    background-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.btn-ignition-cancel {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: color 0.3s;
    text-transform: uppercase;
    margin-top: 5px;
}

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

/* --- COSMIC EFFECTS & BACKLIGHT GLOW HOVER UPDATES --- */

/* Back Button to Intro Screen inside Modes Menu */
.btn-back-to-intro {
    position: absolute;
    top: 30px;
    left: 30px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    z-index: 1001;
}

.btn-back-to-intro:hover {
    color: #ffffff;
    border-color: rgba(255, 80, 40, 0.4);
    box-shadow: 0 0 15px rgba(255, 80, 40, 0.3);
}

/* Cosmic Drifting Dust Starfield */
.cosmic-dust-field {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #ffffff, transparent),
        radial-gradient(1.5px 1.5px at 150px 80px, rgba(255, 80, 40, 0.8), transparent),
        radial-gradient(1px 1px at 300px 500px, #ffffff, transparent),
        radial-gradient(2px 2px at 450px 200px, rgba(255, 80, 40, 0.6), transparent),
        radial-gradient(1px 1px at 700px 400px, #ffffff, transparent),
        radial-gradient(1.5px 1.5px at 850px 600px, rgba(255, 80, 40, 0.4), transparent);
    background-size: 900px 900px;
    opacity: 0.3;
    animation: driftDust 30s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes driftDust {
    from { background-position: 0 0; }
    to { background-position: 900px 900px; }
}

/* Rotating Solar Corona Ring Flare */
.portal-corona-ring {
    position: absolute;
    width: 202px; height: 202px;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 80, 40, 0.3);
    box-shadow: 0 0 35px rgba(255, 80, 40, 0.25), inset 0 0 15px rgba(255, 80, 40, 0.1);
    z-index: 2;
    pointer-events: none;
    animation: rotateCorona 20s linear infinite;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes rotateCorona {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Portal Hover Reaction */
.portal-sphere:hover ~ .portal-corona-ring {
    border-color: rgba(255, 80, 40, 0.8) !important;
    box-shadow: 0 0 60px rgba(255, 80, 40, 0.55), inset 0 0 25px rgba(255, 80, 40, 0.25) !important;
    animation: rotateCorona 5s linear infinite;
    width: 208px; height: 208px;
}

/* Shimmering Portal Corona Heat Haze animation */
@keyframes coronaShimmer {
    0% { filter: blur(10px) opacity(0.7); }
    25% { filter: blur(11.5px) opacity(0.85); }
    50% { filter: blur(9px) opacity(0.65); }
    75% { filter: blur(13px) opacity(0.9); }
    100% { filter: blur(10px) opacity(0.7); }
}

.portal-sphere-glow {
    animation: breathing 6s ease-in-out infinite, coronaShimmer 0.5s ease-in-out infinite !important;
}

/* Secondary background nebula glow for normal mode viewport */
.app-viewport::after {
    content: '';
    position: absolute;
    top: 40%; left: 30%;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 80, 40, 0.08) 0%, rgba(255, 80, 40, 0.01) 60%, transparent 80%);
    filter: blur(55px);
    z-index: -1;
    transform: translate(-50%, -50%);
    animation: secondaryNebula 20s ease-in-out infinite alternate;
    pointer-events: none;
    transition: opacity 1s ease;
}

@keyframes secondaryNebula {
    0% { transform: translate(-30%, -20%) scale(0.9); opacity: 0.4; }
    50% { transform: translate(25%, 25%) scale(1.15); opacity: 0.85; }
    100% { transform: translate(-15%, -35%) scale(0.95); opacity: 0.5; }
}

/* Deactivate ambient auroras in Focus Mode */
body.focus-mode-active .app-viewport::before,
body.focus-mode-active .app-viewport::after {
    opacity: 0 !important;
    animation: none !important;
}

/* Normal Mode Warm Backglow Hover Effect */
body:not(.focus-mode-active) .opt-btn:hover,
body:not(.focus-mode-active) .btn-secondary:hover,
body:not(.focus-mode-active) .mode-card:hover,
body:not(.focus-mode-active) .tool-card:hover,
body:not(.focus-mode-active) .eclipse-nav-item:hover,
body:not(.focus-mode-active) #btn-focus-toggle:hover,
body:not(.focus-mode-active) #btn-go-home:hover,
body:not(.focus-mode-active) .copy-output-btn:hover,
body:not(.focus-mode-active) .mode-toggle-btn:hover:not(.active),
body:not(.focus-mode-active) .month-nav-btn:hover,
body:not(.focus-mode-active) .book-item:hover,
body:not(.focus-mode-active) .saved-script-item:hover,
body:not(.focus-mode-active) .btn-external-link:hover,
body:not(.focus-mode-active) #close-drawer-btn:hover {
    box-shadow: 0 0 25px rgba(255, 80, 40, 0.45), 0 0 50px rgba(255, 80, 40, 0.18) !important;
    border-color: rgba(255, 80, 40, 0.55) !important;
    background-color: rgba(255, 80, 40, 0.05) !important;
    transform: translateY(-2px) scale(1.015) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

body:not(.focus-mode-active) #eclipse-nav-trigger:hover {
    box-shadow: 0 0 25px rgba(255, 80, 40, 0.55), inset 0 0 10px rgba(255, 80, 40, 0.2) !important;
    border-color: rgba(255, 80, 40, 0.7) !important;
    background-color: rgba(255, 80, 40, 0.08) !important;
    transform: translateX(-50%) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
body:not(.focus-mode-active) #eclipse-nav-trigger.menu-open:hover {
    transform: translateX(-50%) rotate(180deg) !important;
}

body:not(.focus-mode-active) .btn-primary:hover,
body:not(.focus-mode-active) #btn-ignition-start:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 0 25px rgba(255, 80, 40, 0.65), 0 0 50px rgba(255, 80, 40, 0.32) !important;
    transform: translateY(-2px) scale(1.015) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Pulsing solar glow animation for script card in normal mode */
@keyframes script-solar-pulse {
    0% {
        border-color: rgba(255, 80, 40, 0.3) !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 80, 40, 0.15) !important;
    }
    50% {
        border-color: rgba(255, 80, 40, 0.85) !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 45px rgba(255, 80, 40, 0.5) !important;
    }
    100% {
        border-color: rgba(255, 80, 40, 0.3) !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 80, 40, 0.15) !important;
    }
}

body:not(.focus-mode-active) .result-script-card {
    animation: script-solar-pulse 3s infinite ease-in-out !important;
}

/* Glassmorphism glass reflection styles for premium outputs */
.result-card, .generator-output, .result-script-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.008) 40%, rgba(0, 0, 0, 0.5) 100%), rgba(10, 10, 12, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 0 35px rgba(255, 80, 40, 0.02) !important;
    position: relative;
    overflow: hidden;
}

/* Glass reflection pseudo glare */
.result-card::after, .generator-output::after, .result-script-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 30%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* Structured layout for Audit results (high visual volume, no emojis) */
.audit-result-block {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    z-index: 2;
}

.audit-result-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.audit-result-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: #ff5028;
    text-shadow: 0 0 12px rgba(255, 80, 40, 0.35);
}

.audit-result-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.audit-result-row {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.3s ease;
}

.audit-result-row:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
}

.audit-result-row.highlight-row {
    background: rgba(255, 80, 40, 0.02) !important;
    border-color: rgba(255, 80, 40, 0.18) !important;
    box-shadow: inset 0 0 12px rgba(255, 80, 40, 0.02) !important;
}

.audit-row-label {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

.audit-row-val {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #e2e2e5;
    font-weight: 350;
    margin: 0;
}

.audit-result-row.highlight-row .audit-row-label {
    color: #ff5028;
    text-shadow: 0 0 8px rgba(255, 80, 40, 0.2);
}

.audit-result-row.highlight-row .audit-row-val {
    color: #ffffff;
    font-weight: 450;
}

/* Hook Delivery Formatting & Spacing */
.hook-delivery-container {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.hook-tip-banner {
    background: rgba(255, 80, 40, 0.03) !important;
    border: 1px dashed rgba(255, 80, 40, 0.22) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.hook-tip-banner i {
    color: #ff5028;
    font-size: 1.15rem;
    margin-top: 2px;
    filter: drop-shadow(0 0 6px rgba(255, 80, 40, 0.45));
}

.hook-tip-banner p {
    font-size: 0.8rem !important;
    line-height: 1.6 !important;
    color: #dfdfe2 !important;
    margin: 0 !important;
    font-weight: 300 !important;
}

.hooks-delivery-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hook-delivery-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 22px 25px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hook-delivery-card.highlight-glow:hover {
    border-color: rgba(255, 80, 40, 0.3) !important;
    background: rgba(255, 80, 40, 0.015) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 15px rgba(255, 80, 40, 0.08) !important;
}

.hook-card-badge {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #ff5028;
    display: inline-block;
    margin-bottom: 10px;
}

.hook-card-text {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    color: #ffffff !important;
    font-weight: 450 !important;
    margin: 0 !important;
}
