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

h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Session Limit */
.session-limit-container {
    width: 100%;
    max-width: 450px;
    margin: 20px auto 15px auto;
    text-align: left;
    padding: 0 10px;
}

.session-limit-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #a1b9ed; /* Third color */
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.session-limit-bar {
    width: 100%;
    height: 6px;
    background-color: #2b2b2b; /* Secondary color (base) */
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(161, 185, 237, 0.2);
}

.session-limit-fill {
    height: 100%;
    background: linear-gradient(90deg, #a1b9ed, #ffffff); /* Using white as highlight */
    width: 0%;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.heatmap-blurred {
    filter: blur(12px) grayscale(0.5);
    pointer-events: none;
    user-select: none;
    opacity: 0.6;
}

.limit-reached-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    background: rgba(43, 43, 43, 0.95);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #a1b9ed;
    z-index: 100;
    text-align: center;
    backdrop-filter: blur(4px);
}

.limit-reached-message h3 {
    color: #a1b9ed;
    margin-bottom: 10px;
}

.limit-reached-message p {
    font-size: 12px;
    color: #f5f5ed;
}

/* Info Icon & Tooltip */
.info-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
}

.info-icon {
    width: 14px;
    height: 14px;
    color: #8b949e;
    transition: color 0.2s;
}

.info-icon-wrapper:hover .info-icon {
    color: #a1b9ed;
}

.info-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    width: 240px;
    padding: 12px;
    background: #2b2b2b; /* Secondary color */
    color: #f5f5ed; /* Background/Primary text color */
    border: 1px solid rgba(161, 185, 237, 0.3); /* Third color (light) */
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.6;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Arrow for tooltip */
.info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 10px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(43, 43, 43, 0.95) transparent transparent transparent;
}

.info-icon-wrapper:hover .info-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

body {
    background-color: #0f0f0f;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    color: white;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.01em;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: all 0.5s ease;
}

.container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0f0f0f;
    z-index: 100;
    justify-content: center;
    align-items: center;
    animation: focusEnter 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes focusEnter {
    0% {
        opacity: 0.8;
        transform: scale(0.95);
    }

    50% {
        opacity: 0.95;
        transform: scale(0.98);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.container.fullscreen .timer-controls {
    transform: scale(1.5);
    margin-bottom: 50px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
}

.container.fullscreen .timer {
    font-size: 72px;
    margin-bottom: 30px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
}

.container.fullscreen .progress-bar {
    width: 450px;
    height: 12px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
}

.timer-controls,
.timer,
.progress-bar {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.container.fullscreen .heatmap-container {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    z-index: -1;
}

.container.fullscreen .log-container {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
}

/* Refresh button styling */
.refresh-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 12px !important;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px) !important;
}

.refresh-btn:active {
    transform: translateY(0) !important;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    z-index: -1;
}

.heatmap-container,
.log-container {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timer-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.timer {
    font-size: 48px;
    font-weight: 400;
    font-family: 'IBM Plex Mono', monospace;
    min-width: 120px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.timer:hover {
    color: #ccc;
    transform: scale(1.02);
}

.timer:active {
    transform: scale(0.98);
}

.progress-bar {
    width: 300px;
    height: 8px;
    background-color: #333;
    border-radius: 4px;
    margin: 0 auto 30px;
}

.heatmap-container {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    width: 800px;
    text-align: center;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #0f0f0f;
}



/* IBM Plex Mono specific improvements */
input,
button,
textarea {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
}

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

.control-btn:hover svg {
    transform: scale(1.1);
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
}

.close-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: #333;
    color: white;
    transform: scale(1.1);
}

/* Special styling for shortcuts help modal close button */
#shortcutsHelpModal .shortcut-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

#shortcutsHelpModal .shortcut-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.modal-body {
    padding: 20px;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    font-weight: 500;
    margin-bottom: 8px;
}

.setting-group input,
.setting-group select {
    transition: border-color 0.2s;
}

.setting-group input:focus,
.setting-group select:focus {
    outline: none;
    border-color: #666;
}

#saveSettings:hover {
    background-color: #777;
}

