.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.logo-link {
    width: 100%;
    border: 1px solid rgba(15, 20, 40, .12);
    border-radius: 24px;
    padding: 18px 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(243, 244, 255, .9));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.logo-link:hover,
.logo-link:focus-visible {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 35px rgba(80, 90, 140, .25);
    border-color: var(--accent);
    outline: none;
}

.logo-img {
    width: 112px;
    height: 112px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) drop-shadow(0 8px 18px rgba(40, 44, 102, .12));
    transition: transform .3s ease;
}

.logo-link:hover .logo-img,
.logo-link:focus-visible .logo-img {
    transform: scale(1.03);
}

body[data-theme="dark"] .logo-link {
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(135deg, rgba(14, 14, 20, .95), rgba(6, 6, 10, .9));
    box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
}

body[data-theme="dark"] .logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 10px 22px rgba(255, 255, 255, .12));
}

.primary {
    background: linear-gradient(135deg, #9394ff, #6c6dff);
    color: #0b0b10;
    border-radius: 999px;
    padding: 14px 28px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(123, 124, 255, .3);
    min-width: 170px;
    text-transform: uppercase;
    letter-spacing: .05rem;
    border: 1px solid rgba(255, 255, 255, .1);
    transition: transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    line-height: 1.2;
}

.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(123, 124, 255, .32);
}

.ghost {
    border: 1px solid rgba(15, 20, 40, .12);
    border-radius: 999px;
    padding: 12px 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(247, 247, 251, .8));
    color: var(--text);
    transition: background .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease;
}

body[data-theme="dark"] .ghost {
    border: 1px solid rgba(255, 255, 255, .15);
    background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
    color: var(--text);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-weight: 600;
    padding: 10px 18px 10px 20px;
    box-shadow: 0 10px 20px rgba(15, 23, 58, .1);
    transition: background .4s ease, border-color .4s ease, color .4s ease, box-shadow .4s ease;
    white-space: nowrap;
}

body[data-theme="dark"] .theme-toggle {
    box-shadow: 0 25px 50px rgba(0, 0, 0, .4);
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 999px;
    border: 1px solid rgba(15, 20, 40, .12);
    background: var(--surface);
    box-shadow: 0 12px 25px rgba(15, 23, 58, .1);
    padding: 4px;
    gap: 4px;
}

.language-toggle button {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    font-size: .82rem;
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
}

.language-toggle button.active {
    background: var(--accent);
    color: #0b0b10;
}

body[data-theme="dark"] .language-toggle {
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}

body[data-theme="dark"] .language-toggle button.active {
    color: #050506;
}

.globe-shell {
    width: clamp(240px, 42vw, 420px);
    height: clamp(240px, 42vw, 420px);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .85), rgba(221, 225, 255, .85) 55%, rgba(206, 210, 255, .7) 80%);
    border: 1px solid rgba(151, 160, 203, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 30px 70px rgba(134, 148, 208, .35), inset 0 -25px 45px rgba(168, 176, 224, .45);
    padding: 26px;
}

.globe-shell::after {
    content: '';
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 124, 255, .2), transparent 60%);
    filter: blur(18px);
    z-index: 0;
}

body[data-theme="dark"] .globe-shell {
    background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .18), rgba(15, 15, 20, .4) 55%, rgba(5, 5, 10, .8) 80%);
    border: 1px solid rgba(255, 255, 255, .04);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .65), inset 0 -20px 50px rgba(0, 0, 0, .55);
}

body[data-theme="dark"] .globe-shell::after {
    background: radial-gradient(circle, rgba(123, 124, 255, .15), transparent 60%);
    filter: blur(12px);
}

.globe-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.globe-container canvas {
    border-radius: 50%;
}

.globe-container.globe-fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .9), rgba(219, 225, 255, .9));
    box-shadow: inset 0 -20px 40px rgba(180, 188, 238, .6);
}

body[data-theme="dark"] .globe-container.globe-fallback::before {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .15), rgba(0, 0, 0, .85));
    box-shadow: inset 0 -20px 40px rgba(0, 0, 0, .7);
}

