/*==================================================
  WILDSTYLE LISTENER MAP
  PART 2 - DASHBOARD LAYOUT
==================================================*/

.listener-dashboard{
    display:flex;
    flex-direction:column;
    gap:32px;
    margin:40px 0;
}

/* ================= HERO ================= */

.hero-banner{
    display:grid;
    grid-template-columns:1.3fr 1fr;
    gap:30px;
    align-items:center;
}

.hero-left h1{
    font-size:clamp(2.6rem,5vw,4rem);
    line-height:1.05;
    margin-bottom:18px;
    font-weight:800;
}

.hero-left p{
    max-width:650px;
    color:var(--muted);
    line-height:1.8;
    font-size:1.05rem;
}

.hero-right{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
}

.hero-card{
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    backdrop-filter:blur(18px);
    border-radius:22px;
    padding:24px;
    transition:.3s;
}

.hero-card:hover{
    transform:translateY(-4px);
    border-color:#ff2a6d;
    box-shadow:0 0 30px rgba(255,42,109,.25);
}

.hero-label{
    display:block;
    font-size:.8rem;
    text-transform:uppercase;
    letter-spacing:.12em;
    color:var(--muted);
    margin-bottom:10px;
}

.hero-card h2{
    margin:0;
    font-size:2rem;
    font-weight:800;
}

/* ================= LIVE BADGE ================= */

.live-pill{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:8px 18px;
    border-radius:999px;
    background:rgba(255,42,109,.12);
    color:#fff;
    font-weight:700;
    border:1px solid rgba(255,42,109,.35);
}

.live-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background:#ff2a6d;
    animation:livePulse 1.5s infinite;
}

@keyframes livePulse{

    0%{
        transform:scale(.8);
        opacity:.7;
    }

    50%{
        transform:scale(1.4);
        opacity:1;
    }

    100%{
        transform:scale(.8);
        opacity:.7;
    }

}

/* ================= MAP PANEL ================= */

.map-panel{
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    border-radius:28px;
    overflow:hidden;
    backdrop-filter:blur(18px);
}

.panel-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:28px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.panel-header h2{
    margin:0;
    font-size:1.6rem;
}

.panel-header p{
    margin-top:6px;
    color:var(--muted);
}

/* ================= MAP ================= */

.map-wrap{

    position:relative;

    height:620px;

    overflow:hidden;

    border-radius:24px;

    background:
        radial-gradient(circle at top,#241742 0%,#090c18 100%);

}

/* ================= LOWER GRID ================= */

.dashboard-grid{
    display:grid;
    grid-template-columns:380px 1fr;
    gap:28px;
}

.dashboard-card{
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    border-radius:24px;
    backdrop-filter:blur(18px);
    overflow:hidden;
}

.card-header{
    padding:22px 24px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.card-header h3{
    margin:0;
}

/* ================= MOBILE ================= */

@media(max-width:1100px){

.hero-banner{
    grid-template-columns:1fr;
}

.hero-right{
    grid-template-columns:repeat(2,1fr);
}

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

}

@media(max-width:700px){

.hero-right{
    grid-template-columns:1fr;
}

.map-wrap{
    height:420px;
}

.hero-card h2{
    font-size:1.5rem;
}

.hero-left h1{
    font-size:2.4rem;
}

}

/*==================================================
  PART 3
  MAP • MARKERS • ACTIVITY
==================================================*/

/* ---------- World Map ---------- */

.map-svg{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    opacity:.30;
    pointer-events:none;
}

.map-svg svg{
    width:100%;
    height:100%;
}

.map-svg path{
    fill:#182339;
    stroke:#4cc9ff;
    stroke-width:1;
    transition:.35s;
}

/* ---------- Listener Marker ---------- */

.listener-dot{

    position:absolute;

    width:14px;

    height:14px;

    border-radius:50%;

    background:#ff2a6d;

    border:2px solid #fff;

    transform:translate(-50%,-50%);

    box-shadow:
        0 0 10px #ff2a6d,
        0 0 25px rgba(255,42,109,.75);

    cursor:pointer;

    z-index:20;

    transition:.25s;

}

.listener-dot:hover{

    transform:
        translate(-50%,-50%)
        scale(1.4);

}

/* ---------- Expanding Ring ---------- */

.listener-dot::before{

    content:"";

    position:absolute;

    inset:-8px;

    border-radius:50%;

    border:2px solid rgba(255,42,109,.45);

    animation:ring 2.4s infinite;

}

@keyframes ring{

0%{

    transform:scale(.4);

    opacity:1;

}

70%{

    transform:scale(2.3);

    opacity:0;

}

100%{

    opacity:0;

}

}

/* ---------- New Listener ---------- */

.listener-dot-new{

    background:#00d4ff;

    box-shadow:
        0 0 12px #00d4ff,
        0 0 30px rgba(0,212,255,.9);

}

/* ---------- Tooltip ---------- */

.listener-dot::after{

    content:attr(data-label);

    position:absolute;

    left:50%;

    bottom:160%;

    transform:translateX(-50%);

    white-space:nowrap;

    padding:8px 14px;

    border-radius:10px;

    background:#111827;

    color:#fff;

    font-size:.78rem;

    font-weight:600;

    opacity:0;

    pointer-events:none;

    transition:.25s;

    border:1px solid rgba(255,255,255,.1);

    box-shadow:
        0 10px 25px rgba(0,0,0,.4);

}

.listener-dot:hover::after{

    opacity:1;

}

/* ---------- Country List ---------- */

.country-list{

    display:flex;

    flex-direction:column;

}

.country-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 22px;

    border-bottom:1px solid rgba(255,255,255,.06);

    transition:.25s;

}

.country-row:hover{

    background:rgba(255,255,255,.03);

}

.country-row:last-child{

    border-bottom:none;

}

.country-row b{

    font-size:1rem;

}

.country-row small{

    color:var(--muted);

}

/* ---------- Badges ---------- */

.badge{

    background:linear-gradient(
        90deg,
        #ff2a6d,
        #8a2be2
    );

    color:#fff;

    padding:7px 14px;

    border-radius:999px;

    font-size:.82rem;

    font-weight:700;

}

/* ---------- Activity ---------- */

.activity-feed{

    display:flex;

    flex-direction:column;

}

.feed-item{

    padding:18px 22px;

    border-bottom:1px solid rgba(255,255,255,.06);

}

.feed-item:last-child{

    border-bottom:none;

}

.feed-item strong{

    display:block;

    margin-bottom:6px;

}

.feed-item span{

    color:var(--muted);

    font-size:.9rem;

}

/* ---------- Trend ---------- */

.trend-up{

    color:#00d97e;

    font-weight:700;

}

/* ---------- Error ---------- */

.error{

    padding:30px;

    text-align:center;

    color:#ff6b81;

    font-weight:600;

}

/*==================================================
  PART 5
  PROFESSIONAL POLISH
==================================================*/

/* ---------- Animated Grid ---------- */

.map-wrap::before{

    content:"";

    position:absolute;

    inset:0;

    background:

        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),

        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);

    background-size:40px 40px;

    opacity:.45;

    pointer-events:none;

    z-index:1;

}

