:root {
    --bg-color: #f0f0f0;
    --text-color: #1a1a1a;
    --primary-color: #ffcc00;
    /* Vibrant Yellow */
    --accent-color: #ff6b6b;
    /* Soft Red */
    --border-color: #000000;
    --card-bg: #ffffff;
    --border-width: 3px;
    --shadow-offset: 4px;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;
    --spacing-unit: 1rem;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --primary-color: #bf9b30;
    /* Muted Yellow */
    --accent-color: #d64545;
    --border-color: #ffffff;
    --card-bg: #2d2d2d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* Neo-Brutalist Generics */
.neo-box {
    background: var(--card-bg);
    border: var(--border-width) solid var(--border-color);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--border-color);
    border-radius: 8px;
    /* Slightly rounded for "friendly" brutalism */
    padding: var(--spacing-unit);
}

.neo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    background: var(--card-bg);
    border: var(--border-width) solid var(--border-color);
    color: var(--text-color);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--border-color);
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    font-size: 1rem;
}

.neo-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: calc(var(--shadow-offset) + 2px) calc(var(--shadow-offset) + 2px) 0 var(--border-color);
}

.neo-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 var(--border-color);
}

.neo-btn.primary {
    background-color: var(--primary-color);
    color: #000;
    /* Always black text on primary yellow */
}

.neo-btn.danger {
    background-color: var(--accent-color);
    color: #fff;
    border-color: #000;
}

.neo-btn-icon {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.neo-select,
.neo-input {
    width: 100%;
    padding: 0.75rem;
    border: var(--border-width) solid var(--border-color);
    background: var(--card-bg);
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-color);
    box-shadow: 2px 2px 0 var(--border-color);
}

/* Layout */
.neo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: var(--border-width) solid var(--border-color);
    background: var(--card-bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.neo-header .logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

#app-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Timer Input Section */
.timer-input-section {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.input-actions {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.input-wrapper {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    flex: 1;
}

#timer-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    font-family: var(--font-mono);
    outline: none;
    color: var(--text-color);
}

.input-action-btn {
    padding: 0 1.5rem;
    font-size: 1.2rem;
}

/* Smart Add Modal Styles */
.time-inputs-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.time-input-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-input-col label {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    opacity: 0.7;
}

.neo-input.big-num {
    font-size: 2.5rem;
    text-align: center;
    width: 80px;
    padding: 0.5rem;
    font-weight: bold;
}

.time-sep {
    font-size: 2.5rem;
    font-weight: bold;
    margin-top: 1rem;
    /* Visual alignment with input text */
}

.full-width {
    width: 100%;
}

.quick-presets {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.neo-chip {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: var(--font-mono);
    font-weight: bold;
    box-shadow: 2px 2px 0 var(--border-color);
    transition: all 0.1s;
}

.neo-chip:hover {
    background: var(--primary-color);
}

.error-msg {
    color: var(--accent-color);
    font-weight: bold;
    margin-top: 0.5rem;
    text-align: center;
    font-family: var(--font-mono);
}

.hidden {
    display: none !important;
}

/* Timers Grid */
.timers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .timers-grid {
        grid-template-columns: 1fr;
    }
}

/* Timer Card */
.timer-card {
    position: relative;
    background: var(--card-bg);
    border: var(--border-width) solid var(--border-color);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}

.timer-card.finished {
    background: var(--primary-color);
    animation: shake 0.5s ease-in-out infinite;
}

.timer-display {
    font-size: 3.5rem;
    font-family: var(--font-mono);
    font-weight: 700;
    margin: 1rem 0;
    line-height: 1;
}

.timer-meta {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.timer-controls {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.timer-controls button {
    flex: 1;
}

.delete-timer-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-color);
}

.timer-progress {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border: 1px solid var(--border-color);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.timer-progress-bar {
    height: 100%;
    background: var(--text-color);
    width: 0%;
    /* JS will update this */
    transition: width 1s linear;
}

/* Fullscreen Mode */
body.fullscreen-mode .neo-header,
body.fullscreen-mode .timer-input-section,
body.fullscreen-mode .quick-presets,
body.fullscreen-mode .timer-controls button:not(.fullscreen-resume),
body.fullscreen-mode .timer-meta,
body.fullscreen-mode .delete-timer-btn,
body.fullscreen-mode .hero-section,
body.fullscreen-mode .features-section,
body.fullscreen-mode .use-cases-section,
body.fullscreen-mode .neo-footer,
body.fullscreen-mode footer {
    display: none !important;
}

body.fullscreen-mode {
    background: var(--card-bg);
}

body.fullscreen-mode #app-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.fullscreen-mode .timers-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    max-width: none;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

body.fullscreen-mode .timer-card {
    width: auto;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    flex: 1;
    justify-content: center;
    box-shadow: none;
    border: 3px solid var(--border-color);
    padding: 3rem;
}

body.fullscreen-mode .timer-display {
    font-size: 8vw;
}

/* Settings Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    width: 90%;
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.setting-group {
    margin-bottom: 1rem;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.neo-hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 1.5rem 0;
}

/* Animations */
@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

/* Single Timer Focus Mode (Zoom) */
body.single-focus-mode {
    overflow: hidden;
}

body.single-focus-mode .neo-header,
body.single-focus-mode .timer-input-section,
body.single-focus-mode .hero-section,
body.single-focus-mode .features-section,
body.single-focus-mode .use-cases-section,
body.single-focus-mode .neo-footer,
body.single-focus-mode footer,
body.single-focus-mode .fullscreen-close-btn {
    display: none !important;
}

body.single-focus-mode #app-container {
    padding: 0;
    margin: 0;
    max-width: 100%;
}

body.single-focus-mode .timers-grid {
    display: block;
    max-width: 100%;
    padding: 0;
}

body.single-focus-mode .timer-card:not(.focused) {
    display: none !important;
}

/* Increased specificity for focused card to override fullscreen-mode styles */
body .timer-card.focused {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    min-width: 0 !important;
    z-index: 1000;
    margin: 0 !important;
    border-radius: 0;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    animation: none;
    background: var(--card-bg);
}

body .timer-card.focused::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    z-index: -1;
}

body .timer-card.focused .timer-display {
    font-size: clamp(4rem, 15vw, 12rem);
    margin: 2rem 0;
}

body .timer-card.focused .timer-meta {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block !important;
}

body .timer-card.focused .timer-controls {
    max-width: 400px;
    gap: 1rem;
    display: flex !important;
}

body .timer-card.focused .timer-controls button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    display: flex !important;
}

