#svtm-root {
    position: relative;
    z-index: 1;
    margin: 20px 0;
    font-family: system-ui, -apple-system, sans-serif;
    color: #fff;
}
.svtm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.svtm-card {
    background: rgba(20, 18, 26, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.25s ease,
                border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}
.svtm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.svtm-card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 0 20px rgba(179, 154, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border-color: rgba(179, 154, 255, 0.15);
}
.svtm-card:hover::before {
    opacity: 1;
}
.svtm-card-title {
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1px;
    margin: 0 0 8px;
    font-weight: 500;
}
.svtm-card-value {
    font-size: 2.8rem;
    font-weight: 300;
    color: #fff;
    margin: 0;
    transition: color 0.2s ease;
}
.svtm-card-value.active {
    color: #4dff8f;
}
.svtm-card-value.realtime {
    animation: pulse-bg 2s infinite;
}
.svtm-card:hover .svtm-card-value {
    color: #b39aff;
}
.svtm-card:hover .svtm-card-value.active {
    color: #4dff8f;
}
@keyframes pulse-bg {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}
.svtm-chart-wrapper {
    background: rgba(20, 18, 26, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.svtm-chart-wrapper:hover {
    border-color: rgba(179, 154, 255, 0.12);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35), 0 0 20px rgba(179, 154, 255, 0.03);
}
.svtm-chart-wrapper h2 {
    margin: 0 0 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.svtm-chart-container {
    position: relative;
    height: 250px;
}
.svtm-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 782px) {
    .svtm-two-col { grid-template-columns: 1fr; }
}
.svtm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.svtm-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.svtm-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
}
.svtm-table tr:last-child td {
    border-bottom: none;
}
.svtm-table tr {
    transition: background 0.2s ease;
}
.svtm-table tr:hover td {
    background: rgba(179, 154, 255, 0.04);
}
.svtm-table tr td:first-child {
    border-radius: 6px 0 0 6px;
}
.svtm-table tr td:last-child {
    border-radius: 0 6px 6px 0;
}
.svtm-flag {
    font-size: 16px;
    margin-right: 4px;
}
.svtm-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.svtm-badge-active {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}
.svtm-recent-scroll {
    max-height: 400px;
    overflow-y: auto;
}
.svtm-recent-scroll::-webkit-scrollbar {
    width: 6px;
}
.svtm-recent-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.svtm-recent-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    transition: background 0.2s ease;
}
.svtm-recent-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

#svtm-map {
    border-radius: 0 0 12px 12px;
    z-index: 1;
}
#svtm-map .leaflet-control-zoom a {
    text-decoration: none;
}
.svtm-marker {
    background: none !important;
    border: none !important;
}
.svtm-popup {
    font-size: 13px;
    line-height: 1.6;
    min-width: 180px;
}
.svtm-popup strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}
.svtm-popup b {
    color: rgba(255, 255, 255, 0.45);
}
#svtm-root .leaflet-popup-content-wrapper {
    background: rgba(20, 18, 26, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
#svtm-root .leaflet-popup-content {
    margin: 12px 16px;
    font-size: 13px;
    line-height: 1.6;
}
#svtm-root .leaflet-popup-tip {
    background: rgba(20, 18, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
#svtm-root .leaflet-popup-close-button {
    color: rgba(255, 255, 255, 0.3) !important;
    transition: color 0.2s ease;
}
#svtm-root .leaflet-popup-close-button:hover {
    color: #fff !important;
}

@property --mesh-x-0 { syntax: '<percentage>'; inherits: false; initial-value: 93%; }
@property --mesh-y-0 { syntax: '<percentage>'; inherits: false; initial-value: 93%; }
@property --mesh-x-1 { syntax: '<percentage>'; inherits: false; initial-value: 26%; }
@property --mesh-y-1 { syntax: '<percentage>'; inherits: false; initial-value: 9%; }
@property --mesh-x-2 { syntax: '<percentage>'; inherits: false; initial-value: 15%; }
@property --mesh-y-2 { syntax: '<percentage>'; inherits: false; initial-value: 79%; }
@property --mesh-x-3 { syntax: '<percentage>'; inherits: false; initial-value: 40%; }
@property --mesh-y-3 { syntax: '<percentage>'; inherits: false; initial-value: 104%; }
@property --mesh-x-4 { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@property --mesh-y-4 { syntax: '<percentage>'; inherits: false; initial-value: 60%; }
@property --mesh-x-5 { syntax: '<percentage>'; inherits: false; initial-value: 92%; }
@property --mesh-y-5 { syntax: '<percentage>'; inherits: false; initial-value: 37%; }
@property --mesh-x-6 { syntax: '<percentage>'; inherits: false; initial-value: 101%; }
@property --mesh-y-6 { syntax: '<percentage>'; inherits: false; initial-value: 16%; }
@property --mesh-x-7 { syntax: '<percentage>'; inherits: false; initial-value: 90%; }
@property --mesh-y-7 { syntax: '<percentage>'; inherits: false; initial-value: 13%; }
@property --mesh-x-8 { syntax: '<percentage>'; inherits: false; initial-value: 104%; }
@property --mesh-y-8 { syntax: '<percentage>'; inherits: false; initial-value: 56%; }
@property --mesh-x-9 { syntax: '<percentage>'; inherits: false; initial-value: 97%; }
@property --mesh-y-9 { syntax: '<percentage>'; inherits: false; initial-value: 19%; }

.svtm-mesh-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.5;
    background-color: hsl(305, 0%, 0%);
    background-image:
        radial-gradient(circle at var(--mesh-x-0) var(--mesh-y-0), hsl(212, 0%, 0%) 0%, transparent 50%),
        radial-gradient(circle at var(--mesh-x-1) var(--mesh-y-1), hsl(212, 0%, 0%) 0%, transparent 50%),
        radial-gradient(circle at var(--mesh-x-2) var(--mesh-y-2), hsla(257, 91%, 27%, 0.35) 0%, transparent 50%),
        radial-gradient(circle at var(--mesh-x-3) var(--mesh-y-3), rgba(21, 78, 66, 0.88) 0%, transparent 50%),
        radial-gradient(circle at var(--mesh-x-4) var(--mesh-y-4), hsl(224, 72%, 36%) 0%, transparent 50%),
        radial-gradient(circle at var(--mesh-x-5) var(--mesh-y-5), rgba(15, 5, 30, 0.88) 0%, transparent 50%),
        radial-gradient(circle at var(--mesh-x-6) var(--mesh-y-6), hsla(212, 100%, 50%, 0.19) 0%, transparent 50%),
        radial-gradient(circle at var(--mesh-x-7) var(--mesh-y-7), hsl(227, 98%, 53%) 0%, transparent 50%),
        radial-gradient(circle at var(--mesh-x-8) var(--mesh-y-8), hsla(166, 71%, 60%, 0.32) 0%, transparent 50%),
        radial-gradient(circle at var(--mesh-x-9) var(--mesh-y-9), hsla(219, 83%, 23%, 0.18) 0%, transparent 50%);
    background-blend-mode: normal, normal, normal, normal, normal, normal, normal, normal, normal, normal;
    animation: background-animated-mesh 20s ease-in-out infinite alternate;
    pointer-events: none;
}