/* ---------- Ocean Glow ---------- */

.map-wrap::after{

    content:"";

    position:absolute;

    inset:-40%;

    background:

        radial-gradient(circle,
        rgba(138,43,226,.18),
        transparent 65%);

    animation:oceanGlow 18s linear infinite;

    pointer-events:none;

    z-index:0;

}

@keyframes oceanGlow{

0%{

transform:rotate(0deg);

}

100%{

transform:rotate(360deg);

}

}

/* ---------- World SVG ---------- */

.map-svg{

    position:absolute;

    inset:0;

    display:flex;

    align-items:center;

    justify-content:center;

    z-index:2;

}

.map-svg svg{

    width:95%;

    height:auto;

}

.map-svg path{

    fill:#17233d;

    stroke:#00d4ff;

    stroke-width:1.1;

    filter:

        drop-shadow(0 0 6px rgba(0,212,255,.25));

    transition:.35s;

}

.map-svg path:hover{

    fill:#233863;

    stroke:#53e2ff;

}

/* ---------- Listener Dots ---------- */

.listener-dot{

    z-index:50;

}

.listener-dot::before{

    z-index:-1;

}

/* ---------- Dashboard Cards ---------- */

.hero-card,

.dashboard-card,

.map-panel{

    transition:

        transform .35s,

        box-shadow .35s,

        border-color .35s;

}

.hero-card:hover,

.dashboard-card:hover,

.map-panel:hover{

    transform:translateY(-4px);

    border-color:rgba(255,42,109,.4);

    box-shadow:

        0 18px 45px rgba(0,0,0,.45),

        0 0 30px rgba(255,42,109,.12);

}

/* ---------- Scrollbars ---------- */

.country-list,

.activity-feed{

    max-height:520px;

    overflow:auto;

}

.country-list::-webkit-scrollbar,

.activity-feed::-webkit-scrollbar{

    width:8px;

}

.country-list::-webkit-scrollbar-thumb,

.activity-feed::-webkit-scrollbar-thumb{

    background:#8a2be2;

    border-radius:20px;

}

/* ---------- Live Status ---------- */

.live-pill{

    box-shadow:

        0 0 20px rgba(255,42,109,.25);

}

/* ---------- Loading ---------- */

.loading{

    display:flex;

    align-items:center;

    justify-content:center;

    height:100%;

    color:var(--muted);

    font-weight:600;

    font-size:1rem;

}

/* ---------- Fade ---------- */