/* PWA Install Button */
#installAppBtn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Timer paused state */
.timer-controls.paused .timer {
    opacity: 0.7;
    color: #888;
}

.timer-controls.paused .control-btn:not(#pauseBtn) {
    opacity: 0.5;
}

#installAppBtn:hover {
    background: #45a049 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

#installAppBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

#installAppGroup {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 20px;
}



/* Log Container Styles */
.log-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #222;
    border-bottom: 1px solid #333;
}

.log-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.log-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 0;
}

.log-entry {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    transition: background-color 0.2s ease;
}

.log-entry:hover {
    background: #222;
}

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

.log-entry-info {
    flex: 1;
    text-align: left;
}

.log-entry-date {
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    font-family: 'IBM Plex Mono', monospace;
}

.log-entry-duration {
    color: #ccc;
    font-size: 14px;
    font-family: 'IBM Plex Mono', monospace;
}

.log-entry-time {
    color: #888;
    font-size: 12px;
    font-family: 'IBM Plex Mono', monospace;
}

.log-entry-description {
    color: #fff;
    font-size: 14px;
    margin-top: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-style: italic;
}

.log-entry-notes {
    color: #ccc;
    font-size: 13px;
    margin-top: 6px;
    font-family: 'IBM Plex Mono', monospace;
    white-space: pre-wrap;
    max-width: 400px;
}

.log-entry-image {
    margin-top: 8px;
}

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

.log-entry-actions button {
    padding: 4px 8px;
    background: #333;
    color: #ccc;
    border: 1px solid #555;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    transition: all 0.2s ease;
}

.log-entry-actions button:hover {
    background: #444;
    color: white;
}

.log-entry-actions button.delete-session-btn {
    background: #5a1a1a;
    border-color: #7a2a2a;
}

.log-entry-actions button.delete-session-btn:hover {
    background: #7a2a2a;
}

.empty-log {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-family: 'IBM Plex Mono', monospace;
}

.empty-log svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}



/* Shortcuts Help Modal */
.shortcuts-help-content {
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
    position: relative;
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shortcut-item kbd {
    background: #333;
    border: 1px solid #666;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: #fff;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.shortcut-item span {
    font-family: 'IBM Plex Mono', monospace;
    color: #fff;
    font-size: 14px;
}



/* Responsive shortcuts grid */
@media (min-width: 768px) {
    .shortcuts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ensure shortcuts help modal is perfectly centered */
#shortcutsHelpModal .modal-content {
    margin: auto;
    max-height: 90vh;
    overflow-y: auto;
}

#shortcutsHelpModal .modal-content {
    margin: auto;
    margin-top: 100px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Tutorial Overlay Styles */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: tutorialFadeIn 0.5s ease-out;
}

.tutorial-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    animation: backdropFadeIn 0.5s ease-out;
}