.svtm-dashboard-heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.svtm-dashboard-heading h1 {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin: 0;
    background: linear-gradient(90deg, #fff 49%, transparent 51%);
    background-size: 200% 100%;
    background-position: 100% 0;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: headingReveal 1.4s cubic-bezier(0.83, 0, 0.17, 1) 0.3s forwards;
}

.svtm-dashboard-icon {
    height: 4em;
    width: auto;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 10px;
}

@keyframes headingReveal {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0% 0;
    }
}

@keyframes background-animated-mesh {
    0% {
        --mesh-x-0: 100%; --mesh-y-0: 90%;
        --mesh-x-1: 20%; --mesh-y-1: 5%;
        --mesh-x-2: 10%; --mesh-y-2: 80%;
        --mesh-x-3: 35%; --mesh-y-3: 100%;
        --mesh-x-4: 0%; --mesh-y-4: 55%;
        --mesh-x-5: 90%; --mesh-y-5: 40%;
        --mesh-x-6: 100%; --mesh-y-6: 20%;
        --mesh-x-7: 85%; --mesh-y-7: 10%;
        --mesh-x-8: 100%; --mesh-y-8: 60%;
        --mesh-x-9: 95%; --mesh-y-9: 15%;
    }
    50% {
        --mesh-x-0: 80%; --mesh-y-0: 70%;
        --mesh-x-1: 40%; --mesh-y-1: 30%;
        --mesh-x-2: 30%; --mesh-y-2: 60%;
        --mesh-x-3: 50%; --mesh-y-3: 80%;
        --mesh-x-4: 20%; --mesh-y-4: 40%;
        --mesh-x-5: 70%; --mesh-y-5: 50%;
        --mesh-x-6: 80%; --mesh-y-6: 30%;
        --mesh-x-7: 70%; --mesh-y-7: 35%;
        --mesh-x-8: 80%; --mesh-y-8: 70%;
        --mesh-x-9: 60%; --mesh-y-9: 40%;
    }
    100% {
        --mesh-x-0: 60%; --mesh-y-0: 50%;
        --mesh-x-1: 60%; --mesh-y-1: 50%;
        --mesh-x-2: 50%; --mesh-y-2: 40%;
        --mesh-x-3: 70%; --mesh-y-3: 60%;
        --mesh-x-4: 40%; --mesh-y-4: 20%;
        --mesh-x-5: 50%; --mesh-y-5: 60%;
        --mesh-x-6: 60%; --mesh-y-6: 40%;
        --mesh-x-7: 50%; --mesh-y-7: 60%;
        --mesh-x-8: 60%; --mesh-y-8: 80%;
        --mesh-x-9: 40%; --mesh-y-9: 60%;
    }
}

@keyframes pulse-marker {
    0% { box-shadow: 0 0 0 0 rgba(77,255,143,.6); }
    70% { box-shadow: 0 0 0 12px rgba(77,255,143,0); }
    100% { box-shadow: 0 0 0 0 rgba(77,255,143,0); }
}
@keyframes pulse-admin {
    0% { box-shadow: 0 0 0 0 rgba(179,154,255,.6), 0 0 20px rgba(179,154,255,.3); }
    70% { box-shadow: 0 0 0 14px rgba(179,154,255,0), 0 0 30px rgba(179,154,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(179,154,255,0), 0 0 20px rgba(179,154,255,0); }
}

.svtm-dashboard code {
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.svtm-chart-wrapper:has(canvas) {
    position: relative;
}

.svtm-chart-wrapper:has(canvas)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(179, 154, 255, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.svtm-chart-wrapper:has(canvas):hover::after {
    opacity: 1;
}

.svtm-card {
    animation: cardFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.svtm-chart-wrapper {
    animation: cardFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

#svtm-map-section {
    animation: cardFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
