
/* =========================================================
   RAY LIGHT UNIFIED
   srdns.online / connect / panel
   ========================================================= */

:root{
    --ray-bg:#f7f8fa;
    --ray-bg-soft:#f1f3f5;
    --ray-card:#ffffff;
    --ray-card-soft:rgba(255,255,255,.82);

    --ray-text:#111418;
    --ray-text-soft:#47515a;
    --ray-muted:#8a949d;

    --ray-line:#e3e7ea;
    --ray-line-strong:#d4dade;

    --ray-accent:#161b1f;

    --ray-radius:18px;

    --ray-shadow:
        0 12px 35px rgba(22,31,39,.055);
}


/* =========================================================
   GLOBAL
   ========================================================= */

html{
    background:#f7f8fa !important;
}

body.ray-unified{
    color:var(--ray-text) !important;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(214,222,228,.60),
            transparent 38%
        ),
        linear-gradient(
            180deg,
            #fbfcfd 0%,
            #f6f8f9 48%,
            #f2f4f6 100%
        ) !important;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;

    -webkit-font-smoothing:antialiased;
}


/* светлая сетка / фон */

body.ray-unified::before{
    content:"" !important;

    position:fixed !important;
    inset:0 !important;

    z-index:0 !important;
    pointer-events:none !important;

    background-image:
        radial-gradient(
            circle,
            rgba(25,35,42,.10) 0 1px,
            transparent 1.25px
        ) !important;

    background-size:
        145px 145px !important;

    opacity:.24 !important;
}


/* Убираем тёмную планету */

body.ray-unified::after{
    content:"" !important;

    position:fixed !important;

    width:650px !important;
    height:650px !important;

    right:-260px !important;
    bottom:-330px !important;

    border-radius:50% !important;

    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(255,255,255,.96),
            rgba(224,229,233,.72) 42%,
            rgba(190,198,205,.36) 68%,
            transparent 70%
        ) !important;

    box-shadow:none !important;

    opacity:.72 !important;

    pointer-events:none !important;
}


/* =========================================================
   SRDNS MAIN
   ========================================================= */

body.ray-home{
    background:#f7f8fa !important;
}


/* старый космический слой */

body.ray-home .space{
    background:
        radial-gradient(
            circle at 50% 38%,
            rgba(214,221,226,.45),
            transparent 40%
        ),
        #f7f8fa !important;

    filter:none !important;
    opacity:1 !important;
}


/* название */

body.ray-home .ray-secure-title::before{
    color:#111418 !important;

    text-shadow:none !important;
}

body.ray-home .ray-secure-title h2{
    color:#343b41 !important;
}

body.ray-home .ray-secure-title p{
    color:#87919a !important;
}

body.ray-home .ray-secure-title p span{
    color:#343b41 !important;
}

body.ray-home .ray-secure-title .line{
    background:
        linear-gradient(
            90deg,
            transparent,
            #9ca6ad,
            transparent
        ) !important;

    box-shadow:none !important;
}


/* network blocks */

body.ray-home .status,
body.ray-home .system-status,
body.ray-home .terminal-window,
body.ray-home .traffic-graph{
    color:#20262b !important;

    background:
        rgba(255,255,255,.78) !important;

    border:
        1px solid var(--ray-line) !important;

    box-shadow:
        0 12px 35px rgba(27,38,46,.055) !important;

    backdrop-filter:
        blur(18px) saturate(115%) !important;

    -webkit-backdrop-filter:
        blur(18px) saturate(115%) !important;
}

body.ray-home .terminal-stream{
    color:#667078 !important;
}

body.ray-home .traffic-speed{
    color:#20262b !important;
}


/* =========================================================
   CONNECT PAGE
   ========================================================= */

body.ray-connect{
    color:#111418 !important;

    background:
        radial-gradient(
            circle at 50% 0,
            rgba(218,225,230,.60),
            transparent 38%
        ),
        #f7f8fa !important;
}

body.ray-connect .connect-floating-bg{
    opacity:.12 !important;
}


/* navigation */

body.ray-connect nav{
    border-color:#e5e8eb !important;
}

body.ray-connect .logo{
    color:#171b1f !important;
}

body.ray-connect .back{
    color:#56616a !important;

    background:
        rgba(255,255,255,.76) !important;

    border:
        1px solid #dde2e6 !important;
}

body.ray-connect .back:hover{
    color:#111418 !important;

    background:#fff !important;

    border-color:#cbd2d7 !important;
}


/* hero */

body.ray-connect h1,
body.ray-connect h1 span{
    color:#111418 !important;

    text-shadow:none !important;
}

