@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root{
    --bg:#07111f;
    --bg2:#0b1728;
    --card:#0f1d31;
    --card2:#0b192b;
    --text:#f7fbff;
    --muted:#9fb0c5;
    --line:rgba(255,255,255,.09);
    --blue:#2f80ff;
    --cyan:#22d3ee;
    --green:#22c55e;
    --red:#ef4444;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:Inter,Segoe UI,Arial,sans-serif;
    background:
        radial-gradient(circle at 85% 0%,
            rgba(47,128,255,.13),
            transparent 32%),
        radial-gradient(circle at 5% 90%,
            rgba(34,211,238,.06),
            transparent 28%),
        var(--bg);
    color:var(--text);
    min-height:100vh;
}

a{
    color:inherit;
    text-decoration:none;
}

/* HEADER */

.dm-header{
    min-height:74px;
    padding:0 28px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;

    position:sticky;
    top:0;
    z-index:1000;

    background:rgba(7,17,31,.88);
    backdrop-filter:blur(16px);
    border-bottom:1px solid var(--line);
}

.dm-brand{
    display:flex;
    align-items:center;
    gap:12px;
}

.dm-logo{
    width:46px;
    height:46px;
    object-fit:cover;
    object-position:top;
    border-radius:12px;
    box-shadow:0 0 30px rgba(47,128,255,.22);
}

.dm-brand-name{
    font-size:19px;
    font-weight:800;
    letter-spacing:.3px;
}

.dm-brand-name span{
    color:var(--cyan);
}

.dm-account{
    display:flex;
    align-items:center;
    gap:14px;
    color:#c6d2df;
    font-size:14px;
}

.dm-account-user{
    font-weight:700;
    color:white;
}

.dm-status{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:6px 10px;
    border:1px solid rgba(34,197,94,.22);
    background:rgba(34,197,94,.07);
    border-radius:30px;
    color:#86efac;
    font-size:11px;
    font-weight:800;
}

.dm-status-dot{
    width:7px;
    height:7px;
    border-radius:50%;
    background:var(--green);
    box-shadow:0 0 10px var(--green);
}

/* MAIN */

.dm-container{
    width:min(1180px,92%);
    margin:auto;
    padding:48px 0 70px;
}

.dm-eyebrow{
    color:var(--cyan);
    text-transform:uppercase;
    letter-spacing:2px;
    font-size:11px;
    font-weight:800;
    margin-bottom:9px;
}

.dm-title{
    margin:0;
    font-size:clamp(32px,4vw,48px);
    line-height:1.08;
    letter-spacing:-1.7px;
}

.dm-gradient{
    background:linear-gradient(90deg,#fff,var(--cyan));
    -webkit-background-clip:text;
    color:transparent;
}

.dm-subtitle{
    color:var(--muted);
    margin-top:12px;
    font-size:15px;
}

.dm-plan{
    display:inline-flex;
    align-items:center;
    margin-left:8px;
    padding:5px 10px;
    border-radius:30px;
    background:rgba(47,128,255,.11);
    border:1px solid rgba(47,128,255,.24);
    color:#93c5fd;
    font-size:11px;
    font-weight:800;
}

/* STATS */

.dm-stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
    margin:34px 0 42px;
}

.dm-stat{
    position:relative;
    overflow:hidden;
    padding:22px;

    background:
        linear-gradient(
            145deg,
            rgba(15,29,49,.92),
            rgba(10,23,40,.92)
        );

    border:1px solid var(--line);
    border-radius:17px;
    box-shadow:0 18px 45px rgba(0,0,0,.16);
}

.dm-stat:after{
    content:"";
    position:absolute;
    width:100px;
    height:100px;
    right:-45px;
    top:-45px;
    border-radius:50%;
    background:rgba(34,211,238,.06);
    filter:blur(8px);
}

.dm-stat-label{
    color:var(--muted);
    font-size:11px;
    font-weight:800;
    letter-spacing:.5px;
}

.dm-stat-value{
    display:block;
    margin-top:7px;
    font-size:32px;
    line-height:1;
    font-weight:850;
}

.dm-stat-value.live{
    color:#86efac;
}

/* SECTION */

.dm-section-head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:20px;
    margin-bottom:18px;
}

.dm-section-title{
    font-size:24px;
    margin:0;
    letter-spacing:-.7px;
}

.dm-section-sub{
    color:var(--muted);
    font-size:13px;
}

/* HOTSPOT CARD */

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

