html { min-height: 100dvh; background-color: #f5f5f7; transition: background-color 0.3s; }
html.dark-mode { background-color: #000000; }
body { min-height: 100dvh; background-color: #f5f5f7; color: #1d1d1f; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; padding-bottom: calc(64px + env(safe-area-inset-bottom)); -webkit-font-smoothing: antialiased; transition: background-color 0.3s, color 0.3s; }
body.dark-mode { background-color: #000000; color: #f5f5f7; }
.radar-bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -2; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.radar-circle { position: absolute; border: 1px solid rgba(37, 99, 235, 0.05); border-radius: 50%; transition: border-color 0.3s; }
body.dark-mode .radar-circle { border-color: rgba(10, 132, 255, 0.1); }
.radar-sweep { position: absolute; width: 2000px; height: 2000px; background: conic-gradient(from 0deg, rgba(37, 99, 235, 0.05) 0deg, transparent 60deg); border-radius: 50%; animation: radarSpin 4s linear infinite; transition: background 0.3s; }
body.dark-mode .radar-sweep { background: conic-gradient(from 0deg, rgba(10, 132, 255, 0.1) 0deg, transparent 60deg); }
@keyframes radarSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.border-t-c { border-top: 1px solid rgba(229, 229, 234, 0.6); transition: border-color 0.3s; }
body.dark-mode .border-t-c { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.globe-spin { animation: spinGlobe 12s linear infinite; }
@keyframes spinGlobe { 100% { transform: rotate(360deg); } }
.logo-wrapper:hover .globe-icon-wrapper { transform: scale(1.15); }
.brand-text { background: linear-gradient(to right, #06b6d4, #a855f7); -webkit-background-clip: text; color: transparent; font-weight: 800; font-size: 24px; letter-spacing: -0.5px; transition: opacity 0.3s; }
.brand-text:hover { opacity: 0.8; }
/* ==========================================================================
   🚀 全局 All-in-One 悬浮控制舱系统 (致敬 macOS)
   ========================================================================== */
.sticky-header { position: sticky; top: 0; z-index: 2000; padding: 14px 0 8px 0; width: 100%; display: flex; flex-direction: column; align-items: center; background: transparent; }

/* 悬浮舱核心容器 */
.control-capsule-main {
    width: 100%; max-width: 760px; margin: 0 auto; padding: 12px 18px 8px 18px;
    border-radius: 24px; box-sizing: border-box;
    background: rgba(245, 245, 247, 0.65);
    backdrop-filter: blur(25px) saturate(180%); -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(229, 229, 234, 0.7);
    box-shadow: 0 12px 40px -4px rgba(0, 0, 0, 0.08);
    display: flex; flex-direction: column; gap: 12px;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
body.dark-mode .control-capsule-main { background: rgba(20, 20, 22, 0.65); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 12px 40px -4px rgba(0, 0, 0, 0.5); }

/* 上层：Logo、灵动岛、高频操作 */
.capsule-top-row { display: flex; width: 100%; justify-content: space-between; align-items: center; }

/* 灵动岛哨兵 */
.truenode-island-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
    border-radius: 9999px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02); transition: all 0.2s ease;
}
.truenode-island-pill.secure { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.25); color: #16a34a; }
body.dark-mode .truenode-island-pill.secure { background: rgba(50, 215, 75, 0.15); border: 1px solid rgba(50, 215, 75, 0.3); color: #32d74b; }
.truenode-island-pill .pulse-dot { width: 6px; height: 6px; border-radius: 50%; background-color: currentColor; box-shadow: 0 0 6px currentColor; animation: breathe 2.5s infinite; }

.capsule-middle-row { width: 100%; display: flex; justify-content: center; }
.capsule-bottom-row { display: flex; width: 100%; justify-content: space-between; align-items: center; }
.content-layer { position: relative !important; z-index: 10 !important; width: 100% !important; }
/* 中层：搜索框结构 (极限压缩) */
.search-bar-container { max-width: 100%; width: 100%; position: relative; }
.search-capsule-wrapper { position: relative; border-radius: 9999px; padding: 2px; background: rgba(229, 229, 234, 0.4); overflow: hidden; display: flex; align-items: center; box-sizing: border-box; transition: background-color 0.3s; border: 1px solid rgba(0, 0, 0, 0.03); }
body.dark-mode .search-capsule-wrapper { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.04); }
.search-capsule-wrapper.loading { background: transparent; }
.search-capsule-wrapper::before { content: ""; position: absolute; top: 50%; left: 50%; width: 2000px; height: 2000px; background: conic-gradient(#4285F4, #EA4335, #FBBC05, #34A853, #4285F4); display: none; z-index: 0; animation: snake-spin 1.5s linear infinite; transform: translate(-50%, -50%); }
.search-capsule-wrapper.loading::before { display: block; }
@keyframes snake-spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }
.search-inner { position: relative; z-index: 1; background: transparent; border-radius: 9999px; display: flex; width: 100%; align-items: center; height: 40px; padding-left: 16px; padding-right: 4px; box-sizing: border-box; }
.search-input { flex-grow: 1; background: transparent; border: none; outline: none; font-size: 15px; font-weight: 500; color: #1d1d1f; transition: color 0.3s; }
body.dark-mode .search-input { color: #f5f5f7; }
.search-input::placeholder { color: #86868b; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif; }
body.dark-mode .search-input::placeholder { color: #a1a1a6; }
.search-button { width: 34px; height: 34px; border-radius: 50%; background-color: #2563eb; display: flex; align-items: center; justify-content: center; color: white; border: none; cursor: pointer; transition: opacity 0.2s, transform 0.1s; }
body.dark-mode .search-button { background-color: #0A84FF !important; }
.search-button:hover:not(:disabled) { opacity: 0.9; }
.search-button:active:not(:disabled) { transform: scale(0.95); }
.search-button:disabled { opacity: 0.4; cursor: not-allowed; }

/* 下层：视图标签页 */
.tab-wrapper { margin: 0; padding: 2px; border: none; background: transparent; display: inline-flex; position: relative; cursor: pointer; user-select: none; touch-action: none; overflow: visible; }
.tab-items-container { display: flex; position: relative; z-index: 0; }
.tab-item-base { padding: 4px 12px; font-size: 12.5px; font-weight: 600; color: #86868b; pointer-events: none; letter-spacing: 0.01em; display: flex; align-items: center; justify-content: center; white-space: nowrap; transition: color 0.3s; }
body.dark-mode .tab-item-base { color: #a1a1a6; }
.tab-slider { position: absolute; top: 2px; left: 2px; height: calc(100% - 4px); border-radius: 9999px; z-index: 10; overflow: hidden; background: rgba(255, 255, 255, 1); box-sizing: border-box; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1), transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s; }
body.dark-mode .tab-slider { background: rgba(44,44,46,0.9); box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.tab-slider.dragging { transition: none; }
.slider-inner { display: flex; position: absolute; top: -2px; left: -2px; height: 100%; transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1); }
.tab-slider.dragging .slider-inner { transition: none; }
.tab-item-active-mask { padding: 4px 12px; font-size: 12.5px; font-weight: 700; color: #1d1d1f; letter-spacing: 0.01em; display: flex; align-items: center; justify-content: center; white-space: nowrap; box-sizing: border-box; transition: color 0.3s; }
body.dark-mode .tab-item-active-mask { color: #f5f5f7; }
.leaflet-container { background: transparent !important; }
body.dark-mode .leaflet-container { filter: none !important; }
body.dark-mode .leaflet-tile-pane { filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%) !important; }
body.dark-mode .leaflet-control-container, body.dark-mode #map-close-btn { z-index: 9999 !important; }
body.dark-mode .leaflet-bar a { background-color: rgba(44, 44, 46, 0.9) !important; color: #f5f5f7 !important; border: 1px solid rgba(255, 255, 255, 0.12) !important; }
body.dark-mode .leaflet-bar a:hover { background-color: rgba(255, 255, 255, 0.1) !important; }
body.dark-mode .leaflet-bar { border: none !important; }
.card-panel { position: relative; background-color: #ffffff; border-radius: 12px; border: 1px solid rgba(229, 229, 234, 0.6); overflow: hidden; margin-bottom: 24px; transition: transform 0.2s, border-color 0.3s, background-color 0.3s; }
body.dark-mode .card-panel { background-color: rgba(28, 28, 30, 0.7); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 4px 24px rgba(0,0,0,0.4); }
.map-gradient-mask { background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #ffffff 100%); transition: background 0.3s; pointer-events: none; }
body.dark-mode .map-gradient-mask { background: linear-gradient(to bottom, rgba(28,28,30,0) 0%, rgba(28,28,30,0.8) 100%); }
.map-overlay-text { color: #1d1d1f; text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 5px rgba(255,255,255,0.5); transition: color 0.3s, text-shadow 0.3s; pointer-events: none; }
body.dark-mode .map-overlay-text { color: #f5f5f7; text-shadow: 0 0 10px rgba(0,0,0,0.9), 0 0 5px rgba(0,0,0,0.6); }
.interactive-element { pointer-events: auto !important; }
.dns-ip-color { color: #2563eb !important; }
body.dark-mode .dns-ip-color { color: #0A84FF !important; }
.card-progress-track { position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; z-index: 20; background-color: transparent; overflow: hidden; }
.border-t-accent { border-top: 4px solid #2563eb; }
body.dark-mode .border-t-accent { border-top: 4px solid #0A84FF !important; }
.card-header { background-color: rgba(229, 229, 234, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(229, 229, 234, 0.6); padding: 12px 20px; font-weight: 700; color: #86868b; font-size: 15px; transition: border-color 0.3s, color 0.3s, background-color 0.3s; }
body.dark-mode .card-header { background-color: rgba(44, 44, 46, 0.8); border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: #a1a1a6; }
.card-header-row { background-color: rgba(229, 229, 234, 0.4); border-top: 1px solid rgba(229, 229, 234, 0.6); border-bottom: 1px solid rgba(229, 229, 234, 0.6); transition: border-color 0.3s, background-color 0.3s; }
body.dark-mode .card-header-row { background-color: rgba(44, 44, 46, 0.4); border-top: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.td-label { width: 30%; font-weight: 700; color: #86868b; font-size: 13.5px; transition: color 0.3s; padding-top: 12px; padding-bottom: 12px; }
body.dark-mode .td-label { color: #a1a1a6; }
.td-value, .col-ip, .col-isp, .col-loc { color: #2563eb !important; font-size: 14.5px !important; font-weight: 600 !important; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important; word-break: break-word; letter-spacing: -0.01em; transition: color 0.3s; }
body.dark-mode .td-value, body.dark-mode .col-ip, body.dark-mode .col-isp, body.dark-mode .col-loc { color: #0A84FF !important; }
.td-value a { color: #2563eb !important; font-family: inherit !important; font-size: inherit !important; font-weight: inherit !important; text-decoration: none !important; transition: opacity 0.2s; cursor: pointer; }
body.dark-mode .td-value a { color: #0A84FF !important; }
.td-value a:hover { opacity: 0.7 !important; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.animate-breathe { animation: breathe 2s ease-in-out infinite; }
.fade-in { animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.ip-display { color: #2563eb; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 2px; padding: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; transition: color 0.3s; }
body.dark-mode .ip-display { color: #0A84FF; }
.icon-btn { background: transparent; border: none; padding: 8px; cursor: pointer; color: #86868b; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
body.dark-mode .icon-btn { color: #a1a1a6; }
.icon-btn:hover { background: rgba(232, 232, 237, 0.5); color: #1d1d1f; transform: scale(1.1); }
body.dark-mode .icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: #f5f5f7; }
.pill { display: inline-flex; align-items: center; justify-content: center; padding: 4px 14px; border-radius: 50px; font-size: 12px; font-weight: 700; border: 1px solid; white-space: nowrap; flex: 0 0 auto; letter-spacing: 0.02em; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.pill-safe { background-color: #f0fdf4; border-color: #bbf7d0; color: #16a34a; }
body.dark-mode .pill-safe { background-color: rgba(52, 199, 89, 0.15); border-color: rgba(52, 199, 89, 0.4); color: #32d74b; }
.pill-leak { background-color: rgba(255, 59, 48, 0.1); border-color: rgba(255, 59, 48, 0.3); color: #dc3545; }
body.dark-mode .pill-leak { background-color: rgba(255, 59, 48, 0.15); border-color: rgba(255, 59, 48, 0.4); color: #ff453a; }
.pill-count { background-color: rgba(229, 229, 234, 0.8); border-color: rgba(210, 210, 215, 0.5); color: #1d1d1f; }
body.dark-mode .pill-count { background-color: rgba(44, 44, 46, 0.8); border: 1px solid rgba(255, 255, 255, 0.08); color: #f5f5f7; }
.progress-track { height: 3px; width: 100%; background-color: rgba(229, 229, 234, 0.8); border-radius: 3px; margin-top: 14px; margin-bottom: 20px; overflow: hidden; transition: background-color 0.3s; }
body.dark-mode .progress-track { background-color: rgba(44, 44, 46, 0.8); }
.progress-bar { height: 100%; width: 100%; background: linear-gradient(90deg, #4285F4 0%, #EA4335 25%, #FBBC05 50%, #34A853 75%, #4285F4 100%); background-size: 200% 100%; opacity: 0; transition: opacity 0.3s ease; }
.progress-bar.active { opacity: 1; animation: rainbowSweep 1.5s linear infinite; }
@keyframes rainbowSweep { 0% { background-position: 200% 0; } 100% { background-position: 0 0; } }
.grid-row { display: grid; grid-template-columns: 85px minmax(200px, 1.8fr) minmax(160px, 1.5fr) minmax(150px, 1.3fr); gap: 12px; align-items: center; padding: 12px 20px; margin-bottom: 0; border-radius: 0; }
.table-header { font-size: 12px; font-weight: 700; color: #86868b; letter-spacing: 0.5px; padding-bottom: 8px; margin-bottom: 0; border: none !important; transition: color 0.3s; }
body.dark-mode .table-header { color: #a1a1a6; }
.dns-entry { background-color: transparent; border: none; border-bottom: 1px solid rgba(229, 229, 234, 0.6); transition: background-color 0.2s; box-shadow: none !important; }
body.dark-mode .dns-entry { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.dns-entry:nth-child(even) { background-color: rgba(245, 245, 247, 0.6); } 
body.dark-mode .dns-entry:nth-child(even) { background-color: rgba(255, 255, 255, 0.03); }
.dns-entry:hover { background-color: rgba(232, 232, 237, 0.8) !important; transform: none !important; }
body.dark-mode .dns-entry:hover { background-color: rgba(255, 255, 255, 0.08) !important; }
.dns-entry:last-child { border-bottom: none; }
.skeleton-box { background-color: transparent; border: 1px solid rgba(229, 229, 234, 0.6); border-radius: 12px; height: 46px; width: 100%; animation: pulse 1.5s infinite ease-in-out; transition: background-color 0.3s, border-color 0.3s; }
body.dark-mode .skeleton-box { border: 1px solid rgba(255, 255, 255, 0.08); }
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }
.col-proto { font-size: 12px; font-weight: 800; white-space: nowrap; }
.col-status { font-size: 12px; font-weight: 700; white-space: nowrap; letter-spacing: 0.5px; }
.col-ip { display: flex; align-items: center; gap: 5px; min-width: 0; cursor: pointer; }
.col-ip:hover { opacity: 0.8; }
.ip-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; display: block; }
.col-isp { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-loc { word-break: break-word; line-height: 1.3; }
.flip-in { animation: flipBoard 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes flipBoard { 0% { transform: perspective(400px) rotateX(-90deg); opacity: 0; } 100% { transform: perspective(400px) rotateX(0deg); opacity: 1; } }
@media (max-width: 850px) { 
    
    .grid-row { 
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; 
        gap: 10px 8px !important; 
        padding: 16px 20px !important; 
    } 
    .table-header { display: none !important; } 
    
    
    .col-ip, .col-loc { justify-content: flex-end !important; text-align: right !important; }
    
    
    .col-status, .col-ip, .col-isp, .col-loc {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        min-width: 0 !important;
    }

    
    /* 悬浮舱移动端适配 */
    .control-capsule-main { margin: 0 12px; padding: 10px 14px 6px 14px; gap: 10px; }
    .capsule-bottom-row { justify-content: center; } 
    
    /* 移动端操作按钮悬浮至右下角 */
    .action-btns-wrapper { position: static; transform: none; }
    .action-buttons {
        position: fixed; bottom: 82px; right: 20px; 
        background: rgba(245, 245, 247, 0.3); 
        backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
        border: 1px solid rgba(229, 229, 234, 0.6); border-radius: 30px; padding: 8px 4px; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.15); z-index: 1000;
        flex-direction: column !important; gap: 6px; display: flex !important;
    }
    body.dark-mode .action-buttons { background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.08); }
}
@media (max-width: 650px) { 
    .card-panel table, .card-panel tbody, .card-panel tr, .card-panel td { display: block; width: 100%; }
    .card-panel tr { border-bottom: 1px solid rgba(229, 229, 234, 0.6); margin-bottom: 4px; }
    body.dark-mode .card-panel tr { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    .divide-y-c > :not([hidden]) ~ :not([hidden]) { border-top: none; }
    .td-label { border-bottom: none !important; padding-bottom: 2px !important; padding-top: 10px !important; font-size: 12.5px; opacity: 0.8; }
    .td-value { border-bottom: none !important; padding-top: 2px !important; padding-bottom: 10px !important; }
    .ip-display { font-size: 22px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    #main-map .map-marker-capsule { 
        font-size: 16px !important; 
        padding: 2px 8px !important; 
        gap: 4px !important; 
        max-width: 55vw !important; 
    }
}
@keyframes floatPop { 0% { transform: scale(0.8) translateY(20px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
.pill-ip-c { display: inline-flex; align-items: center; max-width: 100%; padding: 0.25rem 0.75rem; background-color: rgba(37, 99, 235, 0.08); color: #2563eb; border: 1px solid rgba(37, 99, 235, 0.2); border-radius: 9999px; font-size: 14.5px; font-weight: 700; transition: all 0.3s; box-sizing: border-box; overflow: hidden; }
body.dark-mode .pill-ip-c { background-color: rgba(10, 132, 255, 0.15); color: #0A84FF; border: 1px solid rgba(10, 132, 255, 0.3); }
.ip-text-inner { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; min-width: 0; display: inline-block; }
.border-b-c { border-bottom: 1px solid rgba(229, 229, 234, 0.6); transition: border-color 0.3s; }
body.dark-mode .border-b-c { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.divide-y-c > :not([hidden]) ~ :not([hidden]) { border-top: 1px solid rgba(229, 229, 234, 0.6); transition: border-color 0.3s; }
body.dark-mode .divide-y-c > :not([hidden]) ~ :not([hidden]) { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.text-muted-c { color: #86868b; transition: color 0.3s; }
body.dark-mode .text-muted-c { color: #a1a1a6; }
.hover-bg-c:hover { background-color: rgba(232, 232, 237, 0.5); transition: background-color 0.3s; }
body.dark-mode .hover-bg-c:hover { background-color: rgba(255, 255, 255, 0.08) !important; }
.status-match-c { color: #34c759; }
body.dark-mode .status-match-c { color: #32d74b; }
.status-proxy-c { color: #ff9500; }
body.dark-mode .status-proxy-c { color: #ff9f0a; }
.leak-text-c { color: #dc3545; }
body.dark-mode .leak-text-c { color: #ff453a; }
.btn-close-c { color: #86868b; transition: color 0.3s; cursor: pointer; }
body.dark-mode .btn-close-c { color: #a1a1a6; }
.btn-close-c:hover { color: #dc3545; }
body.dark-mode .btn-close-c:hover { color: #ff453a; }
.svg-accent { color: #2563eb; transition: color 0.3s; fill: currentColor; }
body.dark-mode .svg-accent { color: #0A84FF; }
.text-accent { color: #2563eb; transition: color 0.3s; }
body.dark-mode .text-accent { color: #0A84FF; }
.dot-accent { background-color: #2563eb; transition: background-color 0.3s; }
body.dark-mode .dot-accent { background-color: #0A84FF; }
.dot-green { background-color: #22c55e; }
.btn-close-bg { fill: #1d1d1f; transition: fill 0.3s; }
body.dark-mode .btn-close-bg { fill: #f5f5f7; }
.btn-close-icon { stroke: #ffffff; transition: stroke 0.3s; }
body.dark-mode .btn-close-icon { stroke: #1d1d1f; }
.coin-stroke { stroke: #ffffff; transition: stroke 0.3s; }
body.dark-mode .coin-stroke { stroke: #1c1c1e; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.custom-marker { filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); transform-origin: bottom center; }
.map-marker-container { display: flex; flex-direction: column; align-items: center; cursor: default !important; user-select: none; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }
.map-marker-capsule { background: rgba(245, 245, 247, 0.3) !important; backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); color: #2563eb; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important; font-size: 32px !important; font-weight: 800 !important; padding: 2px 10px; border-radius: 9999px; border: 1px solid rgba(229, 229, 234, 0.6); box-shadow: 0 10px 30px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 6px; white-space: nowrap; z-index: 10; transition: transform 0.1s; max-width: 90vw; }
body.dark-mode .map-marker-capsule { background: rgba(0, 0, 0, 0.3) !important; color: #0A84FF !important; border: 1px solid rgba(255, 255, 255, 0.08) !important; box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important; }
.map-marker-arrow-svg { width: 24px; height: 12px; display: block; z-index: 5; margin-top: -1px; pointer-events: none; }.arrow-fill { fill: rgba(245, 245, 247, 0.5); }
body.dark-mode .arrow-fill { fill: rgba(0, 0, 0, 0.5) !important; }
.map-marker-pin-svg { display: block; filter: drop-shadow(0 3px 4px rgba(0,0,0,0.3)); z-index: 1; pointer-events: none !important; animation: markerFloat 3s ease-in-out infinite; }
.map-marker-capsule + .map-marker-arrow-svg + .map-marker-pin-svg { margin-top: 2px; }
@keyframes markerFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.leaflet-control-container .leaflet-top { top: 244px !important; }
.sticky-footer { position: fixed !important; bottom: 0 !important; left: 0 !important; width: 100% !important; z-index: 9999 !important; display: flex !important; justify-content: center !important; align-items: center !important; padding: 1rem 0 !important; padding-bottom: calc(1rem + env(safe-area-inset-bottom)) !important; background-color: rgba(245, 245, 247, 0.6) !important; backdrop-filter: blur(25px) saturate(180%) !important; -webkit-backdrop-filter: blur(25px) saturate(180%) !important; border-top: 1px solid rgba(229, 229, 234, 0.6) !important; box-sizing: border-box !important; }
body.dark-mode .sticky-footer { background-color: rgba(0, 0, 0, 0.3) !important; border-top: 1px solid rgba(255, 255, 255, 0.08) !important; }
.content-layer { padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important; }

.grid-info-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0;
    width: 100%;
    background: transparent;
}

@media (min-width: 641px) {
    .grid-info-container > div:nth-child(even) {
        border-left: 1px solid rgba(229, 229, 234, 0.6);
    }
    body.dark-mode .grid-info-container > div:nth-child(even) {
        border-left: 1px solid rgba(255, 255, 255, 0.08);
    }
}

.grid-info-container .td-label, 
.grid-info-container .td-value {
    border-bottom: none !important;
}

.status-bar-groove {
    background: linear-gradient(90deg, transparent 0%, rgba(229, 229, 234, 0.65) 15%, rgba(229, 229, 234, 0.65) 85%, transparent 100%);
    border-top: 1px solid rgba(229, 229, 234, 0.5);
    border-bottom: 1px solid rgba(229, 229, 234, 0.5);
    transition: background 0.3s, border-color 0.3s;
}
body.dark-mode .status-bar-groove {
    background: linear-gradient(90deg, transparent 0%, rgba(44, 44, 46, 0.65) 15%, rgba(44, 44, 46, 0.65) 85%, transparent 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-map-overlay {
    background: rgba(80, 80, 80, 0.55) !important; 
    border: 1px solid rgba(255, 255, 255, 0.3) !important; 
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
    display: flex; align-items: center !important; justify-content: center !important;
    border-radius: 50% !important; cursor: pointer !important; padding: 0 !important;
    transition: transform 0.2s, background 0.3s !important;
}
.btn-map-overlay:hover { transform: scale(1.1) !important; }


.card-ip-text { font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
@media (max-width: 1650px) { 
    .card-ip-text { font-size: 24px !important; }
    .map-marker-capsule { font-size: 24px !important; padding: 2px 10px !important; }
}
@media (max-width: 1300px) { 
    .card-ip-text { font-size: 22px !important; }
    .map-marker-capsule { font-size: 22px !important; padding: 2px 8px !important; }
}

#top-client-ip[title="Loading..."] ~ .top-jump-arrow {
    display: none !important;
}