/* =========================================================
   VizitGo top tweets redesign v001
   Structure: base / header / hero / feed / tweets / active users / footer / cookies
   ========================================================= */

:root {
    --nt-bg: #f6f8fd;
    --nt-surface: #ffffff;
    --nt-surface-2: rgba(255, 255, 255, .82);
    --nt-text: #11172a;
    --nt-muted: #657088;
    --nt-line: rgba(17, 23, 42, .10);
    --nt-primary: #5367ff;
    --nt-primary-2: #764cff;
    --nt-cyan: #12b9af;
    --nt-orange: #ff7a45;
    --nt-success: #14a66a;
    --nt-error: #dd3b3b;
    --nt-radius: 24px;
    --nt-radius-sm: 16px;
    --nt-shadow: 0 24px 70px rgba(29, 37, 68, .12);
    --nt-shadow-soft: 0 14px 38px rgba(29, 37, 68, .08);
    --nt-container: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.new-tweets-body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 12% 0%, rgba(83, 103, 255, .13), transparent 34rem),
        radial-gradient(circle at 92% 4%, rgba(18, 185, 175, .15), transparent 38rem),
        linear-gradient(180deg, #fbfcff 0%, var(--nt-bg) 48%, #f8f9fd 100%);
    color: var(--nt-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    text-rendering: geometricPrecision;
}

body.new-tweets-body.is-menu-open {
    overflow: hidden;
}

body.new-tweets-body a {
    color: inherit;
}

.new-tweets-container {
    width: min(var(--nt-container), calc(100% - 40px));
    margin: 0 auto;
}

/* Header */
.new-tweets-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .84);
    border-bottom: 1px solid var(--nt-line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: box-shadow .22s ease, background .22s ease;
}

.new-tweets-header.is-scrolled {
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 42px rgba(17, 23, 42, .08);
}

.new-tweets-header__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.new-tweets-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--nt-text);
    text-decoration: none;
    font-weight: 850;
    letter-spacing: -.04em;
    white-space: nowrap;
}

.new-tweets-logo__mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--nt-primary), var(--nt-primary-2));
    color: #fff;
    box-shadow: 0 14px 28px rgba(83, 103, 255, .25);
    font-weight: 900;
}

.new-tweets-logo__text {
    font-size: 1.08rem;
}

.new-tweets-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-tweets-nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--nt-muted);
    text-decoration: none;
    font-size: .94rem;
    font-weight: 800;
    transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.new-tweets-nav a:hover,
.new-tweets-nav a.is-active {
    color: var(--nt-text);
    background: rgba(17, 23, 42, .06);
}

.new-tweets-nav__login {
    color: var(--nt-text) !important;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--nt-line);
}

.new-tweets-nav__cta {
    color: #fff !important;
    background: linear-gradient(135deg, var(--nt-primary), var(--nt-primary-2)) !important;
    box-shadow: 0 14px 30px rgba(83, 103, 255, .24);
}

.new-tweets-menu-toggle {
    width: 46px;
    height: 46px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--nt-line);
    cursor: pointer;
}

.new-tweets-menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--nt-text);
    transition: transform .2s ease, opacity .2s ease;
}

.new-tweets-menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.new-tweets-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.new-tweets-menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.new-tweets-main {
    overflow: hidden;
}

.new-tweets-hero {
    padding: 62px 0 32px;
}

.new-tweets-hero__inner {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
    padding: 38px;
    border: 1px solid rgba(17, 23, 42, .08);
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .90), rgba(255, 255, 255, .66)),
        radial-gradient(circle at 100% 0%, rgba(18, 185, 175, .13), transparent 24rem),
        radial-gradient(circle at 5% 0%, rgba(255, 122, 69, .08), transparent 18rem);
    box-shadow: var(--nt-shadow-soft);
    overflow: hidden;
}

.new-tweets-hero__inner::after {
    content: '';
    position: absolute;
    right: 40px;
    top: 28px;
    width: 116px;
    height: 116px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(83, 103, 255, .10), rgba(18, 185, 175, .13));
    transform: rotate(10deg);
    pointer-events: none;
}