.dm-site{
    position:relative;
    overflow:hidden;

    padding:25px;

    background:
        linear-gradient(
            145deg,
            rgba(15,29,49,.92),
            rgba(8,20,36,.96)
        );

    border:1px solid var(--line);
    border-radius:18px;

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

.dm-site:hover{
    transform:translateY(-4px);
    border-color:rgba(34,211,238,.28);
    box-shadow:0 20px 50px rgba(0,0,0,.22);
}

.dm-site-top{
    display:flex;
    justify-content:space-between;
    gap:20px;
    align-items:start;
}

.dm-site-name{
    font-size:20px;
    font-weight:800;
}

.dm-site-type{
    margin-top:3px;
    color:var(--muted);
    font-size:13px;
}

.dm-online{
    color:#86efac;
    font-size:11px;
    font-weight:800;
    white-space:nowrap;
}

.dm-site-code{
    display:inline-block;
    margin-top:15px;
    padding:5px 9px;
    border-radius:7px;
    background:rgba(255,255,255,.04);
    border:1px solid var(--line);
    color:#b8c8d9;
    font-size:11px;
    font-weight:700;
}

.dm-site-metrics{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:20px;
}

.dm-metric{
    padding:13px;
    background:rgba(255,255,255,.025);
    border:1px solid var(--line);
    border-radius:11px;
}

.dm-metric small{
    display:block;
    color:var(--muted);
    font-size:10px;
    font-weight:700;
}

.dm-metric strong{
    display:block;
    margin-top:3px;
    font-size:20px;
}

/* BUTTONS */

.dm-primary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    margin-top:18px;
    padding:11px 17px;

    border:0;
    border-radius:10px;

    background:linear-gradient(135deg,var(--blue),#1e6be8);
    color:white;

    font-weight:800;
    font-size:13px;

    box-shadow:0 10px 28px rgba(47,128,255,.23);

    transition:.2s;
}

.dm-primary:hover{
    transform:translateY(-1px);
    box-shadow:0 13px 32px rgba(47,128,255,.32);
}

.dm-secondary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 15px;
    border:1px solid var(--line);
    border-radius:10px;
    background:rgba(255,255,255,.035);
    color:#dce7f2;
}

/* EMPTY STATE */

.dm-empty{
    text-align:center;
    padding:55px 25px;
    background:linear-gradient(
        145deg,
        rgba(15,29,49,.8),
        rgba(10,23,40,.8)
    );
    border:1px solid var(--line);
    border-radius:18px;
}

.dm-empty-icon{
    width:58px;
    height:58px;
    margin:0 auto 16px;
    display:grid;
    place-items:center;
    border-radius:15px;
    background:rgba(47,128,255,.12);
    color:#7dd3fc;
    font-size:25px;
}

.dm-empty strong{
    font-size:18px;
}

.dm-empty p{
    color:var(--muted);
    margin:8px 0 0;
}

/* MOBILE */

@media(max-width:900px){

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

    .dm-sites{
        grid-template-columns:1fr;
    }
}

@media(max-width:600px){

    .dm-header{
        padding:0 16px;
        min-height:66px;
    }

    .dm-logo{
        width:40px;
        height:40px;
    }

    .dm-brand-name{
        font-size:15px;
    }

    .dm-account .dm-status{
        display:none;
    }

    .dm-container{
        width:min(94%,1180px);
        padding-top:32px;
    }

    .dm-stats{
        grid-template-columns:1fr 1fr;
        gap:10px;
        margin:25px 0 34px;
    }

    .dm-stat{
        padding:17px;
    }

    .dm-stat-value{
        font-size:27px;
    }

    .dm-site{
        padding:20px;
    }

    .dm-section-head{
        align-items:start;
        flex-direction:column;
        gap:5px;
    }
}

/* =========================================================
   DIAMODA HOTSPOT MANAGER
   ========================================================= */

.dm-manager-layout{
    display:flex;
    min-height:calc(100vh - 74px);
}

.dm-manager-sidebar{
    width:245px;
    min-width:245px;
    padding:22px 12px;
    background:rgba(9,21,34,.94);
    border-right:1px solid var(--line);
}

.dm-sidebar-site{
    padding:16px;
    margin-bottom:22px;
    border:1px solid var(--line);
    border-radius:14px;
    background:
        linear-gradient(
            145deg,
            rgba(15,29,49,.95),
            rgba(8,20,36,.98)
        );
}

.dm-sidebar-eyebrow,
.dm-sidebar-label{
    color:var(--cyan);
    text-transform:uppercase;
    letter-spacing:1.4px;
    font-size:9px;
    font-weight:800;
}

.dm-sidebar-site-name{
    margin-top:6px;
    font-size:15px;
    font-weight:800;
    color:white;
}

.dm-sidebar-site-type{
    margin-top:4px;
    color:var(--muted);
    font-size:11px;
}

.dm-sidebar-code{
    margin-top:3px;
    color:#718398;
    font-size:10px;
}

.dm-sidebar-online{
    display:flex;
    align-items:center;
    gap:6px;
    margin-top:12px;
    color:#86efac;
    font-size:9px;
    font-weight:800;
}