@keyframes fadeIn{

from{

opacity:0;

transform:translateY(12px);

}

to{

opacity:1;

transform:none;

}

}

.hero-card,

.dashboard-card,

.map-panel{

    animation:fadeIn .6s ease both;

}

.hero-card:nth-child(2){

animation-delay:.08s;

}

.hero-card:nth-child(3){

animation-delay:.16s;

}

.hero-card:nth-child(4){

animation-delay:.24s;

}

/* ---------- Responsive ---------- */

@media(max-width:768px){

.map-wrap{

height:420px;

}

.country-list,

.activity-feed{

max-height:none;

}

.panel-header{

flex-direction:column;

align-items:flex-start;

gap:15px;

}

}

/*==================================================
  SVG WORLD MAP
==================================================*/

.map-svg{

    position:relative;

    width:100%;

    height:100%;

}

#worldSVG{

    display:block;

    width:100%;

    height:auto;

}

#worldSVG .continent{

    fill:#1a2942;

    stroke:#3d5a80;

    stroke-width:1.2;

    transition:
        fill .3s ease,
        stroke .3s ease;

}

#worldSVG .continent:hover{

    fill:#2e5fa3;

    stroke:#66d8ff;

}

/* Ocean */

.map-wrap{

    background:
        radial-gradient(
            circle at top,
            #0f2138 0%,
            #091321 45%,
            #060b14 100%
        );

}

/* Subtle glow */

#worldSVG{

    filter:
        drop-shadow(
            0 0 18px
            rgba(0,212,255,.08)
        );

}

/*==================================================
  LIVE LISTENER MARKERS
==================================================*/

.listener-dot{

    position:absolute;

    transform:translate(-50%,-50%);

    border-radius:50%;

    background:radial-gradient(
        circle,
        #7cf6ff 0%,
        #00d4ff 45%,
        #008cff 100%
    );

    border:2px solid rgba(255,255,255,.9);

    box-shadow:
        0 0 8px rgba(0,212,255,.8),
        0 0 20px rgba(0,212,255,.45),
        0 0 40px rgba(0,212,255,.25);

    cursor:pointer;

    z-index:20;

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}

.listener-dot:hover{

    transform:
        translate(-50%,-50%)
        scale(1.25);

    box-shadow:
        0 0 12px rgba(0,212,255,1),
        0 0 28px rgba(0,212,255,.8),
        0 0 55px rgba(0,212,255,.45);

}

.listener-dot::after{

    content:attr(data-label);

    position:absolute;

    left:50%;

    bottom:140%;

    transform:translateX(-50%);

    white-space:nowrap;

    background:rgba(7,15,28,.95);

    color:#fff;

    padding:8px 12px;

    border-radius:8px;

    font-size:.8rem;

    font-weight:600;

    opacity:0;

    pointer-events:none;

    transition:.25s;

    border:1px solid rgba(255,255,255,.08);

}

.listener-dot:hover::after{

    opacity:1;

}

.listener-dot-new{

    animation:pulseMarker 2s ease-in-out infinite;

}

@keyframes pulseMarker{

    0%{

        box-shadow:
            0 0 0 rgba(0,212,255,.9);

    }

    50%{

        box-shadow:
            0 0 20px rgba(0,212,255,1),
            0 0 45px rgba(0,212,255,.7);

    }

    100%{

        box-shadow:
            0 0 0 rgba(0,212,255,.9);

    }

}

/*==================================================
  MAP PANEL POLISH
==================================================*/

.map-panel{

    position:relative;

    overflow:hidden;

    border-radius:24px;

    background:linear-gradient(
        180deg,
        rgba(18,28,48,.95),
        rgba(10,16,28,.96)
    );

    border:1px solid rgba(255,255,255,.08);

    box-shadow:
        0 20px 50px rgba(0,0,0,.45);

}

.map-panel::before{

    content:"";

    position:absolute;

    inset:0;

    background:
        radial-gradient(
            circle at top right,
            rgba(0,212,255,.10),
            transparent 45%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(255,42,109,.08),
            transparent 40%
        );

    pointer-events:none;

}

.panel-header{

    position:relative;

    z-index:2;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    padding:24px 28px;

    border-bottom:1px solid rgba(255,255,255,.08);

}

.panel-header h2{

    margin:0;

    font-size:1.5rem;

    font-weight:700;

}

.panel-header p{

    margin:6px 0 0;

    color:var(--muted);

}

.map-wrap{

    position:relative;

    padding:24px;

    min-height:620px;

    overflow:hidden;

}

.map-svg{

    width:100%;

    height:100%;

}

#worldSVG{

    width:100%;

    height:auto;

    max-height:620px;

    display:block;

}

@media (max-width:900px){

    .panel-header{

        flex-direction:column;

        align-items:flex-start;

    }

    .map-wrap{

        min-height:420px;

        padding:16px;

    }

}