/* =========================================================
   GTKZ FORGE — NATIVE GLOBAL NETWORK MAP
   No external map library.
   ========================================================= */

.gtkz-global-map-shell {
    position: relative !important;

    width: 100% !important;
    height: 100% !important;
    min-height: 150px !important;

    overflow: hidden !important;

    border:
        1px solid rgba(34,112,164,.18) !important;

    border-radius:
        8px !important;

    background:
        radial-gradient(
            ellipse at 50% 50%,
            rgba(11,62,98,.28),
            rgba(2,13,24,.96) 68%
        ) !important;
}


.gtkz-global-map {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;
}


.gtkz-native-world {
    width: 100%;
    height: 100%;

    display: block;
}


/* Globe/grid */

.gtkz-map-grid {
    fill: none;

    stroke:
        rgba(44,113,157,.16);

    stroke-width:
        1;
}


.gtkz-map-equator {
    stroke:
        rgba(38,151,214,.24);

    stroke-width:
        1.2;
}


/* Continents */

.gtkz-continent {
    fill:
        rgba(19,58,86,.82);

    stroke:
        rgba(50,139,193,.58);

    stroke-width:
        1.3;

    vector-effect:
        non-scaling-stroke;

    transition:
        fill .18s ease,
        stroke .18s ease,
        filter .18s ease;
}


.gtkz-continent:hover {
    fill:
        rgba(24,91,133,.92);

    stroke:
        rgba(62,190,255,.88);

    filter:
        drop-shadow(
            0 0 5px
            rgba(17,156,239,.25)
        );
}


/* Network hub lines */

.gtkz-network-line {
    fill: none;

    stroke:
        rgba(22,140,217,.18);

    stroke-width:
        1;

    stroke-dasharray:
        4 6;
}


/* Actual activity marker */

.gtkz-map-marker-ring {
    fill:
        rgba(0,232,148,.11);

    stroke:
        rgba(0,232,148,.38);

    stroke-width:
        1;

    transform-box:
        fill-box;

    transform-origin:
        center;

    animation:
        gtkzMapPulse 1.8s
        ease-out infinite;
}


.gtkz-map-marker-core {
    fill:
        #00e894;

    filter:
        drop-shadow(
            0 0 5px
            rgba(0,232,148,.85)
        );
}


@keyframes gtkzMapPulse {

    0% {
        opacity: .95;
        transform: scale(.5);
    }

    80% {
        opacity: 0;
        transform: scale(1.8);
    }

    100% {
        opacity: 0;
        transform: scale(1.8);
    }
}


.gtkz-marker-label-bg {
    fill:
        rgba(3,20,34,.92);

    stroke:
        rgba(0,232,148,.34);

    stroke-width:
        1;
}


.gtkz-marker-label {
    fill:
        #dff8ff;

    font-size:
        12px;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-weight:
        700;
}


.gtkz-marker-sub {
    fill:
        #71a5c4;

    font-size:
        9px;

    font-family:
        Inter,
        system-ui,
        sans-serif;
}


/* Center identity */

.gtkz-map-center-label {
    fill:
        rgba(79,179,235,.56);

    font-size:
        12px;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-weight:
        800;

    letter-spacing:
        4px;

    text-anchor:
        middle;
}


/* Bottom-right counter */

.gtkz-map-tenant-count {
    position: absolute;

    right: 9px;
    bottom: 8px;

    z-index: 8;

    display: flex;

    align-items: baseline;

    gap: 5px;

    padding:
        4px 7px;

    border:
        1px solid
        rgba(28,143,211,.28);

    border-radius:
        6px;

    background:
        rgba(2,18,31,.76);
}


.gtkz-map-tenant-count strong {
    color:
        #00e894;

    font-size:
        12px;
}


.gtkz-map-tenant-count span {
    color:
        #7fa8c3;

    font-size:
        7px;

    text-transform:
        uppercase;

    letter-spacing:
        .05em;
}


/* Tenant strip */

.gtkz-global-tenants {
    margin-top:
        6px;
}


.gtkz-global-tenant {
    min-height:
        34px;

    padding:
        5px 7px;

    display:
        grid;

    grid-template-columns:
        12px minmax(0,1fr) auto;

    align-items:
        center;

    gap:
        7px;

    border:
        1px solid
        rgba(41,128,184,.24);

    border-radius:
        7px;

    background:
        rgba(4,20,35,.68);
}