.dm-sidebar-online span{
    width:6px;
    height:6px;
    border-radius:50%;
    background:var(--green);
    box-shadow:0 0 9px var(--green);
}

.dm-sidebar-label{
    margin:0 12px 8px;
    color:#718398;
}

.dm-manager-sidebar > a{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    padding:11px 12px;
    margin-bottom:4px;
    border:1px solid transparent;
    border-radius:9px;
    color:#aebed0;
    font-size:13px;
    font-weight:650;
    transition:.2s;
}

.dm-manager-sidebar > a:hover{
    color:white;
    background:rgba(255,255,255,.035);
    border-color:var(--line);
}

.dm-manager-sidebar > a.current{
    color:white;
    background:rgba(47,128,255,.13);
    border-color:rgba(47,128,255,.25);
}

.dm-manager-sidebar > a.current .dm-nav-icon{
    color:var(--cyan);
}

.dm-nav-icon{
    width:20px;
    color:#7f94aa;
    text-align:center;
    font-size:15px;
}

.dm-nav-disabled{
    display:flex;
    align-items:center;
    gap:10px;
    padding:11px 12px;
    margin-bottom:4px;
    border-radius:9px;
    color:#52657a;
    font-size:13px;
    cursor:not-allowed;
}

.dm-nav-disabled small{
    margin-left:auto;
    padding:3px 6px;
    border-radius:20px;
    border:1px solid rgba(34,211,238,.10);
    color:#58758b;
    font-size:7px;
    font-weight:800;
    letter-spacing:.5px;
}

.dm-sidebar-divider{
    height:1px;
    margin:17px 5px 12px;
    background:var(--line);
}

.dm-manager-content{
    flex:1;
    min-width:0;
    padding:42px;
}

.dm-manager-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:25px;
    margin-bottom:30px;
}

.dm-manager-title{
    margin:0;
    font-size:clamp(29px,3vw,40px);
    letter-spacing:-1.4px;
    line-height:1.1;
}

.dm-manager-meta{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    margin-top:11px;
    color:var(--muted);
    font-size:13px;
}

.dm-manager-meta strong{
    color:#dbe8f4;
}

.dm-manager-meta .separator{
    color:#43576d;
}

.dm-manager-meta a{
    color:var(--cyan);
    font-weight:700;
}

.dm-manager-stats{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:14px;
}

.dm-manager-stat{
    min-width:0;
    padding:21px;
    border:1px solid var(--line);
    border-radius:16px;
    background:
        linear-gradient(
            145deg,
            rgba(15,29,49,.92),
            rgba(10,23,40,.92)
        );
    box-shadow:0 16px 40px rgba(0,0,0,.14);
}

.dm-manager-stat-label{
    min-height:31px;
    color:var(--muted);
    font-size:11px;
    font-weight:750;
}

.dm-manager-stat-value{
    margin-top:7px;
    font-size:30px;
    line-height:1;
    font-weight:850;
}

.dm-manager-stat-value.success{
    color:#86efac;
    font-size:23px;
}

.dm-quick{
    margin-top:25px;
    padding:25px;
    border:1px solid var(--line);
    border-radius:18px;
    background:
        linear-gradient(
            145deg,
            rgba(15,29,49,.86),
            rgba(10,23,40,.9)
        );
}

.dm-quick h2{
    margin:0;
    font-size:20px;
    letter-spacing:-.5px;
}

.dm-quick p{
    margin:6px 0 0;
    color:var(--muted);
    font-size:12px;
}

.dm-quick-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:18px;
}

.dm-action{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    padding:11px 15px;
    border-radius:10px;
    border:1px solid var(--line);
    background:rgba(255,255,255,.035);
    color:#dce7f2;
    font-size:12px;
    font-weight:750;
    transition:.2s;
}

.dm-action:hover{
    border-color:rgba(34,211,238,.25);
    background:rgba(34,211,238,.06);
    color:white;
}