.new-tweets-hero__content,
.new-tweets-hero__actions {
    position: relative;
    z-index: 1;
}

.new-tweets-hero__content {
    max-width: 760px;
}

.new-tweets-kicker {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(83, 103, 255, .10);
    color: #3d50dd;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.new-tweets-kicker i {
    color: var(--nt-orange);
}

.new-tweets-hero h1 {
    max-width: 760px;
    margin: 18px 0 12px;
    color: var(--nt-text);
    font-size: clamp(2.25rem, 4.6vw, 4rem);
    line-height: .98;
    letter-spacing: -.06em;
}

.new-tweets-hero p {
    max-width: 690px;
    margin: 0;
    color: var(--nt-muted);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.new-tweets-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    flex: 0 0 auto;
}

.new-tweets-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.new-tweets-btn:hover {
    transform: translateY(-2px);
}

.new-tweets-btn--primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--nt-primary), var(--nt-primary-2));
    box-shadow: 0 16px 34px rgba(83, 103, 255, .25);
}

.new-tweets-btn--ghost {
    color: var(--nt-text) !important;
    background: #fff;
    border-color: var(--nt-line);
}

/* Main layout */
.new-tweets-section {
    padding: 32px 0 76px;
}

.new-tweets-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: start;
}

.new-tweets-feed-card,
.active-users {
    border: 1px solid rgba(17, 23, 42, .08);
    border-radius: var(--nt-radius);
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--nt-shadow-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.new-tweets-feed-card {
    min-width: 0;
    padding: 26px;
}

.new-tweets-feed-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.new-tweets-feed-card h2,
.active-users h2 {
    margin: 12px 0 0;
    color: var(--nt-text);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.new-tweets-feed-card h2 {
    font-size: clamp(2rem, 3.2vw, 3rem);
}

.new-tweets-feed__status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(18, 185, 175, .12);
    color: #087d75;
    font-size: .8rem;
    font-weight: 900;
}

.new-tweets-feed__status.is-error {
    background: rgba(221, 59, 59, .11);
    color: var(--nt-error);
}

/* Filter buttons */
.tweet-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 6px;
    margin-bottom: 22px;
    border-radius: 18px;
    background: rgba(17, 23, 42, .045);
}

.filter-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 190px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #59647b;
    font-family: inherit;
    font-size: .94rem;
    font-weight: 900;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.filter-button:hover,
.filter-button.active {
    background: #fff;
    color: var(--nt-text);
    box-shadow: 0 10px 22px rgba(17, 23, 42, .08);
}

.filter-button.active i {
    color: var(--nt-orange);
}

/* Tweets from API */
.tweet-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.tweet-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(17, 23, 42, .08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(17, 23, 42, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tweet-item::before {
    content: '';
    position: absolute;
    inset: 16px auto 16px 0;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--nt-primary), var(--nt-cyan));
}

.tweet-item:hover {
    transform: translateY(-2px);
    border-color: rgba(83, 103, 255, .18);
    box-shadow: 0 18px 48px rgba(17, 23, 42, .10);
}

.tweet-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(17, 23, 42, .12);
}

.tweet-body {
    min-width: 0;
    flex: 1 1 auto;
}

.tweet-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--nt-muted);
    font-size: .86rem;
    font-weight: 700;
}

.tweet-author,
.tweet-meta strong,
.tweet-meta b,
.author_tweets {
    color: var(--nt-text) !important;
    font-weight: 900;
}

.author_tweets,
.tweet-meta a {
    text-decoration: none;
}

.author_tweets:hover,
.tweet-meta a:hover {
    color: #3d50dd !important;
}

.tweet-time {
    color: var(--nt-muted);
    font-size: .82rem;
    white-space: nowrap;
}

.tweet-content {
    min-width: 0;
    color: #263049;
    font-size: 1rem;
    line-height: 1.62;
    overflow-wrap: anywhere;
}

.tweet-content p {
    margin: 0 0 10px;
}

.tweet-content p:last-child {
    margin-bottom: 0;
}