body.ray-connect .hero p{
    color:#69747d !important;
}

body.ray-connect .hero strong{
    color:#262d32 !important;
}

body.ray-connect .online{
    color:#4c565e !important;
}


/* cards */

body.ray-connect .info-card,
body.ray-connect .plan,
body.ray-connect .privacy,
body.ray-connect .modal-box{
    color:#15191d !important;

    background:
        rgba(255,255,255,.88) !important;

    border:
        1px solid #e0e5e8 !important;

    box-shadow:
        0 14px 40px rgba(22,31,39,.055) !important;

    backdrop-filter:
        blur(18px) !important;

    -webkit-backdrop-filter:
        blur(18px) !important;
}

body.ray-connect .info-card:hover,
body.ray-connect .plan:hover{
    border-color:#cbd2d7 !important;

    box-shadow:
        0 17px 45px rgba(22,31,39,.075) !important;
}

body.ray-connect .info-card small,
body.ray-connect .heading small,
body.ray-connect .period,
body.ray-connect .modal-state,
body.ray-connect .key-label{
    color:#707b83 !important;
}

body.ray-connect .info-card p,
body.ray-connect .heading p,
body.ray-connect .desc,
body.ray-connect .privacy p,
body.ray-connect .key-expiry{
    color:#7a858e !important;
}


/* primary buttons */

body.ray-connect .cta,
body.ray-connect .plan button,
body.ray-connect .copy-key{
    color:#fff !important;

    background:#171b1f !important;

    border:
        1px solid #171b1f !important;

    box-shadow:none !important;
}

body.ray-connect .cta:hover,
body.ray-connect .plan button:hover,
body.ray-connect .copy-key:hover{
    background:#292f34 !important;

    border-color:#292f34 !important;
}


/* hot plan */

body.ray-connect .plan.hot{
    border-color:#cbd2d7 !important;

    box-shadow:
        0 14px 40px rgba(22,31,39,.075) !important;
}

body.ray-connect .badge{
    color:#fff !important;

    background:#171b1f !important;
}


/* key */

body.ray-connect .key-url{
    color:#20272c !important;

    background:#f4f6f7 !important;

    border:
        1px solid #dfe4e7 !important;
}

body.ray-connect .modal{
    background:
        rgba(225,230,234,.72) !important;
}


/* =========================================================
   ADMIN PANEL
   ========================================================= */

body.ray-panel{
    color:#111418 !important;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(216,223,228,.58),
            transparent 38%
        ),
        #f7f8fa !important;
}


/* panel background */

body.ray-panel .space{
    background:
        radial-gradient(
            circle at 30% 15%,
            rgba(210,217,223,.35),
            transparent 32%
        ),
        transparent !important;

    opacity:1 !important;
}


/* header */

body.ray-panel .brand-kicker{
    color:#7d878f !important;
}

body.ray-panel h1{
    color:#111418 !important;
}

body.ray-panel .subtitle{
    color:#7c8790 !important;
}


/* online */

body.ray-panel .status-pill{
    color:#4f5961 !important;

    background:
        rgba(255,255,255,.82) !important;

    border:
        1px solid #dfe4e7 !important;

    box-shadow:
        0 8px 25px rgba(20,30,38,.045) !important;
}


/* panels */

body.ray-panel .glass{
    background:
        rgba(255,255,255,.88) !important;

    border:
        1px solid #dfe4e7 !important;

    box-shadow:
        0 14px 40px rgba(22,31,39,.055) !important;
}

body.ray-panel .glass::before{
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.7),
            transparent 28%
        ) !important;
}

body.ray-panel .panel-head{
    border-bottom:
        1px solid #e5e9ec !important;
}

body.ray-panel .panel-title{
    color:#515c64 !important;
}

body.ray-panel .section-kicker{
    color:#737d85 !important;
}


/* statistics */

body.ray-panel .stat{
    background:#f8f9fa !important;

    border:
        1px solid #e5e8eb !important;
}

body.ray-panel .stat-label{
    color:#89939b !important;
}

body.ray-panel .stat-value{
    color:#171b1f !important;
}


/* inputs */

body.ray-panel .form-label{
    color:#7d878f !important;
}

body.ray-panel .input,
body.ray-panel .expiry-custom input{
    color:#1b2024 !important;

    background:#fff !important;

    border:
        1px solid #dce2e5 !important;

    box-shadow:none !important;
}

body.ray-panel .input:hover,
body.ray-panel .expiry-custom input:hover{
    border-color:#cbd3d8 !important;
}

