/* ============================================
   DESIGN TOKENS - one premium palette + consistent radii/shadows/easing,
   used everywhere below instead of ad-hoc colors per component.
   ============================================ */
body.algerrha-globe-body {
    --ag-bg: #04050a;
    --ag-panel: #12142b;
    --ag-panel-2: #171a35;
    --ag-border: rgba(255,255,255,0.10);
    --ag-accent: #6ea8ff;
    --ag-accent-2: #a78bfa;
    --ag-accent-gradient: linear-gradient(135deg, #5b7fff 0%, #8f6bff 55%, #c06bff 100%);
    --ag-text: #f4f6ff;
    --ag-text-dim: rgba(244,246,255,0.62);
    --ag-radius-sm: 10px;
    --ag-radius-md: 16px;
    --ag-radius-lg: 22px;
    --ag-shadow: 0 24px 70px rgba(0,0,0,0.55);
    --ag-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html, body.algerrha-globe-body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: var(--ag-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ag-text);
    -webkit-font-smoothing: antialiased;
}

#globe-container {
    position: fixed;
    inset: 0;
}

#globe-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

#globe-loading {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: radial-gradient(ellipse at center, #0d1230 0%, #04050f 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
}
#globe-loading.hidden { opacity: 0; pointer-events: none; }
.globe-loader-ring {
    width: 70px; height: 70px;
    border: 4px solid rgba(255,255,255,0.15);
    border-top-color: #6ea8ff;
    border-radius: 50%;
    animation: globe-spin 1.2s linear infinite;
    margin-bottom: 20px;
}
@keyframes globe-spin { to { transform: rotate(360deg); } }
.globe-loading-text { font-size: 15px; opacity: 0.8; letter-spacing: 1px; }

/* IMPORTANT: #globe-ui and #globe-hero must stay pointer-events:none. They're
   large fixed-position wrappers covering most of the upper screen; if they
   (or their children as a block) captured pointer events, every drag/scroll
   attempted in the empty space between the title/search/filters would be
   swallowed here instead of reaching the canvas - OrbitControls never sees
   it, and the globe feels "stuck"/uncontrollable. Only the specific
   interactive controls below get pointer-events:auto, nothing else. */
#globe-ui {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    padding: 5vh 20px 0;
}

#globe-hero {
    text-align: center;
    max-width: 640px;
    width: 100%;
    pointer-events: none;
}
#globe-search-box, #globe-filters, #globe-results, #globe-hint { pointer-events: auto; }
#globe-hero h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #ffffff 0%, #cfe0ff 45%, var(--ag-accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 6px 26px rgba(110, 168, 255, 0.25));
}
#globe-hero p {
    margin: 0 0 22px 0;
    color: var(--ag-text-dim);
    font-size: 14px;
    letter-spacing: 0.2px;
}

#globe-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--ag-border);
    border-radius: 50px;
    backdrop-filter: blur(18px);
    box-shadow: var(--ag-shadow);
    padding: 5px;
    transition: border-color 0.25s var(--ag-ease), box-shadow 0.25s var(--ag-ease);
}
#globe-search-box:focus-within {
    border-color: rgba(110, 168, 255, 0.55);
    box-shadow: var(--ag-shadow), 0 0 0 4px rgba(110, 168, 255, 0.12);
}
#globe-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--ag-text);
    font-size: 16px;
    padding: 15px 22px;
}
#globe-search-input::placeholder { color: rgba(255,255,255,0.45); }
#globe-search-clear {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 34px; height: 34px;
    border-radius: 50%;
    cursor: pointer;
    margin-right: 6px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.15s var(--ag-ease), transform 0.15s var(--ag-ease);
}
#globe-search-clear:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
#globe-search-clear.show { display: flex; }

#globe-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}
.globe-filter {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--ag-border);
    color: var(--ag-text);
    padding: 9px 19px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.15s var(--ag-ease), background 0.2s var(--ag-ease), border-color 0.2s var(--ag-ease);
}
.globe-filter:hover { background: rgba(255,255,255,0.14); transform: translateY(-1px); }
.globe-filter:active { transform: translateY(0) scale(0.97); }
.globe-filter.active { background: var(--ag-accent-gradient); border-color: transparent; box-shadow: 0 8px 22px rgba(110,90,255,0.35); }