.progress-panel {
    display: flex;
    align-items: center;
    gap: 16px;
}

.donut {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background:
        conic-gradient(var(--accent) calc(var(--value)*1%), rgba(255, 255, 255, .1) 0);
    position: relative;
    flex: 0 0 110px;
}

.donut span {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width:900px) {
    .globe-shell {
        width: 260px;
        height: 260px;
        padding: 18px;
    }

    .globe-container {
        width: 100%;
        height: 100%;
    }
}

@media (max-width:640px) {
    .progress-panel {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .progress-panel p {
        text-align: center;
    }
}

/* Info Button */
.info-button {
    width: 100%;
    margin-top: auto;
    border: 1px solid rgba(151, 160, 203, .5);
    border-radius: 99px;
    padding: 12px 16px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    white-space: nowrap;
    transition: all .25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info-label {
    white-space: nowrap;
    line-height: 1;
}

.info-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
    color: #333;
}

.info-dot {
    width: 12px;
    height: 12px;
    background-color: #8B8DFF;
    /* Blue/Purple matching theme */
    border-radius: 50%;
    display: inline-block;
}

body[data-theme="dark"] .info-button {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ddd;
}

body[data-theme="dark"] .info-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

@keyframes bounce {

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

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

.info-button:hover .info-dot {
    animation: bounce 1s infinite ease-in-out;
}

/* Info Page Layout */
.info-layout {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 40px;
}

.info-container {
    max-width: 900px;
    margin: 0 auto;
}

.info-container h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header Info Button (Mobile) */
.header-info-btn {
    display: none;
    /* Hidden on desktop */
    width: auto;
    min-width: 108px;
    flex-shrink: 0;
    margin: 0;
    padding: 10px 16px;
    font-size: 0.9rem;
    height: 44px;
    /* Match typical header button height */
}

@media (max-width: 900px) {
    .header-info-btn {
        display: flex;
        font-size: .78rem;
        padding: 8px 11px;
        height: 40px;
        gap: 8px;
        min-width: 98px;
    }
}

@media (max-width: 640px) {
    .header-info-btn {
        font-size: .72rem;
        padding: 7px 9px;
        gap: 6px;
        min-width: 90px;
    }

    .header-info-btn .info-dot {
        width: 9px;
        height: 9px;
    }

    .header-info-btn .info-label {
        font-size: .72rem;
        letter-spacing: 0;
    }
}

/* Glassmorphism & Blocks */
.info-block {
    background: rgba(255, 255, 255, 0.7);
    /* More transparent */
    backdrop-filter: blur(12px);
    /* Glass effect */
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.info-block p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text);
    opacity: 0.85;
    /* Slightly reduced opacity */
    font-size: 0.95rem;
    /* Slightly smaller text */
}

.info-block h3 {
    margin-bottom: 16px;
    font-size: 1.35rem;
    color: var(--accent);
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15, 20, 40, 0.08), transparent);
    margin: 40px 0;
}

body[data-theme="dark"] .divider {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.intro-text {
    font-size: 1rem;
    /* Reduced size */
    margin-bottom: 32px;
    margin-top: 24px;
    color: var(--muted);
    opacity: 0.8;
    max-width: 800px;
    font-style: italic;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    /* Slightly wider cards */
    gap: 24px;
}

.source-card {
    background: rgba(255, 255, 255, 0.6);
    /* Translucent */
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform .2s ease, box-shadow .2s ease;
}

.source-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-color: rgba(131, 133, 255, 0.3);
    background: rgba(255, 255, 255, 0.8);
}

body[data-theme="dark"] .info-block,
body[data-theme="dark"] .source-card {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(20, 20, 30, 0.4);
    /* Dark glass */
    backdrop-filter: blur(16px);
}

body[data-theme="dark"] .source-card:hover {
    background: rgba(30, 30, 45, 0.6);
    border-color: rgba(131, 133, 255, 0.2);
}

