﻿:root {
    --pit-bg-main: #05080D;
    --pit-bg-deep: #020409;
    --pit-bg-panel: #0B1118;
    --pit-bg-card: #101820;
    --pit-bg-card-soft: #151E27;
    --pit-red: #E10600;
    --pit-red-bright: #FF120A;
    --pit-red-dark: #9B0500;
    --pit-red-soft: rgba(225, 6, 0, 0.16);
    --pit-white: #FFFFFF;
    --pit-text-main: #F4F4F4;
    --pit-text-soft: #C7CCD1;
    --pit-text-muted: #8A929A;
    --pit-graphite: #1A1F26;
    --pit-steel: #2A323C;
    --pit-metal: #384654;
    --pit-border: rgba(255, 255, 255, 0.10);
    --pit-border-strong: rgba(255, 255, 255, 0.18);
    --pit-success: #20C46B;
    --pit-warning: #F2A900;
    --pit-shadow-heavy: 0 24px 80px rgba(0, 0, 0, 0.50);
    --pit-shadow-red: 0 12px 30px rgba(225, 6, 0, 0.22);
    --pit-radius-lg: 22px;
    --pit-radius-md: 18px;
    --pit-radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

.pit-page-full {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.pit-pulse-page {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--pit-bg-main);
    color: var(--pit-text-main);
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
}

.pit-main-full,
.pit-page-full {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.pit-pulse-page {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 48px;
    background: radial-gradient(circle at top left, rgba(225, 6, 0, 0.18), transparent 28%), radial-gradient(circle at bottom right, rgba(56, 70, 84, 0.22), transparent 34%), linear-gradient(135deg, #020409 0%, #07111A 48%, #05080D 100%);
    color: var(--pit-text-main);
}

.pit-pulse-hero,
.pit-pulse-grid,
.pit-pulse-grid-secondary {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.pit-pulse-hero {
    min-height: 260px;
    display: grid;
    grid-template-columns: 1.55fr .8fr;
    gap: 28px;
    align-items: stretch;
    padding: 36px;
    border-radius: var(--pit-radius-lg);
    background: linear-gradient(145deg, rgba(16, 24, 32, 0.98), rgba(5, 8, 13, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--pit-shadow-heavy), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
}

    .pit-pulse-hero::before,
    .pit-pulse-card::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(90deg, rgba(225, 6, 0, 0.12), transparent 22%), radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 24%);
        opacity: .75;
    }

    .pit-pulse-hero > *,
    .pit-pulse-card > * {
        position: relative;
        z-index: 1;
    }

.pit-pulse-kicker {
    color: var(--pit-red);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 12px;
    font-weight: 800;
}

.pit-pulse-hero h1 {
    color: var(--pit-white);
    font-size: clamp(38px, 5vw, 72px);
    line-height: .95;
    margin: 14px 0 18px;
    font-weight: 900;
    letter-spacing: -.055em;
}

.pit-pulse-hero p {
    color: var(--pit-text-soft);
    font-size: 18px;
    line-height: 1.7;
    max-width: 820px;
    margin: 0;
}

.pit-pulse-status-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
    padding: 28px;
    border-radius: var(--pit-radius-md);
    background: linear-gradient(145deg, rgba(21, 30, 39, .96), rgba(10, 16, 22, .96));
    border: 1px solid rgba(255, 255, 255, .08);
    border-left: 3px solid rgba(225, 6, 0, .75);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .035);
}

    .pit-pulse-status-card strong {
        color: var(--pit-white);
        font-size: 28px;
        font-weight: 900;
    }

    .pit-pulse-status-card small {
        color: var(--pit-text-muted);
        line-height: 1.55;
    }

.pit-pulse-status-dot {
    width: 14px;
    height: 14px;
    background: var(--pit-success);
    border-radius: 50%;
    box-shadow: 0 0 16px var(--pit-success);
}

.pit-pulse-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(340px, .8fr);
    gap: 22px;
}

.pit-pulse-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(11, 17, 24, .76), rgba(5, 8, 13, .70));
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: var(--pit-radius-lg);
    padding: 28px;
    box-shadow: var(--pit-shadow-heavy);
}

.pit-pulse-card-large {
    min-height: 520px;
}

.pit-pulse-card-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}

.pit-pulse-card h2 {
    color: var(--pit-white);
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -.03em;
}

    .pit-pulse-card h2::before {
        content: "";
        display: inline-block;
        width: 22px;
        height: 3px;
        background: var(--pit-red);
        margin-right: 10px;
        vertical-align: middle;
        border-radius: 999px;
    }

.pit-pulse-card p,
.pit-pulse-muted {
    color: var(--pit-text-muted);
}

