.links, a {
    padding: 3px 5px;
    color: var(--amber);
    border-radius: 4px;
    text-decoration-line: underline;
    letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.links a:hover {
    color: var(--bg);
    background: var(--amber);
    border-color: var(--amber);
}

.apps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap:12px;
}

.shortcuts {
    position: fixed;
    z-index: 25;
    top: 86px;
    left: 24px;
    width: 400px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 17px;
    color: var(--green);
    background: rgba(5, 15, 11, 0.94);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.28);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.calendar {
    position: fixed;
    z-index: 25;
    top: 300px;
    left: 24px;
    width: 400px;
    max-height: calc(100vh - 320px);
    overflow-y: auto;
    padding: 17px;
    color: var(--green);
    background: rgba(5, 15, 11, 0.94);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.28);
}


:root {
    --bg: #07110d;
    --panel: rgba(7, 20, 15, 0.88);
    --panel-border: rgba(135, 255, 177, 0.25);
    --green: #9cffb0;
    --green-dim: #6c997b;
    --amber: #ffc66d;
    --white: #e7f4eb;
}

    * {
        box-sizing: border-box;
    }

    body {
        margin: 0;
        min-height: 100vh;
        padding: 100px 24px 60px;
        background-color: var(--bg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        color: var(--white);
        font-family: "Courier New", monospace;
    }

    .scanlines {
        position: fixed;
        inset: 0;
        z-index: 20;
        pointer-events: none;
        opacity: 0.12;
        background: repeating-linear-gradient(
            to bottom,
            transparent 0px,
            transparent 3px,
            rgba(0, 0, 0, 0.45) 4px
        );
    }

    .topbar {
        position: fixed;
        inset: 0 0 auto;
        z-index: 30;
        height: 64px;
        padding: 0 5%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(5, 15, 11, 0.82);
        border-bottom: 1px solid var(--panel-border);
        backdrop-filter: blur(14px);
    }

    .brand {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--green);
        font-size: 0.85rem;
        font-weight: bold;
        letter-spacing: 0.16em;
    }

    .status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--green);
        box-shadow: 0 0 12px var(--green);
        animation: pulse 2s infinite;
    }

    .topbar-right {
        color: var(--amber);
        font-size: 0.72rem;
        letter-spacing: 0.14em;
    }

    main {
        width: min(100%, 900px);
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .clock-panel {
        text-align: center;
        padding: 28px 20px 22px;
        background: rgba(5, 15, 11, 0.68);
        border: 1px solid var(--panel-border);
        border-radius: 16px;
        backdrop-filter: blur(12px);
        box-shadow: 0 12px 50px rgba(0, 0, 0, 0.18);
    }

    .eyebrow {
        margin: 0 0 12px;
        color: var(--green-dim);
        font-size: 0.7rem;
        letter-spacing: 0.24em;
    }

    #timeElement {
        color: var(--green);
        font-size: clamp(3rem, 9vw, 6rem);
        font-weight: bold;
        line-height: 1.1;
        letter-spacing: 0.06em;
        text-shadow: 0 0 24px rgba(156, 255, 176, 0.28);
        font-variant-numeric: tabular-nums;
    }

    .date-label {
        margin: 14px 0 0;
        color: var(--amber);
        font-size: 0.78rem;
        letter-spacing: 0.16em;
    }

    .apod-panel {
        padding: 24px;
        overflow: hidden;
        background: var(--panel);
        border: 1px solid var(--panel-border);
        border-radius: 16px;
        backdrop-filter: blur(16px);
        box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
    }

    .panel-heading {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-bottom: 18px;
        border-bottom: 1px solid rgba(156, 255, 176, 0.17);
    }

    .panel-icon {
        color: var(--amber);
        font-size: 0.8rem;
    }

    .panel-heading h1 {
        margin: 0;
        color: var(--green);
        font-size: 0.95rem;
        letter-spacing: 0.16em;
    }

    .live-label {
        margin-left: auto;
        padding: 5px 9px;
        color: var(--green);
        border: 1px solid rgba(156, 255, 176, 0.4);
        border-radius: 4px;
        font-size: 0.65rem;
        letter-spacing: 0.12em;
    }

    #app {
        padding: 28px 0;
    }

    #app h1,
    #app h2 {
        margin: 0 0 20px;
        color: var(--white);
        font-size: clamp(1.4rem, 4vw, 2.2rem);
        line-height: 1.35;
        letter-spacing: -0.025em;
    }

    #app a,
    #about-info a {
        padding: 3px 5px;
        color: var(--amber);
        border-radius: 4px;
        font-size: 0.78rem;
        text-decoration-line: underline;
        letter-spacing: 0.04em;
        transition: background 0.2s, color 0.2s, border-color 0.2s;
    }

    #app a:hover,
    #about-info a:hover {
        color: var(--bg);
        background: var(--amber);
        border-color: var(--amber);
    }

    .loading {
        color: var(--green-dim);
        font-size: 0.8rem;
        letter-spacing: 0.08em;
        animation: flicker 1.5s infinite;
    }

    .panel-footer {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding-top: 15px;
        border-top: 1px solid rgba(156, 255, 176, 0.17);
        color: var(--green-dim);
        font-size: 0.62rem;
        letter-spacing: 0.07em;
    }

    .about-card {
        position: fixed;
        z-index: 25;
        top: 86px;
        right: 24px;
        width: 400px;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        padding: 17px;
        color: var(--green);
        background: rgba(5, 15, 11, 0.94);
        border: 1px solid var(--panel-border);
        border-radius: 12px;
        backdrop-filter: blur(16px);
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.28);
        cursor: pointer;
        transition: border-color 0.25s, box-shadow 0.25s;
    }

    .about-card:hover {
        border-color: rgba(156, 255, 176, 0.7);
        box-shadow: 0 0 25px rgba(156, 255, 176, 0.1);
    }

    .about-preview {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .about-icon {
        color: var(--amber);
        font-size: 1.1rem;
    }

    .about-label {
        margin: 0 0 6px;
        color: var(--green-dim);
        font-size: 0.58rem;
        letter-spacing: 0.1em;
    }

    .about-preview h2 {
        margin: 0;
        font-size: 0.78rem;
        letter-spacing: 0.04em;
    }

    .expand-icon {
        margin-left: auto;
        color: var(--amber);
        font-size: 1.4rem;
        transition: transform 0.25s;
    }

    .about-card:hover .expand-icon {
        transform: rotate(45deg);
    }

    .about-details {
        display: grid;
        grid-template-rows: 0fr;
        opacity: 0;
        margin-top: 0;
        transition: opacity 0.3s, margin-top 0.3s;
    }

    .about-details > #about-info {
        min-height: 0;
        overflow: hidden;
    }

    .about-card:hover .about-details {
        grid-template-rows: 1fr;
        opacity: 1;
        margin-top: 18px;
    }

    #about-info h3 {
        color: var(--green);
        font-size: 1rem;
        line-height: 1.5;
    }

    #about-info p {
        color: var(--white);
        font-size: 0.75rem;
        line-height: 1.8;
    }

    #about-info .about-status {
        color: var(--amber);
        font-size: 0.62rem;
        letter-spacing: 0.1em;
    }


    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.35; }
    }

    @keyframes flicker {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.65; }
    }

    @media (max-width: 700px) {
        body {
            padding: 88px 16px 30px;
        }

        .topbar {
            padding: 0 16px;
        }

        .brand {
            font-size: 0.7rem;
            letter-spacing: 0.08em;
        }

        .topbar-right {
            font-size: 0.62rem;
        }

        .about-card {
            position: relative;
            top: auto;
            right: auto;
            width: 100%;
            max-height: none;
            margin: 24px auto 0;
        }

        .about-details {
            grid-template-rows: 1fr;
            opacity: 1;
            margin-top: 16px;
        }

        .apod-panel {
            padding: 18px;
        }

        .panel-heading h1 {
            font-size: 0.78rem;
        }

        .panel-footer {
            flex-wrap: wrap;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation: none !important;
            transition: none !important;
        }
    }

    