.source-card h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(15, 20, 40, 0.06);
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

body[data-theme="dark"] .source-card h3 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.source-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.source-card li {
    margin: 0;
}

/* Link Cards */
.source-card a {
    color: var(--text);
    text-decoration: none;
    font-size: calc(0.9rem - 2px);
    display: block;
    line-height: 1.4;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    position: relative;
    padding-right: 32px;
    /* Space for arrow */
}

.source-card a::after {
    content: '↗';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    color: var(--accent);
    font-weight: bold;
}

.source-card a:hover {
    background: white;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    color: var(--accent);
    border-color: rgba(131, 133, 255, 0.2);
}

.source-card a:hover::after {
    opacity: 1;
    transform: translate(2px, -50%);
}

body[data-theme="dark"] .source-card a {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
}

body[data-theme="dark"] .source-card a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

@media (max-width: 640px) {
    .info-container h1 {
        font-size: 2rem;
    }

    .info-block {
        padding: 20px;
    }

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

/* ─── Contact modal ─────────────────────────────────────────────────────── */

.contact-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-modal.is-open {
    display: flex;
}

.contact-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 34, .46);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
}

.contact-modal-card {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border: 1px solid rgba(15, 20, 40, .1);
    border-radius: 18px;
    box-shadow: 0 32px 64px rgba(10, 14, 34, .18);
    padding: 32px 28px 28px;
    width: 100%;
    max-width: 460px;
    animation: contactModalIn .22s cubic-bezier(.22, .68, .22, 1);
}

@keyframes contactModalIn {
    from { opacity: 0; transform: scale(.96) translateY(8px); }
    to   { opacity: 1; transform: scale(1)  translateY(0); }
}

.contact-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    color: var(--muted);
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .16s ease, color .16s ease;
}

.contact-modal-close:hover {
    background: rgba(15, 20, 40, .07);
    color: var(--text);
}

.contact-modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.contact-modal-subtitle {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 24px;
    line-height: 1.4;
}

.contact-modal-profiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-profile {
    background: rgba(15, 20, 40, .03);
    border: 1px solid rgba(15, 20, 40, .08);
    border-radius: 12px;
    padding: 18px 14px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.contact-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 4px;
    flex-shrink: 0;
    border: 2px solid rgba(15, 20, 40, .08);
}

.contact-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.contact-profile-name {
    font-size: .82rem;
    font-weight: 650;
    color: var(--text);
    line-height: 1.2;
}

.contact-profile-role {
    font-size: .72rem;
    color: var(--muted);
    line-height: 1.35;
    flex: 1;
}

.contact-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .7rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    padding: 5px 12px 5px 10px;
    border: 1px solid rgba(15, 20, 40, .14);
    border-radius: 999px;
    margin-top: 4px;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
    letter-spacing: .02em;
    line-height: 1;
}

.contact-profile-link svg {
    opacity: .7;
}

.contact-profile-link:hover {
    background: rgba(15, 20, 40, .06);
    border-color: rgba(15, 20, 40, .26);
    color: var(--text);
}

.contact-profile-link:hover svg {
    opacity: 1;
}

/* Dark mode */
body[data-theme="dark"] .contact-modal-card {
    background: #1a1d2e;
    border-color: rgba(255, 255, 255, .1);
    box-shadow: 0 32px 64px rgba(0, 0, 0, .5);
}

body[data-theme="dark"] .contact-modal-close:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

body[data-theme="dark"] .contact-profile {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .09);
}

body[data-theme="dark"] .contact-profile-avatar {
    border-color: rgba(255, 255, 255, .12);
}

body[data-theme="dark"] .contact-profile-link {
    border-color: rgba(255, 255, 255, .14);
}

body[data-theme="dark"] .contact-profile-link:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .28);
}

/* Mobile */
@media (max-width: 480px) {
    .contact-modal-profiles {
        grid-template-columns: 1fr;
    }

    .contact-modal-card {
        padding: 28px 20px 22px;
        border-radius: 16px;
    }
}