.tweet-content ul,
.tweet-content ol,
.tweets-section .tweet-content ul,
.tweets-section .tweet-content ol {
    margin: 10px 0;
    padding-left: 22px;
}

.tweet-content ul,
.tweets-section .tweet-content ul {
    list-style-type: disc !important;
}

.tweet-content ol,
.tweets-section .tweet-content ol {
    list-style-type: decimal !important;
}

.tweet-content li,
.tweets-section .tweet-content li {
    display: list-item !important;
    list-style: inherit !important;
    margin-bottom: 6px;
}

.tweet-content strong {
    color: var(--nt-text);
    font-weight: 900;
}

.tweet-content em {
    font-style: italic;
}

.reactions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.reaction {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    border-radius: 999px;
    background: #f6f7fb;
    color: #5f6a82;
    font-size: .85rem;
    font-weight: 850;
    cursor: pointer;
    user-select: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.reaction:hover,
.reaction.active {
    color: #3d50dd;
    background: rgba(83, 103, 255, .10);
    transform: translateY(-1px);
}

.reaction.like i,
.reaction[data-type="like"] i {
    color: #ef4444;
}

.reaction.retweet i,
.reaction[data-type="retweet"] i {
    color: #22a66b;
}

.reaction.comment i,
.reaction[data-type="comment"] i {
    color: #3d67ff;
}

.reaction.is-loading {
    pointer-events: none;
    opacity: .65;
}

/* Active users */
.active-users {
    position: sticky;
    top: 94px;
    padding: 22px;
}

.active-users__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 14px;
}

.active-users__icon {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(83, 103, 255, .15), rgba(18, 185, 175, .16));
    color: #3d50dd;
}

.active-users h2 {
    font-size: 1.65rem;
}

.active-users__text {
    margin: 0 0 16px;
    color: var(--nt-muted);
    font-size: .96rem;
}

.active-users ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.active-users li {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(17, 23, 42, .07);
}

.active-users__loading,
.active-users__empty {
    display: block !important;
    color: var(--nt-muted);
    font-weight: 800;
    text-align: center;
}

.user-rank {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--nt-primary), var(--nt-primary-2));
}

.user-rank.rank-1 {
    background: linear-gradient(135deg, #ffc83d, #ff7a45);
}

.user-rank.rank-2 {
    background: linear-gradient(135deg, #a8b0c2, #6a7284);
}

.user-rank.rank-3 {
    background: linear-gradient(135deg, #d99655, #9c5b2d);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    object-fit: cover;
    background: #eef1f8;
}

.user-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-link {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--nt-text);
    text-decoration: none;
    font-weight: 900;
}

.user-link:hover {
    color: var(--nt-primary);
}

.tweet-count {
    color: var(--nt-muted);
    font-size: .82rem;
    font-weight: 750;
}

/* Pagination, messages, states */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.pagination a {
    min-width: 38px;
    min-height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    color: var(--nt-muted);
    text-decoration: none;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px var(--nt-line);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.pagination a:hover,
.pagination a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--nt-primary), var(--nt-primary-2));
    transform: translateY(-1px);
    box-shadow: none;
}

.messages {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2147482000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.messages p {
    max-width: 320px;
    margin: 0;
    padding: 12px 15px;
    border-radius: 16px;
    color: #fff !important;
    box-shadow: 0 16px 34px rgba(17, 23, 42, .18);
    font-size: .92rem;
    font-weight: 800;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .22s ease, transform .22s ease;
}

.messages p.show {
    opacity: 1;
    transform: translateY(0);
}

.message-success {
    background: linear-gradient(135deg, #14a66a, #12b9af) !important;
}

.message-error {
    background: linear-gradient(135deg, #dd3b3b, #ec6b4b) !important;
}

.new-tweets-empty,
.new-tweets-error {
    padding: 24px;
    border-radius: 20px;
    background: #fff;
    color: var(--nt-muted);
    font-weight: 800;
    text-align: center;
    box-shadow: inset 0 0 0 1px var(--nt-line);
}

.new-tweets-error {
    color: var(--nt-error);
    background: rgba(221, 59, 59, .06);
}

.new-tweets-skeleton {
    height: 132px;
    border-radius: 22px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .70), rgba(236, 240, 248, .92), rgba(255, 255, 255, .70));
    background-size: 220% 100%;
    box-shadow: inset 0 0 0 1px var(--nt-line);
    animation: ntSkeleton 1.1s linear infinite;
}

@keyframes ntSkeleton {
    to {
        background-position: -220% 0;
    }
}

/* Footer */
.new-tweets-footer {
    padding: 42px 0 26px;
    border-top: 1px solid var(--nt-line);
    background: rgba(255, 255, 255, .60);
}

.new-tweets-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, .8fr) minmax(220px, .8fr);
    gap: 24px;
    align-items: start;
}