#globe-results {
    margin-top: 16px;
    width: 100%;
    max-width: 640px;
    max-height: 46vh;
    overflow-y: auto;
    background: rgba(10, 12, 28, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius-lg);
    box-shadow: var(--ag-shadow);
}
#globe-results.hidden { display: none; }

.globe-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s var(--ag-ease);
}
.globe-result-item:last-child { border-bottom: none; }
.globe-result-item:hover { background: rgba(110, 168, 255, 0.12); }
.globe-result-item:first-child { border-top-left-radius: var(--ag-radius-lg); border-top-right-radius: var(--ag-radius-lg); }
.globe-result-item:last-child { border-bottom-left-radius: var(--ag-radius-lg); border-bottom-right-radius: var(--ag-radius-lg); }
.globe-result-icon { font-size: 22px; flex-shrink: 0; }
.globe-result-info { flex: 1; min-width: 0; }
.globe-result-name { font-weight: 600; font-size: 15px; }
.globe-result-meta { font-size: 12px; opacity: 0.65; margin-top: 2px; }
.globe-result-empty { padding: 30px; text-align: center; opacity: 0.6; font-size: 14px; }
.globe-result-section {
    padding: 8px 18px 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
}

#globe-hint {
    margin-top: auto;
    margin-bottom: 22px;
    font-size: 12px;
    opacity: 0.55;
    background: rgba(0,0,0,0.35);
    padding: 8px 18px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
}

#globe-tooltip {
    position: fixed;
    z-index: 200;
    background: rgba(10, 14, 30, 0.95);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 12px 16px;
    pointer-events: none;
    transform: translate(-50%, -120%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 220px;
}
#globe-tooltip.hidden { display: none; }
#globe-tooltip .tt-name { font-weight: 700; font-size: 14px; }
#globe-tooltip .tt-meta { font-size: 12px; opacity: 0.7; margin-top: 3px; text-transform: capitalize; }

#globe-arrival-caption {
    position: fixed;
    top: 14vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 150;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.7);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    text-align: center;
}
#globe-arrival-caption.show { opacity: 1; }

#globe-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}
#globe-transition-overlay.show { opacity: 1; }

#globe-controls {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 110;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius-md);
    padding: 7px;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
#globe-controls button {
    width: 40px;
    height: 40px;
    border-radius: var(--ag-radius-sm);
    border: none;
    background: rgba(255,255,255,0.06);
    color: var(--ag-text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s var(--ag-ease), transform 0.15s var(--ag-ease), color 0.18s var(--ag-ease);
}
#globe-controls button:hover { background: rgba(110, 168, 255, 0.28); color: #fff; transform: scale(1.06); }
#globe-controls button:active { transform: scale(0.94); }
#globe-reset-view { font-size: 16px; }