body.ray-panel .input:focus,
body.ray-panel .expiry-custom input:focus{
    background:#fff !important;

    border-color:#9faab2 !important;

    box-shadow:
        0 0 0 3px rgba(33,42,48,.055) !important;
}

body.ray-panel select.input option{
    color:#111418 !important;
    background:#fff !important;
}


/* buttons */

body.ray-panel .btn{
    color:#313a40 !important;

    background:#fff !important;

    border:
        1px solid #dce2e5 !important;

    box-shadow:none !important;
}

body.ray-panel .btn:hover{
    color:#111418 !important;

    background:#f5f7f8 !important;

    border-color:#c8d0d5 !important;
}


/* create button */

body.ray-panel .btn-primary{
    color:#fff !important;

    background:#171b1f !important;

    border-color:#171b1f !important;

    box-shadow:none !important;
}

body.ray-panel .btn-primary:hover{
    color:#fff !important;

    background:#2a3035 !important;

    border-color:#2a3035 !important;
}


/* secondary */

body.ray-panel .btn-blue,
body.ray-panel .btn-expiry{
    color:#46515a !important;

    background:#f7f9fa !important;

    border-color:#d8dfe3 !important;
}


/* delete */

body.ray-panel .btn-danger{
    color:#5e656a !important;

    background:#fafafa !important;

    border-color:#d5dade !important;
}


/* client rows */

body.ray-panel .client{
    border-bottom:
        1px solid #e9ecee !important;
}

body.ray-panel .client:hover{
    background:
        rgba(245,247,248,.72) !important;
}

body.ray-panel .client-name{
    color:#1d2226 !important;
}

body.ray-panel .client-state{
    color:#858f97 !important;
}

body.ray-panel .client-meta{
    color:#919ba3 !important;
}


/* DoH URL */

body.ray-panel .url{
    color:#384148 !important;

    background:#f6f8f9 !important;

    border:
        1px solid #e1e6e9 !important;
}


/* expiry */

body.ray-panel .expiry-line.good,
body.ray-panel .expiry-line.warning,
body.ray-panel .expiry-line.expired,
body.ray-panel .expiry-line.unlimited{
    color:#707a82 !important;
}


/* modal */

body.ray-panel .expiry-admin-modal{
    background:
        rgba(226,230,234,.76) !important;
}

body.ray-panel .expiry-admin-box{
    color:#15191d !important;

    background:
        rgba(255,255,255,.96) !important;

    border:
        1px solid #dce2e5 !important;

    box-shadow:
        0 28px 80px rgba(20,30,38,.14) !important;
}

body.ray-panel .expiry-admin-kicker,
body.ray-panel .expiry-section-title{
    color:#7d878f !important;
}

body.ray-panel .expiry-admin-current{
    color:#737e86 !important;
}


/* scrollbar */

body.ray-panel::-webkit-scrollbar{
    width:9px;
}

body.ray-panel::-webkit-scrollbar-track{
    background:#f4f6f7;
}

body.ray-panel::-webkit-scrollbar-thumb{
    background:#cbd2d7;

    border:2px solid #f4f6f7;

    border-radius:99px;
}

body.ray-panel::-webkit-scrollbar-thumb:hover{
    background:#afb8be;
}


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

@media(max-width:700px){

    body.ray-unified::after{
        opacity:.40 !important;
    }

    body.ray-panel .glass,
    body.ray-connect .info-card,
    body.ray-connect .plan,
    body.ray-connect .privacy{
        box-shadow:
            0 8px 26px rgba(20,30,38,.045) !important;
    }

}


/* =========================================================
   RAY LIGHT TYPOGRAPHY + BUTTON POLISH V2
   ========================================================= */


/* ---------- MAIN TYPOGRAPHY ---------- */

body.ray-home .ray-secure-title{
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;
}


/* SECURE NETWORK INFRASTRUCTURE */

body.ray-home .ray-secure-title h2{
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;

    font-weight:650 !important;

    font-size:13px !important;

    line-height:1.42 !important;

    letter-spacing:.20em !important;

    color:#32383d !important;
}


/* ENCRYPTED DNS ... */

body.ray-home .ray-secure-title p{
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;

    font-size:10px !important;

    font-weight:500 !important;

    letter-spacing:.17em !important;

    line-height:1.6 !important;

    color:#8b949b !important;
}


/* ---------- BOTTOM BUTTONS ---------- */

