body[data-page="social"] {
    --social-bg: #080a0f;
    --social-panel: #11141c;
    --social-panel-soft: #161a24;
    --social-line: rgba(255, 255, 255, 0.09);
    --social-text: #f7f8fb;
    --social-muted: #9ca4b5;
    --social-accent: #ff385c;
    color: var(--social-text);
    background:
        radial-gradient(circle at 78% 8%, rgba(95, 72, 255, 0.14), transparent 30%),
        radial-gradient(circle at 8% 34%, rgba(255, 56, 92, 0.09), transparent 26%),
        var(--social-bg);
}

body[data-page="social"] .topbar {
    background: rgba(8, 10, 15, 0.82);
    border-bottom-color: var(--social-line);
}

body[data-page="social"] .brand-badge {
    overflow: hidden;
    padding: 0;
    background: #08090d;
}

body[data-page="social"] .brand-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body[data-page="social"] .nav-link {
    color: var(--social-muted);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--social-line);
}

body[data-page="social"] .nav-link:hover,
body[data-page="social"] .nav-link.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.18);
}

.social-hero {
    padding: 28px 0 14px;
}

.social-hero-inner,
.social-layout {
    width: min(calc(100% - 32px), var(--content-width));
    margin: 0 auto;
}

.social-profile-card {
    overflow: hidden;
    border: 1px solid var(--social-line);
    border-radius: 26px;
    background: rgba(17, 20, 28, 0.92);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.social-cover {
    position: relative;
    height: 132px;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(255, 56, 92, 0.95), rgba(110, 64, 255, 0.86) 58%, rgba(28, 190, 255, 0.78));
}

.signal-grid {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
    background-size: 36px 36px;
    transform: perspective(300px) rotateX(35deg) scale(1.2);
}

.signal-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.34);
    filter: blur(2px);
}

.signal-orb-one {
    width: 190px;
    height: 190px;
    right: 8%;
    top: -90px;
}

.signal-orb-two {
    width: 90px;
    height: 90px;
    right: 27%;
    bottom: -52px;
}

.social-profile-content {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(280px, .72fr);
    gap: 22px;
    padding: 0 28px 28px;
}

.social-avatar {
    width: 108px;
    height: 108px;
    margin-top: -42px;
    overflow: hidden;
    border: 6px solid var(--social-panel);
    border-radius: 28px;
    background: #08090d;
    box-shadow: 0 14px 30px rgba(0,0,0,.35);
}

.social-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.social-profile-main {
    padding-top: 20px;
}

.social-profile-label,
.stream-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--social-muted);
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.live-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #30e087;
    box-shadow: 0 0 0 5px rgba(48, 224, 135, .1), 0 0 16px rgba(48, 224, 135, .8);
}

.social-profile-main h1 {
    margin: 8px 0 2px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
}

.social-handle {
    margin: 0;
    color: #c3c8d4;
    font-weight: 700;
}

.social-bio {
    max-width: 670px;
    margin: 14px 0 0;
    color: var(--social-muted);
    line-height: 1.65;
}

.social-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.social-actions a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
}

.social-follow-button {
    color: #0b0d12;
    background: #fff;
}

.social-scroll-button {
    color: #fff;
    background: rgba(255,255,255,.07);
    border: 1px solid var(--social-line);
}

.social-profile-status {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1px;
    align-self: center;
    overflow: hidden;
    margin-top: 22px;
    border: 1px solid var(--social-line);
    border-radius: 16px;
    background: var(--social-line);
}

.social-profile-status div {
    min-width: 0;
    padding: 15px;
    background: var(--social-panel-soft);
}

.social-profile-status span,
.social-profile-status strong {
    display: block;
}

.social-profile-status span {
    margin-bottom: 5px;
    color: var(--social-muted);
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.social-profile-status strong {
    overflow: hidden;
    color: #fff;
    font-size: .96rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-topic-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    overflow-x: auto;
    padding: 15px 4px 4px;
    scrollbar-width: none;
}

.social-topic-bar::-webkit-scrollbar {
    display: none;
}

.social-topic-bar span {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid var(--social-line);
    border-radius: 999px;
    color: var(--social-muted);
    background: rgba(255,255,255,.025);
    font-size: .8rem;
    font-weight: 700;
}

.social-topic-bar .topic-label {
    padding-left: 0;
    border: 0;
    color: #fff;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.social-topic-bar i {
    margin-right: 6px;
    color: var(--social-accent);
}

body[data-page="social"] .top-ad-wrap {
    padding-top: 12px;
}

.social-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    padding: 18px 0 44px;
}