/* MISSION CALENDAR */

.calendar-widget {
    width: min(100%, 700px);
    margin: 28px auto;
    padding: 24px;
    color: var(--white);
    background: rgba(7, 20, 15, 0.9);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.calendar-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--panel-border);
}

.calendar-title h2 {
    margin: 0;
    color: var(--green);
    font-size: 0.9rem;
    letter-spacing: 0.14em;
}

.calendar-title .live-label {
    margin-left: auto;
}

.calendar-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.calendar-heading h3 {
    margin: 0;
    color: var(--amber);
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-align: center;
}

.calendar-heading button {
    width: 38px;
    height: 38px;
    color: var(--green);
    background: transparent;
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
}

.calendar-heading button:hover {
    color: var(--bg);
    background: var(--green);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;
    width:100%;
}

.calendar-weekdays {
    margin-bottom: 10px;
}

.calendar-weekdays span {
    padding: 8px 0;
    color: var(--green-dim);
    font-size: 0.65rem;
    text-align: center;
    letter-spacing: 0.08em;
}

.calendar-day {
    display: grid;
    place-items: center;
    min-width: 0;
    aspect-ratio: 1.2;
    color: var(--white);
    background: rgba(156, 255, 176, 0.035);
    border: 1px solid rgba(156, 255, 176, 0.09);
    border-radius: 6px;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.18s ease;
}

.calendar-day:hover {
    color: var(--bg);
    background: var(--green);
}

.calendar-day.today {
    color: var(--bg);
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 0 14px rgba(156, 255, 176, 0.22);
    font-weight: bold;
}

.calendar-day.selected:not(.today) {
    color: var(--amber);
    border-color: var(--amber);
}

.calendar-day.empty {
    visibility: hidden;
    cursor: default;
}

.calendar-footer {
    margin: 18px 0 0;
    padding-top: 14px;
    color: var(--green-dim);
    border-top: 1px solid var(--panel-border);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
}

.calendar-footer span {
    color: var(--green);
}

@media (max-width: 500px) {
    .calendar-widget {
        padding: 16px;
    }

    .calendar-grid {
        gap: 4px;
    }

    .calendar-day {
        font-size: 0.75rem;
    }

    .calendar-title h2 {
        font-size: 0.75rem;
    }
}

@media (min-width: 701px) and (max-width: 1450px) {
    .shortcuts,
    .calendar {
        width: 280px;
        left: 16px;
    }

    .shortcuts {
        top: 82px;
    }

    .calendar {
        top: 290px;
        max-height: calc(100vh - 310px);
    }

    .about-card {
        width: 280px;
        right: 16px;
    }

    main {
        width: min(100%, 600px);
    }
}

/* SMALL SCREENS */
@media (max-width: 700px) {
    .shortcuts,
    .calendar,
    .about-card {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        max-height: none;
        margin: 20px auto;
    }

    main {
        width: 100%;
    }

    body {
        padding: 88px 16px 30px;
    }
}
