
/* =========================================================
   DEVIL-TORRENTS — MODAL / LOADER / CODE STYLE
   Nowy ciemny cyberpunkowy wygląd
   ========================================================= */

#modal-loader,
.modal-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 99999;
    transform: translate(-50%, -50%);

    width: 260px;
    min-height: 185px;
    padding: 20px 18px 17px;
    box-sizing: border-box;

    border-radius: 24px;
    border: 1px solid rgba(0, 210, 255, .62);

    background:
        radial-gradient(circle at 50% 0%, rgba(0, 210, 255, .30), transparent 46%),
        radial-gradient(circle at 85% 92%, rgba(255, 174, 53, .18), transparent 38%),
        linear-gradient(180deg, rgba(7, 34, 58, .98), rgba(2, 8, 18, .98));

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.055),
        0 0 35px rgba(0, 185, 255, .32),
        0 20px 48px rgba(0,0,0,.80);

    text-align: center;
    overflow: hidden;

    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* delikatna poświata w tle */
#modal-loader .loader-glow,
.modal-spinner .loader-glow {
    display: none;
}

/* ring */
#modal-loader::before,
.modal-spinner::before {
    content: "";
    display: block;

    width: 72px;
    height: 72px;
    margin: 0 0 15px 0;
    box-sizing: border-box;

    border-radius: 50%;
    border: 5px solid rgba(0, 200, 255, .14);
    border-top-color: #27d9ff;
    border-right-color: #27d9ff;
    border-bottom-color: #ffae35;
    border-left-color: transparent;

    box-shadow:
        0 0 22px rgba(0, 200, 255, .36),
        inset 0 0 15px rgba(0, 200, 255, .13);

    animation: dtLoaderRing 850ms linear infinite;

    flex: 0 0 auto;
}

/* kropki */
#modal-loader > .preloader,
.modal-spinner > div {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 5px;
    padding: 0;

    border-radius: 50%;
    background: #25d8ff;

    box-shadow:
        0 0 10px rgba(0, 210, 255, .95),
        0 0 18px rgba(0, 110, 255, .36);

    animation: dtLoaderDots 1s infinite ease-in-out;

    flex: 0 0 auto;
}

/* napis */
#modal-loader::after,
.modal-spinner::after {
    content: "TRWA ŁADOWANIE PROFILU UŻYTKOWNIKA";
    display: block;

    width: 100%;
    margin-top: 15px;

    color: #ffae35;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    text-align: center;

    text-shadow:
        0 1px 0 #000,
        0 0 10px rgba(255, 174, 53, .48);

    flex: 0 0 auto;
}

/* opóźnienia kropek */
#modal-loader > .preloader:nth-child(1),
.modal-spinner .rect1 {
    animation-delay: 0s;
}

#modal-loader > .preloader:nth-child(2),
.modal-spinner .rect2 {
    animation-delay: .12s;
}

#modal-loader > .preloader:nth-child(3),
.modal-spinner .rect3 {
    animation-delay: .24s;
}

#modal-loader > .preloader:nth-child(4),
.modal-spinner .rect4 {
    animation-delay: .36s;
}

#modal-loader > .preloader:nth-child(5),
.modal-spinner .rect5 {
    animation-delay: .48s;
}

@keyframes dtLoaderRing {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes dtLoaderDots {
    0%, 80%, 100% {
        transform: scale(.65);
        opacity: .42;
        background: #25d8ff;
    }

    40% {
        transform: scale(1.25);
        opacity: 1;
        background: #ffae35;
        box-shadow:
            0 0 12px rgba(255, 174, 53, .95),
            0 0 22px rgba(255, 174, 53, .42);
    }
}
/* =========================================================
   CODE BLOCK
   ========================================================= */

code {
    position: relative;
    display: block;
    max-width: 100%;
    margin: 18px 0 10px 0;
    padding: 38px 12px 12px 12px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    border-radius: 14px;
    border: 1px solid rgba(0, 200, 255, .35);
    background:
        radial-gradient(circle at 10% 0%, rgba(0, 200, 255, .14), transparent 32%),
        linear-gradient(180deg, rgba(6, 23, 39, .96), rgba(2, 8, 16, .96));
    color: #dff4ff;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.55;
    text-align: left;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.035) inset,
        0 8px 22px rgba(0,0,0,.38);
}