.gtkz-tenant-pulse {
    width:
        8px;

    height:
        8px;

    border-radius:
        50%;

    background:
        #00e894;

    box-shadow:
        0 0 8px
        rgba(0,232,148,.65);
}


.gtkz-tenant-copy {
    min-width:
        0;

    display:
        flex;

    flex-direction:
        column;

    line-height:
        1.1;
}


.gtkz-tenant-copy strong {
    color:
        #fff;

    font-size:
        9px;
}


.gtkz-tenant-copy small {
    margin-top:
        2px;

    color:
        #7197b2;

    font-size:
        7px;
}


.gtkz-tenant-status {
    color:
        #00e894;

    font-size:
        7px;

    font-weight:
        800;
}


/* Website indicator inside Device Types */

.gtkz-website-device-row {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        8px;
}


.gtkz-website-device-name {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        4px;
}


.gtkz-website-device-icon {
    width:
        11px;

    height:
        11px;

    fill:
        none;

    stroke:
        #58caff;

    stroke-width:
        1.7;
}


.gtkz-website-device-domain {
    color:
        #6f9bb7;

    font-size:
        7px;

    margin-left:
        3px;
}


/* =========================================================
   GTKZ GLOBAL ACTIVITY — COMMERCIAL CLIENT DRAWER
   Drawer remains INSIDE map geometry.
   ========================================================= */


/*
 * The map owns the entire visual area.
 * Nothing beneath it may increase analytics-row height.
 */
.gtkz-global-map-shell {
    position: relative !important;

    min-height: 0 !important;
    height: 100% !important;

    overflow: hidden !important;

    border:
        1px solid rgba(36,130,189,.28) !important;

    background:
        radial-gradient(
            ellipse at 48% 45%,
            rgba(7,57,91,.36),
            rgba(2,13,24,.98) 72%
        ) !important;

    box-shadow:
        inset 0 0 30px
        rgba(0,110,190,.035) !important;
}


/*
 * Existing tenant strip no longer participates in page flow.
 * JS moves it inside the map.
 */
.gtkz-global-tenants {
    position:
        absolute !important;

    left:
        8px !important;

    right:
        8px !important;

    bottom:
        8px !important;

    z-index:
        30 !important;

    margin:
        0 !important;

    pointer-events:
        auto !important;
}


/* ---------------------------------------------------------
   DRAWER
   --------------------------------------------------------- */

.gtkz-client-drawer {
    position:
        absolute;

    left:
        8px;

    right:
        8px;

    bottom:
        8px;

    z-index:
        40;

    border:
        1px solid
        rgba(39,137,197,.32);

    border-radius:
        8px;

    background:
        rgba(3,18,31,.94);

    box-shadow:
        0 10px 28px
        rgba(0,0,0,.30);

    backdrop-filter:
        blur(12px);

    overflow:
        hidden;
}


/*
 * Collapsed drawer = only command bar.
 */
.gtkz-client-drawer:not(.expanded)
.gtkz-client-list {
    display:
        none;
}


/* ---------------------------------------------------------
   DRAWER COMMAND BAR
   --------------------------------------------------------- */

.gtkz-client-drawer-head {
    min-height:
        32px;

    padding:
        4px 7px 4px 9px;

    display:
        grid;

    grid-template-columns:
        1fr auto;

    align-items:
        center;

    gap:
        8px;

    cursor:
        pointer;

    user-select:
        none;
}


.gtkz-client-drawer-head:hover {
    background:
        rgba(10,47,76,.42);
}


.gtkz-client-drawer-title {
    display:
        flex;

    align-items:
        center;

    gap:
        7px;

    color:
        #8dbbd8;

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        .075em;

    text-transform:
        uppercase;
}


.gtkz-client-drawer-title strong {
    color:
        #00e894;

    font-size:
        11px;
}


.gtkz-client-drawer-toggle {
    width:
        24px;

    height:
        24px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        rgba(55,157,218,.30);

    border-radius:
        6px;

    background:
        rgba(5,29,48,.72);

    color:
        #8fdcff;

    cursor:
        pointer;
}


.gtkz-client-drawer-toggle svg {
    width:
        12px;

    height:
        12px;

    fill:
        none;

    stroke:
        currentColor;

    stroke-width:
        2;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;

    transition:
        transform .18s ease;
}


.gtkz-client-drawer.expanded
.gtkz-client-drawer-toggle svg {
    transform:
        rotate(180deg);
}


/* ---------------------------------------------------------
   FUTURE-SAFE CLIENT LIST
   Opens UP inside map; dashboard height does not change.
   --------------------------------------------------------- */