.tutorial-content {
    position: relative;
    z-index: 10;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    animation: tutorialSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.tutorial-step {
    padding: 0;
    animation: stepFadeIn 0.4s ease-out;
}

.tutorial-header {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 30px 30px 20px;
    border-bottom: 1px solid #333;
    text-align: center;
}

.tutorial-header h2 {
    margin: 0 0 10px 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 24px;
    color: #fff;
    font-weight: 600;
}

.tutorial-header p {
    margin: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    color: #ccc;
    font-weight: 400;
}

.tutorial-body {
    padding: 30px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
}

.tutorial-body p {
    margin: 0 0 15px 0;
}

.tutorial-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.tutorial-body li {
    margin: 8px 0;
    color: #ccc;
}

.tutorial-body strong {
    color: #fff;
    font-weight: 600;
}

.tutorial-body em {
    color: #888;
    font-style: italic;
}

.tutorial-footer {
    padding: 20px 30px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    background: #222;
    border-top: 1px solid #333;
}

.tutorial-btn {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.tutorial-next,
.tutorial-finish {
    background: #4CAF50;
    color: white;
    margin-left: auto;
}

.tutorial-next:hover,
.tutorial-finish:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.tutorial-prev {
    background: #666;
    color: white;
}

.tutorial-prev:hover {
    background: #777;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 102, 102, 0.3);
}

.tutorial-finish {
    background: #2196F3;
}

.tutorial-finish:hover {
    background: #1976D2;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Tutorial Animations */
@keyframes tutorialFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes backdropFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

@keyframes tutorialSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tutorial step transitions */
.tutorial-step.tutorial-exit {
    animation: stepFadeOut 0.3s ease-in forwards;
}

@keyframes stepFadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* Responsive tutorial */
@media (max-width: 600px) {
    .tutorial-content {
        width: 95%;
        margin: 20px;
    }

    .tutorial-header {
        padding: 25px 20px 15px;
    }

    .tutorial-header h2 {
        font-size: 20px;
    }

    .tutorial-body {
        padding: 25px 20px;
    }

    .tutorial-footer {
        padding: 15px 20px 25px;
        flex-direction: column;
    }

    .tutorial-btn {
        width: 100%;
        margin: 5px 0;
    }

    .tutorial-next,
    .tutorial-finish {
        margin-left: 0;
    }
}

/* Tutorial highlighting and animations */
.tutorial-highlight {
    position: relative !important;
    z-index: 1000 !important;
}

@keyframes tutorialPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(33, 150, 243, 0.3);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
        transform: scale(1);
    }
}

@keyframes tutorialTooltipFade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes tutorialFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Tutorial active state for body */
body.tutorial-active {
    overflow: hidden;
}

body.tutorial-active .container {
    filter: blur(2px);
    opacity: 0.3;
    transition: all 0.3s ease;
}

/* Milestone Modal Styles */
.milestone-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: milestoneFadeIn 0.5s ease-out;
}

.milestone-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #4CAF50;
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: milestoneSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.milestone-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #2196F3, #FF9800, #E91E63);
    animation: milestoneGradient 2s ease-in-out infinite;
}

.milestone-header {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    padding: 30px 30px 20px;
    text-align: center;
    position: relative;
}