.new-tweets-logo--footer .new-tweets-logo__mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
}

.new-tweets-footer p {
    margin: 14px 0 0;
    color: var(--nt-muted);
}

.new-tweets-footer__links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.new-tweets-footer__links a {
    color: #4e5a72;
    text-decoration: none;
    font-weight: 750;
}

.new-tweets-footer__links a:hover {
    color: var(--nt-primary);
}

.new-tweets-footer__contact span {
    display: block;
    margin-bottom: 10px;
    color: var(--nt-text);
    font-weight: 900;
}

.new-tweets-footer__contact p {
    margin: 0;
    overflow-wrap: anywhere;
}

.new-tweets-footer__contact i {
    color: var(--nt-primary);
}

.new-tweets-footer__bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--nt-line);
    color: var(--nt-muted);
    font-size: .92rem;
}

.new-tweets-footer__bottom p {
    margin: 0;
}

/* Robust cookie card injected by getSiteCounters(). The stylesheet is loaded again after counters. */
body.new-tweets-body :where(
    .cookie-consent,
    .cookies-consent,
    .cookie-banner,
    .cookies-banner,
    .cookie-popup,
    .cookies-popup,
    .cookie-notice,
    .cookies-notice,
    .cookie-modal,
    .cookies-modal,
    #cookieConsent,
    #cookie-consent,
    #cookie_banner,
    #cookie-banner,
    #cookiesConsent,
    #cookies-consent
) {
    position: fixed !important;
    right: max(18px, env(safe-area-inset-right)) !important;
    bottom: max(18px, env(safe-area-inset-bottom)) !important;
    left: auto !important;
    top: auto !important;
    z-index: 2147483000 !important;
    display: block !important;
    visibility: visible !important;
    width: min(380px, calc(100vw - 36px)) !important;
    max-width: calc(100vw - 36px) !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: min(560px, calc(100vh - 36px)) !important;
    overflow: auto !important;
    padding: 18px !important;
    border: 1px solid rgba(29, 38, 61, .10) !important;
    border-left: 1px solid rgba(29, 38, 61, .10) !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, .98) !important;
    color: #20263a !important;
    box-shadow: 0 24px 70px rgba(18, 25, 45, .18) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    text-align: left !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
}

body.new-tweets-body :where(
    .cookie-consent,
    .cookies-consent,
    .cookie-banner,
    .cookies-banner,
    .cookie-popup,
    .cookies-popup,
    .cookie-notice,
    .cookies-notice,
    .cookie-modal,
    .cookies-modal,
    #cookieConsent,
    #cookie-consent,
    #cookie_banner,
    #cookie-banner,
    #cookiesConsent,
    #cookies-consent
) :where(.cookie-content, .cookies-content, .cookie-inner, .cookies-inner, form) {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #20263a !important;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    text-align: left !important;
}

body.new-tweets-body :where(
    .cookie-consent,
    .cookies-consent,
    .cookie-banner,
    .cookies-banner,
    .cookie-popup,
    .cookies-popup,
    .cookie-notice,
    .cookies-notice,
    .cookie-modal,
    .cookies-modal,
    #cookieConsent,
    #cookie-consent,
    #cookie_banner,
    #cookie-banner,
    #cookiesConsent,
    #cookies-consent
) :where(p, span, strong, label, div) {
    max-width: none !important;
    color: #20263a !important;
    opacity: 1 !important;
    filter: none !important;
    text-align: left !important;
}