.dm-action.primary{
    border-color:transparent;
    background:linear-gradient(135deg,var(--blue),#1e6be8);
    color:white;
    box-shadow:0 10px 28px rgba(47,128,255,.18);
}

.dm-action-disabled{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:11px 15px;
    border:1px solid rgba(255,255,255,.05);
    border-radius:10px;
    background:rgba(255,255,255,.018);
    color:#52657a;
    font-size:12px;
    font-weight:700;
    cursor:not-allowed;
}

.dm-action-disabled small{
    font-size:8px;
    color:#58758b;
}


/* Manager responsive */

@media(max-width:1100px){

    .dm-manager-stats{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:800px){

    .dm-manager-layout{
        display:block;
    }

    .dm-manager-sidebar{
        width:100%;
        min-width:0;
        border-right:0;
        border-bottom:1px solid var(--line);
    }

    .dm-sidebar-site{
        margin-bottom:12px;
    }

    .dm-manager-sidebar > a,
    .dm-nav-disabled{
        padding:10px 12px;
    }

    .dm-manager-content{
        padding:28px 20px 45px;
    }

    .dm-manager-stats{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:520px){

    .dm-manager-content{
        padding:25px 14px 40px;
    }

    .dm-manager-stats{
        grid-template-columns:1fr 1fr;
        gap:9px;
    }

    .dm-manager-stat{
        padding:16px;
    }

    .dm-manager-stat-value{
        font-size:25px;
    }

    .dm-manager-stat-value.success{
        font-size:19px;
    }

    .dm-manager-head{
        margin-bottom:23px;
    }

    .dm-quick{
        padding:19px;
    }

    .dm-action,
    .dm-action-disabled{
        width:100%;
    }
}

/* DIAMODA live router status */
.dm-router-status.online .dm-status-dot{
    background:#22c55e;
    box-shadow:0 0 10px rgba(34,197,94,.75);
}

.dm-router-status.offline .dm-status-dot{
    background:#ef4444;
    box-shadow:0 0 10px rgba(239,68,68,.65);
}

.dm-router-last-seen{
    margin-top:6px;
    font-size:11px;
    color:#71839a;
}

/* DIAMODA sidebar live router status */
.dm-sidebar-router-status.online {
    color:#86efac;
}

.dm-sidebar-router-status.online span {
    background:#22c55e;
    box-shadow:0 0 10px rgba(34,197,94,.75);
}

.dm-sidebar-router-status.offline {
    color:#fca5a5;
}

.dm-sidebar-router-status.offline span {
    background:#ef4444;
    box-shadow:0 0 10px rgba(239,68,68,.65);
}

.dm-sidebar-router-status.waiting {
    color:#fde68a;
}

.dm-sidebar-router-status.waiting span {
    background:#f59e0b;
}

.dm-sidebar-router-status.unmonitored,
.dm-sidebar-router-status.setup {
    color:#a9b7c8;
}

.dm-sidebar-router-status.unmonitored span,
.dm-sidebar-router-status.setup span {
    background:#64748b;
    box-shadow:none;
}


/* =========================================================
   DIAMODA PREMIUM TYPOGRAPHY
   ========================================================= */

:root{
    --dm-font:
        "Manrope",
        "Segoe UI Variable",
        "Segoe UI",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    --dm-font-mono:
        "Cascadia Code",
        "Cascadia Mono",
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
}

html,
body,
button,
input,
select,
textarea{
    font-family:var(--dm-font);
}

body{
    font-size:15px;
    line-height:1.55;
    font-weight:400;
    font-feature-settings:
        "kern" 1,
        "liga" 1;
    text-rendering:optimizeLegibility;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

/* Brand */

.dm-brand-name{
    font-weight:750;
    letter-spacing:-.25px;
}

/* Main page hierarchy */

.dm-title{
    font-weight:750;
    letter-spacing:-1.6px;
    line-height:1.04;
}

.dm-subtitle{
    font-weight:400;
    line-height:1.65;
    letter-spacing:.01em;
}

.dm-section-title{
    font-weight:700;
    letter-spacing:-.55px;
    line-height:1.2;
}

.dm-section-sub{
    font-weight:400;
    line-height:1.55;
}

/* Small professional labels */

.dm-eyebrow,
.dm-stat-label{
    font-weight:700;
    letter-spacing:.11em;
    text-transform:uppercase;
}

.dm-eyebrow{
    letter-spacing:.16em;
}

/* Statistics / important numbers */

.dm-stat-value{
    font-weight:700;
    letter-spacing:-1px;
    font-variant-numeric:tabular-nums;
}

/* Account and status */

.dm-account{
    letter-spacing:.01em;
}

.dm-account-user{
    font-weight:600;
}

.dm-status,
.dm-plan{
    font-weight:700;
    letter-spacing:.045em;
}

/* Controls */

button,
input,
select,
textarea{
    font-size:inherit;
}

button,
input[type="submit"],
input[type="button"]{
    font-weight:650;
    letter-spacing:.005em;
}

input,
select,
textarea{
    font-weight:450;
    line-height:1.45;
}

/* Tables */

table{
    font-variant-numeric:tabular-nums;
}

th{
    font-weight:650;
    letter-spacing:.035em;
}

td{
    font-weight:400;
}

/* Technical data remains visually distinct */

code,
pre,
.dm-mono{
    font-family:var(--dm-font-mono);
    font-variant-numeric:tabular-nums;
}

/* Cleaner heading rhythm */

h1,
h2,
h3,
h4,
h5,
h6{
    font-family:var(--dm-font);
    text-wrap:balance;
}

h1{
    font-weight:750;
}

h2{
    font-weight:700;
}

h3,
h4{
    font-weight:650;
}

/* Links inherit the premium UI typography */

a{
    font-family:inherit;
}