.milestone-header h2 {
    margin: 0 0 20px 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 28px;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.milestone-achievement {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.milestone-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    animation: milestonePulse 1s ease-in-out infinite;
}

.milestone-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.milestone-body {
    padding: 30px;
    text-align: center;
}

.milestone-gif-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.milestone-gif {
    max-width: 200px;
    max-height: 200px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: milestoneGifBounce 0.6s ease-out;
}

@keyframes milestoneGifBounce {
    0% {
        transform: scale(0.3) rotate(-10deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.8;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.milestone-body p {
    margin: 0 0 25px 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    color: #e0e0e0;
    line-height: 1.5;
}

.milestone-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 25px;
    padding: 12px 20px;
    margin: 0 auto;
}

.badge-icon {
    font-size: 24px;
    animation: badgeBounce 2s ease-in-out infinite;
}

.badge-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #4CAF50;
}

.milestone-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

.milestone-close-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    min-width: 150px;
}

.milestone-close-btn:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.milestone-close-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

/* Milestone Animations */
@keyframes milestoneFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes milestoneSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes milestoneGradient {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

@keyframes milestonePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes badgeBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Responsive milestone modal */
@media (max-width: 600px) {
    .milestone-content {
        width: 95%;
        margin: 20px;
    }

    .milestone-header {
        padding: 25px 20px 15px;
    }

    .milestone-header h2 {
        font-size: 24px;
    }

    .milestone-number {
        font-size: 40px;
    }

    .milestone-body {
        padding: 25px 20px;
    }

    .milestone-footer {
        padding: 15px 20px 25px;
    }
}

/* Pro Section Styles */
@keyframes proGradient {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* Pro Access Window Styles */
.pro-access-window {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    width: 100%;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pro-access-window.minimized {
    padding: 15px;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    margin-top: 20px;
}

.pro-access-body {
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pro-access-window.minimized .pro-access-body {
    display: none;
}

.pro-window-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #555;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 5;
}

.pro-window-close-btn:hover {
    color: #fff;
}

.pro-access-window.minimized .pro-window-close-btn {
    display: none;
}

.pro-access-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.pro-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
}

.pro-video-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pro-video-card:hover {
    transform: scale(1.08);
    z-index: 10;
}

.pro-video-card video {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #333;
    background: #000;
    transition: all 0.3s ease;
}

.pro-video-card:hover video {
    border-color: #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

.pro-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    margin-bottom: 10px;
}

.pro-feature-item {
    text-align: left;
}

.pro-feature-item h3 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 8px;
    font-family: 'IBM Plex Mono', monospace;
}

.pro-feature-item p {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    margin: 0;
}

.pro-price-tag {
    font-size: 14px;
    color: #4CAF50;
    margin-top: -10px;
}

@media (max-width: 768px) {

    .pro-videos-grid,
    .pro-features-grid {
        grid-template-columns: 1fr;
    }

    .pro-feature-item {
        text-align: center;
        padding-bottom: 15px;
        border-bottom: 1px solid #333;
    }

    .pro-feature-item:last-child {
        border-bottom: none;
    }
}


/* Pro Button */
.pro-button {
    background: #333333;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.pro-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #2196F3, #FF9800, #E91E63);
    border-radius: 8px 8px 0 0;
    animation: proGradient 3s ease-in-out infinite;
}

.pro-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.pro-button:hover::after {
    left: 100%;
}

.pro-button:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.pro-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.pro-button-text {
    position: relative;
    z-index: 1;
}

.pro-button-arrow {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.pro-button:hover .pro-button-arrow {
    transform: translateX(3px);
}

/* Responsive Pro Section */
@media (max-width: 600px) {
    .pro-tooltip {
        width: 300px;
        left: 50%;
        transform: translateX(-50%);
    }

    .pro-button {
        width: 100%;
        justify-content: center;
    }

    .pro-tooltip-content {
        padding: 15px;
    }

    .pro-tooltip-content li {
        font-size: 12px;
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }

    .timer-controls {
        gap: 10px;
        margin-bottom: 20px;
    }

    .control-btn {
        width: 40px;
        height: 40px;
    }

    .timer {
        font-size: 2.5rem;
        margin: 15px 0;
    }

    .progress-bar {
        width: 100%;
        max-width: 300px;
    }

    .heatmap-container {
        width: 100%;
        max-width: 100%;
        padding: 15px;
        margin: 15px 0;
    }

    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 5% auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    .log-container {
        width: 100%;
        max-width: 100%;
        padding: 15px;
    }

    .log-content {
        max-height: 60vh;
        overflow-y: auto;
    }

    .pro-access-window {
        margin-top: 20px;
        padding: 15px;
    }

    .pro-button {
        padding: 12px 20px;
        font-size: 14px;
    }


    /* Show screen rotation icon on mobile */
    .screen-rotation-icon {
        display: block !important;
    }

    /* Screen Rotation Icon Styling */
    .screen-rotation-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 20px 0;
        padding: 15px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .screen-rotation-icon svg {
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }

    .screen-rotation-icon:hover svg {
        opacity: 1;
    }

    .rotation-text {
        color: #ccc !important;
        font-family: 'IBM Plex Mono', monospace !important;
        font-size: 12px !important;
        margin-top: 8px !important;
        margin-bottom: 0 !important;
        opacity: 0.8;
        transition: opacity 0.3s ease;
    }

    .screen-rotation-icon:hover .rotation-text {
        opacity: 1;
    }
}

/* Mobile device specific styles */
body.mobile-device {
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

body.mobile-device .container {
    padding-top: 20px;
}

body.mobile-device .screen-rotation-icon {
    display: block !important;
    margin: 20px 0;
}

/* Video Fullscreen Overlay Styles */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.video-overlay-content {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-overlay-content video {
    width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    background: #000;
}

.video-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
}

.video-close-btn:hover {
    transform: scale(1.2);
}

.pro-video-card {
    cursor: pointer;
}