.pit-pulse-btn {
    min-height: 48px;
    border-radius: 999px;
    padding: 0 22px;
    border: 1px solid rgba(225, 6, 0, .75);
    background: linear-gradient(135deg, var(--pit-red), var(--pit-red-dark));
    color: var(--pit-white);
    box-shadow: var(--pit-shadow-red), inset 0 1px 0 rgba(255, 255, 255, .20);
    font-weight: 850;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .02em;
    transition: .2s ease;
}

    .pit-pulse-btn:hover {
        transform: translateY(-2px);
        background: linear-gradient(135deg, var(--pit-red-bright), #B80600);
    }

.pit-pulse-btn-full {
    width: 100%;
    margin-top: 12px;
}

.pit-pulse-feed {
    display: grid;
    gap: 14px;
}

.pit-pulse-message {
    position: relative;
    padding: 20px;
    border-radius: var(--pit-radius-md);
    background: linear-gradient(145deg, rgba(21, 30, 39, .96), rgba(10, 16, 22, .96));
    border: 1px solid rgba(255, 255, 255, .08);
    border-left: 3px solid rgba(225, 6, 0, .65);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.pit-pulse-message-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.pit-pulse-message h3 {
    color: var(--pit-white);
    margin: 0;
    font-size: 20px;
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -.025em;
}

.pit-pulse-message p {
    color: var(--pit-text-muted);
    margin: 8px 0 0;
    line-height: 1.45;
}

.pit-pulse-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(225, 6, 0, .14);
    color: var(--pit-white);
    border: 1px solid rgba(225, 6, 0, .55);
    font-weight: 850;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.pit-pulse-message-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.pit-pulse-action {
    border: 1px solid var(--pit-border);
    border-radius: var(--pit-radius-sm);
    padding: 12px 14px;
    color: var(--pit-text-main);
    background: rgba(255, 255, 255, .045);
    cursor: pointer;
    font-family: inherit;
    font-weight: 850;
    transition: .2s ease;
}

    .pit-pulse-action:hover {
        border-color: rgba(225, 6, 0, .55);
        background: rgba(225, 6, 0, .08);
        transform: translateY(-1px);
    }

.pit-pulse-empty {
    padding: 24px;
    color: var(--pit-text-muted);
    border: 1px dashed var(--pit-border);
    border-radius: var(--pit-radius-md);
    text-align: center;
    background: linear-gradient(145deg, rgba(21, 30, 39, .96), rgba(10, 16, 22, .96));
}

.pit-pulse-form {
    display: grid;
    gap: 14px;
}

    .pit-pulse-form label {
        color: var(--pit-text-soft);
        font-size: 14px;
        font-weight: 700;
    }

    .pit-pulse-form input,
    .pit-pulse-form select {
        min-height: 48px;
        width: 100%;
        border-radius: var(--pit-radius-sm);
        padding: 0 14px;
        color: var(--pit-text-main);
        background: rgba(255, 255, 255, .045);
        border: 1px solid var(--pit-border);
        outline: none;
        font-family: inherit;
        font-weight: 700;
    }

        .pit-pulse-form input:focus,
        .pit-pulse-form select:focus {
            border-color: rgba(225, 6, 0, .55);
            background: rgba(225, 6, 0, .08);
        }

        .pit-pulse-form select option {
            color: #111827;
        }

.pit-pulse-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pit-pulse-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

    .pit-pulse-switch input {
        display: none;
    }

    .pit-pulse-switch span {
        width: 42px;
        height: 24px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .18);
        position: relative;
        transition: .2s ease;
        flex-shrink: 0;
    }

        .pit-pulse-switch span::after {
            content: "";
            position: absolute;
            width: 18px;
            height: 18px;
            top: 3px;
            left: 3px;
            border-radius: 50%;
            background: var(--pit-white);
            transition: .2s ease;
        }

    .pit-pulse-switch input:checked + span {
        background: linear-gradient(135deg, var(--pit-red), var(--pit-red-dark));
        box-shadow: var(--pit-shadow-red);
    }

        .pit-pulse-switch input:checked + span::after {
            transform: translateX(18px);
        }

.pit-pulse-grid-secondary {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pit-pulse-mini-card {
    padding: 20px;
    border-radius: var(--pit-radius-md);
    background: linear-gradient(145deg, rgba(21, 30, 39, .96), rgba(10, 16, 22, .96));
    border: 1px solid rgba(255, 255, 255, .08);
    border-left: 3px solid rgba(225, 6, 0, .65);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .035);
}

    .pit-pulse-mini-card strong {
        display: block;
        color: var(--pit-white);
        font-size: 32px;
        font-weight: 900;
    }

    .pit-pulse-mini-card span {
        color: var(--pit-text-muted);
        font-weight: 700;
    }

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--pit-bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--pit-steel);
    border-radius: 999px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--pit-metal);
    }

@media (max-width: 1100px) {
    .pit-pulse-hero,
    .pit-pulse-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .pit-pulse-page {
        padding: 24px;
    }

    .pit-pulse-hero,
    .pit-pulse-card {
        padding: 28px;
        border-radius: 18px;
    }

    .pit-pulse-grid-secondary {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .pit-pulse-page {
        padding: 16px;
    }

    .pit-pulse-grid-secondary,
    .pit-pulse-two-cols {
        grid-template-columns: 1fr;
    }

    .pit-pulse-hero,
    .pit-pulse-card {
        padding: 22px;
    }

    .pit-pulse-card-header,
    .pit-pulse-message-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .pit-pulse-btn,
    .pit-pulse-action {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

.pit-pulse-page {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}