.activity-page {
    min-height: 100vh;
}

.activity-main {
    position: relative;
    padding: 86px 0 24px;
}

.activity-main::before {
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: -1;
    width: min(92vw, 980px);
    height: 360px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(20, 120, 255, 0.12), transparent 68%);
    content: "";
    pointer-events: none;
}

.activity-hero {
    display: flex;
    gap: 48px;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 44px;
}

.activity-hero-copy {
    max-width: 720px;
}

.activity-hero h1 {
    margin: 0;
    color: #f7f9fd;
    font-size: clamp(3.25rem, 7vw, 6.1rem);
    font-weight: 900;
    letter-spacing: -0.065em;
    line-height: 0.95;
}

.activity-hero h1 span {
    background: linear-gradient(120deg, #f7f9fd 8%, #2f91ff 54%, #1bc8f2 100%);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.activity-hero p {
    max-width: 630px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.activity-live-card {
    display: flex;
    min-width: 220px;
    gap: 13px;
    align-items: center;
    padding: 15px 17px;
    border: 1px solid rgba(105, 174, 255, 0.22);
    border-radius: 16px;
    background:
        radial-gradient(circle at 18% 0%, rgba(20, 120, 255, 0.15), transparent 48%),
        rgba(7, 18, 33, 0.78);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.activity-live-icon {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid rgba(65, 214, 163, 0.28);
    border-radius: 12px;
    background: rgba(65, 214, 163, 0.08);
}

.activity-live-icon::before,
.activity-live-icon::after,
.activity-live-icon span {
    position: absolute;
    border-radius: 50%;
    content: "";
}

.activity-live-icon::before {
    width: 10px;
    height: 10px;
    background: var(--success);
    box-shadow: 0 0 18px rgba(65, 214, 163, 0.72);
}

.activity-live-icon::after {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(65, 214, 163, 0.38);
    animation: activity-live-pulse 2.2s ease-out infinite;
}

.activity-live-card div {
    display: grid;
    gap: 2px;
}

.activity-live-card strong {
    color: var(--text);
    font-size: 0.9rem;
}

.activity-live-card div > span {
    color: var(--muted);
    font-size: 0.76rem;
}

.activity-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.activity-stat {
    position: relative;
    display: grid;
    min-height: 154px;
    align-content: space-between;
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background:
        radial-gradient(circle at 100% 0%, rgba(20, 120, 255, 0.11), transparent 48%),
        linear-gradient(155deg, rgba(9, 23, 42, 0.91), rgba(4, 13, 26, 0.88));
    box-shadow: 0 22px 62px rgba(0, 0, 0, 0.2);
}

.activity-stat::after {
    position: absolute;
    right: -34px;
    bottom: -48px;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(70, 151, 249, 0.11);
    border-radius: 50%;
    box-shadow: 0 0 0 20px rgba(70, 151, 249, 0.025);
    content: "";
    pointer-events: none;
}

.activity-stat-label,
.activity-stat-note {
    position: relative;
    z-index: 1;
    color: var(--muted);
}

.activity-stat-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.activity-stat strong {
    position: relative;
    z-index: 1;
    margin-block: 6px;
    color: #f5f8fd;
    font-size: clamp(2rem, 4vw, 2.65rem);
    font-weight: 880;
    letter-spacing: -0.045em;
    line-height: 1;
}

.activity-stat strong.is-active {
    color: var(--success);
}

.activity-stat strong.is-banned {
    color: var(--danger);
}

.activity-stat-note {
    font-size: 0.76rem;
}

.activity-log {
    margin-top: 52px;
}

.activity-log-header {
    display: flex;
    gap: 28px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
}

.section-kicker {
    color: #6dadff;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.activity-log-header h2 {
    margin: 7px 0 0;
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 870;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.activity-log-header p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.activity-refresh {
    display: inline-flex;
    min-height: 45px;
    gap: 9px;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1rem;
    border: 1px solid rgba(102, 170, 255, 0.22);
    border-radius: 13px;
    background: rgba(10, 31, 57, 0.66);
    color: var(--text-soft);
    cursor: pointer;
    font-size: 0.87rem;
    font-weight: 760;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.activity-refresh:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 170, 255, 0.48);
    background: rgba(15, 52, 92, 0.78);
    color: #fff;
}

.activity-refresh-icon {
    color: var(--blue-bright);
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 360ms ease;
}

.activity-refresh:hover .activity-refresh-icon {
    transform: rotate(180deg);
}

.activity-table-shell {
    overflow: hidden;
    border: 1px solid rgba(125, 174, 235, 0.16);
    border-radius: 22px;
    background:
        radial-gradient(circle at 86% 0%, rgba(20, 120, 255, 0.09), transparent 30rem),
        rgba(5, 14, 27, 0.83);
    box-shadow: 0 30px 86px rgba(0, 0, 0, 0.28);
}

.activity-table-scroll {
    max-width: 100%;
    overflow-x: auto;
}

.activity-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    color: var(--text-soft);
    font-size: 0.87rem;
}

.activity-table th,
.activity-table td {
    padding: 18px 20px;
    text-align: left;
    vertical-align: middle;
}

.activity-table th {
    border-bottom: 1px solid rgba(125, 174, 235, 0.14);
    background: rgba(9, 28, 51, 0.62);
    color: #8fbdf6;
    font-size: 0.67rem;
    font-weight: 820;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.activity-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    color: #9eafc3;
}

.activity-table tbody tr {
    transition: background-color 180ms ease;
}

.activity-table tbody tr:hover {
    background: rgba(32, 100, 176, 0.075);
}

.activity-table tbody tr:last-child td {
    border-bottom: 0;
}

.activity-table time {
    white-space: nowrap;
    font-size: 0.79rem;
}

.activity-address {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.activity-address-icon {
    position: relative;
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: 1px solid rgba(85, 160, 255, 0.24);
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 50%, rgba(35, 139, 255, 0.55) 0 2px, transparent 3px),
        linear-gradient(145deg, rgba(25, 110, 220, 0.2), rgba(4, 27, 53, 0.48));
}

.activity-address-icon::before,
.activity-address-icon::after {
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(83, 165, 255, 0.42);
    border-radius: 50%;
    content: "";
}

.activity-address-icon::after {
    inset: 7px 12px;
}

.activity-address code {
    color: #eff5fd;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.82rem;
}

.activity-count {
    display: inline-flex;
    min-width: 36px;
    min-height: 29px;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.035);
    color: #dce6f3;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.76rem;
}

.activity-status {
    display: inline-flex;
    min-width: 84px;
    gap: 7px;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.62rem;
    border: 1px solid;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 780;
}

.activity-status > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.activity-status.is-active {
    border-color: rgba(65, 214, 163, 0.22);
    background: rgba(65, 214, 163, 0.07);
    color: #64e4b7;
}

.activity-status.is-active > span {
    background: var(--success);
    box-shadow: 0 0 10px rgba(65, 214, 163, 0.65);
}

.activity-status.is-banned {
    border-color: rgba(255, 107, 122, 0.24);
    background: rgba(255, 107, 122, 0.075);
    color: #ff8996;
}

.activity-status.is-banned > span {
    background: var(--danger);
    box-shadow: 0 0 10px rgba(255, 107, 122, 0.58);
}

.activity-empty-row:hover {
    background: transparent !important;
}

.activity-empty {
    display: grid;
    min-height: 260px;
    place-items: center;
    align-content: center;
    gap: 8px;
    text-align: center;
}

.activity-empty-mark {
    position: relative;
    width: 54px;
    height: 54px;
    margin-bottom: 8px;
    border: 1px solid rgba(77, 158, 255, 0.22);
    border-radius: 17px;
    background: rgba(19, 74, 134, 0.15);
}

.activity-empty-mark::before {
    position: absolute;
    inset: 15px;
    border: 2px solid rgba(81, 166, 255, 0.68);
    border-radius: 50%;
    content: "";
}

.activity-empty strong {
    color: var(--text-soft);
}

.activity-empty span:last-child {
    color: var(--muted);
    font-size: 0.82rem;
}

.activity-footer {
    margin-top: 72px;
}

@keyframes activity-live-pulse {
    0% {
        transform: scale(0.65);
        opacity: 0.95;
    }

    85%,
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@media (max-width: 980px) {
    .activity-main {
        padding-top: 68px;
    }

    .activity-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .activity-live-card {
        min-width: min(100%, 260px);
    }

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

@media (max-width: 760px) {
    .activity-main {
        padding-top: 52px;
    }

    .activity-hero {
        gap: 30px;
        padding-bottom: 36px;
    }

    .activity-hero h1 {
        font-size: clamp(3rem, 15vw, 4.5rem);
    }

    .activity-log {
        margin-top: 42px;
    }

    .activity-log-header {
        align-items: stretch;
        flex-direction: column;
    }

    .activity-refresh {
        width: 100%;
    }

    .activity-table-shell {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .activity-table-scroll {
        overflow: visible;
    }

    .activity-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

    .activity-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .activity-table tbody {
        display: grid;
        gap: 14px;
    }

    .activity-table tbody tr {
        display: grid;
        overflow: hidden;
        border: 1px solid rgba(125, 174, 235, 0.16);
        border-radius: 18px;
        background:
            radial-gradient(circle at 100% 0%, rgba(20, 120, 255, 0.09), transparent 16rem),
            rgba(5, 14, 27, 0.86);
        box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
    }

    .activity-table th,
    .activity-table td {
        padding: 13px 16px;
    }

    .activity-table td {
        display: flex;
        gap: 18px;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255, 255, 255, 0.055);
        text-align: right;
    }

    .activity-table td::before {
        color: #7890aa;
        content: attr(data-label);
        font-size: 0.66rem;
        font-weight: 800;
        letter-spacing: 0.07em;
        text-align: left;
        text-transform: uppercase;
    }

    .activity-table td:first-child {
        padding-block: 16px;
        background: rgba(9, 28, 51, 0.5);
    }

    .activity-table td:last-child {
        border-bottom: 0;
    }

    .activity-table tbody tr:hover {
        background:
            radial-gradient(circle at 100% 0%, rgba(20, 120, 255, 0.09), transparent 16rem),
            rgba(5, 14, 27, 0.86);
    }

    .activity-empty-row td {
        display: block;
        padding: 0;
        border: 0;
        text-align: center;
    }

    .activity-empty-row td::before {
        display: none;
    }
}

@media (max-width: 520px) {
    .activity-main {
        padding-top: 42px;
    }

    .activity-hero h1 {
        letter-spacing: -0.055em;
    }

    .activity-live-card {
        width: 100%;
    }

    .activity-stats {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .activity-stat {
        grid-template-columns: 1fr auto;
        min-height: 112px;
        gap: 4px 14px;
        align-items: center;
        padding: 18px;
    }

    .activity-stat-label,
    .activity-stat-note {
        grid-column: 1;
    }

    .activity-stat strong {
        grid-row: 1 / 3;
        grid-column: 2;
        margin: 0;
        font-size: 2.2rem;
    }

    .activity-table td {
        padding-inline: 14px;
    }

    .activity-address code {
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