code:before {
    content: "CODE";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: block;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 200, 255, .22);
    border-radius: 14px 14px 0 0;
    background:
        linear-gradient(90deg, rgba(0, 140, 220, .55), rgba(255, 145, 35, .20)),
        rgba(0,0,0,.25);
    color: #ffae35;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .9px;
    text-transform: uppercase;
    text-shadow: 0 1px 0 #000;
}

.ie6 code,
.ie7 code {
    margin-top: 0;
}

/* =========================================================
   TIMER
   ========================================================= */

#timer_panel_user {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(0, 200, 255, .25);
    background: rgba(0,0,0,.24);
    color: #35d7ff;
    font-size: 11px;
    font-weight: 900;
    text-shadow: 0 1px 0 #000;
}

/* =========================================================
   MODAL OVERLAY
   ========================================================= */

.blocker {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    z-index: 9000;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(0, 140, 255, .18), transparent 34%),
        radial-gradient(circle at 90% 80%, rgba(255, 80, 0, .10), transparent 32%),
        rgba(0, 0, 0, .82);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.blocker:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -0.05em;
}

.blocker.behind {
    background-color: transparent;
    background-image: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* =========================================================
   MODAL WINDOW
   ========================================================= */

.modal {
    display: none;
    vertical-align: middle;
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 590px;
    box-sizing: border-box;
    padding: 0;
    text-align: left;
    border-radius: 20px;
    background:
        radial-gradient(circle at 15% 0%, rgba(0, 200, 255, .22), transparent 36%),
        radial-gradient(circle at 95% 10%, rgba(255, 145, 35, .14), transparent 32%),
        linear-gradient(180deg, rgba(7, 25, 44, .98), rgba(2, 8, 17, .98));
    border: 1px solid rgba(0, 190, 255, .45);
    box-shadow:
        0 0 0 1px rgba(255,255,255,.04) inset,
        0 0 34px rgba(0, 170, 255, .22),
        0 20px 55px rgba(0,0,0,.78);
    overflow: visible;
    animation: dtModalIn .18s ease-out;
}

.modal:before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(255,255,255,.045), transparent),
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,.016) 0,
            rgba(255,255,255,.016) 1px,
            transparent 1px,
            transparent 5px
        );
    opacity: .55;
}

@keyframes dtModalIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.close-modal {
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 10;
    display: block;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 80, 80, .55);
    background:
        radial-gradient(circle at 35% 25%, rgba(255,255,255,.18), transparent 28%),
        linear-gradient(180deg, #852626, #3b0b0b);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.16),
        0 0 16px rgba(255, 55, 55, .35),
        0 6px 14px rgba(0,0,0,.55);
    cursor: pointer;
    font-size: 0;
    transition: .18s ease;
}

.close-modal:before,
.close-modal:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 17px;
    border-radius: 999px;
    background-color: #fff;
    transform-origin: center;
    transition: .18s ease;
    box-shadow: 0 0 7px rgba(255,255,255,.35);
}

.close-modal:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-modal:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.close-modal:hover {
    transform: rotate(90deg) scale(1.06);
    border-color: rgba(255, 170, 45, .9);
    background:
        radial-gradient(circle at 35% 25%, rgba(255,255,255,.20), transparent 28%),
        linear-gradient(180deg, #ff3e3e, #7a0f0f);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.20),
        0 0 22px rgba(255, 65, 65, .55),
        0 7px 18px rgba(0,0,0,.62);
}

.close-modal:hover:before,
.close-modal:hover:after {
    background-color: #fff6d8;
}



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

@media (max-width: 620px) {
    .blocker {
        padding: 12px;
    }

    .modal {
        width: 96%;
        max-width: 96%;
        border-radius: 16px;
    }

    .modal:before {
        border-radius: 16px;
    }

    .close-modal {
        top: -10px;
        right: -8px;
        width: 30px;
        height: 30px;
    }

    code {
        font-size: 11px;
        border-radius: 12px;
    }

    code:before {
        border-radius: 12px 12px 0 0;
    }
}