body .timer-card.focused .timer-progress {
    max-width: 400px;
    width: 100%;
}

body .timer-card.focused .delete-timer-btn {
    display: none;
}

/* Zoom button - normal state */
.zoom-btn {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-color);
    z-index: 10;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.zoom-btn:hover {
    opacity: 1;
}

/* Zoom button - focused state (becomes close button) */
.timer-card.focused .zoom-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    left: auto;
    font-size: 1.5rem;
    background: var(--card-bg);
    border: 3px solid var(--border-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 0 var(--border-color);
    opacity: 1;
    z-index: 1001;
}

@media (max-width: 600px) {
    .timer-display {
        font-size: 2.5rem;
    }

    .input-wrapper {
        flex-direction: column;
    }

    #start-btn {
        width: 100%;
    }
}

/* --- Tool Pages Styles --- */
.tool-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.tool-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tool-hero p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.tool-timer-card {
    background: var(--card-bg);
    border: 3px solid #1a1a1a;
    box-shadow: 6px 6px 0 #1a1a1a;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.tool-timer-label {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
}

.tool-timer-display {
    font-family: var(--font-mono);
    font-size: 5rem;
    font-weight: 700;
    margin: 1rem 0;
    line-height: 1;
}

.presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.preset-btn {
    background: var(--card-bg);
    border: 2px solid #1a1a1a;
    padding: 0.6rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.1s;
}

.preset-btn:hover {
    background: var(--primary-color);
}

.preset-btn.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.info-section {
    margin-top: 3rem;
}

.info-card {
    background: var(--card-bg);
    border: 2px solid #1a1a1a;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.info-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-card ul {
    padding-left: 1.5rem;
    line-height: 1.8;
}

/* --- Legal Pages Styles --- */
.legal-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.legal-content .last-updated {
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.legal-content h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1a1a1a;
}

.legal-content p,
.legal-content li {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #444;
}

.legal-content a {
    color: #1a1a1a;
    font-weight: 600;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
}

.back-link:hover {
    text-decoration: underline;
}