body.new-tweets-body :where(
    .cookie-consent,
    .cookies-consent,
    .cookie-banner,
    .cookies-banner,
    .cookie-popup,
    .cookies-popup,
    .cookie-notice,
    .cookies-notice,
    .cookie-modal,
    .cookies-modal,
    #cookieConsent,
    #cookie-consent,
    #cookie_banner,
    #cookie-banner,
    #cookiesConsent,
    #cookies-consent
) p {
    margin: 0 0 2px !important;
    color: #475067 !important;
    font-size: 14px !important;
    font-weight: 550 !important;
    line-height: 1.48 !important;
}

body.new-tweets-body :where(
    .cookie-consent,
    .cookies-consent,
    .cookie-banner,
    .cookies-banner,
    .cookie-popup,
    .cookies-popup,
    .cookie-notice,
    .cookies-notice,
    .cookie-modal,
    .cookies-modal,
    #cookieConsent,
    #cookie-consent,
    #cookie_banner,
    #cookie-banner,
    #cookiesConsent,
    #cookies-consent
) a {
    color: #4f6cff !important;
    font-weight: 850 !important;
    text-decoration: none !important;
}

body.new-tweets-body :where(
    .cookie-consent,
    .cookies-consent,
    .cookie-banner,
    .cookies-banner,
    .cookie-popup,
    .cookies-popup,
    .cookie-notice,
    .cookies-notice,
    .cookie-modal,
    .cookies-modal,
    #cookieConsent,
    #cookie-consent,
    #cookie_banner,
    #cookie-banner,
    #cookiesConsent,
    #cookies-consent
) label {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    color: #20263a !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.36 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
}

body.new-tweets-body :where(
    .cookie-consent,
    .cookies-consent,
    .cookie-banner,
    .cookies-banner,
    .cookie-popup,
    .cookies-popup,
    .cookie-notice,
    .cookies-notice,
    .cookie-modal,
    .cookies-modal,
    #cookieConsent,
    #cookie-consent,
    #cookie_banner,
    #cookie-banner,
    #cookiesConsent,
    #cookies-consent
) input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 1px 0 0 !important;
    border: 1px solid rgba(32, 38, 58, .24) !important;
    border-radius: 6px !important;
    background: #fff !important;
    box-shadow: inset 0 0 0 2px #fff !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

body.new-tweets-body :where(
    .cookie-consent,
    .cookies-consent,
    .cookie-banner,
    .cookies-banner,
    .cookie-popup,
    .cookies-popup,
    .cookie-notice,
    .cookies-notice,
    .cookie-modal,
    .cookies-modal,
    #cookieConsent,
    #cookie-consent,
    #cookie_banner,
    #cookie-banner,
    #cookiesConsent,
    #cookies-consent
) input[type="checkbox"]:checked {
    border-color: #4f6cff !important;
    background-color: #4f6cff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 13px 13px !important;
}

body.new-tweets-body :where(
    .cookie-consent,
    .cookies-consent,
    .cookie-banner,
    .cookies-banner,
    .cookie-popup,
    .cookies-popup,
    .cookie-notice,
    .cookies-notice,
    .cookie-modal,
    .cookies-modal,
    #cookieConsent,
    #cookie-consent,
    #cookie_banner,
    #cookie-banner,
    #cookiesConsent,
    #cookies-consent
) :where(button, .cookie-button, .cookies-button, input[type="button"], input[type="submit"]) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 118px !important;
    min-height: 42px !important;
    padding: 0 18px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    opacity: 1 !important;
    transform: none !important;
}