#globe-settings-panel {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(calc(-50% + 130px));
    z-index: 111;
    width: 260px;
    background: rgba(12, 14, 30, 0.92);
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius-md);
    padding: 18px;
    backdrop-filter: blur(20px) saturate(1.3);
    box-shadow: var(--ag-shadow);
}
#globe-settings-panel.hidden { display: none; }
.gs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
}
.gs-header button {
    background: none; border: none; color: #fff; opacity: 0.6; cursor: pointer; font-size: 14px;
}
.gs-header button:hover { opacity: 1; }
.gs-row { margin-bottom: 12px; }
.gs-row label { display: block; font-size: 12px; opacity: 0.75; margin-bottom: 6px; }
.gs-row input[type="range"] { width: 100%; accent-color: #6ea8ff; }
.gs-row-inline { display: flex; align-items: center; justify-content: space-between; }
.gs-row-inline label { margin-bottom: 0; }
.gs-presets { display: flex; gap: 8px; }
.gs-preset-btn {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 6px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
}
.gs-preset-btn:hover, .gs-preset-btn.active { background: linear-gradient(135deg, #4a7bff, #6ea8ff); border-color: transparent; }

@media (max-width: 600px) {
    #globe-hero h1 { font-size: 22px; }
    #globe-hero p { font-size: 12px; }
    #globe-search-input { font-size: 14px; padding: 12px 16px; }
    #globe-hint { display: none; }
}

/* ============================================
   DASHBOARD RAIL + PANELS (Profile / Messages / Events)
   ============================================ */
#globe-dash-rail {
    position: fixed;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 110;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    padding: 6px;
    backdrop-filter: blur(10px);
}
.globe-dash-btn {
    width: 42px; height: 42px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 19px;
    cursor: pointer;
}
.globe-dash-btn:hover, .globe-dash-btn.active { background: linear-gradient(135deg, #4a7bff, #6ea8ff); }

#globe-dash-overlay {
    position: fixed; inset: 0; z-index: 199;
    background: rgba(0,0,0,0.4);
}
#globe-dash-overlay.hidden { display: none; }

.globe-dash-panel {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 360px;
    max-width: 90vw;
    z-index: 200;
    background: var(--ag-panel);
    color: var(--ag-text);
    box-shadow: 10px 0 60px rgba(0,0,0,0.55);
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.3s var(--ag-ease);
}
.globe-dash-panel.hidden { transform: translateX(-110%); pointer-events: none; }

.gdp-header {
    display: flex; align-items: center; gap: 10px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid var(--ag-border);
    font-weight: 700;
    font-size: 15px;
}
.gdp-header span { flex: 1; }
.gdp-header button {
    background: rgba(255,255,255,0.1); border: none; color: #fff;
    width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 14px;
}
.gdp-body { flex: 1; overflow-y: auto; padding: 18px 20px; }

/* Profile panel */
.gdp-profile-card { text-align: center; margin-bottom: 20px; }
.gdp-profile-avatar { font-size: 48px; margin-bottom: 8px; }
.gdp-profile-name { font-size: 18px; font-weight: 700; }
.gdp-profile-status { font-size: 12px; opacity: 0.7; margin-top: 4px; }
.gdp-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.gdp-stats-grid > div { background: rgba(255,255,255,0.06); border-radius: 10px; padding: 12px; text-align: center; }
.gdp-stats-grid .gs-value { display: block; font-size: 18px; font-weight: 700; color: #6ea8ff; }
.gdp-stats-grid .gs-label { display: block; font-size: 11px; opacity: 0.6; margin-top: 2px; }
.gdp-full-link {
    display: block; text-align: center; background: #6ea8ff; color: #14172b;
    padding: 10px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 13px;
}

/* Messages panel */
.gdp-convo-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; cursor: pointer; }
.gdp-convo-item:hover { background: rgba(255,255,255,0.06); }
.gdp-convo-avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.gdp-convo-name { font-size: 13px; font-weight: 600; }
.gdp-convo-preview { font-size: 11px; opacity: 0.6; }
.gdp-convo-unread { margin-left: auto; background: #6ea8ff; color: #14172b; font-size: 10px; font-weight: 700; border-radius: 8px; padding: 2px 6px; }

#gdp-thread.hidden { display: none; }
#gdp-thread-back { background: none; border: none; color: #6ea8ff; font-size: 12px; cursor: pointer; padding: 0 0 10px; }
.gdp-thread-name { font-weight: 700; margin-bottom: 10px; }
#gdp-thread-messages { max-height: 280px; overflow-y: auto; margin-bottom: 12px; }
#gdp-thread-form { display: flex; gap: 8px; }
#gdp-thread-input { flex: 1; padding: 8px 12px; border-radius: 16px; border: none; font-size: 13px; }
#gdp-thread-form button { background: #6ea8ff; color: #14172b; border: none; padding: 0 14px; border-radius: 16px; font-weight: 700; cursor: pointer; }

/* Events panel */
#gdp-event-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
#gdp-event-form.hidden { display: none; }
#gdp-event-form input, #gdp-event-form select, #gdp-event-form textarea {
    padding: 8px 12px; border-radius: 8px; border: none; font-family: inherit; font-size: 13px;
}
#gdp-event-form button { background: #6ea8ff; color: #14172b; border: none; padding: 10px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.gdp-event-item { background: rgba(255,255,255,0.06); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.gdp-event-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.gdp-event-meta { font-size: 11px; opacity: 0.65; margin-bottom: 8px; }
.gdp-event-actions { display: flex; justify-content: space-between; align-items: center; }
.gdp-attend-btn { background: rgba(255,255,255,0.12); border: none; color: #fff; padding: 6px 14px; border-radius: 14px; font-size: 12px; cursor: pointer; }
.gdp-attend-btn.going { background: #27ae60; }

@media (max-width: 600px) {
    .globe-dash-panel { width: 100vw; max-width: 100vw; }
}

/* ============================================
   TOP NAVIGATION BAR
   ============================================ */
#globe-topnav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 13px 24px;
    padding-top: calc(13px + env(safe-area-inset-top, 0px));
    background: rgba(6, 8, 18, 0.6);
    backdrop-filter: blur(18px) saturate(1.3);
    border-bottom: 1px solid var(--ag-border);
}
.gtn-brand {
    font-weight: 800; font-size: 16px; text-decoration: none; letter-spacing: 0.3px;
    background: var(--ag-accent-gradient);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.gtn-links { display: flex; gap: 4px; flex: 1; }
.gtn-link {
    background: none; border: none; color: rgba(255,255,255,0.75);
    font-size: 13px; font-weight: 500; padding: 9px 15px; border-radius: var(--ag-radius-sm); cursor: pointer;
    display: flex; align-items: center; gap: 7px;
    transition: background 0.18s var(--ag-ease), color 0.18s var(--ag-ease), transform 0.15s var(--ag-ease);
}
.gtn-link:hover { background: rgba(255,255,255,0.08); color: #fff; transform: translateY(-1px); }
.gtn-link.active { background: rgba(110, 168, 255, 0.18); color: #fff; }
#gtn-sidebar-toggle {
    background: rgba(255,255,255,0.06); border: 1px solid var(--ag-border);
    color: #fff; width: 40px; height: 40px; border-radius: var(--ag-radius-sm); cursor: pointer; font-size: 16px;
    transition: background 0.18s var(--ag-ease), transform 0.15s var(--ag-ease);
}
#gtn-sidebar-toggle:hover { background: rgba(255,255,255,0.14); }
#gtn-sidebar-toggle.active { background: var(--ag-accent-gradient); }

/* Push the hero/search down below the fixed top bar */
#globe-ui { padding-top: calc(9vh + 46px); }

@media (max-width: 760px) {
    .gtn-link span { display: none; }
    .gtn-links { gap: 2px; }
}

/* ============================================
   WORLD SIDEBAR (Feed / Gatherings / Groups / Stats)
   ============================================ */
#globe-sidebar {
    position: fixed;
    right: 0; top: 0; bottom: 0;
    width: 380px; max-width: 92vw;
    z-index: 130;
    background: var(--ag-panel);
    color: var(--ag-text);
    box-shadow: -10px 0 60px rgba(0,0,0,0.55);
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top, 0px);
    transform: translateX(0);
    transition: transform 0.3s var(--ag-ease);
}
#globe-sidebar.hidden { transform: translateX(110%); pointer-events: none; }

#globe-sidebar-overlay {
    position: fixed; inset: 0; z-index: 129;
    background: rgba(0,0,0,0.35);
    opacity: 1;
    transition: opacity 0.25s ease;
}
#globe-sidebar-overlay.hidden { opacity: 0; pointer-events: none; }

.gsb-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gsb-top-title { font-weight: 700; font-size: 14px; }
#gsb-close {
    background: rgba(255,255,255,0.08); border: none; color: #fff;
    width: 30px; height: 30px; border-radius: 9px; cursor: pointer; font-size: 13px;
    transition: background 0.15s, transform 0.15s;
}
#gsb-close:hover { background: rgba(255,90,90,0.25); transform: rotate(90deg); }

.gsb-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,0.08); }
.gsb-tab {
    flex: 1; background: none; border: none; color: rgba(255,255,255,0.6);
    padding: 16px 6px; font-size: 12px; cursor: pointer; border-bottom: 2px solid transparent;
}
.gsb-tab.active { color: #fff; border-bottom-color: #6ea8ff; }
.gsb-body { flex: 1; overflow-y: auto; padding: 16px 18px; }
.gsb-panel.hidden { display: none; }

.gsb-gathering-item, .gsb-group-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px; border-radius: 10px; margin-bottom: 6px; cursor: pointer;
}
.gsb-gathering-item:hover, .gsb-group-item:hover { background: rgba(255,255,255,0.06); }
.gsb-item-icon { font-size: 20px; }
.gsb-item-name { font-size: 13px; font-weight: 600; }
.gsb-item-meta { font-size: 11px; opacity: 0.6; }

