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

body {
    background: #0a0e1a;
    color: #c8d0e0;
    font-family: monospace;
    min-height: 100vh;
    padding: 1.5rem;
}

.shell {
    max-width: 760px;
    margin: 0 auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 0.5px solid #1e2d4a;
    margin-bottom: 2rem;
}

.logo {
    font-size: 15px;
    font-weight: 500;
    color: #7eb8f7;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.logo span { color: #4a7ab5; margin-right: 4px; }

nav { display: flex; gap: 1.5rem; }

nav a {
    font-size: 12px;
    color: #5a7aa0;
    text-decoration: none;
    letter-spacing: 0.05em;
}

nav a:hover, nav a.active { color: #7eb8f7; }

.hero { margin-bottom: 2rem; }
.hero h1 { font-size: 22px; font-weight: 500; color: #e8f0ff; margin-bottom: 6px; }
.hero p { font-size: 13px; color: #5a7aa0; line-height: 1.6; }

.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 2rem;
}

.card {
    background: #0f1629;
    border: 0.5px solid #1e2d4a;
    border-radius: 8px;
    padding: 1rem;
    text-decoration: none;
    display: block;
    transition: border-color 0.15s;
}

.card:hover { border-color: #2a4a7a; }
.card-icon { font-size: 16px; margin-bottom: 8px; color: #4a7ab5; }
.card h3 { font-size: 13px; font-weight: 500; color: #a8c0e0; margin-bottom: 4px; }
.card p { font-size: 11px; color: #3a5a80; line-height: 1.5; }

.breadcrumb { font-size: 11px; color: #3a5a80; margin-bottom: 1.5rem; }
.breadcrumb span { color: #5a7aa0; }

.panel {
    background: #0f1629;
    border: 0.5px solid #1e2d4a;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.panel-title {
    font-size: 13px;
    font-weight: 500;
    color: #7eb8f7;
    margin-bottom: 1rem;
    padding-bottom: 8px;
    border-bottom: 0.5px solid #1a2840;
}

.field { margin-bottom: 12px; }

.field label {
    display: block;
    font-size: 11px;
    color: #5a7aa0;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.field input {
    width: 100%;
    background: #080c18;
    border: 0.5px solid #1e2d4a;
    border-radius: 4px;
    padding: 7px 10px;
    font-size: 12px;
    color: #a8c0e0;
    font-family: monospace;
    outline: none;
}

.field input:focus { border-color: #2a4a7a; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.btn {
    background: #0f1e38;
    border: 0.5px solid #2a4a7a;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 12px;
    color: #7eb8f7;
    font-family: monospace;
    cursor: pointer;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

.btn:hover { background: #1a2e4a; }

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 0.5px solid #0f1629;
    font-size: 12px;
}

.result-row:last-child { border-bottom: none; }
.result-name { color: #a8c0e0; }
.result-val { color: #4a9a7a; font-family: monospace; max-width: 70%}

.error {
    background: #1a0f0f;
    border: 0.5px solid #4a1a1a;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 12px;
    color: #e07070;
    margin-bottom: 1rem;
}

.back { font-size: 12px; color: #3a5a80; text-decoration: none; }
.back:hover { color: #7eb8f7; }

.plot img { max-width: 100%; border-radius: 4px; margin-top: 1rem; }

.map-wrap { border-radius: 8px; overflow: hidden; margin-top: 0.5rem; }
.map-wrap iframe { border: none; }


.post-content { font-size: 14px; line-height: 1.9; color: #a8c0e0; }
.post-content h1, .post-content h2, .post-content h3 { color: #7eb8f7; margin: 1.5rem 0 0.75rem; }
.post-content p { margin-bottom: 1rem; }
.post-content a { color: #7eb8f7; }
.post-content a:hover { color: #a8c0e0; }
.post-content pre { background: #080c18; border: 0.5px solid #1e2d4a; border-radius: 4px; padding: 1rem; overflow-x: auto; margin-bottom: 1rem; }
.post-content code { background: #080c18; color: #4a9a7a; font-family: monospace; font-size: 12px; padding: 2px 5px; border-radius: 3px; }
.post-content pre code { padding: 0; background: none; }
.post-content ul, .post-content ol { margin: 0 0 1rem 1.5rem; color: #a8c0e0; }
.post-content li { margin-bottom: 4px; }
.post-content blockquote { border-left: 2px solid #1e2d4a; margin: 0 0 1rem; padding-left: 1rem; color: #5a7aa0; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 13px; }
.post-content th { color: #7eb8f7; border-bottom: 0.5px solid #1e2d4a; padding: 6px 8px; text-align: left; }
.post-content td { color: #a8c0e0; border-bottom: 0.5px solid #0f1629; padding: 6px 8px; }


@media (max-width: 600px) {
    body { padding: 1rem; }

    .topbar { flex-direction: column; align-items: flex-start; gap: 10px; }

    nav { gap: 1rem; }

    .hero h1 { font-size: 18px; }

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

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

    .result-row { flex-direction: column; align-items: flex-start; gap: 2px; }

    .result-val { color: #4a9a7a; }

    .panel { padding: 1rem; }

    .post-content pre { font-size: 11px; }

    .map-wrap iframe { height: 300px; }
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 0.5px solid #1e2d4a;
    font-size: 11px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #3a5a80;
}

.footer-left span:first-child {
    color: #5a7aa0;
    font-size: 12px;
}

.kofi-btn {
    background: #0f1e38;
    border: 0.5px solid #2a4a7a;
    border-radius: 4px;
    padding: 7px 14px;
    font-size: 12px;
    color: #7eb8f7;
    font-family: monospace;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: background 0.15s;
}

.kofi-btn:hover {
    background: #1a2e4a;
}

@media (max-width: 600px) {
    footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

.tooltip-wrap {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 0.5px solid #2a4a7a;
    font-size: 9px;
    color: #5a7aa0;
    cursor: default;
    font-style: normal;
    line-height: 1;
}

.tooltip-icon:hover { border-color: #7eb8f7; color: #7eb8f7; }

.tooltip-text {
    display: none;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #0f1629;
    border: 0.5px solid #2a4a7a;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 11px;
    color: #a8c0e0;
    line-height: 1.6;
    width: 280px;
    z-index: 100;
    pointer-events: none;
}

.tooltip-wrap:hover .tooltip-text { display: block; }

#aladin-lite-div {
    width: 100%;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
    border: 0.5px solid #1e2d4a;
}

@media (max-width: 600px) {
    .tooltip-text { left: 0; transform: none; width: 240px; }
    #aladin-lite-div { height: 280px; }
}

.adblocker-notice {
    border: 0.5px solid #2a4a7a;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin: 0.5rem 0;
}

.adblocker-icon {
    font-size: 24px;
    color: #4a7ab5;
    margin-bottom: 1rem;
}

.adblocker-notice p {
    font-size: 13px;
    color: #a8c0e0;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.adblocker-notice p:first-of-type {
    font-size: 14px;
    font-weight: 500;
    color: #7eb8f7;
}

.adblocker-notice ul {
    list-style: none;
    margin: 0 0 0.75rem 0;
    padding: 0;
}

.adblocker-notice li {
    font-size: 12px;
    color: #5a7aa0;
    padding: 4px 0;
}

.adblocker-notice li::before {
    content: "→ ";
    color: #2a4a7a;
}

.adblocker-notice strong {
    color: #7eb8f7;
}

.adblocker-sub {
    font-size: 11px !important;
    color: #3a5a80 !important;
}

.btn-locate {
    -webkit-appearance: none;
    appearance: none;
    background: #0a0e1a;
    border: 0.5px solid #1e2d4a;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 11px;
    color: #5a7aa0;
    font-family: monospace;
    cursor: pointer;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    display: inline-block;
}

.btn-locate:hover { border-color: #2a4a7a; color: #7eb8f7; }


.loc-status {
    font-size: 11px;
    margin: 4px 0 8px;
    min-height: 16px;
}

.loc-pending { color: #5a7aa0; }
.loc-ok { color: #4a9a7a; }
.loc-error { color: #e07070; }

button {
    -webkit-appearance: none;
    appearance: none;
}

.footer-credits {
    font-size: 10px;
    color: #2a4a7a;
    margin-top: 2px;
}

.footer-credits a {
    color: #2a4a7a;
    text-decoration: none;
}

.footer-credits a:hover {
    color: #5a7aa0;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 0.5rem;
}

.forecast-card {
    background: #080c18;
    border: 0.5px solid #1e2d4a;
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    text-align: center;
}

.forecast-date {
    font-size: 10px;
    color: #5a7aa0;
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.forecast-score {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 2px;
    font-family: monospace;
}

.forecast-rating {
    font-size: 10px;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.forecast-details {
    border-top: 0.5px solid #1e2d4a;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.forecast-detail {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
}

.detail-label { color: #3a5a80; }
.detail-val { color: #7eb8f7; font-family: monospace; }

/* Rating colors */
.forecast-excellent .forecast-score,
.forecast-excellent .forecast-rating { color: #4a9a7a; }
.forecast-excellent { border-color: #1a4a3a; }

.forecast-good .forecast-score,
.forecast-good .forecast-rating { color: #7eb8f7; }
.forecast-good { border-color: #1e2d4a; }

.forecast-fair .forecast-score,
.forecast-fair .forecast-rating { color: #e0a040; }
.forecast-fair { border-color: #3a2a10; }

.forecast-poor .forecast-score,
.forecast-poor .forecast-rating { color: #e07070; }
.forecast-poor { border-color: #3a1a1a; }

@media (max-width: 600px) {
    .forecast-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stage-panel {
    margin-bottom: 1rem;
}

.stage-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 0.5px solid #1a2840;
}

.stage-symbol {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.stage-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.stage-summary {
    font-size: 12px;
    color: #5a7aa0;
    line-height: 1.5;
}

.stage-description {
    font-size: 13px;
    color: #a8c0e0;
    line-height: 1.9;
}

/* Stage colors */
.stage-blue .stage-name,
.stage-blue .stage-symbol { color: #7eb8f7; }
.stage-blue { border-color: #1e3a5a; }

.stage-coral .stage-name,
.stage-coral .stage-symbol { color: #f09570; }
.stage-coral { border-color: #3a2010; }

.stage-amber .stage-name,
.stage-amber .stage-symbol { color: #e0a040; }
.stage-amber { border-color: #3a2a10; }

.stage-teal .stage-name,
.stage-teal .stage-symbol { color: #4a9a7a; }
.stage-teal { border-color: #1a3a2a; }

.stage-gray .stage-name,
.stage-gray .stage-symbol { color: #5a7aa0; }

.loading {
    display: none;
    font-size: 12px;
    color: #5a7aa0;
    margin-top: 12px;
    font-family: monospace;
}

.loading.active {
    display: block;
}

@keyframes ellipsis {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

.loading::after {
    content: '...';
    animation: ellipsis 1.2s infinite;
}