body.ray-home .status-btn{
    height:46px !important;

    min-width:190px !important;

    padding:
        0 23px !important;

    display:flex !important;

    align-items:center !important;
    justify-content:center !important;

    gap:11px !important;

    border-radius:999px !important;

    color:#293036 !important;

    background:
        rgba(255,255,255,.92) !important;

    border:
        1px solid rgba(29,38,44,.095) !important;

    box-shadow:
        0 7px 24px rgba(28,37,44,.055),
        inset 0 1px 0 rgba(255,255,255,.95) !important;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;

    font-size:11px !important;

    font-weight:650 !important;

    line-height:1 !important;

    letter-spacing:.115em !important;

    text-transform:uppercase !important;

    cursor:pointer !important;

    transition:
        transform .20s ease,
        box-shadow .20s ease,
        border-color .20s ease,
        background .20s ease !important;
}


/* Browser button currently has old min-width override */

body.ray-home .ray-browser-btn{
    min-width:190px !important;
}


/* hover */

body.ray-home .status-btn:hover{
    transform:translateY(-2px) !important;

    background:#fff !important;

    border-color:
        rgba(25,35,41,.16) !important;

    box-shadow:
        0 12px 34px rgba(28,37,44,.095),
        inset 0 1px 0 #fff !important;
}


/* press */

body.ray-home .status-btn:active{
    transform:translateY(0) scale(.985) !important;

    box-shadow:
        0 5px 15px rgba(28,37,44,.06) !important;
}


/* dots inside buttons */

body.ray-home .status-btn .dot{
    width:6px !important;
    height:6px !important;

    flex:0 0 6px !important;

    box-shadow:
        0 0 8px rgba(62,104,84,.25) !important;
}


/* browser button text */

body.ray-home .ray-browser-text{
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;

    font-size:11px !important;

    font-weight:650 !important;

    letter-spacing:.115em !important;
}


/* ---------- STATUS PANEL ---------- */

/* technical information remains monospace,
   but make it easier to read */

body.ray-home .system-status{
    font-family:
        "SF Mono",
        SFMono-Regular,
        Menlo,
        Consolas,
        monospace !important;

    font-size:10px !important;

    font-weight:450 !important;

    line-height:1.35 !important;

    color:#5f6970 !important;
}

body.ray-home .system-status strong{
    font-weight:600 !important;
}


/* ---------- TRAFFIC WINDOWS ---------- */

body.ray-home .traffic-graph-header,
body.ray-home .terminal-title{
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;

    font-weight:600 !important;

    letter-spacing:.12em !important;
}

body.ray-home .terminal-stream{
    font-family:
        "SF Mono",
        SFMono-Regular,
        Menlo,
        Consolas,
        monospace !important;

    font-size:10px !important;

    line-height:1.55 !important;
}


/* ---------- CONNECT PAGE ---------- */

body.ray-connect{
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;
}

body.ray-connect .cta,
body.ray-connect .plan button,
body.ray-connect .copy-key,
body.ray-connect .close,
body.ray-connect .back{
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;

    font-weight:650 !important;

    letter-spacing:.075em !important;
}


/* ---------- PANEL ---------- */

body.ray-panel{
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;
}

body.ray-panel h1{
    font-weight:690 !important;
    letter-spacing:-.045em !important;
}

body.ray-panel .btn{
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;

    font-size:10px !important;

    font-weight:650 !important;

    letter-spacing:.055em !important;
}


/* preserve monospace only where useful */

body.ray-panel .url,
body.ray-panel .client-meta{
    font-family:
        "SF Mono",
        SFMono-Regular,
        Menlo,
        Consolas,
        monospace !important;
}


/* ---------- MOBILE ---------- */

@media(max-width:700px){

    body.ray-home .status-btn{
        height:44px !important;

        min-width:165px !important;

        padding:
            0 17px !important;

        font-size:10px !important;

        letter-spacing:.08em !important;
    }

    body.ray-home .ray-browser-btn{
        min-width:165px !important;
    }

    body.ray-home .ray-browser-text{
        font-size:10px !important;

        letter-spacing:.08em !important;
    }

    body.ray-home .ray-secure-title h2{
        font-size:11px !important;

        letter-spacing:.15em !important;
    }

    body.ray-home .ray-secure-title p{
        font-size:8px !important;

        letter-spacing:.10em !important;
    }

}


/* =========================================================
   RAY LIGHT INFO BLOCKS VISIBILITY V3
   ========================================================= */


/* возвращаем нормальную непрозрачность блокам */

body.ray-home .traffic-graph,
body.ray-home .terminal-feed{
    opacity:1 !important;
}


/* =========================================================
   CONNECTION SPEED
   ========================================================= */