.social-stream-shell,
.utility-card {
    border: 1px solid var(--social-line);
    border-radius: 22px;
    background: rgba(17, 20, 28, .86);
    box-shadow: 0 22px 60px rgba(0,0,0,.18);
}

.social-stream-shell {
    overflow: hidden;
}

.social-stream-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 24px;
    border-bottom: 1px solid var(--social-line);
}

.social-stream-head h2 {
    margin: 7px 0 4px;
    font-size: 1.55rem;
}

.social-stream-head p {
    margin: 0;
    color: var(--social-muted);
}

.social-stream-head > a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--social-line);
    border-radius: 12px;
    color: #fff;
    background: rgba(255,255,255,.04);
    text-decoration: none;
}

.social-stream-body {
    padding: 20px;
}

body[data-page="social"] .feed-grid {
    grid-template-columns: 1fr;
}

body[data-page="social"] .tweet-card {
    position: relative;
    padding: 21px;
    border-color: var(--social-line);
    border-radius: 16px;
    color: var(--social-text);
    background: var(--social-panel-soft);
}

body[data-page="social"] .tweet-card:hover {
    border-color: rgba(255,56,92,.45);
    box-shadow: 0 18px 38px rgba(0,0,0,.25);
}

body[data-page="social"] .tweet-badge {
    color: #fff;
    background: rgba(255,56,92,.13);
}

body[data-page="social"] .tweet-title {
    font-size: 1.15rem;
    font-weight: 600;
}

body[data-page="social"] .tweet-meta {
    color: var(--social-muted);
}

.social-utility-rail {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.utility-card {
    padding: 18px;
}

.utility-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    color: #fff;
    font-weight: 800;
}

.utility-card-head > i {
    color: var(--social-accent);
}

body[data-page="social"] .sidebar-list a {
    color: #fff;
    border-top-color: var(--social-line);
}

body[data-page="social"] .sidebar-list-meta,
body[data-page="social"] .state-box {
    color: var(--social-muted);
}

body[data-page="social"] .state-box {
    border-color: var(--social-line);
    background: rgba(255,255,255,.03);
}

.social-network-card > a {
    display: grid;
    grid-template-columns: 32px minmax(0,1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--social-line);
    color: #fff;
    text-decoration: none;
}

.social-network-card > a > i:first-child {
    font-size: 1.1rem;
    color: var(--social-accent);
}

.social-network-card > a > i:last-child {
    color: #606879;
    font-size: .75rem;
}

.social-network-card small {
    display: block;
    margin-top: 3px;
    color: var(--social-muted);
}

.utility-ad-card {
    text-align: center;
}

.utility-ad-label {
    color: #727b8e;
    font-size: .67rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

body[data-page="social"] .footer {
    border-top-color: var(--social-line);
    background: #0b0d13;
}

body[data-page="social"] .footer h3,
body[data-page="social"] .footer p,
body[data-page="social"] .footer li,
body[data-page="social"] .footer a {
    color: var(--social-muted);
}

@media (max-width: 980px) {
    .social-profile-content {
        grid-template-columns: auto minmax(0,1fr);
    }

    .social-profile-status {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, minmax(0,1fr));
        width: 100%;
        margin-top: 0;
    }

    .social-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .social-hero-inner,
    .social-layout {
        width: min(calc(100% - 20px), var(--content-width));
    }

    .social-cover {
        height: 104px;
    }

    .social-profile-content {
        grid-template-columns: 1fr;
        padding: 0 18px 20px;
    }

    .social-avatar {
        width: 88px;
        height: 88px;
        margin-top: -38px;
        font-size: 2rem;
    }

    .social-profile-main {
        padding-top: 0;
    }

    .social-profile-status {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .social-stream-head,
    .social-stream-body {
        padding-left: 16px;
        padding-right: 16px;
    }
}