.gtkz-client-list {
    max-height:
        118px;

    overflow-y:
        auto;

    padding:
        0 6px 6px;

    scrollbar-width:
        thin;
}


.gtkz-client-list::-webkit-scrollbar {
    width:
        5px;
}


.gtkz-client-list::-webkit-scrollbar-thumb {
    border-radius:
        8px;

    background:
        rgba(46,139,196,.42);
}


/* ---------------------------------------------------------
   CLIENT ROW
   Website | Client Name | Status
   --------------------------------------------------------- */

.gtkz-client-row {
    min-height:
        35px;

    display:
        grid;

    grid-template-columns:
        minmax(110px, 1fr)
        minmax(100px, 1fr)
        60px;

    align-items:
        center;

    gap:
        10px;

    padding:
        4px 8px;

    border-top:
        1px solid
        rgba(48,111,151,.18);
}


.gtkz-client-row:hover {
    background:
        rgba(10,44,70,.45);
}


/* Website / live link */

.gtkz-client-site {
    min-width:
        0;

    display:
        inline-flex;

    align-items:
        center;

    gap:
        6px;

    color:
        #99cae6;

    text-decoration:
        none;

    font-size:
        8px;

    white-space:
        nowrap;

    overflow:
        hidden;

    text-overflow:
        ellipsis;
}


.gtkz-client-site:hover {
    color:
        #ffffff;

    text-decoration:
        underline;
}


.gtkz-client-site-dot {
    width:
        7px;

    height:
        7px;

    flex:
        0 0 7px;

    border-radius:
        50%;

    background:
        #00e894;

    box-shadow:
        0 0 7px
        rgba(0,232,148,.65);
}


/* Center client identity */

.gtkz-client-name-button {
    min-width:
        0;

    padding:
        0;

    border:
        0;

    background:
        none;

    color:
        #ffffff;

    text-align:
        center;

    font-size:
        9px;

    font-weight:
        800;

    white-space:
        nowrap;

    overflow:
        hidden;

    text-overflow:
        ellipsis;

    cursor:
        pointer;
}


.gtkz-client-name-button:hover {
    color:
        #62cfff;
}


/* Status far right */

.gtkz-client-state {
    justify-self:
        end;

    color:
        #00e894;

    font-size:
        7px;

    font-weight:
        850;

    letter-spacing:
        .06em;

    text-transform:
        uppercase;
}


/* ---------------------------------------------------------
   MAP ITSELF — refinement
   --------------------------------------------------------- */

.gtkz-map-center-label {
    font-size:
        9px !important;

    letter-spacing:
        3px !important;

    opacity:
        .40 !important;
}


.gtkz-continent {
    fill:
        rgba(13,51,78,.88) !important;

    stroke:
        rgba(36,137,196,.72) !important;

    stroke-width:
        1.15 !important;
}


.gtkz-map-grid {
    stroke:
        rgba(43,110,153,.105) !important;
}


.gtkz-map-equator {
    stroke:
        rgba(38,151,214,.15) !important;
}


/*
 * Old bottom-right tenant badge is redundant after drawer.
 */
.gtkz-map-tenant-count {
    display:
        none !important;
}


/* ---------------------------------------------------------
   CLIENT PROFILE
   --------------------------------------------------------- */

.gtkz-client-profile-backdrop {
    position:
        fixed;

    inset:
        0;

    z-index:
        99998;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        20px;

    background:
        rgba(0,8,15,.64);

    backdrop-filter:
        blur(5px);
}


.gtkz-client-profile-backdrop[hidden] {
    display:
        none !important;
}


.gtkz-client-profile {
    width:
        min(420px, 94vw);

    border:
        1px solid
        rgba(51,169,235,.48);

    border-radius:
        12px;

    background:
        linear-gradient(
            180deg,
            #071c30,
            #031321
        );

    box-shadow:
        0 25px 75px
        rgba(0,0,0,.55);

    overflow:
        hidden;
}


.gtkz-client-profile-head {
    min-height:
        54px;

    padding:
        11px 13px;

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    border-bottom:
        1px solid
        rgba(46,125,175,.22);
}


.gtkz-client-profile-title {
    display:
        flex;

    flex-direction:
        column;
}


.gtkz-client-profile-title strong {
    color:
        #ffffff;

    font-size:
        15px;
}


.gtkz-client-profile-title span {
    margin-top:
        3px;

    color:
        #00e894;

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        .06em;
}