body.ray-home .traffic-graph{
    background:
        rgba(255,255,255,.94) !important;

    border:
        1px solid #dce2e6 !important;

    box-shadow:
        0 12px 34px rgba(25,35,42,.085) !important;

    backdrop-filter:
        blur(18px) saturate(120%) !important;

    -webkit-backdrop-filter:
        blur(18px) saturate(120%) !important;
}


/* заголовок */

body.ray-home .traffic-graph-header{
    color:#5d676f !important;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;

    font-size:9px !important;

    font-weight:650 !important;

    letter-spacing:.13em !important;
}


/* значение GB */

body.ray-home .traffic-speed{
    color:#313940 !important;

    font-size:10px !important;

    font-weight:650 !important;

    letter-spacing:.045em !important;
}


/* точка */

body.ray-home .traffic-graph-header .pulse{
    background:#5b8c72 !important;

    box-shadow:
        0 0 0 3px rgba(91,140,114,.09),
        0 0 9px rgba(91,140,114,.18) !important;
}


/* =========================================================
   LIVE TRAFFIC
   ========================================================= */

body.ray-home .terminal-window{
    background:
        rgba(255,255,255,.94) !important;

    border:
        1px solid #dce2e6 !important;

    box-shadow:
        0 12px 34px rgba(25,35,42,.085) !important;

    backdrop-filter:
        blur(18px) saturate(120%) !important;

    -webkit-backdrop-filter:
        blur(18px) saturate(120%) !important;
}


/* header */

body.ray-home .terminal-header{
    background:
        #f8fafb !important;

    border-bottom:
        1px solid #e2e7ea !important;
}


/* LIVE TRAFFIC title */

body.ray-home .terminal-title{
    color:#59636b !important;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;

    font-size:9px !important;

    font-weight:650 !important;

    letter-spacing:.13em !important;
}


/* основной поток */

body.ray-home .terminal-stream{
    color:#465058 !important;

    text-shadow:none !important;

    opacity:1 !important;

    font-family:
        "SF Mono",
        SFMono-Regular,
        Menlo,
        Consolas,
        monospace !important;

    font-size:10px !important;

    line-height:1.55 !important;
}


/* creator@sr */

body.ray-home .prompt{
    color:#527387 !important;

    font-weight:600 !important;
}


/* nslookup */

body.ray-home .cmd{
    color:#556e60 !important;

    font-weight:500 !important;
}


/* время + ms */

body.ray-home .meta{
    color:#7b858d !important;

    font-size:9px !important;

    font-weight:500 !important;
}


/* terminal dots */

body.ray-home .terminal-dot{
    opacity:.65 !important;
}

body.ray-home .terminal-dot.green{
    background:#5b8c72 !important;

    box-shadow:
        0 0 7px rgba(91,140,114,.20) !important;
}


/* =========================================================
   TOP SYSTEM STATUS
   ========================================================= */

body.ray-home .system-status{
    opacity:1 !important;

    color:#59636b !important;

    background:
        rgba(255,255,255,.95) !important;

    border:
        1px solid #dce2e6 !important;

    box-shadow:
        0 12px 34px rgba(25,35,42,.075) !important;
}


body.ray-home .system-status-head{
    color:#59636b !important;
}


body.ray-home .system-status strong{
    color:#4d7560 !important;

    font-weight:650 !important;
}


body.ray-home .system-status .sep{
    color:#b2bac0 !important;
}


/* timeline */

body.ray-home .time-scale-line{
    background:
        #e8ecef !important;

    box-shadow:
        inset 0 0 0 1px #e0e5e8 !important;
}


body.ray-home .time-scale-progress{
    background:
        linear-gradient(
            90deg,
            #8db3c7,
            #77b894
        ) !important;

    box-shadow:none !important;
}


body.ray-home .time-scale-point{
    background:#69a681 !important;

    box-shadow:
        0 0 0 3px rgba(105,166,129,.12) !important;
}


body.ray-home .time-scale-labels{
    color:#9aa3aa !important;
}


/* =========================================================
   CARD HOVER — очень лёгкий
   ========================================================= */

body.ray-home .traffic-graph,
body.ray-home .terminal-window,
body.ray-home .system-status{
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease !important;
}


body.ray-home .traffic-graph:hover,
body.ray-home .terminal-window:hover{
    border-color:#cbd3d8 !important;

    box-shadow:
        0 15px 42px rgba(25,35,42,.11) !important;
}


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

@media(max-width:700px){

    body.ray-home .terminal-stream{
        font-size:9px !important;
    }

    body.ray-home .traffic-graph-header,
    body.ray-home .terminal-title{
        font-size:8px !important;
    }

}