body.new-tweets-body :where(
    .cookie-consent,
    .cookies-consent,
    .cookie-banner,
    .cookies-banner,
    .cookie-popup,
    .cookies-popup,
    .cookie-notice,
    .cookies-notice,
    .cookie-modal,
    .cookies-modal,
    #cookieConsent,
    #cookie-consent,
    #cookie_banner,
    #cookie-banner,
    #cookiesConsent,
    #cookies-consent
) :where(button, .cookie-button, .cookies-button, input[type="button"], input[type="submit"]):not(:disabled) {
    background: linear-gradient(135deg, #4f6cff, #7c4dff) !important;
    color: #fff !important;
    box-shadow: 0 16px 32px rgba(79, 108, 255, .26) !important;
}

body.new-tweets-body :where(
    .cookie-consent,
    .cookies-consent,
    .cookie-banner,
    .cookies-banner,
    .cookie-popup,
    .cookies-popup,
    .cookie-notice,
    .cookies-notice,
    .cookie-modal,
    .cookies-modal,
    #cookieConsent,
    #cookie-consent,
    #cookie_banner,
    #cookie-banner,
    #cookiesConsent,
    #cookies-consent
) :where(button, .cookie-button, .cookies-button, input[type="button"], input[type="submit"]):disabled {
    background: rgba(32, 38, 58, .08) !important;
    color: rgba(32, 38, 58, .36) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

body.new-tweets-body :where(
    .cookie-consent,
    .cookies-consent,
    .cookie-banner,
    .cookies-banner,
    .cookie-popup,
    .cookies-popup,
    .cookie-notice,
    .cookies-notice,
    .cookie-modal,
    .cookies-modal,
    #cookieConsent,
    #cookie-consent,
    #cookie_banner,
    #cookie-banner,
    #cookiesConsent,
    #cookies-consent
) :where(.cookie-actions, .cookies-actions, .cookie-buttons, .cookies-buttons),
body.new-tweets-body .cookie-content > div:last-child {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-top: 2px !important;
    text-align: left !important;
}

/* Responsive */
@media (max-width: 980px) {
    .new-tweets-hero__inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 30px;
    }

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

    .active-users {
        position: static;
    }

    .active-users ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .new-tweets-container {
        width: min(100% - 28px, var(--nt-container));
    }

    .new-tweets-header__inner {
        min-height: 66px;
    }

    .new-tweets-menu-toggle {
        display: flex;
    }

    .new-tweets-nav {
        position: fixed;
        left: 14px;
        right: 14px;
        top: 76px;
        display: grid;
        gap: 8px;
        padding: 12px;
        border: 1px solid var(--nt-line);
        border-radius: 22px;
        background: rgba(255, 255, 255, .98);
        box-shadow: var(--nt-shadow);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
    }

    .new-tweets-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .new-tweets-nav a {
        justify-content: flex-start;
        padding: 0 14px;
    }

    .new-tweets-hero {
        padding: 34px 0 22px;
    }

    .new-tweets-hero__inner {
        padding: 24px;
        border-radius: 26px;
    }

    .new-tweets-hero__inner::after {
        display: none;
    }

    .new-tweets-hero h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .new-tweets-hero__actions,
    .new-tweets-btn {
        width: 100%;
    }

    .new-tweets-section {
        padding: 22px 0 54px;
    }

    .new-tweets-feed-card,
    .active-users {
        padding: 18px;
        border-radius: 22px;
    }

    .new-tweets-feed-card__head {
        flex-direction: column;
    }

    .tweet-filter-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .filter-button {
        flex-basis: auto;
    }

    .tweet-item {
        padding: 15px;
        gap: 12px;
        border-radius: 20px;
    }

    .tweet-avatar {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 13px;
    }

    .tweet-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .tweet-time {
        white-space: normal;
    }

    .reactions {
        justify-content: flex-start;
    }

    .active-users ul {
        grid-template-columns: 1fr;
    }

    .new-tweets-footer__inner {
        grid-template-columns: 1fr;
    }

    .messages {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .messages p {
        max-width: none;
    }

    body.new-tweets-body :where(
        .cookie-consent,
        .cookies-consent,
        .cookie-banner,
        .cookies-banner,
        .cookie-popup,
        .cookies-popup,
        .cookie-notice,
        .cookies-notice,
        .cookie-modal,
        .cookies-modal,
        #cookieConsent,
        #cookie-consent,
        #cookie_banner,
        #cookie-banner,
        #cookiesConsent,
        #cookies-consent
    ) {
        right: 12px !important;
        bottom: 12px !important;
        width: calc(100vw - 24px) !important;
        max-height: min(520px, calc(100vh - 24px)) !important;
        padding: 16px !important;
        border-radius: 22px !important;
    }

    body.new-tweets-body :where(
        .cookie-consent,
        .cookies-consent,
        .cookie-banner,
        .cookies-banner,
        .cookie-popup,
        .cookies-popup,
        .cookie-notice,
        .cookies-notice,
        .cookie-modal,
        .cookies-modal,
        #cookieConsent,
        #cookie-consent,
        #cookie_banner,
        #cookie-banner,
        #cookiesConsent,
        #cookies-consent
    ) p {
        font-size: 13px !important;
    }

    body.new-tweets-body :where(
        .cookie-consent,
        .cookies-consent,
        .cookie-banner,
        .cookies-banner,
        .cookie-popup,
        .cookies-popup,
        .cookie-notice,
        .cookies-notice,
        .cookie-modal,
        .cookies-modal,
        #cookieConsent,
        #cookie-consent,
        #cookie_banner,
        #cookie-banner,
        #cookiesConsent,
        #cookies-consent
    ) :where(button, .cookie-button, .cookies-button, input[type="button"], input[type="submit"]) {
        min-width: 0 !important;
        flex: 1 1 120px !important;
    }
}

@media (max-width: 480px) {
    .new-tweets-logo__text {
        font-size: 1rem;
    }

    .new-tweets-logo__mark {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .new-tweets-hero__inner,
    .new-tweets-feed-card,
    .active-users {
        border-radius: 20px;
    }

    .tweet-item {
        display: block;
    }

    .tweet-avatar {
        float: left;
        margin: 0 12px 8px 0;
    }

    .tweet-body {
        display: block;
    }

    .active-users__head {
        grid-template-columns: 1fr;
    }

    .active-users__icon {
        margin-bottom: 2px;
    }
}


/* Cookie bridge hard hide fix v2: page cookie styles above used display:block!important. */
body.new-tweets-body .new-cookie-hidden,
body.new-tweets-body [data-new-cookie-hidden="true"],
body.new-tweets-body :where(
    .cookie-consent,
    .cookies-consent,
    .cookie-banner,
    .cookies-banner,
    .cookie-popup,
    .cookies-popup,
    .cookie-notice,
    .cookies-notice,
    .cookie-modal,
    .cookies-modal,
    #cookieConsent,
    #cookie-consent,
    #cookie_banner,
    #cookie-banner,
    #cookiesConsent,
    #cookies-consent,
    [data-cookie-consent],
    [data-cookies-consent],
    [data-cookie-banner],
    [data-cookie-notice],
    [class*="cookie" i],
    [id*="cookie" i],
    [class*="cookies" i],
    [id*="cookies" i]
).new-cookie-hidden,
body.new-tweets-body :where(
    .cookie-consent,
    .cookies-consent,
    .cookie-banner,
    .cookies-banner,
    .cookie-popup,
    .cookies-popup,
    .cookie-notice,
    .cookies-notice,
    .cookie-modal,
    .cookies-modal,
    #cookieConsent,
    #cookie-consent,
    #cookie_banner,
    #cookie-banner,
    #cookiesConsent,
    #cookies-consent,
    [data-cookie-consent],
    [data-cookies-consent],
    [data-cookie-banner],
    [data-cookie-notice],
    [class*="cookie" i],
    [id*="cookie" i],
    [class*="cookies" i],
    [id*="cookies" i]
)[data-new-cookie-hidden="true"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    max-height: 0 !important;
    min-height: 0 !important;
    width: 0 !important;
    max-width: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

/* v004 safety: cookie bridge must be able to hide counters block */
body.new-tweets-body .new-cookie-hidden,
body.new-tweets-body [data-new-cookie-hidden="true"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