.gtkz-client-profile-close {
    width:
        29px;

    height:
        29px;

    border:
        1px solid
        rgba(79,155,202,.27);

    border-radius:
        7px;

    background:
        #071827;

    color:
        #b5d4e8;

    cursor:
        pointer;
}


.gtkz-client-profile-body {
    padding:
        14px;
}


.gtkz-profile-row {
    min-height:
        38px;

    display:
        grid;

    grid-template-columns:
        120px 1fr;

    align-items:
        center;

    gap:
        12px;

    border-bottom:
        1px solid
        rgba(49,112,150,.14);
}


.gtkz-profile-label {
    color:
        #7397af;

    font-size:
        8px;

    text-transform:
        uppercase;

    letter-spacing:
        .055em;
}


.gtkz-profile-value {
    color:
        #dff4ff;

    font-size:
        10px;

    font-weight:
        650;
}


.gtkz-profile-value a {
    color:
        #61cfff;

    text-decoration:
        none;
}


/*
 * Critical geometry rule:
 * client drawer overlays inside the map and NEVER
 * pushes the action-button row.
 */
.analytics > .panel:first-child {
    overflow:
        hidden !important;
}


/* =========================================================
   GTKZ TENANT PUBLIC VISIBILITY CONTROLS
   ========================================================= */

.gtkz-public-settings {
    margin-top: 14px;

    padding: 12px;

    border:
        1px solid rgba(45,139,196,.26);

    border-radius:
        8px;

    background:
        rgba(4,20,34,.70);
}


.gtkz-public-settings-title {
    margin-bottom:
        4px;

    color:
        #ffffff;

    font-size:
        11px;

    font-weight:
        800;
}


.gtkz-public-settings-sub {
    margin-bottom:
        10px;

    color:
        #7196af;

    font-size:
        8px;

    line-height:
        1.45;
}


.gtkz-public-setting {
    min-height:
        36px;

    display:
        grid;

    grid-template-columns:
        minmax(0,1fr) auto;

    align-items:
        center;

    gap:
        12px;

    border-top:
        1px solid rgba(48,112,151,.14);
}


.gtkz-public-setting:first-of-type {
    border-top:
        0;
}


.gtkz-public-setting-copy {
    display:
        flex;

    flex-direction:
        column;
}


.gtkz-public-setting-copy strong {
    color:
        #dff5ff;

    font-size:
        9px;
}


.gtkz-public-setting-copy small {
    margin-top:
        2px;

    color:
        #688ca4;

    font-size:
        7px;
}


/* Commercial switch */

.gtkz-visibility-switch {
    position:
        relative;

    width:
        34px;

    height:
        18px;

    display:
        inline-block;
}


.gtkz-visibility-switch input {
    position:
        absolute;

    opacity:
        0;

    pointer-events:
        none;
}


.gtkz-visibility-slider {
    position:
        absolute;

    inset:
        0;

    border:
        1px solid rgba(74,125,158,.36);

    border-radius:
        20px;

    background:
        #0b2235;

    cursor:
        pointer;

    transition:
        .18s ease;
}


.gtkz-visibility-slider::before {
    content:
        "";

    position:
        absolute;

    width:
        12px;

    height:
        12px;

    left:
        2px;

    top:
        2px;

    border-radius:
        50%;

    background:
        #7893a4;

    transition:
        .18s ease;
}


.gtkz-visibility-switch
input:checked
+
.gtkz-visibility-slider {
    border-color:
        rgba(0,232,148,.64);

    background:
        rgba(0,116,81,.48);
}


.gtkz-visibility-switch
input:checked
+
.gtkz-visibility-slider::before {
    transform:
        translateX(16px);

    background:
        #00e894;

    box-shadow:
        0 0 7px
        rgba(0,232,148,.55);
}


/* Public listing badge */

.gtkz-client-public-badge {
    margin-left:
        5px;

    padding:
        2px 5px;

    border:
        1px solid rgba(52,160,220,.30);

    border-radius:
        999px;

    color:
        #73cbf8;

    font-size:
        6px;

    font-weight:
        800;

    letter-spacing:
        .05em;

    text-transform:
        uppercase;
}


/*
 * Disabled/non-linked website presentation
 */
.gtkz-client-site.disabled {
    color:
        #58788e;

    text-decoration:
        none;

    cursor:
        default;
}


.gtkz-client-site.disabled
.gtkz-client-site-dot {
    background:
        #526c7d;

    box-shadow:
        none;
}