.gsb-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gsb-stats-grid > div { background: rgba(255,255,255,0.06); border-radius: 12px; padding: 18px; text-align: center; }
.gsb-stats-grid .gs-value { display: block; font-size: 24px; font-weight: 800; color: #6ea8ff; }
.gsb-stats-grid .gs-label { display: block; font-size: 11px; opacity: 0.6; margin-top: 4px; }

/* ============================================
   GATHERING DETAIL CARD
   ============================================ */
#globe-detail-card {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    z-index: 150;
    width: 420px;
    max-width: 92vw;
    background: rgba(14, 16, 32, 0.88);
    backdrop-filter: blur(22px) saturate(1.4);
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius-lg);
    color: var(--ag-text);
    box-shadow: var(--ag-shadow);
    padding: 22px;
    transition: opacity 0.3s var(--ag-ease), transform 0.3s var(--ag-ease);
}
#globe-detail-card.hidden { opacity: 0; transform: translate(-50%, 24px) scale(0.97); pointer-events: none; }
#gdc-close {
    position: absolute; top: 14px; right: 14px;
    background: rgba(255,255,255,0.08); border: none; color: #fff;
    width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 12px;
    transition: background 0.15s var(--ag-ease), transform 0.15s var(--ag-ease);
}
#gdc-close:hover { background: rgba(255,90,90,0.3); transform: rotate(90deg); }
.gdc-title { font-size: 19px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.2px; }
.gdc-meta-row { font-size: 12px; color: var(--ag-text-dim); margin-bottom: 14px; }
.gdc-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.gdc-info-grid > div { background: rgba(255,255,255,0.05); border: 1px solid var(--ag-border); border-radius: var(--ag-radius-sm); padding: 11px; text-align: center; }
.gdc-info-grid .gs-value { display: block; font-size: 17px; font-weight: 800; background: var(--ag-accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gdc-info-grid .gs-label { display: block; font-size: 10px; color: var(--ag-text-dim); margin-top: 3px; letter-spacing: 0.3px; }
.gdc-activity { font-size: 12px; color: var(--ag-text-dim); margin-bottom: 6px; }
.gdc-enter-btn {
    display: block; width: 100%; text-align: center;
    background: var(--ag-accent-gradient); color: #0a0b16;
    font-weight: 800; font-size: 14px; padding: 14px; border-radius: var(--ag-radius-sm); border: none;
    text-decoration: none; cursor: pointer; margin-top: 8px;
    box-shadow: 0 10px 30px rgba(110, 90, 255, 0.35);
    transition: transform 0.18s var(--ag-ease), box-shadow 0.18s var(--ag-ease);
}
.gdc-enter-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(110, 90, 255, 0.48); }
.gdc-enter-btn:active { transform: translateY(0) scale(0.98); }

@media (max-width: 600px) {
    #globe-sidebar { width: 100vw; max-width: 100vw; }
}

/* Country/city name labels (see globe.js's createGeoLabel/placeGeoLabel) -
   positioned every frame via left/top/opacity, so only visual styling
   lives here. pointer-events:none is inherited from the #globe-marker-labels
   parent, so names never block clicks on terrain/markers underneath. */
.globe-geo-label {
    position: absolute;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 8px rgba(0, 0, 0, 0.5);
    transition: opacity 0.25s ease;
    letter-spacing: 0.4px;
}

.globe-geo-label--country {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

/* City labels get a small dot marker (::before) pinned exactly at the real
   projected coordinate, with the name trailing to its right - unlike the
   plain centered text above, so the marker itself (not the text baseline)
   is what's placed with pixel accuracy. Tier modifiers below (capital ->
   district) shrink and dim both the dot and the text together the less
   important the place is, so a deep-zoom view crowded with small towns and
   city districts still reads as clean and uncluttered rather than a wall
   of identical pins. */
.globe-geo-label--city {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 500;
    transform: translate(0, -50%);
    padding-left: 8px;
}

.globe-geo-label--city::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%);
}

.globe-geo-label--city-capital {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
.globe-geo-label--city-capital::before {
    width: 7px;
    height: 7px;
    background: #ffd166;
    box-shadow: 0 0 5px rgba(255, 209, 102, 0.85);
}

.globe-geo-label--city-major::before {
    width: 6px;
    height: 6px;
}

/* medium: same size as the base .globe-geo-label--city rule - this is the
   tier the original ~1250-city bundled dataset used before the GCC dataset
   introduced the finer minor/district tiers below it. */

.globe-geo-label--city-minor {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}
.globe-geo-label--city-minor::before {
    width: 4px;
    height: 4px;
    opacity: 0.85;
}

.globe-geo-label--city-district {
    font-size: 9px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
}
.globe-geo-label--city-district::before {
    width: 3px;
    height: 3px;
    opacity: 0.65;
    box-shadow: none;
}