/* --- Shared Footer --- */
.neo-footer {
    padding: 1.5rem 2rem;
    border-top: 3px solid #1a1a1a;
    margin-top: 3rem;
    background: #fff;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-weight: 700;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Variant Specifics --- */
/* Meditation */
body.page-meditation {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.page-meditation .tool-timer-card {
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid #ddd;
}

.page-meditation .preset-btn {
    border-radius: 50px;
    border-color: #ddd;
}

.page-meditation .preset-btn:hover {
    background: #e8f4f8;
    border-color: #1a1a1a;
}

.page-meditation .neo-btn {
    border-radius: 50px;
}

.breathing-guide {
    background: #f0f8ff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.breath-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* Gaming */
body.page-gaming {
    background: #0a0a0a;
    color: #fff;
}

body.page-gaming .neo-header,
body.page-gaming .neo-footer {
    background: #111;
    border-color: #333;
    color: #fff;
}

body.page-gaming .logo,
body.page-gaming .footer-logo,
body.page-gaming .footer-links a {
    color: #fff;
}

body.page-gaming .neo-btn {
    background: #222;
    color: #fff;
    border-color: #444;
}

body.page-gaming .tool-timer-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid #0f3460;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
}

body.page-gaming .tool-timer-label,
body.page-gaming .tool-timer-display,
body.page-gaming .info-card h3 {
    color: #00ff88;
}

body.page-gaming .tool-timer-display {
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

body.page-gaming .timer-controls .neo-btn.primary {
    background: #00ff88;
    color: #0a0a0a;
    border-color: #00ff88;
}

body.page-gaming .preset-btn {
    background: #1a1a1a;
    border-color: #333;
    color: #fff;
}

body.page-gaming .preset-btn:hover {
    border-color: #00ff88;
    color: #00ff88;
}

body.page-gaming .preset-btn.active {
    background: #00ff88;
    color: #0a0a0a;
    border-color: #00ff88;
}

body.page-gaming .info-card {
    background: #111;
    border-color: #333;
}

body.page-gaming .info-card ul {
    color: #ccc;
}

body.page-gaming .tool-hero h1 {
    color: #fff;
}

/* Workouts */
.page-workouts .tool-timer-card {
    background: #1a1a1a;
    color: #fff;
    box-shadow: 6px 6px 0 #FFD93D;
}

.page-workouts .tool-timer-label {
    color: #FFD93D;
}

.page-workouts .timer-controls .neo-btn.primary {
    background: #FFD93D;
    color: #1a1a1a;
    border-color: #FFD93D;
}

.workout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.workout-item {
    background: #1a1a1a;
    color: #fff;
    padding: 1rem;
    text-align: center;
}

.workout-item strong {
    color: #FFD93D;
    display: block;
    margin-bottom: 0.25rem;
}

/* Presentation */
.page-presentation .tool-timer-card {
    background: #1a1a1a;
    color: #fff;
    padding: 4rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: none;
}

.page-presentation .tool-timer-label {
    letter-spacing: 3px;
    color: #FFD93D;
}

.page-presentation .tool-timer-display {
    font-size: 8rem;
}

.page-presentation .timer-controls .neo-btn.primary {
    background: #FFD93D;
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

.talk-formats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.talk-format {
    background: #f9f9f9;
    padding: 1rem;
    border-left: 4px solid #FFD93D;
}

.fullscreen-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #FFD93D;
    border: 3px solid #1a1a1a;
    padding: 1rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 90;
    font-family: var(--font-mono);
    box-shadow: 4px 4px 0 #1a1a1a;
}

/* Cooking */
.cooking-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.cooking-item {
    background: #f9f9f9;
    padding: 1rem;
    border-left: 4px solid #FFD93D;
}

/* Meetings */
.meeting-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.meeting-type {
    background: #f9f9f9;
    padding: 1rem;
    border-left: 4px solid #1a1a1a;
}

.agenda-box {
    background: #fffde7;
    border: 2px dashed #FFD93D;
    padding: 1rem;
    margin-top: 1rem;
}

/* Responsive Overrides */
@media (max-width: 600px) {
    .tool-timer-display {
        font-size: 3rem;
    }

    .page-presentation .tool-timer-display {
        font-size: 4rem;
    }

    .tool-hero h1 {
        font-size: 1.8rem;
    }
}

/* --- Homepage Specifics --- */
.hero-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.hero-section p {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-section {
    margin-top: 3rem;
    padding: 2rem 0;
    max-width: 1000px;
    width: 100%;
}

.features-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    letter-spacing: -1px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-row {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.feature-num {
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    border: 3px solid #1a1a1a;
    background: #fff;
    /* Default fallback */
}

/* Specific colors based on inline styles used previously */
.feature-num:not(.dark) {
    background: #FFD93D;
}

.feature-num.dark {
    background: #1a1a1a;
    color: #fff;
}

.feature-content {
    flex: 1;
    padding: 1.5rem;
    border-left: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Reuse neo-box styles but override border-left */
}

.feature-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
    margin: 0;
}

.use-cases-section {
    margin-top: 3rem;
    padding: 2rem;
    max-width: 800px;
    text-align: center;
    background: #1a1a1a;
    color: #fff;
}

.use-cases-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #FFD93D;
}

@media (max-width: 600px) {
    .feature-row {
        flex-direction: column;
    }

    .feature-num {
        min-height: 60px;
        width: 100%;
        border-bottom: none;
    }

    .feature-content {
        border-left: 3px solid #1a1a1a;
    }
}

/* ===== COMPREHENSIVE MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    /* Header Mobile Fixes */
    .neo-header {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .neo-header .logo {
        font-size: 1.2rem;
    }

    .header-controls {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .header-controls .neo-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .header-controls .neo-btn span {
        font-size: 1rem !important;
    }

    /* Main Container Mobile */
    #app-container {
        margin: 1rem auto;
        padding: 0 0.75rem;
    }

    /* Hero Section Mobile */
    .hero-section {
        padding: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .hero-section p {
        font-size: 1rem;
    }

    /* Timer Input Section Mobile */
    .timer-input-section {
        margin: 0 auto 2rem;
        width: 100%;
    }

    .input-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .input-wrapper {
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.75rem;
    }

    #timer-input {
        font-size: 1.1rem;
        text-align: center;
    }

    #start-btn {
        width: 100%;
        padding: 0.75rem;
    }

    .input-action-btn {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    /* Quick Presets Mobile */
    .quick-presets {
        gap: 0.4rem;
    }

    .neo-chip {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Features Section Mobile */
    .features-section {
        margin-top: 2rem;
        padding: 1rem 0;
    }

    .features-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .features-list {
        gap: 0.75rem;
    }

    .feature-num {
        font-size: 1.5rem;
        min-width: 60px;
        min-height: 50px;
    }

    .feature-content {
        padding: 1rem;
    }

    .feature-content h3 {
        font-size: 1rem;
    }

    .feature-content p {
        font-size: 0.9rem;
    }

    /* Use Cases Section Mobile */
    .use-cases-section {
        margin-top: 2rem !important;
        padding: 1.5rem 1rem !important;
        max-width: 100% !important;
    }

    .use-cases-section h2 {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
    }

    .use-cases-section > div {
        gap: 0.5rem !important;
    }

    .use-cases-section a {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.85rem !important;
    }

    .use-cases-section p {
        font-size: 0.9rem !important;
        margin-top: 1rem !important;
    }

    /* Timer Cards Mobile */
    .timer-card {
        padding: 1rem;
    }

    .timer-display {
        font-size: 2.2rem;
    }

    .timer-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .timer-controls .neo-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    /* Modal Mobile Fixes */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-body {
        padding: 0.5rem;
    }

    .time-inputs-group {
        gap: 0.3rem;
    }

    .neo-input.big-num {
        font-size: 1.8rem;
        width: 60px;
        padding: 0.4rem;
    }

    .time-sep {
        font-size: 1.8rem;
    }

    /* Footer Mobile */
    .neo-footer {
        padding: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        justify-content: center;
        gap: 1rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    /* Buttons General Mobile */
    .neo-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .neo-btn.small {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Tool Pages Mobile */
    .tool-container {
        padding: 1rem 0.75rem;
    }

    .tool-hero h1 {
        font-size: 1.6rem;
    }

    .tool-hero p {
        font-size: 0.95rem;
    }

    .tool-timer-card {
        padding: 1.5rem 1rem;
    }

    .tool-timer-display {
        font-size: 2.5rem;
    }

    .presets {
        gap: 0.5rem;
    }

    .preset-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Legal Pages Mobile */
    .legal-content {
        padding: 1rem;
        margin: 1rem auto;
    }

    .legal-content h1 {
        font-size: 1.8rem;
    }

    .legal-content h2 {
        font-size: 1.2rem;
    }
}

/* Extra Small Screens (phones in portrait) */
@media (max-width: 400px) {
    .neo-header .logo {
        font-size: 1rem;
    }

    .header-controls .neo-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .hero-section h1 {
        font-size: 1.3rem;
    }

    .timer-display {
        font-size: 1.8rem;
    }

    .neo-input.big-num {
        font-size: 1.5rem;
        width: 50px;
    }

    .time-sep {
        font-size: 1.5rem;
    }

    .feature-num {
        font-size: 1.2rem;
        min-height: 45px;
    }

    .use-cases-section a {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.8rem !important;
    }
}