:root {
    --bg: #0a1430;
    --bg2: #111b3d;
    --pink: #ff4fa7;
    --pink-soft: #ff8cc8;
    --blue: #3f86ff;
    --blue-soft: #7cb2ff;
    --ink: #f4f7ff;
    --muted: #b8c4ea;
    --panel: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.14);
    --danger: #ff537f;
    --ok: #56d98d;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 14% 20%, rgba(255, 79, 167, 0.2), transparent 30%),
        radial-gradient(circle at 90% 84%, rgba(63, 134, 255, 0.3), transparent 34%),
        linear-gradient(160deg, var(--bg), var(--bg2));
}

body.js-booting .app-phone,
body.js-booting .profile-card,
body.js-booting .site-footer {
    opacity: 0;
    transform: translateY(10px);
}

body.js-ready .app-phone,
body.js-ready .profile-card,
body.js-ready .site-footer {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.lazy-media {
    transition: opacity 0.28s ease, filter 0.28s ease, transform 0.28s ease;
}

.lazy-media.is-pending {
    opacity: 0.35;
    filter: blur(8px);
    transform: scale(1.015);
    background: linear-gradient(90deg, rgba(255,255,255,0.14), rgba(255,255,255,0.28), rgba(255,255,255,0.14));
    background-size: 200% 100%;
    animation: lazyShimmer 1.4s linear infinite;
}

.lazy-media.is-loaded {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
}

.feed-timeline .insight-empty,
.profile-card .insight-empty,
.profile-feed-status {
    position: relative;
    overflow: hidden;
}

.feed-timeline .insight-empty::after,
.profile-card .insight-empty::after,
.profile-feed-status::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
    transform: translateX(-100%);
    animation: lazyShimmer 1.6s linear infinite;
    pointer-events: none;
}

@keyframes lazyShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

h1,
h2,
h3,
p {
    margin: 0;
}

.auth-shell {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 12px;
}

.app-phone {
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.34);
}

.app-top {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(255, 79, 167, 0.22), rgba(63, 134, 255, 0.25));
    border-bottom: 1px solid var(--line);
}

.app-name {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-head {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    position: relative;
}

.site-logo {
    width: 80px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    animation: floatLogo 2.2s ease-in-out infinite;
    box-shadow: 0 0 0 rgba(255, 79, 167, 0);
}

.dashboard-page .dashboard-logo {
    width: 60px;
    height: 30px;
        animation: none;

}

.brand-head::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 140, 200, 0.5), rgba(63, 134, 255, 0));
    pointer-events: none;
    animation: pulseGlow 1.8s ease-in-out infinite;
}

.app-sub {
    margin-top: 2px;
    font-size: 0.72rem;
    color: var(--muted);
}

.activity-marquee {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 20px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(129, 154, 193, 0.18);
    box-shadow: 0 8px 18px rgba(95, 123, 173, 0.08);
    color: #4b628b;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.activity-avatar-wrap {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    position: relative;
}

.activity-avatar,
.activity-avatar-fallback {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(94, 152, 255, 0.25);
    box-shadow: 0 8px 18px rgba(103, 132, 182, 0.14);
}

.activity-avatar-fallback {
    display: grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #ff67af, #5e98ff);
}

.activity-meta {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.activity-text {
    margin: 0;
    line-height: 1.25;
}

.activity-time {
    font-size: 0.68rem;
    color: #8394b2;
    font-weight: 700;
}

.top-icons {
    display: flex;
    align-items: center;
    gap: 7px;
}

.top-icons > span:not(.icon-badge) {
    font-size: 1.05rem;
    animation: pop 1.3s ease-in-out infinite;
}

.top-icons img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.logo-float {
    animation: floatLogo 2.2s ease-in-out infinite;
}

.icon-badge {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 79, 167, 0.9), rgba(63, 134, 255, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.35);
    animation: pulseBadge 1.5s ease-in-out infinite;
}

@keyframes pop {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.14);
    }
}

@keyframes floatLogo {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes pulseBadge {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 140, 200, 0.45);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 5px rgba(255, 140, 200, 0);
    }
}

@keyframes pulseGlow {
    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.45;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.9;
    }
}

.brand-panel {
    margin: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(11, 21, 53, 0.7);
}

.eyebrow {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
}

.brand-panel h1 {
    margin-top: 8px;
    font-size: 1.16rem;
    line-height: 1.2;
}

.brand-panel p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.84rem;
}

.auth-card,
.profile-card {
    margin: 10px;
    /* padding: 12px; */
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(13, 24, 57, 0.85);
}

.auth-card h2 {
    font-size: 1.05rem;
}

.muted {
    margin-top: 4px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.82rem;
}

form {
    display: grid;
    gap: 7px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #d4deff;
}

input {
    width: 100%;
    border: 1px solid rgba(124, 178, 255, 0.45);
    border-radius: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.9rem;
}

select {
    width: 100%;
    border: 1px solid rgba(124, 178, 255, 0.45);
    border-radius: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.9rem;
}

textarea {
    width: 100%;
    border: 1px solid rgba(124, 178, 255, 0.45);
    border-radius: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    line-height: 1.4;
}

select:focus {
    outline: none;
    border-color: var(--pink-soft);
    box-shadow: 0 0 0 3px rgba(255, 140, 200, 0.2);
}

textarea:focus {
    outline: none;
    border-color: var(--pink-soft);
    box-shadow: 0 0 0 3px rgba(255, 140, 200, 0.2);
}

input::placeholder {
    color: #aebbe6;
}

textarea::placeholder {
    color: #aebbe6;
}

input:focus {
    outline: none;
    border-color: var(--pink-soft);
    box-shadow: 0 0 0 3px rgba(255, 140, 200, 0.2);
}

.image-preview {
    margin-top: 6px;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.03);
    padding: 7px;
}

.image-preview img {
    width: 100%;
    height: 84px;
    border-radius: 8px;
    object-fit: cover;
    display: none;
}

.image-preview img.show {
    display: block;
}

.image-preview p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    word-break: break-word;
}

.btn-primary {
    margin-top: 8px;
    border: 0;
    border-radius: 11px;
    padding: 11px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--pink), var(--blue));
}

.btn-primary:active {
    transform: scale(0.99);
}

.btn-primary.danger {
    background: linear-gradient(135deg, #ff658e, #f02d64);
}

.switch-link {
    margin-top: 10px;
    text-align: center;
    color: var(--muted);
    font-size: 0.84rem;
}

.switch-link a {
    color: #ff9cd2;
    font-weight: 700;
    text-decoration: none;
}

.form-message {
    min-height: 18px;
    font-size: 0.8rem;
}

.form-message.success {
    color: var(--ok);
}

.form-message.error {
    color: var(--danger);
}

.male-text {
    color: #77b8ff !important;
}

.female-text {
    color: #ff9bd8 !important;
}

.insights-card {
    margin-top: 4px;
    padding-top: 8px;
}

.online-summary-card {
    margin-top: 6px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background:
        radial-gradient(circle at 10% 0%, rgba(122, 180, 255, 0.16), transparent 34%),
        radial-gradient(circle at 90% 100%, rgba(255, 143, 207, 0.15), transparent 34%),
        rgba(12, 24, 60, 0.9);
}

.online-summary-card::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 120px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
    transform: rotate(-8deg);
    animation: summarySweep 3.2s linear infinite;
    pointer-events: none;
}

.online-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.online-title {
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.online-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.64rem;
    font-weight: 700;
    color: #cfffe7;
    border: 1px solid rgba(158, 243, 186, 0.45);
    background: rgba(34, 102, 70, 0.35);
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8ff3bf;
    box-shadow: 0 0 10px rgba(143, 243, 191, 0.9);
    animation: liveBlink 1.2s ease-in-out infinite;
}

.online-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 7px;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

.online-item {
    padding: 8px 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
    text-align: center;
    transform: translateY(0);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.online-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.32);
}

.online-icon {
    width: 20px;
    height: 20px;
    margin: 0 auto 4px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.total-icon {
    color: #d4fff1;
    background: rgba(109, 255, 204, 0.2);
}

.male-icon {
    color: #b7daff;
    background: rgba(122, 180, 255, 0.2);
}

.female-icon {
    color: #ffd2ec;
    background: rgba(255, 143, 207, 0.2);
}

.online-item span {
    display: block;
    font-size: 0.65rem;
    color: var(--muted);
}

.online-item strong {
    display: block;
    margin-top: 3px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.online-total-glow strong {
    color: #cffff0;
    text-shadow: 0 0 10px rgba(91, 255, 197, 0.9);
    animation: totalGlow 1.8s ease-in-out infinite;
}

.online-male-glow strong {
    text-shadow: 0 0 10px rgba(119, 184, 255, 0.9);
    animation: maleGlow 1.7s ease-in-out infinite;
}

.online-female-glow strong {
    text-shadow: 0 0 10px rgba(255, 155, 216, 0.9);
    animation: femaleGlow 1.7s ease-in-out infinite;
}

.insights-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.insights-head h3 {
    font-size: 0.9rem;
}

.insights-pulse {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #9ef3ba;
    box-shadow: 0 0 0 rgba(158, 243, 186, 0.8);
    animation: livePulse 1.5s ease-in-out infinite;
}

.insight-block {
    margin-top: 6px;
    padding: 7px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.insight-title {
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.mini-user-list {
    display: block;
}

.mini-swiper {
    position: relative;
    overflow: hidden;
}

.mini-swiper-track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
}

.mini-slide {
    min-width: 100%;
    flex: 0 0 100%;
    padding: 1px;
    display: grid;
    gap: 6px;
}

.mini-swiper[data-items-per-slide="2"] .mini-slide {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.mini-swiper[data-items-per-slide="2"] .mini-user-item {
    min-width: 0;
}

.mini-swiper-dots {
    margin-top: 5px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.friend-suggest-swiper .mini-slide {
    align-items: stretch;
}

.friend-suggest-swiper {
    touch-action: pan-y;
}

.mini-dot {
    width: 6px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    padding: 0;
}

.mini-dot.active {
    width: 14px;
    background: linear-gradient(90deg, #ff8fcf, #7ab4ff);
}

.mini-user-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.mini-user-avatar {
    width: 31px;
    height: 31px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.mini-user-fallback {
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
}

.mini-user-meta {
    display: grid;
    line-height: 1.2;
}

.mini-user-meta strong {
    font-size: 0.76rem;
}

.mini-user-meta span {
    font-size: 0.69rem;
    color: var(--muted);
}

.insight-empty {
    font-size: 0.74rem;
    color: var(--muted);
}

.show-up {
    opacity: 0;
    transform: translateY(6px);
    animation: showUp 0.45s ease forwards;
}

@keyframes showUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes livePulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(158, 243, 186, 0.7);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(158, 243, 186, 0);
    }
}

@keyframes summarySweep {
    0% { transform: translateX(-120%) rotate(-8deg); }
    100% { transform: translateX(120%) rotate(-8deg); }
}

@keyframes liveBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

@keyframes totalGlow {
    0%, 100% { text-shadow: 0 0 6px rgba(91, 255, 197, 0.7); }
    50% { text-shadow: 0 0 14px rgba(91, 255, 197, 1); }
}

@keyframes maleGlow {
    0%, 100% { text-shadow: 0 0 6px rgba(119, 184, 255, 0.7); }
    50% { text-shadow: 0 0 14px rgba(119, 184, 255, 1); }
}

@keyframes femaleGlow {
    0%, 100% { text-shadow: 0 0 6px rgba(255, 155, 216, 0.7); }
    50% { text-shadow: 0 0 14px rgba(255, 155, 216, 1); }
}

.dashboard-shell {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 12px;
}

.mig-nav {
    margin: 8px 10px 0;
    padding: 8px 9px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mig-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.mig-menu::-webkit-scrollbar {
    display: none;
}

.mig-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    width: 34px;
    height: 30px;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #d4ddfb;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

.mig-label {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1;
}

.mig-link-avatar {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
}

.mig-link-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #cfe3ff, #8bbcff);
    color: #0f172a;
    font-size: 0.66rem;
    font-weight: 800;
}

.nav-notify-trigger {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.nav-badge {
    position: absolute;
    top: -6px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #ff4f8a, #ff7f4f);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 0 10px rgba(255, 95, 132, 0.9);
    animation: badgePulse 1.5s ease-in-out infinite;
}

.mig-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 79, 167, 0.7), rgba(63, 134, 255, 0.7));
    border-color: rgba(255, 255, 255, 0.35);
}

.menu-icon {
    line-height: 1;
    transform: translateY(0);
}

.menu-svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mig-user-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.mig-username {
    font-size: 0.7rem;
    font-weight: 700;
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mig-avatar-online {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #6dffb5;
    box-shadow: 0 0 0 0 rgba(109, 255, 181, 0.75), 0 0 10px rgba(109, 255, 181, 0.8);
    animation: onlineRingPulse 1.6s ease-in-out infinite;
}

.mig-avatar-fallback {
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
}

@keyframes onlineRingPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(109, 255, 181, 0.65), 0 0 9px rgba(109, 255, 181, 0.8);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(109, 255, 181, 0), 0 0 15px rgba(109, 255, 181, 1);
    }
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(255, 95, 132, 0.8);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 14px rgba(255, 95, 132, 1);
    }
}

.online-time-strip {
    margin: 8px 10px 0;
    padding: 9px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background:
        radial-gradient(circle at 10% 0%, rgba(122, 180, 255, 0.15), transparent 30%),
        radial-gradient(circle at 90% 100%, rgba(255, 143, 207, 0.14), transparent 32%),
        linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.online-time-head {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #dce6ff;
}

.online-time-icon {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(109, 255, 181, 0.18);
    box-shadow: 0 0 0 0 rgba(109, 255, 181, 0.55);
    animation: timeIconPulse 1.6s ease-in-out infinite;
}

.online-time-value {
    font-size: 0.88rem;
    font-weight: 800;
    color: #cffff0;
    text-shadow: 0 0 10px rgba(109, 255, 181, 0.95);
    animation: timeValueGlow 1.8s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes timeIconPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(109, 255, 181, 0.55);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(109, 255, 181, 0);
    }
}

@keyframes timeValueGlow {
    0%, 100% {
        text-shadow: 0 0 6px rgba(109, 255, 181, 0.75);
    }
    50% {
        text-shadow: 0 0 14px rgba(109, 255, 181, 1);
    }
}

.banner-wrap {
    width: 100%;
    height: 132px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pink), var(--blue));
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--pink), var(--blue));
}

.profile-meta {
    margin-top: -25px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 0 5px;
}

.avatar {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    border: 3px solid #fff;
    object-fit: cover;
    background: #fff;
}

.avatar-fallback {
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
}

.profile-meta h1 {
    font-size: 1.02rem;
}

.profile-meta p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.82rem;
}

.user-info-row {
    margin-top: 10px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.user-info-row::-webkit-scrollbar {
    display: none;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    font-size: 0.7rem;
}

.user-pill em {
    font-style: normal;
    font-size: 0.74rem;
    opacity: 0.9;
}

.user-pill strong {
    font-size: 0.72rem;
    color: #e4eeff;
}

.hidden {
    display: none !important;
}

.fb-bio-form.hidden {
    display: none !important;
}

.fb-profile-card {
    overflow: hidden;
    position: relative;
}

.fb-profile-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 8% 10%, rgba(122, 180, 255, 0.08), transparent 26%),
        radial-gradient(circle at 88% 90%, rgba(255, 143, 207, 0.08), transparent 28%);
    pointer-events: none;
}

.fb-cover-wrap {
    width: 100%;
    height: 170px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #4a84ff, #ff6fb9);
}

.fb-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-cover-fallback {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(140deg, rgba(63, 134, 255, 0.9), rgba(255, 79, 167, 0.9)),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.12) 0 12px, rgba(255, 255, 255, 0.03) 12px 24px);
}

.fb-profile-head {
    margin-top: -34px;
    padding: 0 8px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.fb-avatar-wrap {
    position: relative;
}

.fb-avatar {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.fb-avatar-fallback {
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(140deg, #4a84ff, #ff6fb9);
}

.fb-name-wrap h1 {
    font-size: 1.08rem;
}

.fb-name-wrap p {
    margin-top: 2px;
    font-size: 0.8rem;
}

.profile-quick-stats-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, #eef1f4, #e5e9ee);
    border: 1px solid #d5dbe3;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 10px 22px rgba(15, 23, 42, 0.06);
    position: relative;
    z-index: 1;
}

.profile-quick-stat {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1 1 0;
    padding: 0;
    color: #4b5563;
    text-align: center;
}

.profile-quick-stat-icon {
    flex-shrink: 0;
    font-size: 0.78rem;
    line-height: 1;
}

.profile-quick-stat-icon-chatrooms svg {
    display: block;
    width: 1rem;
    height: 1rem;
    fill: #64748b;
}

.profile-quick-stat-label {
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.profile-quick-stat strong {
    margin-top: 0;
    color: #111827;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.fb-actions-row {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.fb-tab-nav {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.fb-tab-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #dce6ff;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fb-tab-btn.active {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.36);
    background: linear-gradient(135deg, rgba(255, 79, 167, 0.7), rgba(63, 134, 255, 0.7));
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.fb-tab-panel {
    margin-top: 6px;
    animation: showUp 0.25s ease;
}

.fb-btn-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.fb-btn-link {
    text-decoration: none;
    text-align: center;
}

.fb-bio-box {
    margin-top: 6px;
    border-radius: 0;
    border: 0;
    background: transparent;
    padding: 4px 0;
    position: relative;
    z-index: 1;
}

.fb-bio-text {
    margin: 0;
    font-size: 0.88rem;
    color: #dce6ff;
    line-height: 1.7;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    letter-spacing: 0.01em;
}

.fb-bio-text::before,
.fb-bio-text::after {
    color: rgba(220, 230, 255, 0.9);
    font-size: 1.15em;
    font-style: normal;
}

.fb-bio-text::before {
    content: '" ';
}

.fb-bio-text::after {
    content: ' "';
}

.fb-section-head {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.fb-section-head h3 {
    font-size: 0.82rem;
    font-weight: 800;
    color: #ebf1ff;
    letter-spacing: 0.01em;
}

.fb-section-head span {
    font-size: 0.64rem;
    font-weight: 700;
    color: #b7c5ef;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05);
}

.fb-details-grid {
    margin-top: 6px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    position: relative;
    z-index: 1;
}

.fb-details-grid article {
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(circle at 8% 0%, rgba(122, 180, 255, 0.14), transparent 30%),
        radial-gradient(circle at 92% 100%, rgba(255, 143, 207, 0.14), transparent 32%),
        rgba(255, 255, 255, 0.045);
    padding: 7px;
    display: grid;
    gap: 2px;
    animation: showUp 0.35s ease both;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.fb-details-grid article:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.fb-details-grid article span {
    font-size: 0.62rem;
    color: #aebbe6;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fb-details-grid article strong {
    font-size: 0.74rem;
    color: #e6efff;
    font-weight: 700;
    word-break: break-word;
    line-height: 1.3;
}

.fb-bio-form {
    margin-top: 8px;
    display: grid;
    gap: 8px;
    animation: showUp 0.25s ease;
}

.fb-bio-form textarea {
    width: 100%;
    border: 1px solid rgba(124, 178, 255, 0.45);
    border-radius: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.86rem;
    resize: vertical;
    min-height: 86px;
}

.fb-bio-form textarea:focus {
    outline: none;
    border-color: var(--pink-soft);
    box-shadow: 0 0 0 3px rgba(255, 140, 200, 0.2);
}

.fb-bio-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.edit-profile-card {
    padding-bottom: 14px;
}

.compact-profile-card .fb-cover-wrap {
    height: 120px;
    border-radius: 12px;
}

.compact-profile-card .fb-profile-head {
    margin-top: -20px;
}

.compact-profile-card .fb-avatar {
    width: 68px;
    height: 68px;
    border-width: 3px;
}

.compact-profile-card .fb-name-wrap h1 {
    font-size: 1rem;
}

.compact-profile-card .fb-name-wrap p {
    font-size: 0.76rem;
}

.compact-profile-card .fb-actions-row {
    margin-top: 7px;
    gap: 6px;
}

.compact-profile-card .fb-tab-btn {
    padding: 6px 8px;
    font-size: 0.72rem;
}

.compact-profile-card .fb-bio-box {
    margin-top: 7px;
    padding: 4px 0;
}

.compact-profile-card .fb-bio-text {
    font-size: 0.82rem;
}

.compact-profile-card .fb-details-grid {
    margin-top: 6px;
    gap: 6px;
}

.compact-profile-card .fb-details-grid article {
    padding: 7px;
}

.compact-profile-card .fb-details-grid article span {
    font-size: 0.6rem;
}

.compact-profile-card .fb-details-grid article strong {
    font-size: 0.72rem;
}

.compact-profile-card .btn-primary {
    padding: 8px 9px;
    font-size: 0.8rem;
}

.stats-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

.suggest-card {
    position: relative;
    overflow: hidden;
}

.suggest-card::before {
    content: "";
    position: absolute;
    inset: -20% -30% auto -30%;
    height: 110px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: summarySweep 4.4s linear infinite;
    pointer-events: none;
}

.friend-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.friend-head h2 {
    font-size: 0.96rem;
}

.featured-head-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-head-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(103, 134, 200, 0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.featured-head-btn .menu-svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.featured-head-btn span {
    display: inline-block;
}

.featured-head-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(103, 134, 200, 0.18);
}

.friend-chip,
.friend-link-btn {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.66rem;
    font-weight: 800;
    color: #d9e7ff;
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

.friend-tabs {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.friend-tab-btn {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 8px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #dce6ff;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.friend-tab-btn.active {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(255, 79, 167, 0.7), rgba(63, 134, 255, 0.7));
}

.friend-tab-panel {
    margin-top: 8px;
    animation: showUp 0.25s ease;
}

.friend-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.friend-card {
    position: relative;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        radial-gradient(circle at 5% 0%, rgba(122, 180, 255, 0.18), transparent 30%),
        radial-gradient(circle at 95% 100%, rgba(255, 143, 207, 0.18), transparent 32%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.friend-suggest-card {
    cursor: pointer;
}

.friend-suggest-compact {
    padding: 9px 8px 8px;
    display: grid;
    gap: 7px;
}

.friend-suggest-avatar-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.friend-suggest-avatar {
    width: 62px;
    height: 62px;
}

.friend-presence-float {
    position: absolute;
    right: 2px;
    top: 0;
}

.friend-suggest-info {
    text-align: center;
    display: grid;
    gap: 2px;
}

.friend-suggest-info strong {
    font-size: 0.8rem;
    line-height: 1.2;
}

.friend-suggest-info span {
    font-size: 0.68rem;
}

.friend-suggest-info small {
    font-size: 0.6rem;
    color: #d3ddff;
}

.friend-list-compact {
    padding: 8px;
    gap: 8px;
}

.friend-list-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.friend-list-avatar-wrap {
    flex-shrink: 0;
    width: 62px;
}

.friend-list-info {
    text-align: left;
    flex: 1;
    min-width: 0;
}

.friend-list-info strong,
.friend-list-info span,
.friend-list-info small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-name-link,
.friend-username-link {
    text-decoration: none;
}

.friend-name-link:hover,
.friend-username-link:hover {
    text-decoration: underline;
}

.friend-card-active {
    border-color: rgba(255, 255, 255, 0.36);
    box-shadow: 0 0 0 1px rgba(124, 178, 255, 0.34), 0 14px 26px rgba(0, 0, 0, 0.28);
}

.friend-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
}

.friend-banner {
    width: 100%;
    height: 76px;
    background: linear-gradient(135deg, rgba(63, 134, 255, 0.8), rgba(255, 79, 167, 0.78));
}

.friend-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friend-banner-fallback {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(63, 134, 255, 0.85), rgba(255, 79, 167, 0.85)),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.12) 0 10px, rgba(255, 255, 255, 0.04) 10px 20px);
}

.friend-main {
    margin-top: -18px;
    padding: 0 9px 7px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.friend-main-top {
    margin-top: 0;
    padding-top: 8px;
}

.friend-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.92);
    object-fit: cover;
    background: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(122, 180, 255, 0.22), 0 6px 14px rgba(0, 0, 0, 0.3);
}

.friend-avatar-fallback {
    display: grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
}

.friend-meta {
    min-width: 0;
    display: grid;
    line-height: 1.2;
    gap: 2px;
}

.friend-meta strong {
    font-size: 0.82rem;
    line-height: 1.22;
}

.friend-meta span {
    font-size: 0.7rem;
    opacity: 0.95;
}

.friend-meta small {
    font-size: 0.61rem;
    color: #d1dcff;
    font-weight: 700;
}

.friend-presence-pill {
    margin-left: auto;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 2px rgba(8, 16, 38, 0.7);
}

.friend-presence-pill.is-online {
    background: #55e18c;
    box-shadow: 0 0 0 2px rgba(8, 16, 38, 0.7), 0 0 9px rgba(85, 225, 140, 0.9);
}

.friend-presence-pill.is-offline {
    background: #ff5d78;
    box-shadow: 0 0 0 2px rgba(8, 16, 38, 0.7), 0 0 9px rgba(255, 93, 120, 0.75);
}

.friend-actions {
    padding: 0 9px 9px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.friend-actions.single {
    grid-template-columns: 1fr;
}

.friend-list-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
}

.friend-suggest-compact .friend-actions {
    padding: 0;
}

.friend-suggest-compact .friend-actions .btn-primary {
    border-radius: 999px;
    padding: 7px 8px;
    font-size: 0.71rem;
}

.friend-message-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
}

.friend-list-actions .btn-primary,
.friend-list-actions .friend-message-btn {
    border-radius: 10px;
    padding: 7px 6px;
    font-size: 0.68rem;
    min-width: 0;
}

.friend-actions .btn-primary {
    margin-top: 0;
    padding: 8px 8px;
    font-size: 0.73rem;
}

.friend-action-btn:disabled {
    opacity: 0.75;
    cursor: wait;
}

.feed-shell-card {
    position: relative;
    overflow: hidden;
    /* padding: 10px; */
}

.feed-shell-card::before {
    content: "";
    position: absolute;
    inset: -10% -40% auto -40%;
    height: 120px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: rotate(-6deg);
    animation: summarySweep 4.6s linear infinite;
    pointer-events: none;
}

.feed-head,
.feed-inline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.feed-head h2 {
    font-size: 0.98rem;
    letter-spacing: 0.01em;
}

.feed-notify-btn,
.feed-inline-btn,
.feed-upload-btn {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #eef3ff;
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.feed-notify-btn {
    position: relative;
}

.feed-notify-count {
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff5b87, #ff9958);
    color: #fff;
    font-size: 0.62rem;
}

.feed-notification-panel,
.feed-composer-card,
.feed-post-card {
    margin-top: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(circle at 12% 0%, rgba(122, 180, 255, 0.18), transparent 28%),
        radial-gradient(circle at 88% 100%, rgba(255, 143, 207, 0.18), transparent 30%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    padding: 9px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.nav-notification-panel {
    margin: 8px 10px 0;
    padding: 10px;
    position: relative;
    animation: fadeSlideUp 0.22s ease;
}

.nav-notification-panel::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 72px;
    width: 14px;
    height: 14px;
    background: rgba(37, 47, 88, 0.92);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    transform: rotate(45deg);
}

.nav-notification-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
}

.nav-notification-viewall {
    width: 100%;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 112, 180, 0.2), rgba(100, 162, 255, 0.18));
    border-color: rgba(255, 255, 255, 0.18);
}

.feed-composer-card {
    position: relative;
    overflow: hidden;
}

.feed-composer-launch {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    min-height: 42px;
    background: linear-gradient(135deg, rgba(255, 125, 92, 0.22), rgba(103, 170, 255, 0.2));
    color: #eef5ff;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}

.feed-composer-launch:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37, 72, 152, 0.28);
    border-color: rgba(153, 206, 255, 0.55);
}

.feed-composer-plus {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
}

.feed-post-form-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition: max-height 0.34s ease, opacity 0.24s ease, transform 0.28s ease, margin-top 0.24s ease;
    pointer-events: none;
}

.feed-composer-card.expanded .feed-post-form-panel {
    max-height: 920px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 10px;
    pointer-events: auto;
}

.feed-composer-card::after {
    content: "";
    position: absolute;
    right: -18px;
    top: -22px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 79, 167, 0.18), rgba(255, 79, 167, 0));
    pointer-events: none;
}

.feed-composer-top {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.feed-composer-avatar,
.feed-composer-fallback,
.feed-post-avatar,
.feed-notice-avatar,
.feed-comment-avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.feed-composer-avatar,
.feed-composer-fallback {
    width: 38px;
    height: 38px;
    box-shadow: 0 0 0 2px rgba(122, 180, 255, 0.18);
}

.feed-post-avatar {
    width: 38px;
    height: 38px;
}

.feed-notice-avatar,
.feed-comment-avatar {
    width: 30px;
    height: 30px;
}

.feed-avatar-fallback {
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    font-weight: 800;
}

.feed-composer-top textarea,
.feed-comment-form input,
.feed-reply-form input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.feed-composer-top textarea {
    min-height: 76px;
    padding: 10px 12px;
    resize: none;
    font-size: 0.82rem;
    line-height: 1.42;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.feed-composer-top textarea::placeholder {
    color: #b8c7ee;
}

.feed-image-preview {
    margin-top: 7px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.025);
}

.feed-image-preview p {
    margin-top: 0;
    color: var(--muted);
    font-size: 0.72rem;
}

.feed-image-preview-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.feed-image-preview-tile {
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
}

.feed-image-preview-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feed-image-preview-heic {
    font-size: 0.72rem;
    font-weight: 800;
    color: #c8d5f8;
}

.feed-composer-actions {
    margin-top: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.feed-composer-actions .btn-primary,
.feed-upload-btn {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 0.74rem;
}

.feed-featured-row {
    margin-top: 8px;
    display: grid;
    gap: 6px;
}

.feed-featured-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: #dfeaff;
}

.feed-featured-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.feed-featured-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.feed-featured-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.feed-featured-card {
    min-height: 58px;
    border-radius: 14px;
    padding: 8px 7px;
    display: grid;
    align-content: center;
    gap: 3px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e9f2ff;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.feed-featured-card strong {
    font-size: 0.73rem;
    font-weight: 800;
    line-height: 1.1;
}

.feed-featured-card small {
    font-size: 0.62rem;
    color: #b9c9ec;
    line-height: 1.2;
}

.feed-featured-option input:checked + .feed-featured-card {
    background: linear-gradient(135deg, rgba(120, 178, 255, 0.2), rgba(255, 124, 182, 0.18));
    border-color: rgba(135, 189, 255, 0.45);
    box-shadow: 0 10px 24px rgba(47, 94, 180, 0.18);
    transform: translateY(-1px);
}

.feed-featured-option:nth-child(2) input:checked + .feed-featured-card {
    background: linear-gradient(135deg, rgba(255, 179, 80, 0.22), rgba(255, 117, 171, 0.18));
    border-color: rgba(255, 193, 84, 0.42);
    box-shadow: 0 10px 24px rgba(255, 163, 75, 0.16);
}

.feed-featured-option:nth-child(3) input:checked + .feed-featured-card {
    background: linear-gradient(135deg, rgba(101, 210, 255, 0.2), rgba(107, 141, 255, 0.2));
    border-color: rgba(120, 203, 255, 0.42);
    box-shadow: 0 10px 24px rgba(91, 155, 255, 0.16);
}

.feed-featured-option input:focus-visible + .feed-featured-card {
    outline: 2px solid rgba(154, 211, 255, 0.9);
    outline-offset: 2px;
}

.feed-featured-note {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.7rem;
    color: #bcd0fb;
}

.feed-featured-note span {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feed-timeline {
    display: grid;
    gap: 10px;
}

.feed-post-head,
.suggest-profile-head,
.feed-notice-item,
.feed-comment-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.feed-post-head {
    gap: 12px;
}

.feed-post-delete-btn {
    margin-left: auto;
    border: 1px solid rgba(255, 96, 120, 0.36);
    border-radius: 999px;
    background: rgba(255, 96, 120, 0.12);
    color: #ffd2dc;
    font-size: 0.66rem;
    font-weight: 800;
    padding: 5px 10px;
    cursor: pointer;
}

.feed-post-delete-btn:disabled {
    opacity: 0.72;
    cursor: wait;
}

.feed-post-meta,
.feed-notice-meta {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.feed-post-meta strong,
.feed-notice-meta strong {
    font-size: 0.96rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.feed-post-meta span,
.feed-post-meta small,
.feed-notice-meta span {
    font-size: 0.8rem;
    color: #c7d4f7;
}

.feed-post-author-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.16s ease, border-color 0.16s ease;
}

.feed-post-author-link:hover {
    color: #94d2ff;
    border-color: rgba(148, 210, 255, 0.5);
}

.feed-featured-badge {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 210, 96, 0.24), rgba(255, 135, 189, 0.22));
    border: 1px solid rgba(255, 208, 90, 0.34);
    color: #fff2ba;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 0 16px rgba(255, 182, 73, 0.18);
}

.feed-share-context {
    margin-top: 4px;
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(122, 180, 255, 0.12);
    border: 1px solid rgba(122, 180, 255, 0.22);
    color: #cfe4ff;
    font-size: 0.66rem;
    font-weight: 700;
}

.feed-post-activity-label {
    margin-left: 6px;
    color: #8a94a6;
    font-weight: 600;
}

.feed-post-text {
    margin-top: 8px;
    font-size: 0.97rem;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #edf2ff;
    white-space: pre-wrap;
    word-break: break-word;
}

.feed-mention {
    color: #7cc0ff;
    font-weight: 800;
}

.feed-post-image {
    width: 100%;
    max-height: 360px;
    margin-top: 8px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.feed-post-image-wrap {
    margin-top: 8px;
}

.feed-post-collage {
    display: grid;
    gap: 3px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.feed-post-collage.layout-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feed-post-collage.layout-3,
.feed-post-collage.layout-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feed-post-collage-tile {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    background: #0f172a;
    cursor: zoom-in;
    overflow: hidden;
    min-height: 170px;
}

.feed-post-collage.layout-3 .tile-1 {
    grid-column: 1 / -1;
    min-height: 230px;
}

.feed-post-collage.layout-4 .feed-post-collage-tile {
    min-height: 185px;
}

.feed-post-collage-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 180ms ease;
}

.feed-post-collage-tile:hover .feed-post-collage-image {
    transform: scale(1.03);
}

.feed-post-collage-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.48);
    color: #fff;
    font-size: clamp(1.7rem, 5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.feed-post-swiper {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.feed-post-swiper .mini-slide {
    position: relative;
}

.feed-post-swiper .feed-post-image {
    margin-top: 0;
    border-radius: 0;
}

.feed-post-image-counter {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.feed-post-image-total {
    margin-top: 5px;
    display: inline-block;
    color: #c6d2f5;
    font-size: 0.66rem;
}

.feed-shared-card {
    margin-top: 10px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.18);
}

.feed-shared-card.unavailable {
    display: grid;
    gap: 5px;
    color: #d9e6fb;
}

.feed-shared-card.unavailable p {
    margin: 0;
    color: #b9c9e8;
    font-size: 0.72rem;
}

.feed-shared-head {
    margin-bottom: 4px;
}

.feed-shared-body .feed-post-text:first-child {
    margin-top: 4px;
}

@media (max-width: 520px) {
    .feed-post-collage-tile {
        min-height: 138px;
    }

    .feed-post-collage.layout-3 .tile-1 {
        min-height: 190px;
    }

    .feed-post-collage.layout-4 .feed-post-collage-tile {
        min-height: 144px;
    }
}

.feed-image-viewer-open {
    overflow: hidden;
}

.feed-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
}

.feed-image-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 20, 0.92);
    backdrop-filter: blur(2px);
}

.feed-image-viewer-frame {
    position: relative;
    z-index: 1;
    width: min(96vw, 1180px);
    height: min(90vh, 760px);
    border-radius: 16px;
    background: rgba(15, 21, 38, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
    overflow: hidden;
    display: grid;
    grid-template-rows: 1fr auto;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.feed-image-viewer-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: radial-gradient(circle at 30% 30%, rgba(99, 157, 255, 0.1), rgba(0, 0, 0, 0.55));
}

.feed-image-viewer-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(8, 12, 24, 0.7);
    color: #eef4ff;
    font-size: 1.32rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.feed-image-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(8, 14, 28, 0.75);
    color: #f2f6ff;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.feed-image-viewer-nav.prev {
    left: 14px;
}

.feed-image-viewer-nav.next {
    right: 14px;
}

.feed-image-viewer-meta {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 8, 16, 0.72);
}

.feed-image-viewer-count {
    font-size: 0.72rem;
    color: #d8e7ff;
    font-weight: 700;
}

.feed-image-viewer-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.feed-image-viewer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.feed-image-viewer-dot.active {
    background: #8ec7ff;
}

.feed-post-stats {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.79rem;
    color: #c6d2f5;
}

.feed-post-actions {
    margin-top: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.feed-reaction-group {
    position: relative;
}

.feed-reaction-trigger {
    width: 100%;
}

.feed-reaction-menu {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(211, 223, 237, 0.95);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.96);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 5;
}

.feed-reaction-group:hover .feed-reaction-menu,
.feed-reaction-group.open .feed-reaction-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.feed-reaction-chip {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: transform 0.14s ease;
}

.feed-reaction-chip:hover {
    transform: translateY(-6px) scale(1.12);
}

.feed-action-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #eef3ff;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
}

.feed-action-btn.active {
    background: rgba(122, 180, 255, 0.18);
    border-color: rgba(122, 180, 255, 0.4);
}

.feed-action-btn.active.love {
    background: rgba(255, 128, 173, 0.18);
    border-color: rgba(255, 128, 173, 0.42);
}

.feed-action-btn.active.angry {
    background: rgba(255, 130, 86, 0.22);
    border-color: rgba(255, 130, 86, 0.45);
}

.feed-action-btn.active.haha {
    background: rgba(255, 220, 110, 0.22);
    border-color: rgba(255, 220, 110, 0.45);
}

.feed-share-btn {
    color: #d8e8ff;
}

.feed-react-label {
    line-height: 1;
    white-space: nowrap;
}

.feed-react-emoji {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.feed-comment-section {
    margin-top: 9px;
    display: grid;
    gap: 9px;
}

.feed-comment-section.no-comments {
    margin-top: 0;
    gap: 0;
}

.feed-comment-section.no-comments .feed-comment-list:empty,
.feed-comment-section.no-comments .feed-comment-controls:empty {
    display: none;
}

.feed-comment-form,
.feed-reply-form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.feed-comment-list,
.feed-replies,
.feed-notification-list {
    display: grid;
    gap: 8px;
}

.feed-comment-controls {
    min-height: 22px;
}

.feed-comment-controls:empty {
    min-height: 0;
}

.feed-comment-load-btn {
    border: 1px solid rgba(152, 203, 255, 0.28);
    border-radius: 999px;
    background: rgba(120, 190, 255, 0.12);
    color: #cfe6ff;
    font-size: 0.66rem;
    font-weight: 800;
    padding: 5px 10px;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.feed-comment-load-btn:hover {
    transform: translateY(-1px);
    background: rgba(120, 190, 255, 0.18);
    border-color: rgba(152, 203, 255, 0.45);
}

.feed-comment-all-loaded {
    font-size: 0.64rem;
    color: #9db5e9;
    font-weight: 700;
}

.feed-comment-bubble {
    border-radius: 18px;
    background: #f0f2f5;
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
}

.feed-comment-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.feed-comment-bubble strong {
    display: inline-flex;
    align-items: center;
    font-size: 0.84rem;
    color: #111827;
    font-weight: 700;
}

.feed-comment-username {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
}

.feed-comment-bubble p {
    margin-top: 3px;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #111827;
    white-space: pre-wrap;
    word-break: break-word;
}

.feed-comment-body {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 4px;
}

.feed-comment-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 6px;
    font-size: 0.76rem;
    color: #6b7280;
    font-weight: 600;
}

.feed-notice-item {
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.feed-notice-item:hover {
    transform: translateY(-1px);
}

.feed-post-focus {
    border-color: rgba(132, 203, 255, 0.72) !important;
    box-shadow: 0 0 0 2px rgba(108, 196, 255, 0.16), 0 16px 34px rgba(42, 90, 194, 0.28) !important;
}

.feed-comment-focus .feed-comment-bubble {
    border-color: rgba(255, 168, 206, 0.62);
    background: linear-gradient(135deg, rgba(255, 131, 188, 0.15), rgba(119, 178, 255, 0.12));
    box-shadow: 0 0 0 1px rgba(255, 172, 205, 0.18);
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.feed-link-btn {
    border: 0;
    background: transparent;
    color: #4b5563;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
}

.feed-replies {
    margin-left: 18px;
    padding-left: 12px;
    border-left: 2px solid #e5e7eb;
}

.feed-comment-input-wrap {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 6px;
}

.feed-comment-form input,
.feed-reply-form input {
    border-radius: 999px;
    background: #f0f2f5;
    border: 1px solid #e5e7eb;
    color: #111827;
    min-height: 40px;
    padding: 10px 14px;
    font-size: 0.92rem;
}

.feed-comment-form input::placeholder,
.feed-reply-form input::placeholder {
    color: #6b7280;
}

.feed-comment-form-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feed-comment-image-picker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e7f3ff;
    color: #1877f2;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}

.feed-comment-image-preview {
    display: flex;
}

.feed-comment-image-preview-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #dbe4f0;
}

.feed-comment-image-btn {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.feed-comment-image {
    width: min(220px, 100%);
    max-height: 220px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
}

.feed-notice-item.unread {
    border-radius: 12px;
    padding: 6px;
    background: rgba(124, 178, 255, 0.08);
}

.feed-empty-small {
    margin: 0;
    font-size: 0.72rem;
    color: var(--muted);
}

.suggest-profile-view {
    margin-top: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        radial-gradient(circle at 10% 0%, rgba(122, 180, 255, 0.16), transparent 30%),
        radial-gradient(circle at 90% 100%, rgba(255, 143, 207, 0.16), transparent 33%),
        rgba(255, 255, 255, 0.05);
    padding: 9px;
}

.suggest-profile-card {
    display: grid;
    gap: 8px;
}

.suggest-profile-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggest-profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.92);
}

.suggest-profile-fallback {
    display: grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
}

.suggest-profile-meta {
    min-width: 0;
    display: grid;
    line-height: 1.2;
}

.suggest-profile-meta strong {
    font-size: 0.84rem;
}

.suggest-profile-meta span {
    font-size: 0.72rem;
}

.suggest-profile-meta small {
    font-size: 0.62rem;
    color: #c8d8ff;
}

.suggest-profile-bio {
    margin: 0;
    font-size: 0.74rem;
    color: #e4ecff;
    line-height: 1.42;
}

.suggest-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.suggest-profile-grid > div {
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    padding: 6px;
}

.suggest-profile-grid span {
    display: block;
    font-size: 0.62rem;
    color: #b9c8ee;
    font-weight: 700;
}

.suggest-profile-grid strong {
    display: block;
    margin-top: 2px;
    font-size: 0.71rem;
    color: #e8f0ff;
    line-height: 1.25;
    word-break: break-word;
}

.stats-grid article {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 9px;
    background: rgba(255, 255, 255, 0.03);
}

.stats-grid span {
    display: block;
    color: var(--muted);
    font-size: 0.73rem;
}

.stats-grid strong {
    display: block;
    margin-top: 3px;
    font-size: 0.87rem;
}

.presence-grid {
    margin-top: 8px;
}

.presence-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.presence-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-online::before {
    background: #4ee08d;
    box-shadow: 0 0 8px rgba(78, 224, 141, 0.8);
}

.status-offline::before {
    background: #ff6d8f;
    box-shadow: 0 0 8px rgba(255, 109, 143, 0.65);
}

@media (min-width: 520px) {
    .grid-2,
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 360px) {
    .fb-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .auth-page .auth-shell {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .auth-page .app-phone {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .auth-page .site-footer {
        max-width: 100%;
        width: 100%;
        margin: 8px 0 12px;
        padding: 0 8px;
    }

    .dashboard-page .dashboard-shell {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .dashboard-page .app-phone {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .dashboard-page .site-footer {
        max-width: 100%;
        width: 100%;
        margin: 8px 0 12px;
        padding: 0 8px;
    }
}

.site-footer {
    width: 100%;
    max-width: 420px;
    margin: 10px auto 14px;
    padding: 0 12px;
}

.footer-line {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
    padding: 9px 10px;
    font-size: 0.72rem;
    color: #dce6ff;
    text-align: center;
    letter-spacing: 0.01em;
}

.footer-line::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -40%;
    width: 70%;
    height: 160%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(-12deg);
    animation: footerSweep 3.6s linear infinite;
    pointer-events: none;
}

.footer-glow {
    color: #c7ffe9;
    text-shadow: 0 0 10px rgba(116, 255, 205, 0.85);
    animation: footerGlow 1.9s ease-in-out infinite;
}

.footer-sep {
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.62);
}

@keyframes footerSweep {
    0% { transform: translateX(-120%) rotate(-12deg); }
    100% { transform: translateX(220%) rotate(-12deg); }
}

@keyframes footerGlow {
    0%, 100% { text-shadow: 0 0 5px rgba(116, 255, 205, 0.7); }
    50% { text-shadow: 0 0 13px rgba(116, 255, 205, 1); }
}

.cricket-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 10%, rgba(93, 161, 255, 0.2), transparent 26%),
        radial-gradient(circle at 92% 100%, rgba(255, 125, 187, 0.22), transparent 30%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.cricket-card::before {
    content: "";
    position: absolute;
    inset: -8% auto auto -24%;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 65%);
    pointer-events: none;
}

.cricket-form-grid {
    display: grid;
    gap: 8px;
}

.cricket-grid-list {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.cricket-list-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cricket-list-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.cricket-list-head strong {
    display: block;
    font-size: 0.88rem;
    color: #f5f8ff;
}

.cricket-list-head span {
    font-size: 0.68rem;
    color: #c8d7ff;
    text-align: right;
}

.cricket-mini-stats {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cricket-mini-stats > span,
.cricket-player-tags > span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.68rem;
    color: #e4ecff;
}

.cricket-player-tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cricket-player-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cricket-player-pill-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.cricket-player-pill-avatar-fallback {
    display: grid;
    place-items: center;
    font-size: 0.62rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, rgba(87, 158, 255, 0.95), rgba(255, 108, 143, 0.95));
}

.cricket-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cricket-check input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.cricket-two-col {
    grid-template-columns: 1fr;
}

.cricket-live-shell {
    display: grid;
    gap: 10px;
}

.live-chip {
    color: #fff;
    background: linear-gradient(135deg, #ff4f7f, #ff8b48);
    box-shadow: 0 0 0 0 rgba(255, 108, 143, 0.5);
    animation: cricketLivePulse 1.6s ease-in-out infinite;
}

.cricket-scoreboard {
    border-radius: 18px;
    padding: 14px;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(135deg, rgba(255, 89, 163, 0.34), rgba(73, 135, 255, 0.36));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 28px rgba(12, 21, 52, 0.26);
}

.cricket-score-top,
.cricket-score-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

.cricket-score-top strong {
    font-size: 0.98rem;
}

.cricket-score-top span,
.cricket-score-meta span {
    font-size: 0.72rem;
    color: #eff4ff;
}

.cricket-score-main {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cricket-score-main span {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #fff;
    text-shadow: 0 10px 24px rgba(14, 18, 38, 0.28);
}

.cricket-live-player-strip {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.cricket-live-player-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(15, 22, 48, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.cricket-live-player-card strong {
    display: block;
    font-size: 0.62rem;
    color: #dbe6ff;
    letter-spacing: 0.02em;
}

.cricket-live-player-card span {
    display: block;
    font-size: 0.74rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cricket-live-player-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.cricket-live-player-avatar-fallback {
    display: grid;
    place-items: center;
    font-size: 0.74rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, rgba(87, 158, 255, 0.95), rgba(255, 108, 143, 0.95));
}

.compact-cricket-form {
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cricket-live-actions {
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cricket-run-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.cricket-run-btn {
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 114, 185, 0.92), rgba(83, 142, 255, 0.92));
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    box-shadow: 0 12px 22px rgba(48, 70, 130, 0.22);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.cricket-live-shell .cricket-run-btn {
    background: linear-gradient(135deg, rgba(14, 179, 94, 0.92), rgba(9, 134, 189, 0.92));
}

.cricket-live-shell .cricket-scoreboard {
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.16), transparent 30%),
        linear-gradient(135deg, rgba(12, 165, 87, 0.3), rgba(17, 109, 190, 0.34));
}

.cricket-run-btn:hover,
.cricket-run-btn:focus {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 16px 28px rgba(48, 70, 130, 0.28);
}

.cricket-run-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.cricket-inner-card {
    margin: 0;
}

.cricket-ball-feed,
.cricket-scorecard-list {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.cricket-ball-item,
.cricket-scorecard-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cricket-ball-badge {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 0.74rem;
    font-weight: 900;
    color: #1f2d57;
    background: linear-gradient(135deg, #ecf2ff, #c9dbff);
}

.cricket-ball-badge.wicket {
    color: #fff;
    background: linear-gradient(135deg, #ff5f81, #ff9c67);
}

.cricket-ball-meta,
.cricket-scorecard-head {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.cricket-ball-players {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.68rem;
    color: #d1dcff;
}

.cricket-ball-vs {
    opacity: 0.75;
}

.cricket-ball-meta strong,
.cricket-scorecard-head strong {
    font-size: 0.82rem;
    color: #f5f8ff;
}

.cricket-ball-meta span,
.cricket-scorecard-head span {
    font-size: 0.68rem;
    color: #d1dcff;
}

.cricket-scorecard-item {
    flex-direction: column;
}

.cricket-scorecard-player {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cricket-player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.cricket-player-avatar.sm {
    width: 24px;
    height: 24px;
}

.cricket-player-avatar-fallback {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    background: linear-gradient(145deg, rgba(87, 158, 255, 0.95), rgba(255, 108, 143, 0.95));
}

.cricket-scorecard-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.cricket-scorecard-grid span {
    display: grid;
    gap: 2px;
    padding: 8px 9px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.cricket-scorecard-grid em {
    font-style: normal;
    font-size: 0.62rem;
    color: #c0d1ff;
}

.cricket-scorecard-grid strong {
    font-size: 0.78rem;
    color: #fff;
}

.cricket-live-center-shell {
    display: grid;
    gap: 10px;
}

.cricket-live-center-list {
    display: grid;
    gap: 12px;
}

.cricket-live-center-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    display: grid;
    gap: 10px;
}

.cricket-live-center-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.cricket-live-center-top strong {
    display: block;
    font-size: 0.92rem;
    color: #fff;
}

.cricket-live-center-top span {
    font-size: 0.7rem;
    color: #d5e1ff;
}

.cricket-live-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.cricket-live-status.live {
    background: linear-gradient(135deg, #ff4f7f, #ff8b48);
    color: #fff;
}

.cricket-live-status.completed {
    background: rgba(92, 203, 138, 0.22);
    border: 1px solid rgba(92, 203, 138, 0.48);
    color: #dcffe9;
}

.cricket-live-status.scheduled {
    background: rgba(116, 154, 255, 0.2);
    border: 1px solid rgba(116, 154, 255, 0.44);
    color: #deebff;
}

.cricket-live-center-main-score {
    display: grid;
    gap: 3px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 9px 10px;
}

.cricket-live-center-main-score strong {
    font-size: 1.18rem;
    color: #fff;
}

.cricket-live-center-main-score span {
    font-size: 0.68rem;
    color: #d7e3ff;
}

.cricket-live-center-team-grid,
.cricket-live-center-panels {
    display: grid;
    gap: 8px;
}

.cricket-live-center-team {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    padding: 8px;
}

.cricket-live-center-team h4,
.cricket-live-center-panels h4 {
    margin: 0 0 6px;
    font-size: 0.75rem;
    color: #e6eeff;
}

.cricket-live-center-player-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cricket-live-center-player {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.66rem;
    color: #e4ecff;
}

.app-phone-public {
    min-height: 100vh;
}

.cricketbuzz-page .app-phone {
    background:
        radial-gradient(circle at 100% 0%, rgba(29, 173, 94, 0.18), transparent 33%),
        radial-gradient(circle at 0% 100%, rgba(12, 91, 171, 0.18), transparent 34%),
        #0c142a;
}

.cricketbuzz-hero {
    background:
        linear-gradient(120deg, rgba(12, 165, 87, 0.22), rgba(12, 121, 194, 0.24)),
        rgba(255, 255, 255, 0.06);
}

.cricketbuzz-slider {
    margin-top: 8px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 80%);
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
}

.cricketbuzz-card {
    scroll-snap-align: start;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    padding: 10px;
    display: grid;
    gap: 6px;
}

.cricketbuzz-card-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.cricketbuzz-card-link .cricketbuzz-card {
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.cricketbuzz-card-link:hover .cricketbuzz-card,
.cricketbuzz-card-link:focus-visible .cricketbuzz-card {
    transform: translateY(-2px);
    border-color: rgba(126, 230, 181, 0.46);
    box-shadow: 0 10px 22px rgba(7, 14, 33, 0.35);
}

.cricketbuzz-tab-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.cricketbuzz-tab {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #dce8ff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.cricketbuzz-tab:hover,
.cricketbuzz-tab:focus-visible {
    border-color: rgba(126, 230, 181, 0.5);
    color: #ffffff;
}

.cricketbuzz-tab.active {
    background: linear-gradient(120deg, rgba(15, 166, 89, 0.34), rgba(15, 122, 196, 0.34));
    border-color: rgba(126, 230, 181, 0.6);
    color: #ffffff;
}

.cricketbuzz-tab-panel {
    display: block;
}

.cricketbuzz-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.cricketbuzz-card strong {
    font-size: 0.84rem;
    color: #fff;
}

.cricketbuzz-card p {
    margin: 0;
    font-size: 0.69rem;
    color: #d3dfff;
}

.cricketbuzz-news-grid {
    margin-top: 8px;
    display: grid;
    gap: 10px;
}

.cricketbuzz-news-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    display: grid;
}

.cricketbuzz-news-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.cricketbuzz-news-meta {
    padding: 10px;
    display: grid;
    gap: 6px;
}

.cricketbuzz-news-meta strong {
    font-size: 0.82rem;
    color: #fff;
}

.cricketbuzz-news-meta p {
    margin: 0;
    font-size: 0.7rem;
    color: #d2ddfc;
}

.cricketbuzz-news-meta span {
    font-size: 0.62rem;
    color: #b7c9f7;
}

.cricketbuzz-news-meta a {
    font-size: 0.66rem;
    font-weight: 700;
    color: #7ee6b5;
    text-decoration: none;
}

.cricket-summary-table-wrap {
    margin-top: 8px;
    overflow-x: auto;
}

.cricket-summary-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 420px;
}

.cricket-summary-table th,
.cricket-summary-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.7rem;
    color: #e6eeff;
    text-align: left;
}

.cricket-summary-table th {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #c6d5ff;
}

.cricket-summary-leader-list {
    margin-top: 8px;
    display: grid;
    gap: 6px;
}

.cricket-summary-leader-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cricket-summary-rank {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-size: 0.66rem;
    font-weight: 800;
    color: #1f2d57;
    background: linear-gradient(135deg, #e7efff, #c7dbff);
}

.cricket-summary-leader-item strong {
    display: block;
    font-size: 0.74rem;
    color: #fff;
}

.cricket-summary-leader-item span {
    font-size: 0.64rem;
    color: #c9d8ff;
}

.cricket-summary-value {
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 4px 8px;
    border-radius: 999px;
}

.cricket-public-layout {
    display: grid;
    gap: 12px;
}

.cricket-public-main,
.cricket-public-side {
    display: grid;
    gap: 12px;
}

.cricket-scorecard-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.cricket-scorecard-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.cricket-scorecard-table th,
.cricket-scorecard-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
    font-size: 0.68rem;
    color: #deebff;
}

.cricket-scorecard-table th {
    font-size: 0.6rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #bfd2ff;
}

.cricket-innings-card {
    display: grid;
    gap: 10px;
}

.cricket-innings-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(15, 166, 89, 0.24);
    border: 1px solid rgba(126, 230, 181, 0.34);
}

.cricket-innings-head strong {
    font-size: 0.9rem;
    color: #fff;
}

.cricket-innings-head span {
    font-size: 0.8rem;
    font-weight: 700;
    color: #eafff4;
}

.cricket-innings-meta {
    display: grid;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cricket-innings-meta p {
    margin: 0;
    font-size: 0.72rem;
    color: #d6e3ff;
}

.cricket-innings-table-wrap {
    overflow-x: auto;
}

.cricket-innings-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.cricket-innings-table th,
.cricket-innings-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
    font-size: 0.7rem;
    color: #e4eeff;
}

.cricket-innings-table th {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #c7d7ff;
}

@keyframes cricketLivePulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 108, 143, 0.46);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 108, 143, 0);
    }
}

@media (min-width: 520px) {
    .cricket-form-grid,
    .cricket-grid-list,
    .cricket-two-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cricket-live-shell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cricket-live-shell > .friend-head,
    .cricket-live-shell > .featured-head-actions,
    .cricket-live-shell > .cricket-scoreboard,
    .cricket-live-shell > .cricket-live-actions {
        grid-column: 1 / -1;
    }

    .cricket-live-player-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cricket-live-center-team-grid,
    .cricket-live-center-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .cricket-public-layout {
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
        align-items: start;
    }
}

/* Newsfeed-only light theme (Facebook-inspired) */
body.newsfeed-light-page {
    color: #1c1e21;
    background:
        radial-gradient(circle at 8% -10%, rgba(24, 119, 242, 0.09), transparent 28%),
        radial-gradient(circle at 92% 0%, rgba(66, 183, 42, 0.08), transparent 26%),
        #f0f2f5;
}

body.newsfeed-light-page .app-phone {
    background: #f0f2f5;
    border-color: #d8dde6;
    box-shadow: 0 16px 34px rgba(15, 40, 74, 0.12);
}

body.newsfeed-light-page .app-top {
    background: #ffffff;
    border-bottom: 1px solid #e4e6eb;
}

body.newsfeed-light-page .activity-marquee {
    background: #f0f2f5;
    border-color: #e4e6eb;
    color: #4b4f56;
}

body.newsfeed-light-page .feed-shell-card::before {
    display: none;
}

body.newsfeed-light-page .feed-notify-btn,
body.newsfeed-light-page .feed-inline-btn,
body.newsfeed-light-page .feed-upload-btn {
    background: #f0f2f5;
    border-color: #d8dde6;
    color: #1c1e21;
}

body.newsfeed-light-page .feed-notification-panel,
body.newsfeed-light-page .feed-composer-card,
body.newsfeed-light-page .feed-post-card {
    background: #ffffff;
    border: 1px solid #dfe3ea;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

body.newsfeed-light-page .feed-composer-card::after {
    background: radial-gradient(circle, rgba(24, 119, 242, 0.1), rgba(24, 119, 242, 0));
}

body.newsfeed-light-page .feed-composer-launch {
    background: #f0f2f5;
    border-color: #d8dde6;
    color: #1c1e21;
}

body.newsfeed-light-page .feed-composer-launch:hover {
    box-shadow: 0 8px 18px rgba(24, 119, 242, 0.12);
    border-color: #c8d4e8;
}

body.newsfeed-light-page .feed-composer-plus {
    background: #e7f3ff;
    color: #1877f2;
}

body.newsfeed-light-page .feed-composer-top textarea,
body.newsfeed-light-page .feed-comment-form input,
body.newsfeed-light-page .feed-reply-form input {
    background: #ffffff;
    border-color: #d7dce3;
    color: #1c1e21;
}

body.newsfeed-light-page .feed-composer-top textarea::placeholder {
    color: #6b7280;
}

body.newsfeed-light-page .feed-image-preview {
    background: #f8f9fb;
    border-color: #d8dde6;
}

body.newsfeed-light-page .feed-image-preview p {
    color: #6b7280;
}

body.newsfeed-light-page .feed-featured-label {
    color: #42526b;
}

body.newsfeed-light-page .feed-featured-card {
    background: #ffffff;
    border-color: #d7dce3;
    color: #1f2937;
}

body.newsfeed-light-page .feed-featured-card small {
    color: #6b7280;
}

body.newsfeed-light-page .feed-featured-note {
    color: #526178;
}

body.newsfeed-light-page .feed-featured-note span {
    background: #f4f6f9;
    border-color: #dfe3ea;
}

body.newsfeed-light-page .feed-post-meta span,
body.newsfeed-light-page .feed-post-meta small,
body.newsfeed-light-page .feed-notice-meta span {
    color: #606770;
}

body.newsfeed-light-page .male-text {
    color: #1b74e4 !important;
}

body.newsfeed-light-page .female-text {
    color: #d63384 !important;
}

body.newsfeed-light-page .feed-post-author-link:hover {
    color: #1877f2;
    border-color: rgba(24, 119, 242, 0.42);
}

body.newsfeed-light-page .feed-post-text {
    color: #1c1e21;
}

body.newsfeed-light-page .feed-mention {
    color: #1877f2;
}

body.newsfeed-light-page .feed-post-swiper {
    background: #eef2f7;
}

body.newsfeed-light-page .feed-post-image-counter {
    background: rgba(28, 30, 33, 0.78);
    border-color: rgba(255, 255, 255, 0.2);
}

body.newsfeed-light-page .feed-post-image-total {
    color: #606770;
}

body.newsfeed-light-page .feed-post-stats {
    color: #606770;
}

body.newsfeed-light-page .feed-post-delete-btn {
    border-color: #ffc4cf;
    background: #ffeef2;
    color: #a61b37;
}

body.newsfeed-light-page .feed-action-btn {
    background: #f0f2f5;
    border-color: #d8dde6;
    color: #1c1e21;
}

body.newsfeed-light-page .feed-action-btn.active {
    background: #e7f3ff;
    border-color: #bcd8ff;
}

body.newsfeed-light-page .feed-action-btn.active.love {
    background: #ffeaf3;
    border-color: #ffc7df;
}

body.newsfeed-light-page .feed-action-btn.active.angry {
    background: #fff0e8;
    border-color: #ffc8ae;
}

body.newsfeed-light-page .feed-action-btn.active.haha {
    background: #fff8df;
    border-color: #ffe19c;
}

body.newsfeed-light-page .feed-comment-load-btn {
    background: #e7f3ff;
    border-color: #bfdcff;
    color: #1b4f9a;
}

body.newsfeed-light-page .feed-comment-load-btn:hover {
    background: #dcecff;
    border-color: #a8ceff;
}

body.newsfeed-light-page .feed-comment-all-loaded {
    color: #6b7280;
}

body.newsfeed-light-page .feed-comment-bubble {
    background: #f0f2f5;
    border-color: #e0e4ea;
}

body.newsfeed-light-page .feed-comment-bubble p {
    color: #1c1e21;
}

body.newsfeed-light-page .feed-comment-tools {
    color: #6b7280;
}

body.newsfeed-light-page .feed-link-btn {
    color: #1877f2;
}

body.newsfeed-light-page .feed-comment-focus .feed-comment-bubble {
    border-color: #b9d6ff;
    background: #eaf3ff;
    box-shadow: 0 0 0 1px rgba(24, 119, 242, 0.15);
}

body.newsfeed-light-page .insight-empty {
    color: #606770;
}

.profile-feed-tabs {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.profile-feed-tab-btn {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    min-height: 34px;
    background: rgba(255, 255, 255, 0.05);
    color: #eef3ff;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
}

.profile-feed-tab-btn.active {
    background: rgba(122, 180, 255, 0.2);
    border-color: rgba(122, 180, 255, 0.45);
}

.profile-feed-panel {
    margin-top: 10px;
}

.profile-feed-status {
    margin-top: 8px;
    font-size: 0.72rem;
    color: #9eb2d9;
    text-align: center;
}

.profile-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.profile-photo-tile {
    border: 0;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
}

.profile-photo-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.profile-photo-tile:hover .profile-photo-thumb {
    transform: scale(1.04);
    filter: brightness(1.04);
}

/* Global balanced theme refresh (neutral, standard, cross-page) */
:root {
    --bg: #eef1f6;
    --bg2: #e8edf4;
    --pink: #f43f5e;
    --pink-soft: #fb7185;
    --blue: #2563eb;
    --blue-soft: #60a5fa;
    --ink: #1f2937;
    --muted: #6b7280;
    --panel: #ffffff;
    --line: #d8dee8;
    --danger: #dc2626;
    --ok: #16a34a;
}

body {
    color: var(--ink);
    background:
        radial-gradient(circle at 12% -10%, rgba(37, 99, 235, 0.08), transparent 28%),
        radial-gradient(circle at 90% 0%, rgba(244, 63, 94, 0.08), transparent 24%),
        linear-gradient(170deg, var(--bg), var(--bg2));
}

.app-phone {
    background: #f7f9fc;
    border-color: #d8dee8;
    box-shadow: 0 18px 40px rgba(31, 41, 55, 0.12);
}

.app-top {
    background: linear-gradient(135deg, #ffffff, #f3f6fb);
    border-bottom-color: #dce3ee;
}

.site-logo,
.top-icons img {
    border-color: #dbe3ee;
    background: #ffffff;
}

.activity-marquee {
    background: #eef3f9;
    border-color: #d9e2ef;
    color: #4b5563;
}

.profile-card,
.friend-card,
.feed-notification-panel,
.feed-composer-card,
.feed-post-card,
.fb-profile-card,
.cricket-card,
.cricket-list-card,
.cricket-scoreboard,
.cricket-live-player-card,
.cricket-inner-card,
.cricket-ball-item,
.cricket-scorecard-item,
.cricket-live-center-card,
.cricketbuzz-card,
.cricketbuzz-news-card,
.cricket-innings-card,
.online-summary-card,
.insight-block {
    background: #ffffff !important;
    border-color: #dde4ee !important;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08) !important;
    color: #1f2937;
}

.feed-shell-card::before,
.fb-profile-card::before,
.online-summary-card::before,
.cricket-card::before {
    opacity: 0.2;
}

.muted,
.app-sub,
.form-message,
.insight-empty,
.fb-section-head span,
.feed-post-meta span,
.feed-post-meta small,
.feed-notice-meta span,
.feed-comment-tools,
.cricket-score-top span,
.cricket-score-meta span,
.cricket-list-head span,
.cricket-scorecard-head span,
.cricket-ball-meta span,
.cricketbuzz-card p,
.cricketbuzz-news-meta p,
.cricketbuzz-news-meta span,
.profile-feed-status {
    color: #6b7280 !important;
}

.male-text {
    color: #1d4ed8 !important;
}

.female-text {
    color: #be185d !important;
}

.btn-primary,
.feed-notify-btn,
.feed-inline-btn,
.feed-upload-btn,
.friend-actions .btn-primary,
.friend-list-actions .btn-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.22);
}

.btn-primary.fb-btn-secondary,
.fb-btn-secondary,
.profile-feed-tab-btn,
.feed-action-btn,
.feed-post-delete-btn,
.feed-comment-load-btn,
.cricket-run-btn,
.cricketbuzz-tab {
    background: #eef2f7 !important;
    color: #1f2937 !important;
    border-color: #d5dde8 !important;
    box-shadow: none !important;
}

.profile-feed-tab-btn.active,
.fb-tab-btn.active,
.friend-tab-btn.active,
.feed-action-btn.active,
.cricketbuzz-tab.active {
    background: #e0ebff !important;
    border-color: #b8d0ff !important;
    color: #1d4ed8 !important;
}

.feed-composer-top textarea,
.feed-comment-form input,
.feed-reply-form input,
.fb-bio-form textarea,
input,
select,
textarea {
    background: #ffffff;
    color: #1f2937;
    border-color: #d5dde8;
}

.feed-comment-bubble,
.fb-bio-box,
.feed-image-preview,
.feed-featured-note span,
.cricket-mini-stats > span,
.cricket-player-tags > span {
    background: #f5f7fb !important;
    border-color: #dbe2ec !important;
    color: #1f2937;
}

.feed-post-text,
.feed-comment-bubble p,
.fb-bio-text,
.fb-details-grid article strong,
.cricket-score-main,
.cricket-live-center-main-score,
.cricketbuzz-card strong,
.cricketbuzz-news-meta strong {
    color: #111827 !important;
}

.feed-mention,
.feed-link-btn,
.friend-name-link,
.friend-username-link,
.cricketbuzz-news-meta a {
    color: #2563eb !important;
}

.feed-post-swiper,
.mini-swiper {
    background: #f1f5fb;
}

.feed-image-viewer-backdrop {
    background: rgba(15, 23, 42, 0.82);
}

.feed-image-viewer-frame {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.2);
}

.site-footer {
    background: #eef2f7;
    border-top-color: #d7deea;
    color: #6b7280;
}

/* Comfort tuning for global light-balanced theme */
.mig-nav {
    border-color: #d8dee8 !important;
    background: #ffffff !important;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
}

.mig-link {
    color: #4b5563 !important;
    border-color: #d8dee8 !important;
    background: #f3f6fb !important;
}

.mig-link:hover {
    border-color: #bcd0ea !important;
    background: #eaf0f9 !important;
}

.mig-link.active {
    color: #1d4ed8 !important;
    border-color: #b8d0ff !important;
    background: #e4edff !important;
}

.nav-notify-trigger {
    background: #f3f6fb !important;
}

.nav-notification-panel {
    background: #ffffff !important;
    border-color: #d8dee8 !important;
}

.nav-notification-panel::before {
    background: #ffffff !important;
    border-left-color: #d8dee8 !important;
    border-top-color: #d8dee8 !important;
}

.mig-username {
    color: #374151;
}

.online-time-strip {
    border-color: #d8dee8 !important;
    background: #ffffff !important;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
}

.online-time-head {
    color: #374151 !important;
}

.online-time-icon {
    border-color: #cfe3d6 !important;
    background: #e8f7ec !important;
    color: #15803d !important;
    animation: none !important;
    box-shadow: none !important;
}

.online-time-value {
    color: #111827 !important;
    text-shadow: none !important;
    animation: none !important;
}

.user-pill {
    border-color: #d8dee8 !important;
    background: #f6f8fc !important;
    color: #374151 !important;
}

.user-pill strong {
    color: #1f2937 !important;
}

.friend-suggest-info span,
.friend-suggest-info small,
.friend-meta span,
.friend-meta small {
    color: #6b7280 !important;
}

.friend-suggest-info strong,
.friend-meta strong {
    color: #111827 !important;
}

.friend-chip,
.friend-link-btn {
    border-color: #d8dee8 !important;
    background: #f2f5fa !important;
    color: #374151 !important;
}

.friend-tab-btn {
    color: #374151 !important;
    border-color: #d8dee8 !important;
    background: #f2f5fa !important;
}

.friend-tab-btn.active {
    color: #1d4ed8 !important;
    border-color: #b8d0ff !important;
    background: #e4edff !important;
}

.featured-head-btn {
    color: #1f2937 !important;
}

/* Final CTA + newsfeed composer fixes */
.featured-head-actions .featured-head-btn {
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.24) !important;
}

.featured-head-actions .featured-head-btn .menu-svg {
    color: #ffffff !important;
    stroke: currentColor !important;
}

.featured-head-actions .featured-head-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
}

/* Newsfeed create button: twitter-like rounded launcher with clear + icon */
#feedComposerToggle.feed-composer-launch {
    justify-content: flex-start;
    gap: 10px;
    padding: 0 14px 0 10px;
    min-height: 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f6fff, #3b82f6) !important;
    border: 1px solid #0b63e6 !important;
    color: #ffffff !important;
    font-weight: 800;
}

#feedComposerToggle.feed-composer-launch:hover {
    background: linear-gradient(135deg, #0b63e6, #2563eb) !important;
}

#feedComposerToggle .feed-composer-plus {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 900;
}

/* Boost post section comfort in light mode */
.feed-featured-label {
    color: #ffffff !important;
}

.feed-featured-row {
    border-radius: 12px;
    padding: 8px;
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.feed-featured-card {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
}

.feed-featured-card small {
    color: rgba(255, 255, 255, 0.9) !important;
}

.feed-featured-note {
    color: #1f2937 !important;
}

.feed-featured-note span {
    background: #eef2f7 !important;
    border-color: #d8dee8 !important;
    color: #1f2937 !important;
}

/* Photos upload button text should be white */
.feed-upload-btn {
    background: linear-gradient(135deg, #0f6fff, #3b82f6) !important;
    border-color: #0b63e6 !important;
    color: #ffffff !important;
}

.feed-upload-btn:hover {
    background: linear-gradient(135deg, #0b63e6, #2563eb) !important;
}

/* Final light-theme fixes (auth + headings + composer + reaction stats) */
.auth-page {
    background:
        radial-gradient(circle at 12% -10%, rgba(37, 99, 235, 0.08), transparent 28%),
        radial-gradient(circle at 90% 0%, rgba(244, 63, 94, 0.08), transparent 24%),
        linear-gradient(170deg, #eef1f6, #e8edf4) !important;
}

.auth-card,
.brand-panel {
    background: #ffffff !important;
    border-color: #dbe3ee !important;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08) !important;
}

label {
    color: #374151 !important;
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af !important;
}

.brand-panel h1,
.auth-card h2,
.profile-meta h1,
.fb-name-wrap h1,
.feed-head h2,
.friend-head h2,
.insights-head h3,
.fb-section-head h3,
.online-title,
.insight-title {
    color: #111827 !important;
}

.brand-panel p,
.auth-card .muted,
.switch-link {
    color: #6b7280 !important;
}

.switch-link a {
    color: #2563eb !important;
}

.feed-composer-launch {
    background: linear-gradient(135deg, #e9f1ff, #f1f5fb) !important;
    border-color: #bfd2ee !important;
    color: #1f2937 !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.1) !important;
}

.feed-composer-launch:hover {
    background: linear-gradient(135deg, #dfeaff, #eaf0f8) !important;
    border-color: #9fbce6 !important;
}

.feed-composer-plus {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
}

.feed-post-stats {
    color: #4b5563 !important;
    font-weight: 700;
}

.feed-post-stats span {
    background: #f3f6fb;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    padding: 4px 8px;
    line-height: 1;
}

/* Compact profile controls + summary blocks */
.fb-actions-row .btn-primary,
.compact-profile-card .btn-primary {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 0.72rem;
    border-radius: 8px;
}

.fb-tab-nav {
    padding: 2px;
    gap: 3px;
}

.fb-tab-btn {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 0.69rem;
    border-radius: 8px;
}

.profile-mini-actions {
    margin-top: 6px;
}

.profile-mini-btn {
    min-height: 30px !important;
    padding: 6px 10px !important;
    font-size: 0.7rem !important;
    border-radius: 999px !important;
}

/* Edit Profile small orange button */
.fb-actions-row .fb-btn-link {
    min-height: 28px !important;
    padding: 5px 9px !important;
    font-size: 0.68rem !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    border-color: #ea580c !important;
    color: #ffffff !important;
    box-shadow: 0 6px 14px rgba(249, 115, 22, 0.22) !important;
}

.compact-profile-card .fb-actions-row {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

.compact-profile-card #introPanel .fb-actions-row {
    margin-bottom: 8px;
}

.compact-profile-card .fb-actions-row .btn-primary,
.compact-profile-card .fb-actions-row .fb-btn-link {
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto;
}

.fb-actions-row a[href="edit_profile.php"] {
    min-height: 27px !important;
    padding: 4px 9px !important;
    min-width: 74px !important;
    font-size: 0.66rem !important;
    line-height: 1.1 !important;
}

.profile-mini-info-grid,
.profile-engagement-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.profile-mini-info-grid article,
.profile-engagement-grid article {
    border-radius: 10px;
    border: 1px solid #dde5ef;
    background: #f8fafd;
    padding: 8px;
    display: grid;
    gap: 3px;
}

.profile-mini-info-grid article span,
.profile-engagement-grid article span {
    font-size: 0.63rem;
    color: #6b7280;
    font-weight: 700;
}

.profile-mini-info-grid article strong,
.profile-engagement-grid article strong {
    font-size: 0.79rem;
    color: #111827;
    line-height: 1.25;
}

/* Light mode polish fixes */
.site-footer,
.site-footer p,
.site-footer small,
.site-footer a {
    color: #4b5563 !important;
}

.fb-tab-nav {
    padding: 6px;
    border-radius: 14px;
    background: linear-gradient(135deg, #edf2f9, #f7f9fc);
    border: 0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.fb-tab-btn {
    border-radius: 11px;
    min-height: 36px;
    background: transparent !important;
    color: #475569 !important;
    border: 0 !important;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: background 0.18s ease, color 0.18s ease, transform 0.16s ease, box-shadow 0.2s ease;
}

.fb-tab-btn:hover {
    background: rgba(255, 255, 255, 0.72) !important;
    color: #1f2937 !important;
    transform: translateY(-1px);
}

.fb-tab-btn.active {
    background: linear-gradient(135deg, #2b6fff, #5a95ff) !important;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.24);
    transform: translateY(-1px);
    color: #1d4ed8 !important;
    border: 0 !important;
}

.fb-tab-btn.active {
    color: #ffffff !important;
}

.fb-details-grid article {
    background: #f8fafc !important;
    border-color: #dbe3ee !important;
}

.fb-details-grid article:hover {
    background: #eef3fb !important;
    border-color: #cdd9eb !important;
}

.fb-details-grid article span {
    color: #6b7280 !important;
}

.fb-details-grid article strong {
    color: #111827 !important;
}

.feed-post-swiper .mini-dot {
    background: #cbd5e1 !important;
}

.feed-post-swiper .mini-dot.active {
    background: #2563eb !important;
}

.friend-presence-pill,
.friend-presence-pill.is-online,
.friend-presence-pill.is-offline {
    border: 0 !important;
    box-shadow: none !important;
}

/* Profile page: Facebook-like light layout */
body.dashboard-page .compact-profile-card.fb-profile-card {
    border-radius: 16px !important;
    background: #ffffff !important;
    border: 1px solid #dde3ec !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
    padding: 0 10px 12px !important;
}

body.dashboard-page .compact-profile-card.fb-profile-card::before {
    display: none !important;
}

body.dashboard-page .compact-profile-card .fb-cover-wrap {
    height: 176px !important;
    border-radius: 14px !important;
    width: calc(100% + 20px) !important;
    max-width: none !important;
    margin: 0 -10px !important;
    border-bottom-left-radius: 18px !important;
    border-bottom-right-radius: 18px !important;
    overflow: hidden !important;
}

body.dashboard-page .compact-profile-card .fb-cover-wrap .fb-cover-img,
body.dashboard-page .compact-profile-card .fb-cover-wrap .fb-cover-fallback {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

body.dashboard-page .compact-profile-card .fb-profile-head {
    margin-top: -34px !important;
    padding: 0 4px !important;
    gap: 10px !important;
    align-items: flex-end !important;
}

body.dashboard-page .compact-profile-card .fb-avatar {
    width: 88px !important;
    height: 88px !important;
    border: 4px solid #ffffff !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16) !important;
}

body.dashboard-page .compact-profile-card .fb-name-wrap h1 {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin: 0 !important;
}

body.dashboard-page .compact-profile-card .fb-name-wrap p {
    margin-top: 3px !important;
    color: #606770 !important;
    font-size: 0.78rem !important;
}

body.dashboard-page .compact-profile-card .profile-quick-stats-row {
    margin-top: 10px !important;
    padding: 8px 10px !important;
    gap: 6px !important;
    border-radius: 14px !important;
}

body.dashboard-page .compact-profile-card .profile-quick-stat {
    gap: 4px !important;
}

body.dashboard-page .compact-profile-card .profile-quick-stat-icon {
    font-size: 0.68rem !important;
}

body.dashboard-page .compact-profile-card .profile-quick-stat-icon-chatrooms svg {
    width: 0.9rem !important;
    height: 0.9rem !important;
}

body.dashboard-page .compact-profile-card .profile-quick-stat-label {
    font-size: 0.6rem !important;
    color: #6b7280 !important;
}

body.dashboard-page .compact-profile-card .profile-quick-stat strong {
    margin-top: 0 !important;
    font-size: 0.66rem !important;
    color: #111827 !important;
}

body.dashboard-page .compact-profile-card .fb-actions-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
    margin-top: 10px !important;
}

body.dashboard-page .compact-profile-card .fb-actions-row .btn-primary,
body.dashboard-page .compact-profile-card .fb-actions-row .fb-btn-link {
    min-height: 36px !important;
    border-radius: 10px !important;
    font-size: 0.77rem !important;
    font-weight: 800 !important;
    padding: 7px 10px !important;
}

body.dashboard-page .compact-profile-card .fb-actions-row a[href="edit_profile.php"] {
    min-width: 0 !important;
    background: linear-gradient(135deg, #f8fbff, #edf4ff) !important;
    border: 1px solid #bcd3ff !important;
    color: #1d4ed8 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.14) !important;
    letter-spacing: 0.01em;
}

body.dashboard-page .compact-profile-card .fb-actions-row a[href="edit_profile.php"]:hover {
    background: linear-gradient(135deg, #eff6ff, #e3eeff) !important;
    border-color: #9fbeff !important;
    color: #1e40af !important;
    transform: translateY(-1px);
}

body.dashboard-page .compact-profile-card .fb-tab-nav {
    margin-top: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 4px !important;
    border-radius: 12px !important;
    background: #f0f2f5 !important;
    box-shadow: none !important;
}

body.dashboard-page .compact-profile-card .fb-tab-btn {
    flex: 1 1 0 !important;
    min-height: 33px !important;
    font-size: 0.75rem !important;
    border-radius: 9px !important;
    color: #4b5563 !important;
}

body.dashboard-page .compact-profile-card .fb-tab-btn.active {
    background: #ffffff !important;
    color: #1877f2 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14) !important;
    transform: none !important;
}

body.dashboard-page .compact-profile-card .fb-section-head {
    margin-top: 10px !important;
}

body.dashboard-page .compact-profile-card .fb-section-head h3 {
    font-size: 0.95rem !important;
    color: #111827 !important;
}

body.dashboard-page .compact-profile-card .fb-section-head span {
    background: #eef2f7 !important;
    border: 0 !important;
    color: #6b7280 !important;
    font-size: 0.62rem !important;
}

body.dashboard-page .compact-profile-card .fb-bio-box {
    margin-top: 8px !important;
    padding: 4px 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

body.dashboard-page .compact-profile-card .fb-bio-text {
    color: #243041 !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-style: italic !important;
    line-height: 1.7 !important;
}

body.dashboard-page .compact-profile-card .profile-mini-actions {
    margin-top: 7px !important;
}

body.dashboard-page .compact-profile-card .profile-mini-btn {
    min-height: 30px !important;
    font-size: 0.71rem !important;
    border-radius: 999px !important;
}

body.dashboard-page .compact-profile-card .profile-feed-tabs {
    background: #f0f2f5;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

body.dashboard-page .compact-profile-card .profile-feed-tab-btn {
    min-height: 33px;
    font-size: 0.74rem;
    border-radius: 9px;
    border: 0 !important;
    background: transparent !important;
    color: #4b5563 !important;
}

body.dashboard-page .compact-profile-card .profile-feed-tab-btn.active {
    background: #ffffff !important;
    color: #1877f2 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14) !important;
}

body.dashboard-page .compact-profile-card .profile-mini-info-grid,
body.dashboard-page .compact-profile-card .profile-engagement-grid {
    margin-top: 9px;
    gap: 7px;
}

body.dashboard-page .compact-profile-card .profile-mini-info-grid article,
body.dashboard-page .compact-profile-card .profile-engagement-grid article {
    border-radius: 10px;
    border: 1px solid #e1e7ef;
    background: #f8fafc;
    padding: 9px;
}

body.dashboard-page .compact-profile-card .fb-details-grid {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    margin-top: 8px !important;
}

body.dashboard-page .compact-profile-card .fb-details-grid article {
    border: 1px solid #e3e8ef !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    padding: 9px 10px !important;
    box-shadow: none !important;
}

body.dashboard-page .compact-profile-card .fb-details-grid article:hover {
    transform: none !important;
    background: #f3f6fa !important;
}

body.dashboard-page .compact-profile-card .fb-details-grid article span {
    font-size: 0.69rem !important;
    color: #6b7280 !important;
    text-transform: none !important;
    white-space: normal !important;
}

body.dashboard-page .compact-profile-card .fb-details-grid article strong {
    font-size: 0.86rem !important;
    color: #111827 !important;
}

body.dashboard-page .compact-profile-card .profile-mini-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
}

body.dashboard-page .compact-profile-card .profile-mini-info-grid .mini-info-item {
    display: flex !important;
    align-items: center !important;
    min-height: 48px !important;
    padding: 10px 10px !important;
    border-radius: 14px !important;
    border: 1px solid #dbe3ec !important;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 8px 18px rgba(15, 23, 42, 0.04) !important;
}

body.dashboard-page .compact-profile-card .profile-mini-info-grid .mini-info-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem !important;
    line-height: 1.28 !important;
    color: #1f2937 !important;
    font-weight: 800 !important;
    width: 100%;
}

body.dashboard-page .compact-profile-card .profile-mini-info-grid .mini-info-label::before {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    line-height: 1;
    background: linear-gradient(180deg, #ffffff, #eef2f7);
    border: 1px solid #d9e1ea;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body.dashboard-page .compact-profile-card .profile-mini-info-grid .mini-info-study .mini-info-label::before {
    content: "🎓";
}

body.dashboard-page .compact-profile-card .profile-mini-info-grid .mini-info-work .mini-info-label::before {
    content: "💼";
}

body.dashboard-page .compact-profile-card .profile-mini-info-grid .mini-info-role .mini-info-label::before {
    content: "🧑‍💼";
}

body.dashboard-page .compact-profile-card .profile-mini-info-grid .mini-info-gender .mini-info-label::before {
    content: "⚥";
}

body.dashboard-page .compact-profile-card .profile-mini-info-grid .mini-info-language .mini-info-label::before {
    content: "🗣";
}

body.dashboard-page .compact-profile-card .profile-mini-info-grid .mini-info-heart .mini-info-label::before {
    content: "❤️";
}

@media (max-width: 640px) {
    body.dashboard-page .compact-profile-card .profile-mini-info-grid {
        grid-template-columns: 1fr !important;
        gap: 7px;
    }

    body.dashboard-page .compact-profile-card .profile-mini-info-grid .mini-info-item {
        min-height: 44px !important;
        padding: 9px 10px !important;
        border-radius: 12px !important;
    }

    body.dashboard-page .compact-profile-card .profile-mini-info-grid .mini-info-label {
        gap: 7px;
        font-size: 0.74rem !important;
        line-height: 1.22 !important;
    }

    body.dashboard-page .compact-profile-card .profile-mini-info-grid .mini-info-label::before {
        width: 24px;
        height: 24px;
        font-size: 0.82rem;
        border-radius: 8px;
    }
}

body.dashboard-page .compact-profile-card .profile-mini-info-grid .mini-info-item strong {
    margin-top: 2px;
    font-size: 0.82rem !important;
}

/* Navigation refresh: cleaner light, friendlier interactions */
.mig-nav {
    margin: 10px 8px 2px !important;
    padding: 9px 10px !important;
    border-radius: 16px !important;
    border: 1px solid #dde5f0 !important;
    background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
    gap: 10px !important;
}

.mig-menu {
    gap: 7px !important;
    padding-bottom: 1px;
}

.mig-link {
    width: 74px !important;
    height: 52px !important;
    padding: 6px 8px !important;
    flex-direction: column !important;
    gap: 5px !important;
    border-radius: 14px !important;
    color: #475569 !important;
    border: 1px solid #dfe7f2 !important;
    background: linear-gradient(180deg, #f8fbff, #f1f5fb) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.mig-link:hover {
    color: #1e3a8a !important;
    border-color: #c7d7ee !important;
    background: linear-gradient(180deg, #f4f9ff, #eaf1fb) !important;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.mig-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.mig-link.active {
    color: #ffffff !important;
    border-color: #2f6fe7 !important;
    background: linear-gradient(135deg, #2f80ff, #1d5ed8) !important;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.32) !important;
}

.menu-svg {
   width: 32px !important;
  height: 22px !important;
    stroke-width: 1.95 !important;
}

.nav-notify-trigger {
    border-radius: 14px !important;
}

.nav-badge {
    top: -5px !important;
    right: -4px !important;
    min-width: 17px !important;
    height: 17px !important;
    font-size: 0.62rem !important;
    border: 2px solid #ffffff !important;
    background: linear-gradient(135deg, #ef4444, #f97316) !important;
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.34) !important;
    animation: none !important;
}

/* People You May Know: compact + polished */
#suggestFriendsCard {
    padding: 9px 9px 0 !important;
    border-radius: 14px !important;
}

#suggestFriendsCard.suggest-card::before {
    display: none !important;
}

#suggestFriendsCard .friend-head {
    margin-bottom: 6px;
}

#suggestFriendsCard .friend-head h2 {
    font-size: 0.92rem;
    letter-spacing: 0.01em;
}

#suggestFriendsCard .friend-head {
    align-items: flex-start;
    gap: 10px;
}

#suggestFriendsCard .friend-head-copy {
    display: grid;
    gap: 4px;
}

#suggestFriendsCard .friend-head-copy p {
    margin: 0;
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.45;
    max-width: 220px;
}

#suggestFriendsCard .friend-chip {
    padding: 3px 8px !important;
    font-size: 0.62rem !important;
    border-radius: 999px !important;
    border: 1px solid #d8e5fb !important;
    color: #2563eb !important;
    background: #eef4ff !important;
}

#suggestFriendsCard .friend-grid {
    margin-top: 6px !important;
    gap: 6px !important;
    margin-bottom: -10px;
}

#suggestFriendsCard .friend-card.friend-suggest-compact {
    border-radius: 13px !important;
    padding: 0 7px 8px !important;
    border: 1px solid #dbe5f2 !important;
    background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.08) !important;
}

#suggestFriendsCard .friend-card.friend-suggest-compact:hover {
    transform: translateY(-2px);
    border-color: #c8d8ee !important;
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.12) !important;
}

#suggestFriendsCard .friend-suggest-banner {
    height: 66px;
    margin: 0 -7px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #e4ecf6;
}

#suggestFriendsCard .friend-suggest-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#suggestFriendsCard .friend-suggest-banner-fallback {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.32), transparent 32%),
        radial-gradient(circle at 85% 100%, rgba(255, 255, 255, 0.24), transparent 35%),
        linear-gradient(135deg, #6ea8ff, #9bc5ff 45%, #63d2ff 100%);
}

#suggestFriendsCard .friend-suggest-avatar-overlap {
    margin-top: -24px;
    z-index: 2;
}

#suggestFriendsCard .friend-suggest-avatar {
    width: 58px !important;
    height: 58px !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
}

#suggestFriendsCard .friend-suggest-info {
    gap: 2px !important;
    margin-top: 1px;
}

#suggestFriendsCard .friend-suggest-info strong {
    font-size: 0.84rem !important;
    line-height: 1.2;
}

#suggestFriendsCard .friend-suggest-info span,
#suggestFriendsCard .friend-suggest-info small {
    font-size: 0.68rem !important;
}

#suggestFriendsCard .friend-suggest-info small {
    color: #2563eb !important;
    font-weight: 700;
}

#suggestFriendsCard .friend-suggest-note {
    margin: 2px 0 0;
    color: #526377;
    font-size: 0.69rem;
    line-height: 1.42;
}

#suggestFriendsCard .friend-actions {
    gap: 5px !important;
}

#suggestFriendsCard .friend-actions .btn-primary {
    min-height: 29px !important;
    padding: 6px 7px !important;
    font-size: 0.68rem !important;
    border-radius: 8px !important;
}

#suggestFriendsCard #suggestProfileView {
    margin-top: 7px !important;
    padding: 8px !important;
    border-radius: 11px !important;
    border: 1px solid #dde6f2 !important;
    background: #f8fbff !important;
    color: #16324f !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#suggestFriendsCard #suggestFriendMessage {
    padding-bottom: 0 !important;
}

#suggestFriendsCard #suggestProfileView .suggest-profile-meta strong,
#suggestFriendsCard #suggestProfileView .suggest-profile-meta span,
#suggestFriendsCard #suggestProfileView .suggest-profile-meta small,
#suggestFriendsCard #suggestProfileView .suggest-profile-bio,
#suggestFriendsCard #suggestProfileView .suggest-profile-grid span,
#suggestFriendsCard #suggestProfileView .suggest-profile-grid strong {
    color: #16324f !important;
}

#suggestFriendsCard #suggestProfileView .suggest-profile-meta span {
    color: #36506b !important;
}

#suggestFriendsCard #suggestProfileView .suggest-profile-meta small,
#suggestFriendsCard #suggestProfileView .suggest-profile-grid span {
    color: #5f7892 !important;
}

#suggestFriendsCard #suggestProfileView .suggest-profile-grid > div {
    border: 1px solid #d9e4f2 !important;
    background: #ffffff !important;
}

.dashboard-game-pulse-card {
    position: relative;
    overflow: hidden;
    padding: 11px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    background:
        radial-gradient(circle at top left, rgba(187, 247, 208, 0.24), transparent 34%),
        radial-gradient(circle at bottom right, rgba(74, 222, 128, 0.2), transparent 36%),
        linear-gradient(145deg, #041b14, #0a2e21 48%, #0e3b29);
    box-shadow:
        0 20px 38px rgba(5, 58, 37, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    isolation: isolate;
}

.dashboard-game-pulse-card > * {
    position: relative;
    z-index: 1;
}

.dashboard-game-pulse-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.dashboard-game-pulse-head h2 {
    margin: 0;
    color: #ecfdf5;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.dashboard-game-pulse-sub {
    margin: 2px 0 0;
    color: rgba(209, 250, 229, 0.78);
    font-size: 0.67rem;
    line-height: 1.3;
}

.dashboard-game-week-chip {
    flex-shrink: 0;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(110, 231, 183, 0.28);
    background: rgba(6, 78, 59, 0.6);
    color: #d1fae5;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dashboard-game-hero {
    position: relative;
    margin-bottom: 9px;
    padding: 11px;
    border-radius: 17px;
    border: 1px solid rgba(110, 231, 183, 0.18);
    background:
        linear-gradient(135deg, rgba(6, 95, 70, 0.82), rgba(5, 46, 35, 0.92)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 16px 30px rgba(4, 31, 20, 0.34);
}

.dashboard-game-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(110, 231, 183, 0.12) 50%, transparent 78%);
    transform: translateX(-130%);
    animation: dashboardGameSweep 5s linear infinite;
    pointer-events: none;
}

.dashboard-game-grid-radar {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(167, 243, 208, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 243, 208, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 92%);
    opacity: 0.75;
    pointer-events: none;
}

.dashboard-game-winner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(134, 239, 172, 0.25);
    background: rgba(6, 78, 59, 0.76);
    color: #dcfce7;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-featured-card {
    padding-top: 10px !important;
}

.dashboard-game-winner-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.48);
    animation: dashboardGamePing 1.8s ease-out infinite;
}

.dashboard-game-hero-main {
    display: grid;
    gap: 10px;
    margin-top: 9px;
}

.dashboard-game-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.dashboard-game-avatar,
.dashboard-game-stat-avatar {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    object-fit: cover;
    display: block;
}

.dashboard-game-avatar {
    border: 2px solid rgba(236, 253, 245, 0.88);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.dashboard-game-avatar-fallback,
.dashboard-game-stat-avatar-fallback {
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #ecfdf5;
    background: linear-gradient(135deg, #10b981, #22c55e);
}

.dashboard-game-avatar-ring {
    position: absolute;
    inset: -5px;
    border-radius: 20px;
    border: 1px solid rgba(134, 239, 172, 0.35);
    animation: dashboardGameRing 3.8s linear infinite;
}

.dashboard-game-hero-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.dashboard-game-hero-copy strong {
    color: #f0fdf4;
    font-size: 0.92rem;
    line-height: 1.1;
}

.dashboard-game-hero-copy p {
    margin: 0;
    color: rgba(220, 252, 231, 0.84);
    font-size: 0.69rem;
    line-height: 1.35;
}

.dashboard-game-hero-winners {
    display: grid;
    gap: 6px;
}

.dashboard-game-hero-winner-row {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 14px;
    background: rgba(236, 253, 245, 0.06);
    border: 1px solid rgba(110, 231, 183, 0.12);
}

.dashboard-game-hero-winner-row .dashboard-game-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.dashboard-game-hero-winner-row .dashboard-game-avatar-ring {
    inset: -4px;
    border-radius: 14px;
}

.dashboard-game-hero-winner-copy {
    min-width: 0;
}

.dashboard-game-hero-winner-copy strong {
    display: block;
    color: #f0fdf4;
    font-size: 0.72rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-game-hero-winner-copy small {
    display: block;
    margin-top: 2px;
    color: rgba(209, 250, 229, 0.72);
    font-size: 0.6rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-game-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.dashboard-game-hero-meta span {
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(236, 253, 245, 0.08);
    border: 1px solid rgba(187, 247, 208, 0.16);
    color: #bbf7d0;
    font-size: 0.6rem;
    font-weight: 700;
}

.dashboard-game-ticker {
    display: flex;
    gap: 14px;
    margin-top: 10px;
    padding-top: 7px;
    border-top: 1px solid rgba(167, 243, 208, 0.12);
    white-space: nowrap;
    overflow: hidden;
}

.dashboard-game-ticker span {
    color: rgba(167, 243, 208, 0.84);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    animation: dashboardGameTicker 8s linear infinite;
}

.dashboard-game-hero-empty .dashboard-game-hero-copy {
    margin-top: 8px;
}

.dashboard-game-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.dashboard-game-stat-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 10px;
    border-radius: 15px;
    border: 1px solid rgba(110, 231, 183, 0.16);
    background:
        radial-gradient(circle at top right, rgba(52, 211, 153, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dashboard-game-stat-card::before {
    content: "";
    position: absolute;
    inset: auto auto -35px -20px;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.18), transparent 72%);
    pointer-events: none;
}

.dashboard-game-stat-label {
    display: block;
    margin-bottom: 8px;
    color: #86efac;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-game-stat-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-game-winner-list {
    display: grid;
    gap: 6px;
}

.dashboard-game-winner-row {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 6px 7px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(110, 231, 183, 0.1);
}

.dashboard-game-rank-badge {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #34d399, #22c55e);
    color: #032117;
    font-size: 0.62rem;
    font-weight: 900;
}

.dashboard-game-winner-copy {
    min-width: 0;
}

.dashboard-game-winner-copy strong {
    display: block;
    color: #f0fdf4;
    font-size: 0.7rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-game-winner-copy small {
    display: block;
    margin-top: 2px;
    color: rgba(209, 250, 229, 0.72);
    font-size: 0.58rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-game-win-pill {
    flex-shrink: 0;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.16);
    border: 1px solid rgba(110, 231, 183, 0.18);
    color: #a7f3d0;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.dashboard-game-stat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(236, 253, 245, 0.72);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.dashboard-game-stat-user strong,
.dashboard-game-room-highlight strong,
.dashboard-game-stat-empty {
    display: block;
    color: #f0fdf4;
    font-size: 0.73rem;
    line-height: 1.2;
}

.dashboard-game-stat-user small,
.dashboard-game-room-highlight small {
    display: block;
    margin-top: 3px;
    color: rgba(209, 250, 229, 0.76);
    font-size: 0.62rem;
    line-height: 1.3;
}

.dashboard-game-room-highlight {
    display: grid;
    gap: 5px;
}

.dashboard-game-room-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 27px;
    padding: 5px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #34d399, #22c55e);
    color: #032117;
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.dashboard-game-room-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 14px 24px rgba(34, 197, 94, 0.28);
}

@keyframes dashboardGameSweep {
    0% { transform: translateX(-130%); }
    100% { transform: translateX(130%); }
}

@keyframes dashboardGamePing {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.42); }
    70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@keyframes dashboardGameRing {
    0% { transform: rotate(0deg); opacity: 0.55; }
    50% { opacity: 0.95; }
    100% { transform: rotate(360deg); opacity: 0.55; }
}

@keyframes dashboardGameTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@media (max-width: 640px) {
    .dashboard-game-pulse-card {
        padding: 10px;
        border-radius: 18px;
    }

    .dashboard-game-pulse-head,
    .dashboard-game-hero-main,
    .dashboard-game-stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-game-pulse-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-game-hero {
        padding: 10px;
        border-radius: 16px;
    }

    .dashboard-game-hero-main {
        display: grid;
    }

    .dashboard-game-avatar,
    .dashboard-game-stat-avatar {
        width: 52px;
        height: 52px;
    }

    .dashboard-game-stats-grid {
        display: grid;
        grid-template-columns: 1fr;
    }
}

.dashboard-room-strip {
    padding: 14px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.55), transparent 38%),
        linear-gradient(145deg, rgba(255, 250, 245, 0.98), rgba(255, 243, 228, 0.95));
    border: 1px solid rgba(251, 146, 60, 0.14);
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.08);
}

.dashboard-room-strip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-room-card {
    min-width: 0;
    padding: 10px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.62), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.92));
    border: 1px solid rgba(251, 146, 60, 0.12);
    box-shadow:
        0 12px 28px rgba(249, 115, 22, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.dashboard-room-head {
    margin-bottom: 8px;
}

.dashboard-room-head h2 {
    font-size: 0.92rem;
}

.dashboard-room-list {
    display: grid;
    gap: 6px;
}

.dashboard-room-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 14px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(251, 146, 60, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-room-item:hover {
    transform: translateY(-1px);
    border-color: rgba(249, 115, 22, 0.2);
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.1);
}

.dashboard-room-item strong {
    flex: 1 1 auto;
    color: #111827;
    font-size: 0.76rem;
    line-height: 1.1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-room-item span {
    flex-shrink: 0;
    padding: 3px 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.95), rgba(254, 215, 170, 0.92));
    border: 1px solid rgba(251, 146, 60, 0.14);
    color: #c2410c;
    font-size: 0.64rem;
    font-weight: 800;
}

.dashboard-room-empty {
    margin: 0;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    color: #6b7280;
    font-size: 0.84rem;
    text-align: center;
}

@media (max-width: 640px) {
    .dashboard-room-strip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dashboard-room-card {
        padding: 8px;
        border-radius: 16px;
    }

    .dashboard-room-item {
        gap: 6px;
        padding: 6px 7px;
        border-radius: 12px;
    }

    .dashboard-room-item strong {
        font-size: 0.68rem;
        line-height: 1.05;
    }

    .dashboard-room-item span {
        padding: 2px 6px;
        font-size: 0.58rem;
    }
}

/* Dashboard paid-post header buttons: smaller + no shadow */
.dashboard-featured-card .featured-head-actions .featured-head-btn {
    min-height: 28px !important;
    padding: 5px 9px !important;
    font-size: 0.66rem !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    border: 1px solid #c98a13 !important;
    background: linear-gradient(135deg, #ffe39a, #efbd4f) !important;
    color: #5f3e00 !important;
    font-weight: 700 !important;
}

.dashboard-featured-card .featured-head-actions .featured-head-btn:hover {
    box-shadow: none !important;
    transform: none !important;
    border-color: #b97908 !important;
    background: linear-gradient(135deg, #ffd977, #e4aa2f) !important;
    color: #4a2f00 !important;
}

.dashboard-featured-card .featured-head-actions .featured-head-btn .menu-svg {
    width: 13px !important;
    height: 13px !important;
    color: currentColor !important;
    stroke: currentColor !important;
}

/* Premium Newsfeed: animated gold look */
.dashboard-featured-card {
    position: relative;
    overflow: hidden;
  
    background-size: 120% 120%, 120% 120%, 200% 200% !important;
    box-shadow: 0 12px 26px rgba(167, 124, 27, 0.2) !important;
    animation: premiumGoldPulse 4.6s ease-in-out infinite, premiumGoldFlow 9s ease-in-out infinite;
}

.dashboard-featured-card::before {
    content: "";
    position: absolute;
    inset: -20% -45% auto -45%;
    height: 130px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 25%,
        rgba(255, 236, 176, 0.42) 50%,
        rgba(255, 255, 255, 0.08) 72%,
        transparent 100%
    );
    transform: translateX(-120%) rotate(-8deg);
    animation: premiumGoldShimmer 5.8s linear infinite;
    z-index: 0;
    opacity: 0.62;
    pointer-events: none;
}

.dashboard-featured-card > * {
    position: relative;
    z-index: 1;
}

.dashboard-featured-card .friend-head {
    margin-bottom: 2px !important;
}

.dashboard-featured-card .friend-head h2 {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 4px 12px 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(182, 121, 7, 0.36);
    background: linear-gradient(135deg, rgba(255, 247, 219, 0.92), rgba(255, 228, 154, 0.76));
    color: #7b4b00 !important;
    font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 12px rgba(170, 120, 18, 0.12);
    overflow: hidden;
}

.dashboard-featured-card .friend-head h2::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4c44d, #be7c06);
    box-shadow: 0 0 0 2px rgba(249, 209, 116, 0.3);
    flex-shrink: 0;
}

.dashboard-featured-card .friend-head h2::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.36) 50%, transparent 78%);
    transform: translateX(-125%);
    animation: premiumTitleSweep 3.8s linear infinite;
    pointer-events: none;
}

.dashboard-featured-card .feed-timeline {
    margin-top: 4px !important;
    gap: 7px !important;
}

#dashboardFeaturedTimeline .feed-post-card {
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
    border: 1px solid #dbe6f4 !important;
    border-radius: 14px !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(122, 180, 255, 0.12), transparent 30%),
        radial-gradient(circle at 88% 100%, rgba(255, 143, 207, 0.1), transparent 32%),
        linear-gradient(170deg, #ffffff, #f6faff) !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08) !important;
    animation: none !important;
}

#dashboardFeaturedTimeline .feed-post-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

#dashboardFeaturedTimeline .feed-post-card > * {
    position: relative;
    z-index: 1;
}

#dashboardFeaturedTimeline .feed-post-meta small,
#dashboardFeaturedTimeline .feed-post-meta span {
    font-size: 0.81rem;
    color: #667085 !important;
}

#dashboardFeaturedTimeline .feed-post-text,
#dashboardFeaturedTimeline .feed-post-meta strong,
#dashboardFeaturedTimeline .feed-post-stats {
    color: #0f172a !important;
    text-shadow: none !important;
    filter: none !important;
}

#dashboardFeaturedTimeline .feed-post-meta,
#dashboardFeaturedTimeline .feed-post-text,
#dashboardFeaturedTimeline .feed-post-author-link,
#dashboardFeaturedTimeline .feed-post-avatar {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    filter: none !important;
}

#dashboardFeaturedTimeline .feed-post-meta strong {
    font-size: 0.97rem !important;
    font-weight: 700 !important;
}

#dashboardFeaturedTimeline .feed-post-text {
    font-size: 0.96rem !important;
    line-height: 1.58 !important;
}

#dashboardFeaturedTimeline .feed-post-avatar {
    image-rendering: auto;
}

#dashboardFeaturedTimeline .feed-post-stats span {
    background: #f4f8ff !important;
    border-color: #dce7f5 !important;
    color: #425168 !important;
}

#dashboardFeaturedTimeline .feed-featured-badge {
    background: linear-gradient(135deg, #60a5fa, #2563eb) !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18) !important;
}

#dashboardFeaturedTimeline .feed-post-actions .feed-action-btn {
    border: 1px solid #d9e4f2 !important;
    background: #ffffff !important;
    color: #4b5563 !important;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.08) !important;
    font-weight: 600 !important;
}

#dashboardFeaturedTimeline .feed-post-actions .feed-action-btn:hover {
    border-color: #c6d9ef !important;
    background: #f5f7fb !important;
    color: #1e3a8a !important;
}

#dashboardFeaturedTimeline .feed-reaction-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: #dce7f5;
}

#dashboardFeaturedTimeline .feed-shared-card {
    border-color: #dce7f5;
    background: linear-gradient(180deg, #f8fbff, #edf4fd);
}

#dashboardFeaturedTimeline .feed-shared-card.unavailable,
#dashboardFeaturedTimeline .feed-shared-card.unavailable p,
#dashboardFeaturedTimeline .feed-share-context {
    color: #5b6475 !important;
}

#dashboardFeaturedTimeline .feed-post-actions .feed-action-btn.active,
#dashboardFeaturedTimeline .feed-post-actions .feed-action-btn.active.love,
#dashboardFeaturedTimeline .feed-post-actions .feed-action-btn.active.angry,
#dashboardFeaturedTimeline .feed-post-actions .feed-action-btn.active.haha {
    box-shadow: 0 6px 12px rgba(24, 119, 242, 0.12) !important;
}

#dashboardFeaturedTimeline .feed-post-actions .feed-action-btn.active {
    border-color: #bfd7fb !important;
    background: #eef5ff !important;
    color: #1877f2 !important;
}

#dashboardFeaturedTimeline .feed-post-actions .feed-action-btn.active.love {
    border-color: #f8c7d4 !important;
    background: #fff1f5 !important;
    color: #e11d48 !important;
}

#dashboardFeaturedTimeline .feed-post-actions .feed-action-btn.active.angry {
    border-color: #f5d7aa !important;
    background: #fff7ed !important;
    color: #d97706 !important;
}

#dashboardFeaturedTimeline .feed-post-actions .feed-action-btn.active.haha {
    border-color: #f3e3a2 !important;
    background: #fffbeb !important;
    color: #ca8a04 !important;
}

@keyframes premiumGoldShimmer {
    0% { transform: translateX(-120%) rotate(-8deg); }
    100% { transform: translateX(120%) rotate(-8deg); }
}

@keyframes premiumGoldPulse {
    0%, 100% { box-shadow: 0 12px 26px rgba(167, 124, 27, 0.2); }
    50% { box-shadow: 0 14px 30px rgba(194, 140, 27, 0.28); }
}

@keyframes premiumPostGlow {
    0%, 100% { box-shadow: 0 8px 20px rgba(168, 123, 23, 0.16); }
    50% { box-shadow: 0 10px 24px rgba(192, 138, 27, 0.24); }
}

@keyframes premiumGoldFlow {
    0%, 100% { background-position: 0% 0%, 100% 100%, 0% 50%; }
    50% { background-position: 18% 14%, 84% 86%, 100% 50%; }
}

@keyframes premiumCardFlow {
    0%, 100% { background-position: 0% 0%, 100% 100%, 0% 50%; }
    50% { background-position: 16% 12%, 86% 88%, 100% 50%; }
}

@keyframes premiumTitleShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 220% 50%; }
}

@keyframes premiumTitleSweep {
    0% { transform: translateX(-125%); }
    100% { transform: translateX(125%); }
}

body.dashboard-page .compact-profile-card .inline-edit-profile-form {
    margin-top: 8px;
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #dfe6f0;
    background: #f9fbff;
}

body.dashboard-page .compact-profile-card .inline-edit-profile-form .image-preview {
    background: #f2f5fa;
    border-color: #dbe3ee;
}

/* Dashboard stats strip: modern creative card */
.dashboard-stats-strip {
    position: relative;
    overflow: hidden;
    border: 1px solid #d8e5f7 !important;
    border-radius: 14px !important;
    background:
        radial-gradient(circle at 10% 0%, rgba(96, 165, 250, 0.14), transparent 34%),
        radial-gradient(circle at 90% 100%, rgba(56, 189, 248, 0.12), transparent 36%),
        linear-gradient(160deg, #fbfdff, #eef4fc) !important;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.09) !important;
    padding: 8px 8px 9px !important;
}

.dashboard-stats-strip::before {
    content: "";
    position: absolute;
    inset: -30% -40% auto -40%;
    height: 110px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: translateX(-120%) rotate(-8deg);
    animation: dashboardStatsSweep 7s linear infinite;
    pointer-events: none;
}

.dashboard-stats-strip .dashboard-user-info-row {
    position: relative;
    z-index: 1;
    margin-top: 0;
    gap: 7px;
    padding-bottom: 0;
}

.dashboard-stats-strip .dashboard-user-pill {
    min-width: 86px;
    padding: 7px 10px !important;
    border-radius: 11px !important;
    border: 1px solid #d7e3f3 !important;
    background: linear-gradient(180deg, #ffffff, #f3f7fd) !important;
    color: #334155 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    white-space: nowrap;
}

.dashboard-stats-strip .dashboard-user-pill em {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-size: 0.8rem;
    background: #e6efff;
    color: #2563eb;
    opacity: 1;
}

.dashboard-stats-strip .dashboard-user-pill strong {
    color: #0f172a !important;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.dashboard-stats-strip .dashboard-user-pill:first-child {
    min-width: 108px;
}

@keyframes dashboardStatsSweep {
    0% { transform: translateX(-120%) rotate(-8deg); }
    100% { transform: translateX(120%) rotate(-8deg); }
}

/* Dashboard header + nav refresh (modern creative) */
body.dashboard-page .app-top {
    position: relative;
    overflow: hidden;
    padding: 10px 11px;
    border-bottom: 1px solid #dce7f3 !important;
    background:
        radial-gradient(circle at 8% 0%, rgba(96, 165, 250, 0.22), transparent 38%),
        radial-gradient(circle at 92% 100%, rgba(56, 189, 248, 0.16), transparent 40%),
        linear-gradient(145deg, #ffffff, #f4f8ff) !important;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.6), 0 8px 18px rgba(15, 23, 42, 0.08);
}

body.dashboard-page .app-top::after {
    content: "";
    position: absolute;
    inset: -40% -35% auto -35%;
    height: 100px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
    transform: translateX(-120%) rotate(-8deg);
    animation: dashboardHeaderSweep 8s linear infinite;
    pointer-events: none;
}

body.dashboard-page .app-top > * {
    position: relative;
    z-index: 1;
}

body.dashboard-page .brand-head {
    margin-bottom: 0;
}

body.dashboard-page .brand-head::after {
    display: none;
}

body.dashboard-page .dashboard-logo {
    width: 66px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #d7e4f3;
    background: #ffffff;
    box-shadow: 0 5px 12px rgba(37, 99, 235, 0.1);
}

body.dashboard-page .top-icons {
    max-width: 74%;
}

body.dashboard-page .activity-marquee {
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid #d5e2f3;
    background: linear-gradient(180deg, #ffffff, #eff5ff);
    color: #334155;
    font-size: 0.68rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

body.dashboard-page .mig-nav {
    margin: 12px 8px 0;
    padding: 10px 8px;
    border-radius: 20px;
    border: 1px solid #d9e5f3 !important;
    background:
        radial-gradient(circle at 8% 0%, rgba(147, 197, 253, 0.24), transparent 38%),
        radial-gradient(circle at 92% 100%, rgba(96, 165, 250, 0.16), transparent 34%),
        linear-gradient(155deg, #ffffff, #f3f8ff) !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1) !important;
}

body.dashboard-page .app-top + .mig-nav {
    margin-top: 0 !important;
}

body.dashboard-page.nav-swipe-transition .app-phone {
    transition: transform 140ms ease, opacity 140ms ease;
    will-change: transform, opacity;
}

body.dashboard-page.nav-swipe-transition.nav-swipe-next .app-phone {
    transform: translateX(-22px);
    opacity: 0.88;
}

body.dashboard-page.nav-swipe-transition.nav-swipe-prev .app-phone {
    transform: translateX(22px);
    opacity: 0.88;
}

body.dashboard-page .mig-menu {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
}

body.dashboard-page .mig-link {
    width: calc(20% - 5px) !important;
    min-width: 0;
    height: 60px !important;
    padding: 7px 3px 8px !important;
    flex-direction: column;
    gap: 6px;
    border-radius: 16px !important;
    border: 1px solid #d9e4f2 !important;
    background: linear-gradient(180deg, #f8fbff, #eff4fb) !important;
    color: #475569 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

body.dashboard-page .mig-link:hover {
    color: #1e3a8a !important;
    border-color: #c6d9ef !important;
    background: linear-gradient(180deg, #f3f8ff, #e9f1fb) !important;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

body.dashboard-page .mig-link.active {
    color: #ffffff !important;
    border-color: #2f6fe7 !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 32%),
        linear-gradient(135deg, #2f80ff, #1e61dd) !important;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.32) !important;
}

body.dashboard-page .menu-svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.95;
}

body.dashboard-page .nav-notify-trigger {
    border-radius: 16px !important;
}

body.dashboard-page .nav-badge {
    top: -5px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    border: 2px solid #ffffff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.32);
    animation: none !important;
}

body.dashboard-page .mig-label {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

body.dashboard-page .mig-link-avatar {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.18);
}

body.dashboard-page .mig-link-avatar-fallback {
    font-size: 0.72rem;
}

@keyframes dashboardHeaderSweep {
    0% { transform: translateX(-120%) rotate(-8deg); }
    100% { transform: translateX(120%) rotate(-8deg); }
}

/* Facebook-inspired mobile header + icon tab navigation */
body.dashboard-page .app-phone {
    background: #f0f2f5;
}

body.dashboard-page .app-top.app-top-facebook {
    padding: 12px 14px;
    display: block;
    border-bottom: 1px solid #dde3ea !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

body.dashboard-page .app-top.app-top-facebook::after {
    display: none;
}

body.dashboard-page .app-top-facebook .app-top-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

body.dashboard-page .app-top-facebook .app-brand-cluster,
body.dashboard-page .app-top-facebook .app-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.dashboard-page .app-top-facebook .app-brand-cluster {
    min-width: 0;
    flex: 0 1 auto;
}

body.dashboard-page .app-top-facebook .app-top-actions {
    margin-left: auto;
    justify-content: flex-end;
    flex: 0 0 auto;
}

body.dashboard-page .app-top-facebook .app-brand-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

body.dashboard-page .app-top-facebook .app-brand-logo {
    width: 80px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    animation: none;
    box-shadow: 0 0 0 rgba(255, 79, 167, 0);
}

body.dashboard-page .app-top-facebook .app-top-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #050505;
    background: #f0f2f5;
    border: 1px solid #e3e7ee;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
}

body.dashboard-page .app-top-facebook .app-top-icon-btn:hover,
body.dashboard-page .app-top-facebook .app-top-icon-btn.is-current {
    background: #e7f1ff;
    transform: translateY(-1px);
}

body.dashboard-page .app-top-facebook .app-top-icon {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.dashboard-page .dashboard-top-status-card {
    margin: 10px 12px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid #d9e7fb;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

body.dashboard-page .dashboard-top-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #31a24c;
    box-shadow: 0 0 0 4px rgba(49, 162, 76, 0.14);
    flex-shrink: 0;
}

body.dashboard-page .dashboard-top-status-text {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #1f2937;
    font-size: 0.76rem;
    font-weight: 700;
}

body.dashboard-page .facebook-nav {
    margin: 0 0 10px !important;
    padding: 0 8px !important;
    border-radius: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #dde3ea !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

body.dashboard-page .facebook-nav .mig-menu {
    width: 100%;
    justify-content: space-between;
    gap: 0;
    padding: 0;
}

body.dashboard-page .facebook-nav .mig-menu li {
    flex: 1 1 20%;
    min-width: 0;
}

body.dashboard-page .facebook-nav .mig-link {
    width: 100% !important;
    height: 56px !important;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #65676b !important;
    box-shadow: none !important;
    justify-content: center;
    position: relative;
    overflow: visible;
    transition: background-color 0.18s ease, color 0.18s ease;
}

body.dashboard-page .facebook-nav .mig-link::before {
    display: none;
}

body.dashboard-page .facebook-nav .mig-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: #1877f2;
    transform: scaleX(0.42);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

body.dashboard-page .facebook-nav .mig-link:hover {
    transform: none;
    color: #050505 !important;
    background: rgba(24, 119, 242, 0.06) !important;
}

body.dashboard-page .facebook-nav .mig-link.active {
    color: #1877f2 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.dashboard-page .facebook-nav .mig-link.active::after {
    transform: scaleX(1);
    opacity: 1;
}

body.dashboard-page .facebook-nav .mig-link > * {
    position: relative;
    z-index: 1;
}

body.dashboard-page .facebook-nav .menu-svg {
    width: 26px;
    height: 26px;
    stroke-width: 2.05;
}

body.dashboard-page .facebook-nav .mig-link-avatar {
    width: 30px;
    height: 30px;
    border: 2px solid #d7dce3;
    box-shadow: none;
}

body.dashboard-page .facebook-nav .mig-link.active .mig-link-avatar {
    border-color: #1877f2;
}

body.dashboard-page .facebook-nav .mig-link-avatar-fallback {
    background: linear-gradient(135deg, #dce8ff, #9dc4ff);
    color: #0f172a;
    font-size: 0.82rem;
}

body.dashboard-page .facebook-nav .nav-badge {
    top: 7px;
    right: 11px;
    min-width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    background: #e41e3f;
    box-shadow: none;
    font-size: 0.72rem !important;
}

body.dashboard-page .app-top + .facebook-nav {
    margin-top: 0 !important;
}

body.dashboard-page .notifications-fb-shell {
    padding: 12px;
    display: grid;
    gap: 12px;
}

body.dashboard-page .notifications-fb-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(24, 119, 242, 0.16), transparent 38%),
        linear-gradient(180deg, #ffffff, #f7faff);
    border: 1px solid #dbe4ef;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

body.dashboard-page .notifications-fb-kicker {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1877f2;
}

body.dashboard-page .notifications-fb-hero h1 {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.1;
    color: #111827;
}

body.dashboard-page .notifications-fb-subtitle {
    margin: 8px 0 0;
    max-width: 44ch;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #4b5563;
}

body.dashboard-page .notifications-fb-hero-stats {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-shrink: 0;
}

body.dashboard-page .notifications-fb-stat {
    min-width: 84px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f0f5ff;
    border: 1px solid #d7e4ff;
    display: grid;
    gap: 4px;
    text-align: center;
}

body.dashboard-page .notifications-fb-stat strong {
    font-size: 1.1rem;
    color: #111827;
}

body.dashboard-page .notifications-fb-stat span {
    font-size: 0.76rem;
    font-weight: 700;
    color: #6b7280;
}

body.dashboard-page .notifications-fb-card {
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #dde3ea;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 14px;
}

body.dashboard-page .notifications-fb-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f5;
}

body.dashboard-page .notifications-fb-toolbar h2 {
    margin: 0;
    font-size: 1.02rem;
    color: #111827;
}

body.dashboard-page .notifications-fb-toolbar p {
    margin: 4px 0 0;
    font-size: 0.84rem;
    color: #6b7280;
}

body.dashboard-page .notifications-fb-range {
    padding: 8px 12px;
    border-radius: 999px;
    background: #f0f2f5;
    color: #4b5563;
    font-size: 0.76rem;
    font-weight: 700;
}

body.dashboard-page .notifications-fb-list {
    display: grid;
    gap: 10px;
}

body.dashboard-page .notifications-fb-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5ebf2;
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

body.dashboard-page .notifications-fb-item:hover {
    transform: translateY(-1px);
    border-color: #d2dded;
    background: #fbfdff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

body.dashboard-page .notifications-fb-item.unread {
    background: linear-gradient(180deg, #f2f7ff, #ffffff);
    border-color: #cfe0ff;
}

body.dashboard-page .notifications-fb-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

body.dashboard-page .notifications-fb-avatar {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

body.dashboard-page .notifications-fb-type-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #1877f2;
    color: #ffffff;
    border: 2px solid #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.28);
}

body.dashboard-page .notifications-fb-body {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 6px;
}

body.dashboard-page .notifications-fb-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body.dashboard-page .notifications-fb-actor {
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 800;
    color: #111827;
}

body.dashboard-page .notifications-fb-time {
    flex-shrink: 0;
    font-size: 0.76rem;
    font-weight: 700;
    color: #6b7280;
}

body.dashboard-page .notifications-fb-message {
    font-size: 0.94rem;
    line-height: 1.45;
    color: #1f2937;
}

body.dashboard-page .notifications-fb-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

body.dashboard-page .notifications-fb-chip {
    padding: 5px 10px;
    border-radius: 999px;
    background: #e7f3ff;
    color: #1877f2;
    font-size: 0.72rem;
    font-weight: 800;
}

body.dashboard-page .notifications-fb-date {
    font-size: 0.76rem;
    color: #6b7280;
}

body.dashboard-page .notifications-fb-chevron {
    align-self: center;
    font-size: 1.45rem;
    line-height: 1;
    color: #9ca3af;
}

body.dashboard-page .notifications-fb-empty {
    padding: 30px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    border: 1px dashed #d6dfeb;
    text-align: center;
}

body.dashboard-page .notifications-fb-empty-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: #e7f3ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

body.dashboard-page .notifications-fb-empty h3 {
    margin: 0;
    font-size: 1rem;
    color: #111827;
}

body.dashboard-page .notifications-fb-empty p {
    margin: 8px 0 0;
    font-size: 0.86rem;
    color: #6b7280;
}

body.dashboard-page .notifications-fb-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 6px;
}

body.dashboard-page .notifications-fb-page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

body.dashboard-page .notifications-fb-page-btn,
body.dashboard-page .notifications-fb-page-number {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #dbe3ec;
    background: #ffffff;
    color: #1f2937;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

body.dashboard-page .notifications-fb-page-btn:hover,
body.dashboard-page .notifications-fb-page-number:hover {
    background: #f0f2f5;
    border-color: #cfd8e3;
}

body.dashboard-page .notifications-fb-page-number.active {
    background: #1877f2;
    border-color: #1877f2;
    color: #ffffff;
}

body.dashboard-page .notifications-fb-page-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 420px) {
    body.dashboard-page .app-top.app-top-facebook {
        padding: 10px 12px;
    }

    body.dashboard-page .app-top-facebook .app-brand-logo {
        width: 80px;
        height: 40px;
    }

    body.dashboard-page .app-top-facebook .app-top-icon-btn {
        width: 36px;
        height: 36px;
    }

    body.dashboard-page .facebook-nav .menu-svg {
        width: 24px;
        height: 24px;
    }

    body.dashboard-page .facebook-nav .mig-link-avatar {
        width: 28px;
        height: 28px;
    }

    body.dashboard-page .notifications-fb-shell {
        padding: 10px;
    }

    body.dashboard-page .notifications-fb-hero,
    body.dashboard-page .notifications-fb-toolbar,
    body.dashboard-page .notifications-fb-pagination,
    body.dashboard-page .notifications-fb-topline {
        grid-template-columns: 1fr;
        display: grid;
    }

    body.dashboard-page .notifications-fb-hero-stats {
        width: 100%;
    }

    body.dashboard-page .notifications-fb-stat {
        flex: 1 1 0;
    }

    body.dashboard-page .notifications-fb-item {
        padding: 11px;
        gap: 10px;
    }

    body.dashboard-page .notifications-fb-avatar {
        width: 46px;
        height: 46px;
    }

    body.dashboard-page .notifications-fb-chevron {
        display: none;
    }
}

/* Login page: modern creative refresh */
body.auth-page {
    background:
        radial-gradient(circle at 10% 0%, rgba(59, 130, 246, 0.16), transparent 34%),
        radial-gradient(circle at 90% 100%, rgba(14, 165, 233, 0.14), transparent 36%),
        linear-gradient(165deg, #eef3fb, #e3ecf8) !important;
}

body.auth-page .app-phone {
    border: 1px solid #d9e4f3 !important;
    background: linear-gradient(170deg, #fafdff, #f2f7ff) !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12) !important;
    border-radius: 24px;
}

body.auth-page .app-top {
    position: relative;
    overflow: hidden;
    padding: 11px 12px;
    border-bottom: 1px solid #dce7f5 !important;
    background:
        radial-gradient(circle at 8% 0%, rgba(96, 165, 250, 0.2), transparent 38%),
        linear-gradient(145deg, #ffffff, #f3f8ff) !important;
}

body.auth-page .app-top::after {
    content: "";
    position: absolute;
    inset: -36% -40% auto -40%;
    height: 100px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.66), transparent);
    transform: translateX(-120%) rotate(-8deg);
    animation: loginHeaderSweep 7s linear infinite;
    pointer-events: none;
}

body.auth-page .app-top > * {
    position: relative;
    z-index: 1;
}

body.auth-page .site-logo {
    border-color: #d4e2f3 !important;
    background: #ffffff !important;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.1);
    animation: none;
}

body.auth-page .top-icons .app-sub {
    color: #475569 !important;
    font-weight: 700;
}

body.auth-page .auth-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #dbe5f3 !important;
    border-radius: 16px;
    background: linear-gradient(170deg, #ffffff, #f8fbff) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1) !important;
}

body.auth-page .auth-card::before {
    content: "";
    position: absolute;
    inset: -40% -40% auto -40%;
    height: 86px;
    background: linear-gradient(90deg, transparent, rgba(191, 219, 254, 0.34), transparent);
    transform: translateX(-120%) rotate(-8deg);
    animation: loginCardSweep 9s linear infinite;
    pointer-events: none;
}

body.auth-page .auth-card > * {
    position: relative;
    z-index: 1;
}

body.auth-page .auth-card h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a !important;
}

body.auth-page .muted {
    color: #64748b !important;
}

body.auth-page input {
    border: 1px solid #cfdaea !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border-radius: 11px;
    transition: border-color 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.auth-page input:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2) !important;
    background: #fafdff !important;
}

body.auth-page .btn-primary {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6) !important;
    border: 1px solid #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.24);
}

body.auth-page .btn-primary:hover {
    background: linear-gradient(135deg, #1e40af, #2563eb) !important;
}

body.auth-page .online-summary-card {
    background:
        radial-gradient(circle at 8% 0%, rgba(59, 130, 246, 0.14), transparent 34%),
        radial-gradient(circle at 92% 100%, rgba(14, 165, 233, 0.14), transparent 36%),
        linear-gradient(165deg, #ffffff, #f5faff) !important;
    border-color: #d7e4f3 !important;
}

body.auth-page .online-item {
    border: 1px solid #dbe6f4;
    border-radius: 12px;
    background: #f8fbff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.08);
}

body.auth-page .insight-block {
    border: 1px solid #dbe5f2 !important;
    border-radius: 12px;
    background: linear-gradient(160deg, #f9fcff, #f2f7ff) !important;
}

body.auth-page .switch-link a {
    font-weight: 800;
}

@keyframes loginHeaderSweep {
    0% { transform: translateX(-120%) rotate(-8deg); }
    100% { transform: translateX(120%) rotate(-8deg); }
}

@keyframes loginCardSweep {
    0% { transform: translateX(-120%) rotate(-8deg); opacity: 0.2; }
    50% { opacity: 0.5; }
    100% { transform: translateX(120%) rotate(-8deg); opacity: 0.2; }
}

/* Login "Online Right Now" clarity fixes */
body.auth-page .online-summary-card {
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1) !important;
}

body.auth-page .online-head .online-title {
    color: #0f172a !important;
    font-weight: 800;
}

body.auth-page .online-live-pill {
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

body.auth-page .online-live-pill .live-dot {
    background: #ef4444;
    box-shadow: none;
}

body.auth-page .online-grid {
    gap: 8px;
}

body.auth-page .online-item {
    border: 1px solid #d6e2f1 !important;
    background: linear-gradient(180deg, #ffffff, #f5f9ff) !important;
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.08) !important;
}

body.auth-page .online-icon {
    width: 24px;
    height: 24px;
    font-size: 0.82rem;
    border-width: 1px;
}

body.auth-page .online-item span {
    color: #475569 !important;
    font-weight: 700;
}

body.auth-page .online-item strong {
    color: #0f172a !important;
    text-shadow: none !important;
    animation: none !important;
    filter: none !important;
    font-size: 1.02rem;
}

body.auth-page .online-total-glow strong,
body.auth-page .online-male-glow strong,
body.auth-page .online-female-glow strong {
    text-shadow: none !important;
    animation: none !important;
}

/* Newsfeed FAB composer (+) like X/Twitter */
#newsfeedPage {
    position: relative;
    margin-top: 0 !important;
}

#newsfeedPage #feedComposerPanel {
    position: relative;
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
    transform: translateY(-14px);
    opacity: 0;
    transition: transform 220ms ease, opacity 220ms ease;
}

#newsfeedPage #feedComposerPanel.open {
    transform: translateY(0);
    opacity: 1;
}

#newsfeedPage .newsfeed-create-panel {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 9px;
    border: 1px solid rgba(191, 219, 254, 0.9);
    background:
        radial-gradient(circle at top left, rgba(147, 197, 253, 0.22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(125, 211, 252, 0.14), transparent 32%),
        linear-gradient(175deg, rgba(255, 255, 255, 0.99), rgba(245, 250, 255, 0.96));
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

#newsfeedPage .newsfeed-create-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    transform: translateX(-120%);
    animation: newsfeedPostSweep 12s linear infinite;
    pointer-events: none;
}

#newsfeedPage .newsfeed-create-panel > * {
    position: relative;
    z-index: 1;
}

#newsfeedPage .newsfeed-create-form {
    margin-top: 0;
    margin-bottom: 0;
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    transform: none !important;
    pointer-events: auto !important;
}

#newsfeedPage .newsfeed-create-panel .chatrooms-section-head {
    margin-bottom: 2px;
}

#newsfeedPage .newsfeed-create-panel .feed-composer-top {
    gap: 8px;
}

#newsfeedPage .newsfeed-create-panel .feed-composer-avatar,
#newsfeedPage .newsfeed-create-panel .feed-composer-fallback {
    width: 34px;
    height: 34px;
    min-width: 34px;
}

#newsfeedPage .newsfeed-create-panel .feed-composer-top textarea {
    min-height: 74px;
    padding: 10px 12px;
    font-size: 0.8rem;
    line-height: 1.45;
    border-radius: 14px;
}

#newsfeedPage .newsfeed-create-panel .feed-image-preview {
    margin-top: 6px;
    padding: 6px;
    border-radius: 10px;
}

#newsfeedPage .newsfeed-create-panel .feed-image-preview-grid {
    gap: 5px;
}

#newsfeedPage .newsfeed-create-panel .feed-featured-row {
    margin-top: 6px;
    padding: 7px;
    gap: 5px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid #dbe6f3;
}

#newsfeedPage .newsfeed-create-panel .feed-featured-label {
    color: #475569 !important;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
}

#newsfeedPage .newsfeed-create-panel .feed-featured-options {
    gap: 6px;
}

#newsfeedPage .newsfeed-create-panel .feed-featured-card {
    min-height: 52px;
    padding: 7px 6px;
    gap: 2px;
    border-radius: 12px;
    background: #ffffff !important;
    border: 1px solid #d9e3ef !important;
    color: #0f172a !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

#newsfeedPage .newsfeed-create-panel .feed-featured-card strong {
    font-size: 0.72rem;
}

#newsfeedPage .newsfeed-create-panel .feed-featured-card small {
    color: #64748b !important;
    font-size: 0.6rem;
}

#newsfeedPage .newsfeed-create-panel .feed-featured-option input:checked + .feed-featured-card {
    background: linear-gradient(180deg, #eff6ff, #dbeafe) !important;
    border-color: #60a5fa !important;
    color: #0b63e6 !important;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.12);
}

#newsfeedPage .newsfeed-create-panel .feed-featured-option:nth-child(2) input:checked + .feed-featured-card,
#newsfeedPage .newsfeed-create-panel .feed-featured-option:nth-child(3) input:checked + .feed-featured-card {
    background: linear-gradient(180deg, #eff6ff, #dbeafe) !important;
}

#newsfeedPage .newsfeed-create-panel .feed-featured-note {
    margin-top: 6px;
    gap: 6px;
}

#newsfeedPage .newsfeed-create-panel .feed-featured-note span {
    padding: 5px 9px;
    font-size: 0.64rem;
    background: #f8fafc !important;
    border: 1px solid #dbe4ee !important;
    color: #334155 !important;
}

#newsfeedPage .newsfeed-create-panel .feed-composer-actions {
    margin-top: 6px;
    gap: 6px;
}

#newsfeedPage .newsfeed-create-panel .feed-composer-actions .btn-primary,
#newsfeedPage .newsfeed-create-panel .feed-upload-btn {
    min-height: 32px;
    padding: 6px 11px;
    font-size: 0.72rem;
    border-radius: 11px;
}

#newsfeedPage .newsfeed-create-panel #feedPostMessage {
    margin-top: 6px;
    font-size: 0.7rem;
}

#newsfeedPage #feedComposerCard {
    position: fixed;
    right: max(14px, calc(50% - 210px + 16px));
    bottom: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 60;
    pointer-events: none;
    overflow: visible !important;
}

#newsfeedPage #feedComposerCard::after {
    display: none !important;
}

#newsfeedPage #feedComposerToggle.feed-composer-launch {
    width: 62px;
    height: 62px;
    min-height: 62px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #0a63d8 !important;
    background: linear-gradient(145deg, #1da1f2, #0b7fd3) !important;
    box-shadow: 0 14px 24px rgba(13, 112, 189, 0.32) !important;
    pointer-events: auto;
}

#newsfeedPage #feedComposerToggle.feed-composer-launch span:last-child {
    display: none;
}

#newsfeedPage #feedComposerToggle .feed-composer-plus {
    width: auto;
    height: auto;
    background: transparent !important;
    color: #ffffff !important;
    font-size: 2.05rem;
    line-height: 1;
    font-weight: 500;
}

#newsfeedPage #feedComposerCard.expanded {
    pointer-events: auto;
}

#newsfeedPage #feedComposerCard.feed-composer-collapsed #feedPostForm {
    display: none !important;
}

#newsfeedPage #feedComposerCard.expanded #feedPostForm {
    display: none !important;
}

/* People You May Know: presence badge at bottom of profile photo */
#suggestFriendsCard .friend-suggest-avatar-wrap .friend-presence-float {
    top: auto !important;
    right: auto !important;
    left: 50% !important;
    bottom: -6px !important;
    transform: translateX(-50%);
    z-index: 3;
}

#suggestFriendsCard {
    padding-bottom: 0 !important;
}

/* Global primary color override */
.mig-link.active {
    background: #0b7fd3 !important;
    border-color: #0b7fd3 !important;
    color: #ffffff !important;
}

.btn-primary,
.feed-inline-btn,
.feed-upload-btn,
.featured-head-actions .featured-head-btn,
.friend-actions .btn-primary,
.friend-list-actions .btn-primary,
.profile-mini-btn {
    background: #0b7fd3 !important;
    border-color: #0b7fd3 !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.feed-inline-btn:hover,
.feed-upload-btn:hover,
.featured-head-actions .featured-head-btn:hover,
.friend-actions .btn-primary:hover,
.friend-list-actions .btn-primary:hover,
.profile-mini-btn:hover {
    background: #096fb8 !important;
    border-color: #096fb8 !important;
    color: #ffffff !important;
}

/* VIP verified badge (shown for role_name = vip) */
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 5px;
    border-radius: 50%;
    background: #1877f2;
    color: #ffffff !important;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.verified-badge-icon {
    width: 10px;
    height: 10px;
    display: block;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.inline-verified {
    transform: translateY(-1px);
}

.feed-post-meta .verified-badge,
.friend-suggest-info .verified-badge,
.mini-user-meta .verified-badge,
.suggest-profile-meta .verified-badge,
.fb-name-wrap .verified-badge {
    flex-shrink: 0;
}

/* Newsfeed post cards: modern creative refresh */
#newsfeedPage #feedTimeline .feed-post-card {
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
    border-radius: 16px !important;
    border: 1px solid #dbe6f4 !important;
    background:
        radial-gradient(circle at 10% 0%, rgba(147, 197, 253, 0.2), transparent 36%),
        radial-gradient(circle at 92% 100%, rgba(125, 211, 252, 0.18), transparent 40%),
        linear-gradient(170deg, #ffffff, #f6faff) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09) !important;
}

#newsfeedPage #feedTimeline .feed-post-card::before {
    content: "";
    position: absolute;
    inset: -34% -36% auto -36%;
    height: 112px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
    transform: translateX(-120%) rotate(-7deg);
    animation: newsfeedPostSweep 10s linear infinite;
    pointer-events: none;
}

#newsfeedPage #feedTimeline .feed-post-card > * {
    position: relative;
    z-index: 1;
}

#newsfeedPage #feedTimeline .feed-post-head {
    gap: 10px;
}

#newsfeedPage #feedTimeline .feed-post-avatar {
    width: 42px;
    height: 42px;
    border: 2px solid #ffffff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
}

#newsfeedPage #feedTimeline .feed-post-meta strong {
    font-size: 0.98rem;
    color: #0f172a !important;
}

#newsfeedPage #feedTimeline .feed-post-meta span,
#newsfeedPage #feedTimeline .feed-post-meta small {
    font-size: 0.82rem;
    color: #656f7f !important;
}

#newsfeedPage #feedTimeline .feed-post-body {
    margin-top: 7px;
}

#newsfeedPage #feedTimeline .feed-post-text {
    font-size: 0.97rem;
    line-height: 1.6;
    color: #0f172a !important;
}

#newsfeedPage #feedTimeline .feed-post-swiper {
    border-radius: 14px;
    border: 1px solid #deebfa;
    background: #f1f6fd;
}

#newsfeedPage #feedTimeline .feed-post-collage {
    border-radius: 14px;
    border: 1px solid #deebfa;
    background: #f1f6fd;
}

#newsfeedPage #feedTimeline .feed-post-image {
    max-height: 420px;
}

#newsfeedPage #feedTimeline .feed-post-stats {
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid #e2eaf6;
    color: #5a6678 !important;
}

#newsfeedPage #feedTimeline .feed-post-stats span {
    background: #f4f8ff !important;
    border-color: #dce7f5 !important;
    color: #425168 !important;
}

#newsfeedPage #feedTimeline .feed-post-actions {
    margin-top: 7px;
    gap: 7px;
}

#newsfeedPage #feedTimeline .feed-reaction-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: #dce7f5;
}

#newsfeedPage #feedTimeline .feed-shared-card {
    border-color: #dce7f5;
    background: linear-gradient(180deg, #f8fbff, #edf4fd);
}

#newsfeedPage #feedTimeline .feed-action-btn {
    border-radius: 8px;
    border: 1px solid #d7e4f2;
    background: #ffffff;
    color: #4b5563;
    font-weight: 600;
    transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#newsfeedPage #feedTimeline .feed-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.08);
    background: #f5f7fb;
}

#newsfeedPage #feedTimeline .feed-action-btn.active {
    color: #1877f2;
    border-color: #bfd7fb;
    background: #eef5ff;
}

#newsfeedPage #feedTimeline .feed-action-btn.active.love {
    color: #e11d48;
    border-color: #f8c7d4;
    background: #fff1f5;
}

#newsfeedPage #feedTimeline .feed-action-btn.active.angry {
    color: #d97706;
    border-color: #f5d7aa;
    background: #fff7ed;
}

#newsfeedPage #feedTimeline .feed-action-btn.active.haha {
    color: #ca8a04;
    border-color: #f3e3a2;
    background: #fffbeb;
}

#newsfeedPage #feedTimeline .feed-comment-section {
    margin-top: 9px;
    border-top: 1px dashed #e2eaf6;
    padding-top: 8px;
}

#newsfeedPage #feedTimeline .feed-comment-bubble {
    background: #f3f7fd;
    border: 1px solid #dbe6f4;
}

#newsfeedPage #feedTimeline .feed-comment-bubble p {
    color: #111827;
}

@keyframes newsfeedPostSweep {
    0% { transform: translateX(-120%) rotate(-7deg); }
    100% { transform: translateX(120%) rotate(-7deg); }
}

/* Newsfeed paid posts only: premium golden card style */
#newsfeedPage #feedTimeline .feed-post-card.is-paid-post {
    border: 1px solid #e4c37a !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 239, 191, 0.74), transparent 35%),
        radial-gradient(circle at 92% 100%, rgba(255, 220, 138, 0.42), transparent 42%),
        linear-gradient(170deg, #fffdf6, #fff5dd) !important;
    box-shadow: 0 10px 22px rgba(168, 123, 23, 0.16) !important;
}

#newsfeedPage #feedTimeline .feed-post-card.is-paid-post::before {
    background: linear-gradient(90deg, transparent, rgba(255, 243, 210, 0.65), transparent);
}

#newsfeedPage #feedTimeline .feed-post-card.is-paid-post .feed-post-meta strong,
#newsfeedPage #feedTimeline .feed-post-card.is-paid-post .feed-post-text,
#newsfeedPage #feedTimeline .feed-post-card.is-paid-post .feed-post-stats {
    color: #3f320f !important;
}

#newsfeedPage #feedTimeline .feed-post-card.is-paid-post .feed-post-meta span,
#newsfeedPage #feedTimeline .feed-post-card.is-paid-post .feed-post-meta small {
    color: #8a6c2f !important;
}

#newsfeedPage #feedTimeline .feed-post-card.is-paid-post .feed-post-stats span {
    background: #fff6df !important;
    border-color: #ecd59a !important;
    color: #6f5314 !important;
}

#newsfeedPage #feedTimeline .feed-post-card.is-paid-post .feed-featured-badge {
    background: linear-gradient(135deg, #f6cf65, #e7a925) !important;
    border-color: #c98a08 !important;
    color: #fffdf4 !important;
    box-shadow: 0 6px 14px rgba(185, 133, 25, 0.24) !important;
}

#newsfeedPage #feedTimeline .feed-post-card.is-paid-post .feed-action-btn {
    border-color: #e2c47a !important;
    background: linear-gradient(180deg, #fff8e8, #f9e9c3) !important;
    color: #7a5406 !important;
}

/* Profile timeline posts: modern creative like newsfeed */
#profileTimelineFeed .feed-post-card {
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
    border-radius: 16px !important;
    border: 1px solid #dbe6f4 !important;
    background:
        radial-gradient(circle at 10% 0%, rgba(147, 197, 253, 0.2), transparent 36%),
        radial-gradient(circle at 92% 100%, rgba(125, 211, 252, 0.18), transparent 40%),
        linear-gradient(170deg, #ffffff, #f6faff) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09) !important;
}

#profileTimelineFeed .feed-post-card::before {
    content: "";
    position: absolute;
    inset: -34% -36% auto -36%;
    height: 112px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
    transform: translateX(-120%) rotate(-7deg);
    animation: newsfeedPostSweep 10s linear infinite;
    pointer-events: none;
}

#profileTimelineFeed .feed-post-card > * {
    position: relative;
    z-index: 1;
}

#profileTimelineFeed .feed-post-head {
    gap: 10px;
}

#profileTimelineFeed .feed-post-avatar {
    width: 42px;
    height: 42px;
    border: 2px solid #ffffff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
}

#profileTimelineFeed .feed-post-meta strong {
    font-size: 0.85rem;
    color: #0f172a !important;
}

#profileTimelineFeed .feed-post-meta span,
#profileTimelineFeed .feed-post-meta small {
    color: #5b6475 !important;
}

#profileTimelineFeed .feed-post-body {
    margin-top: 7px;
}

#profileTimelineFeed .feed-post-text {
    font-size: 0.86rem;
    line-height: 1.5;
    color: #0f172a !important;
}

#profileTimelineFeed .feed-post-swiper {
    border-radius: 14px;
    border: 1px solid #deebfa;
    background: #f1f6fd;
}

#profileTimelineFeed .feed-post-image {
    max-height: 420px;
}

#profileTimelineFeed .feed-post-stats {
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid #e2eaf6;
    color: #5a6678 !important;
}

#profileTimelineFeed .feed-post-stats span {
    background: #f4f8ff !important;
    border-color: #dce7f5 !important;
    color: #425168 !important;
}

#profileTimelineFeed .feed-post-actions {
    margin-top: 7px;
    gap: 7px;
}

#profileTimelineFeed .feed-shared-card {
    border-color: #dce7f5;
    background: linear-gradient(180deg, #f8fbff, #edf4fd);
}

#profileTimelineFeed .feed-action-btn {
    border-radius: 10px;
    border: 1px solid #d7e4f2;
    background: linear-gradient(180deg, #f9fbff, #eef4fd);
    color: #334155;
    font-weight: 700;
    transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#profileTimelineFeed .feed-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(37, 99, 235, 0.1);
    background: linear-gradient(180deg, #f4f8ff, #e8f0fb);
}

#profileTimelineFeed .feed-comment-section {
    margin-top: 9px;
    border-top: 1px dashed #e2eaf6;
    padding-top: 8px;
}

#profileTimelineFeed .feed-comment-bubble {
    background: #f3f7fd;
    border: 1px solid #dbe6f4;
}

#profileTimelineFeed .feed-comment-bubble p {
    color: #111827;
}

/* Profile timeline paid posts: premium golden style */
#profileTimelineFeed .feed-post-card.is-paid-post {
    border: 1px solid #e4c37a !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 239, 191, 0.74), transparent 35%),
        radial-gradient(circle at 92% 100%, rgba(255, 220, 138, 0.42), transparent 42%),
        linear-gradient(170deg, #fffdf6, #fff5dd) !important;
    box-shadow: 0 10px 22px rgba(168, 123, 23, 0.16) !important;
}

#profileTimelineFeed .feed-post-card.is-paid-post::before {
    background: linear-gradient(90deg, transparent, rgba(255, 243, 210, 0.65), transparent);
}

#profileTimelineFeed .feed-post-card.is-paid-post .feed-post-meta strong,
#profileTimelineFeed .feed-post-card.is-paid-post .feed-post-text,
#profileTimelineFeed .feed-post-card.is-paid-post .feed-post-stats {
    color: #3f320f !important;
}

#profileTimelineFeed .feed-post-card.is-paid-post .feed-post-meta span,
#profileTimelineFeed .feed-post-card.is-paid-post .feed-post-meta small {
    color: #8a6c2f !important;
}

#profileTimelineFeed .feed-post-card.is-paid-post .feed-post-stats span {
    background: #fff6df !important;
    border-color: #ecd59a !important;
    color: #6f5314 !important;
}

#profileTimelineFeed .feed-post-card.is-paid-post .feed-featured-badge {
    background: linear-gradient(135deg, #f6cf65, #e7a925) !important;
    border-color: #c98a08 !important;
    color: #fffdf4 !important;
    box-shadow: 0 6px 14px rgba(185, 133, 25, 0.24) !important;
}

#profileTimelineFeed .feed-post-card.is-paid-post .feed-action-btn {
    border-color: #e2c47a !important;
    background: linear-gradient(180deg, #fff8e8, #f9e9c3) !important;
    color: #7a5406 !important;
}

/* Newsfeed reaction active colors (override global active styles) */
#newsfeedPage #feedTimeline .feed-action-btn.active {
    background: #e7f3ff !important;
    border-color: #bcd8ff !important;
    color: #1d4ed8 !important;
}

#newsfeedPage #feedTimeline .feed-action-btn.active.love {
    background: #ffeaf3 !important;
    border-color: #ffc7df !important;
    color: #be185d !important;
}

#newsfeedPage #feedTimeline .feed-action-btn.active.angry {
    background: #fff0e8 !important;
    border-color: #ffc8ae !important;
    color: #c2410c !important;
}

#newsfeedPage #feedTimeline .feed-action-btn.active.haha {
    background: #fff8df !important;
    border-color: #ffe19c !important;
    color: #a16207 !important;
}

/* Chatrooms */
body.chatrooms-page .chatrooms-shell {
    display: grid;
    gap: 18px;
}

.chatrooms-head-note {
    font-size: 0.82rem;
    color: #667085;
}

.chatrooms-create-card,
.chatroom-list-card,
.chatroom-room-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.chatrooms-create-card {
    padding: 18px;
}

.chatroom-create-form,
.chatroom-form-grid,
.chatrooms-layout,
.chatroom-room-view,
.chatroom-members-wrap,
.chatroom-messages-wrap {
    display: grid;
    gap: 16px;
}

.chatroom-form-field {
    display: grid;
    gap: 8px;
    color: #344054;
    font-size: 0.9rem;
}

.chatroom-form-field input,
.chatroom-form-field textarea,
.chatroom-message-form textarea {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 18px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    resize: vertical;
}

.chatroom-form-field input:focus,
.chatroom-form-field textarea:focus,
.chatroom-message-form textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.chatroom-create-actions,
.chatroom-message-actions,
.chatroom-room-head,
.chatroom-list-top,
.chatroom-list-meta,
.chatroom-room-head-actions,
.chatroom-message-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.chatroom-create-cap {
    font-size: 0.82rem;
    color: #64748b;
}

.chatrooms-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
    align-items: start;
}

.chatroom-list-card,
.chatroom-room-card {
    padding: 18px;
}

.chatroom-list {
    display: grid;
    gap: 12px;
    max-height: 720px;
    overflow-y: auto;
}

.chatroom-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.chatroom-list-item.active {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 16px 28px rgba(59, 130, 246, 0.12);
    transform: translateY(-1px);
}

.chatroom-list-copy {
    display: grid;
    gap: 8px;
}

.chatroom-list-copy p,
.chatroom-room-head p,
.chatroom-announcement p,
.chatroom-message-bubble p,
.chatroom-empty-state p {
    margin: 0;
    color: #475467;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.chatroom-inline-announcement,
.chatroom-announcement {
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 236, 179, 0.56), rgba(255, 247, 208, 0.92));
    color: #7a4b00;
    border: 1px solid rgba(245, 158, 11, 0.18);
}

.chatroom-announcement strong {
    display: block;
    margin-bottom: 6px;
}

.chatroom-list-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: #667085;
}

.chatroom-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.1);
    color: #1453a6;
    font-size: 0.78rem;
    font-weight: 700;
}

.chatroom-count-badge.large {
    min-width: 110px;
}

.chatroom-empty-state {
    padding: 36px 18px;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    border-radius: 22px;
    text-align: center;
    background: rgba(255, 255, 255, 0.84);
}

.chatroom-empty-state h3,
.chatroom-room-head h3 {
    margin: 0 0 6px;
    color: #0f172a;
}

.chatroom-members-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chatroom-member-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.chatroom-member-avatar,
.chatroom-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chatroom-member-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #93c5fd, #f9a8d4);
    color: #fff;
    font-weight: 700;
}

.chatroom-messages-viewport {
    display: grid;
    gap: 12px;
    max-height: 460px;
    overflow-y: auto;
    padding-right: 4px;
}

.chatroom-message-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.chatroom-message-item.system {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
}

.chatroom-system-bubble,
.chatroom-message-bubble {
    border-radius: 18px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.chatroom-system-bubble {
    background: rgba(15, 23, 42, 0.05);
    color: #475467;
    text-align: center;
}

.chatroom-message-item time,
.chatroom-message-head time {
    font-size: 0.74rem;
    color: #94a3b8;
}

.chatroom-message-head {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.chatroom-message-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.chatroom-message-actions {
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 12px;
}

@media (max-width: 860px) {
    .chatrooms-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .chatroom-create-actions,
    .chatroom-message-actions,
    .chatroom-room-head,
    .chatroom-room-head-actions,
    .chatroom-list-item {
        display: grid;
    }

    .chatroom-list-actions .feed-inline-btn,
    .chatroom-room-head-actions .feed-inline-btn,
    .chatroom-create-actions .btn-primary,
    .chatroom-message-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .chatroom-message-item {
        grid-template-columns: 1fr;
    }
}

body.chatrooms-page .chatrooms-directory-shell {
    display: grid;
    gap: 14px;
}

body.chatrooms-page .chatrooms-directory-shell {
    position: relative;
    gap: 16px;
    padding-bottom: 80px;
}

.chatrooms-feed-hero,
.chatrooms-feed-section,
.chatrooms-create-panel {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 11px;
    border: 1px solid rgba(191, 219, 254, 0.9);
    background:
        radial-gradient(circle at top left, rgba(147, 197, 253, 0.22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(125, 211, 252, 0.14), transparent 32%),
        linear-gradient(175deg, rgba(255, 255, 255, 0.99), rgba(245, 250, 255, 0.96));
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.chatrooms-feed-hero::before,
.chatrooms-feed-section::before,
.chatrooms-create-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    transform: translateX(-120%);
    animation: newsfeedPostSweep 12s linear infinite;
    pointer-events: none;
}

.chatrooms-feed-hero > *,
.chatrooms-feed-section > *,
.chatrooms-create-panel > * {
    position: relative;
    z-index: 1;
}

.chatrooms-feed-hero {
    display: grid;
    gap: 12px;
}

.chatrooms-feed-hero-copy {
    display: grid;
    gap: 4px;
}

.chatrooms-feed-hero h1 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.05;
    color: #0f172a;
}

.chatrooms-feed-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chatrooms-feed-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(191, 219, 254, 0.92);
    color: #2563eb;
    font-size: 0.76rem;
    font-weight: 800;
}

.chatrooms-section-head {
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chatrooms-section-head h3 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px 0 14px;
    border-radius: 40px 14px 40px 14px;
    background: linear-gradient(145deg, #1da1f2, #0b7fd3);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.chatrooms-section-actions {
    display: flex;
    justify-content: center;
    padding-top: 0;
}

.chatrooms-search-section {
    gap: 8px;
}

.chatrooms-search-box {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 14px;
    border: 1px solid rgba(191, 219, 254, 0.95);
    background: linear-gradient(180deg, #ffffff, #f6faff);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.chatrooms-search-icon {
    color: #0b7fd3;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
}

.chatrooms-search-box input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #0f172a;
    font-size: 0.76rem;
    font-weight: 600;
}

.chatrooms-search-box input::placeholder {
    color: #94a3b8;
}

.chatrooms-compact-list {
    display: grid;
    gap: 6px;
}

.chatrooms-simple-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(219, 234, 254, 0.96);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.76), transparent 36%),
        linear-gradient(170deg, rgba(255, 255, 255, 1), rgba(244, 248, 255, 0.98));
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
    color: inherit;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.chatrooms-simple-main {
    min-width: 0;
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1 1 auto;
}

.chatrooms-simple-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 7px;
    background: linear-gradient(145deg, #dbeafe, #bfdbfe);
    color: #0b7fd3;
    font-size: 0.72rem;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.chatrooms-simple-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.chatrooms-simple-row:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.92);
    box-shadow: 0 16px 26px rgba(37, 99, 235, 0.12);
}

.chatrooms-simple-row strong {
    color: #0f172a;
    font-size: 0.76rem;
    line-height: 1.2;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chatrooms-simple-owner {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: #64748b;
    font-size: 0.58rem;
    font-weight: 700;
    white-space: nowrap;
}

.chatrooms-simple-owner-avatar {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chatrooms-simple-owner-avatar.fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #60a5fa, #2563eb);
    color: #fff;
    font-size: 0.45rem;
    font-weight: 800;
}

.chatrooms-simple-count {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 4px 7px;
    border-radius: 999px;
    border: 1px solid #d7e3f3;
    background: linear-gradient(180deg, #ffffff, #f3f7fd);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    font-size: 0.62rem;
    font-weight: 800;
}

.chatrooms-simple-row.is-disabled {
    pointer-events: none;
    opacity: 0.6;
    box-shadow: none;
}

.chatroom-inline-announcement.compact {
    font-size: 0.77rem;
}

.chatrooms-create-panel {
    display: grid;
    gap: 10px;
}

.chatrooms-create-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(219, 234, 254, 0.9);
    color: #0b7fd3;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.chatrooms-fab {
    position: fixed;
    right: max(14px, calc(50% - 210px + 16px));
    bottom: 18px;
    width: 52px;
    height: 52px;
    border: 1px solid #0a63d8;
    border-radius: 50%;
    background: linear-gradient(145deg, #1da1f2, #0b7fd3);
    color: #fff;
    box-shadow: 0 14px 24px rgba(13, 112, 189, 0.32);
    cursor: pointer;
    z-index: 40;
}

.chatrooms-fab span {
    display: block;
    font-size: 1.75rem;
    line-height: 1;
    transform: translateY(-1px);
}

.chatrooms-directory-hero,
.chatrooms-directory-card {
    border-radius: 24px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.55), transparent 40%),
        linear-gradient(145deg, #f5fbff, #eef4ff 55%, #fff7fb);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.chatrooms-directory-hero {
    display: grid;
    gap: 12px;
}

.chatrooms-hero-main {
    display: grid;
    gap: 4px;
}

.chatrooms-hero-kicker {
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ea580c;
    font-weight: 800;
}

.chatrooms-directory-hero h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #0f172a;
    line-height: 1.05;
}

.chatrooms-hero-copy {
    margin: 0;
    color: #526071;
    font-size: 0.92rem;
}

.chatrooms-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chatroom-form-grid.compact {
    grid-template-columns: 1fr;
}

.chatroom-list.directory {
    max-height: none;
    display: grid;
    gap: 10px;
}

.chatroom-directory-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(251, 146, 60, 0.18);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.58), transparent 34%),
        linear-gradient(145deg, rgba(255, 251, 245, 0.98), rgba(255, 243, 224, 0.94));
    box-shadow:
        0 14px 30px rgba(249, 115, 22, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.chatroom-directory-copy {
    display: grid;
    gap: 6px;
}

.chatroom-directory-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    grid-column: 1 / -1;
}

.chatroom-directory-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(251, 146, 60, 0.2);
    color: #c2410c;
}

.chatroom-directory-state.joined {
    background: rgba(255, 237, 213, 0.96);
    color: #9a3412;
}

.chatroom-directory-state.full {
    background: rgba(255, 241, 242, 0.96);
    border-color: rgba(239, 68, 68, 0.16);
    color: #b91c1c;
}

.chatroom-list-top.compact {
    display: grid;
    gap: 2px;
}

.chatroom-list-top.compact strong {
    color: #111827;
    font-size: 1rem;
    line-height: 1.2;
}

.chatroom-directory-host {
    color: #9a3412;
    font-size: 0.78rem;
    font-weight: 700;
}

.chatroom-directory-copy p {
    margin: 0;
    color: #4b5563;
    font-size: 0.86rem;
    line-height: 1.45;
}

.chatroom-inline-announcement {
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(251, 146, 60, 0.16);
    color: #7c2d12;
    font-size: 0.8rem;
    line-height: 1.4;
}

.chatroom-list-meta.compact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    color: #6b7280;
    font-size: 0.76rem;
}

.chatroom-directory-link {
    align-self: center;
    min-width: 110px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: 0;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

.chatroom-directory-link[aria-disabled="true"] {
    pointer-events: none;
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    box-shadow: none;
}

.chatrooms-directory-head {
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.chatrooms-directory-subhead {
    color: #9ca3af;
    font-size: 0.78rem;
    font-weight: 700;
}

.chatrooms-create-card {
    border-radius: 22px;
    padding: 14px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.48), transparent 36%),
        linear-gradient(145deg, rgba(255, 251, 247, 0.98), rgba(255, 244, 230, 0.95));
    border: 1px solid rgba(251, 146, 60, 0.16);
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.08);
}

.chatroom-create-form {
    display: grid;
    gap: 12px;
}

.chatroom-create-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.chatroom-create-cap {
    color: #7c2d12;
    font-size: 0.78rem;
}

body.chatroom-mobile-page {
    background:
        radial-gradient(circle at 12% 0%, rgba(125, 211, 252, 0.28), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(244, 114, 182, 0.16), transparent 26%),
        linear-gradient(180deg, #f7fbff 0%, #eef4ff 52%, #fff6fb 100%);
    overflow: hidden;
}

body.chatroom-mobile-page .dashboard-shell {
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    height: 100vh;
    height: 100dvh;
}

body.chatroom-mobile-page .site-footer {
    display: none;
}

.chatroom-mobile-shell {
    position: relative;
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 32px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.74), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 248, 255, 0.72));
    backdrop-filter: blur(24px) saturate(1.15);
    box-shadow:
        0 28px 80px rgba(15, 23, 42, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.52);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.chatroom-mobile-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.04), transparent 36%),
        linear-gradient(315deg, rgba(236, 72, 153, 0.04), transparent 30%);
    pointer-events: none;
}

.chatroom-mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.78));
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(20px) saturate(1.12);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.chatroom-back-link,
.chatroom-topbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 255, 0.88));
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.chatroom-topbar-btn {
    width: auto;
    padding: 0 14px;
    cursor: pointer;
}

.chatroom-back-link:hover,
.chatroom-topbar-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.32);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.chatroom-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.chatroom-mobile-brand {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.chatroom-mobile-brand strong,
.chatroom-mobile-brand span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.chatroom-mobile-brand span {
    font-size: 0.8rem;
    color: #667085;
}

.chatroom-mobile-body {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    gap: 8px;
    padding: 8px 8px 6px;
    min-height: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.chatroom-info-drawer {
    position: absolute;
    inset: 0;
    z-index: 7;
}

.chatroom-info-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.24);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.chatroom-info-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(340px, 88vw);
    padding: 16px 14px;
    background:
        radial-gradient(circle at top right, rgba(125, 211, 252, 0.14), transparent 26%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,247,255,0.95));
    box-shadow: -24px 0 50px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
    transition: transform 0.26s cubic-bezier(.2,.8,.2,1);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    border-left: 1px solid rgba(148, 163, 184, 0.14);
}

.chatroom-info-drawer.open .chatroom-info-backdrop {
    opacity: 1;
}

.chatroom-info-drawer.open .chatroom-info-panel {
    transform: translateX(0);
}

.chatroom-info-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.chatroom-info-head strong {
    display: block;
    color: #0f172a;
}

.chatroom-info-head span {
    font-size: 0.76rem;
    color: #667085;
}

.chatroom-info-close {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.06);
    cursor: pointer;
    font-size: 1.2rem;
}

.chatroom-info-body {
    min-height: 0;
    overflow-y: auto;
    display: grid;
    gap: 12px;
    padding-right: 2px;
}

.chatroom-info-section {
    display: grid;
    gap: 8px;
}

.chatroom-info-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.chatroom-info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.chatroom-info-card.stacked {
    display: grid;
    justify-content: stretch;
}

.chatroom-info-card strong {
    color: #0f172a;
}

.chatroom-info-card strong span {
    color: #667085;
    font-weight: 500;
}

.chatroom-info-card p {
    margin: 0;
    color: #475467;
    white-space: pre-wrap;
    word-break: break-word;
}

.chatroom-info-card.announcement {
    background: linear-gradient(135deg, rgba(255, 236, 179, 0.56), rgba(255, 247, 208, 0.92));
    color: #7a4b00;
}

.chatroom-info-members {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chatroom-mobile-loading,
.chatroom-mobile-info-card,
.chatroom-mobile-composer,
.chatroom-mobile-system,
.chatroom-mobile-bubble {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.chatroom-mobile-loading,
.chatroom-mobile-info-card {
    border-radius: 24px;
    padding: 10px 12px;
}

.chatroom-mobile-info-card.compact {
    display: grid;
    gap: 6px;
}

.chatroom-mobile-loading h3,
.chatroom-mobile-info-card h2 {
    margin: 0 0 6px;
    color: #0f172a;
}

.chatroom-mobile-loading p,
.chatroom-mobile-roomline p,
.chatroom-mobile-announcement p,
.chatroom-mobile-bubble p {
    margin: 0;
    color: #475467;
    white-space: pre-wrap;
    word-break: break-word;
}

.chatroom-mobile-roomline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.chatroom-mobile-roomline.compact h2 {
    font-size: 0.96rem;
    margin-bottom: 1px;
}

.chatroom-mobile-roomline.compact p {
    font-size: 0.78rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chatroom-mobile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #667085;
}

.chatroom-mobile-meta.compact {
    margin-top: 0;
    gap: 8px;
    font-size: 0.72rem;
    line-height: 1.2;
}

.chatroom-mobile-announcement {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 236, 179, 0.56), rgba(255, 247, 208, 0.92));
    color: #7a4b00;
}

.chatroom-mobile-announcement strong {
    display: block;
    margin-bottom: 6px;
}

.chatroom-mobile-info-card.compact .chatroom-mobile-announcement {
    margin-top: 0;
    padding: 7px 10px;
    font-size: 0.74rem;
}

.chatroom-mobile-info-card.compact .chatroom-mobile-announcement strong {
    margin-bottom: 2px;
}

.chatroom-mobile-members {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.chatroom-mobile-members.compact {
    margin-top: 0;
    gap: 6px;
    max-height: 52px;
    overflow: hidden;
    padding-right: 2px;
}

.chatroom-mobile-member {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    font-size: 0.72rem;
    max-width: 100%;
}

.chatroom-mobile-member-avatar,
.chatroom-mobile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.96);
    box-shadow:
        0 8px 18px rgba(37, 99, 235, 0.14),
        0 0 0 1px rgba(148, 163, 184, 0.16);
    transform: translateZ(0);
}

.chatroom-mobile-member-avatar.fallback,
.chatroom-mobile-avatar.fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #93c5fd, #f9a8d4);
    color: #fff;
    font-weight: 700;
}

.chatroom-username-text {
    color: #2563eb;
}

.chatroom-owner-text {
    color: #f97316;
}

.chatroom-merchant-text {
    color: #7c3aed;
}

.chatroom-mentor-text {
    color: #dc2626;
}

.chatroom-moderator-text {
    color: #d4a017 !important;
}

.chatroom-mobile-messages {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    padding: 8px 6px 14px;
    scroll-behavior: smooth;
}

.chatroom-room-music-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.4), transparent 35%),
        linear-gradient(135deg, rgba(255, 237, 213, 0.98), rgba(253, 186, 116, 0.95));
    border: 1px solid rgba(251, 146, 60, 0.22);
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.12);
}

.chatroom-room-music-top {
    display: grid;
    gap: 3px;
}

.chatroom-room-music-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9a3412;
}

.chatroom-room-music-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #7c2d12;
    line-height: 1.25;
}

.chatroom-room-music-player {
    width: 100%;
    display: block;
    min-height: 42px;
}

.chatroom-mobile-messages::-webkit-scrollbar,
.chatroom-info-body::-webkit-scrollbar,
.chatroom-emoji-row::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.chatroom-mobile-messages::-webkit-scrollbar-thumb,
.chatroom-info-body::-webkit-scrollbar-thumb,
.chatroom-emoji-row::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}

.chatroom-mobile-message {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: flex-start;
    animation: chatroomMessageFloatIn 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.chatroom-mobile-bubble {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 8px 10px 9px;
    background:
        radial-gradient(circle at top left, rgba(147, 197, 253, 0.2), transparent 34%),
        radial-gradient(circle at bottom right, rgba(125, 211, 252, 0.12), transparent 32%),
        linear-gradient(175deg, rgba(255, 255, 255, 0.99), rgba(245, 250, 255, 0.96));
    border: 1px solid rgba(191, 219, 254, 0.92);
    box-shadow:
        0 12px 24px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.chatroom-mobile-bubble::before {
    content: none;
}

.chatroom-mobile-message:hover .chatroom-mobile-bubble {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.92);
    box-shadow:
        0 16px 26px rgba(37, 99, 235, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.chatroom-mobile-message:hover .chatroom-mobile-avatar {
    animation: chatroomAvatarPulse 520ms ease;
}

.chatroom-mobile-head {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    align-items: baseline;
    font-size: 0.76rem;
    line-height: 1.32;
    min-width: 0;
}

.chatroom-mobile-head strong {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.chatroom-mobile-inline-text {
    color: #334155;
    white-space: pre-wrap;
    word-break: break-word;
    flex: 1 1 120px;
    min-width: 0;
    font-weight: 500;
    font-size: 0.74rem;
}

.chatroom-mobile-head time,
.chatroom-mobile-system time {
    margin-left: auto;
    padding-left: 6px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #94a3b8;
    white-space: nowrap;
}

.chatroom-mobile-system {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
    justify-self: center;
    width: min(100%, 360px);
    padding: 8px 10px;
    border-radius: 16px;
    border: 1px solid rgba(191, 219, 254, 0.95);
    background:
        radial-gradient(circle at top left, rgba(147, 197, 253, 0.22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(125, 211, 252, 0.14), transparent 32%),
        linear-gradient(175deg, rgba(255, 255, 255, 0.99), rgba(245, 250, 255, 0.96));
    box-shadow:
        0 14px 28px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    color: #0f172a;
    font-size: 0.74rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
    animation: chatroomSystemPopIn 520ms cubic-bezier(0.22, 1, 0.36, 1);
    overflow: visible;
    position: relative;
}

.chatroom-mobile-system::before {
    content: none;
}

.chatroom-mobile-system-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 40px 14px 40px 14px;
    background: linear-gradient(145deg, #1da1f2, #0b7fd3);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(13, 112, 189, 0.18);
}

.chatroom-mobile-system-text {
    color: #334155;
    line-height: 1.35;
    text-align: left;
    animation: chatroomSystemTextGlow 3.2s ease-in-out infinite;
    min-width: 0;
    overflow-wrap: anywhere;
}

.chatroom-mobile-system time {
    min-width: 44px;
    padding: 4px 7px;
    border-radius: 999px;
    border: 1px solid #d7e3f3;
    background: linear-gradient(180deg, #ffffff, #f3f7fd);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    font-size: 0.62rem;
    font-weight: 800;
    align-self: start;
    white-space: nowrap;
}

.chatroom-mobile-system-entry {
    border-color: rgba(96, 165, 250, 0.42);
}

.chatroom-mobile-system-exit {
    background:
        radial-gradient(circle at top left, rgba(191, 219, 254, 0.24), transparent 34%),
        radial-gradient(circle at bottom right, rgba(147, 197, 253, 0.16), transparent 32%),
        linear-gradient(175deg, rgba(255, 255, 255, 0.99), rgba(241, 245, 249, 0.98));
}

@keyframes chatroomSystemPopIn {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translateY(-2px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes chatroomSystemTextGlow {
    0%, 100% {
        color: #334155;
    }
    50% {
        color: #0f172a;
    }
}

.chatroom-game-message {
    display: grid;
    justify-self: center;
    gap: 8px;
    max-width: min(100%, 360px);
    width: min(100%, 100%);
    padding: 12px 10px 8px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.72), transparent 40%),
        linear-gradient(180deg, rgba(240, 253, 244, 0.96), rgba(220, 252, 231, 0.88));
    border: 1px solid rgba(34, 197, 94, 0.18);
    color: #15803d;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.01em;
    box-shadow:
        0 16px 30px rgba(34, 197, 94, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
}

.chatroom-game-message::before {
    content: none;
}

.chatroom-game-message-label {
    justify-self: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(34, 197, 94, 0.16);
    color: #16a34a;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: none;
}

.chatroom-game-message-label::before {
    content: none;
}

.chatroom-game-message-text {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #15803d;
    font-weight: 400;
    overflow-wrap: anywhere;
    display: grid;
    gap: 6px;
}

.chatroom-game-message-text .insight-row {
    padding: 6px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(34, 197, 94, 0.12);
    box-shadow: none;
}

.chatroom-game-message-text .hero-row {
    padding: 8px 10px;
}

.chatroom-game-message-text .winner-row {
    background: rgba(255, 255, 255, 0.76);
}

.chatroom-game-message-text .detail-row {
    background: rgba(255, 255, 255, 0.76);
}

.chatroom-game-message-text .plain-row {
    color: #166534;
}

.chatroom-game-message time {
    justify-self: center;
    font-size: 0.68rem;
    font-weight: 400;
    color: #166534;
    letter-spacing: 0.03em;
    text-transform: none;
}

.chatroom-top-players-message {
    display: grid;
    justify-self: center;
    gap: 6px;
    max-width: min(100%, 360px);
    width: min(100%, 100%);
}

.chatroom-top-players-card.dashboard-game-pulse-card {
    margin: 0;
    width: 100%;
}

.chatroom-top-players-message time {
    justify-self: center;
    font-size: 0.68rem;
    font-weight: 400;
    color: #16a34a;
    letter-spacing: 0.03em;
}

.chatroom-game-line {
    display: block;
    text-align: center;
}

.chatroom-game-line.title-line {
    font-size: 0.88rem;
    font-weight: 600;
    color: #166534;
}

.chatroom-game-line.side-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.chatroom-game-line.user-list-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.chatroom-game-line-label {
    color: #15803d;
    font-size: 0.76rem;
    font-weight: 600;
}

.chatroom-game-user-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.chatroom-game-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(34, 197, 94, 0.12);
    line-height: 1;
}

.chatroom-game-user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: rgba(220, 252, 231, 0.95);
    border: 1px solid rgba(34, 197, 94, 0.18);
    color: #166534;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.chatroom-game-user-avatar.fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chatroom-game-user-name {
    font-size: 0.74rem;
    font-weight: 700;
    color: #166534;
}

.chatroom-game-inline-text {
    color: #15803d;
    font-size: 0.76rem;
    font-weight: 500;
}

.chatroom-game-side-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(34, 197, 94, 0.14);
    color: #166534;
    font-size: 0.74rem;
    font-weight: 700;
}

.chatroom-game-side-icon {
    width: 18px;
    height: 18px;
}

.chatroom-game-side-icon circle {
    fill: #dcfce7;
    stroke: #22c55e;
    stroke-width: 1.4;
}

.chatroom-game-side-icon text {
    fill: #15803d;
    font-size: 10px;
    font-weight: 800;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.chatroom-game-side-badge.tail .chatroom-game-side-icon circle {
    fill: #ecfccb;
}

.chatroom-game-live-countdown {
    display: inline-grid;
    justify-self: center;
    gap: 6px;
    min-width: 128px;
    padding: 10px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,246,252,0.96));
    border: 1px solid rgba(203, 213, 225, 0.9);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
    text-align: center;
}

.chatroom-game-live-label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.chatroom-game-live-value {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
}

.chatroom-command-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,255,0.94));
    border: 1px solid rgba(191, 219, 254, 0.95);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.chatroom-command-card.profile {
    gap: 12px;
}

.chatroom-room-intro-card {
    position: relative;
    overflow: hidden;
    gap: 10px;
    padding: 10px !important;
    border-radius: 18px;
    border: 1px solid rgba(191, 219, 254, 0.95);
    background:
        radial-gradient(circle at top left, rgba(147, 197, 253, 0.22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(125, 211, 252, 0.14), transparent 32%),
        linear-gradient(175deg, rgba(255, 255, 255, 0.99), rgba(245, 250, 255, 0.96));
    box-shadow:
        0 16px 32px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    animation: chatroomRoomIntroIn 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.chatroom-room-intro-card::before {
    content: none;
}

.chatroom-command-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.78rem;
    color: #475569;
}

.chatroom-command-head strong {
    color: #0f172a;
    font-size: 0.84rem;
}

.chatroom-command-summary {
    margin: 0;
    font-size: 0.8rem;
    color: #334155;
}

.chatroom-command-users {
    display: grid;
    gap: 8px;
}

.chatroom-command-users-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chatroom-room-intro-grid {
    display: grid;
    gap: 8px;
}

.chatroom-room-intro-line {
    display: grid;
    gap: 3px;
    padding: 8px 9px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f6faff);
    border: 1px solid rgba(219, 234, 254, 0.96);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.chatroom-room-intro-owner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.chatroom-room-intro-owner-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.96);
    box-shadow:
        0 8px 18px rgba(37, 99, 235, 0.14),
        0 0 0 1px rgba(148, 163, 184, 0.16);
}

.chatroom-room-intro-owner-avatar.fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #93c5fd, #f9a8d4);
    color: #fff;
    font-weight: 700;
}

.chatroom-room-intro-owner strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.76rem;
}

.chatroom-room-intro-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0b7fd3;
}

.chatroom-room-intro-head-icon,
.chatroom-room-intro-mini-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 999px;
    background: linear-gradient(145deg, #dbeafe, #bfdbfe);
    color: #0b7fd3;
}

.chatroom-room-intro-head-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    font-size: 0.7rem;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    animation: chatroomIntroIconPulse 2.6s ease-in-out infinite;
}

.chatroom-room-intro-mini-icon {
    width: 14px;
    height: 14px;
    font-size: 0.5rem;
    font-weight: 900;
}

.chatroom-room-intro-line p {
    margin: 0;
    color: #334155;
    font-size: 0.72rem;
    line-height: 1.38;
    white-space: pre-wrap;
    word-break: break-word;
}

.chatroom-command-users-grid .chatroom-mobile-member {
    width: auto;
    min-width: 0;
    justify-content: flex-start;
    padding: 5px 7px;
    border-radius: 14px;
    border: 1px solid rgba(219, 234, 254, 0.9);
    background: linear-gradient(180deg, #ffffff, #f6faff);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
    animation: chatroomIntroMemberRise 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.chatroom-room-intro-card .chatroom-command-head strong {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px 0 10px;
    border-radius: 40px 14px 40px 14px;
    background: linear-gradient(145deg, #1da1f2, #0b7fd3);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.chatroom-room-intro-card .chatroom-command-head time {
    min-width: 44px;
    padding: 4px 7px;
    border-radius: 999px;
    border: 1px solid #d7e3f3;
    background: linear-gradient(180deg, #ffffff, #f3f7fd);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    font-size: 0.62rem;
    font-weight: 800;
}

@keyframes chatroomRoomIntroIn {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    60% {
        opacity: 1;
        transform: translateY(-3px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes chatroomIntroIconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    }
    50% {
        transform: scale(1.08);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.72),
            0 0 0 6px rgba(59, 130, 246, 0.08);
    }
}

@keyframes chatroomIntroMemberRise {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatroom-command-profile-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.chatroom-command-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chatroom-command-avatar.fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #93c5fd, #f9a8d4);
    color: #fff;
    font-weight: 700;
}

.chatroom-command-profile-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.chatroom-command-profile-main strong,
.chatroom-command-profile-main span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.chatroom-command-grid {
    display: grid;
    gap: 8px;
}

.chatroom-command-item {
    display: grid;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.chatroom-command-item span {
    font-size: 0.72rem;
    color: #64748b;
}

.chatroom-command-item strong {
    font-size: 0.78rem;
    color: #0f172a;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.chatroom-mobile-media {
    margin-top: 10px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(191, 219, 254, 0.48);
    box-shadow:
        0 14px 28px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.68);
    animation: chatroomMediaRise 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.chatroom-mobile-media img,
.chatroom-mobile-media video,
.chatroom-media-preview-frame img,
.chatroom-media-preview-frame video {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    background: #dbeafe;
    transform: scale(1.001);
    transition: transform 260ms ease;
}

.chatroom-mobile-message:hover .chatroom-mobile-media img,
.chatroom-mobile-message:hover .chatroom-mobile-media video {
    transform: scale(1.03);
}

.chatroom-mobile-composer {
    z-index: 5;
    margin: 0 10px 10px;
    padding: 10px;
    border-radius: 22px;
    backdrop-filter: blur(18px) saturate(1.08);
    background:
        radial-gradient(circle at top left, rgba(147, 197, 253, 0.2), transparent 34%),
        radial-gradient(circle at bottom right, rgba(125, 211, 252, 0.12), transparent 32%),
        linear-gradient(175deg, rgba(255,255,255,0.99), rgba(245,250,255,0.96));
    border: 1px solid rgba(191, 219, 254, 0.94);
    box-shadow:
        0 14px 32px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.76);
}

@keyframes chatroomMessageFloatIn {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes chatroomAvatarPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes chatroomMediaRise {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatroom-emoji-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 2px 0;
    margin-top: 8px;
    border-top: 1px solid rgba(191, 219, 254, 0.72);
}

.chatroom-emoji-btn,
.chatroom-attach-btn,
.chatroom-camera-btn,
.chatroom-emoji-toggle,
.chatroom-send-btn,
.chatroom-preview-remove {
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.chatroom-emoji-btn {
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff, #f3f7fd);
    border: 1px solid rgba(219, 234, 254, 0.94);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.chatroom-emoji-btn:hover,
.chatroom-attach-btn:hover,
.chatroom-camera-btn:hover,
.chatroom-emoji-toggle:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #ffffff, #eaf4ff);
}

.chatroom-composer-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
    position: relative;
    z-index: 2;
}

.chatroom-composer-tools {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f6faff);
    border: 1px solid rgba(219, 234, 254, 0.94);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.chatroom-attach-btn,
.chatroom-camera-btn,
.chatroom-emoji-toggle,
.chatroom-send-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #f3f7fd);
    border: 1px solid rgba(219, 234, 254, 0.94);
    color: #0b7fd3;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.chatroom-send-btn {
    width: 62px;
    background: linear-gradient(145deg, #1da1f2, #0b7fd3);
    border-color: #0b7fd3;
    color: #fff;
    box-shadow: 0 12px 24px rgba(13, 112, 189, 0.22);
}

.chatroom-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(13, 112, 189, 0.28);
}

.chatroom-composer-input-wrap {
    display: grid;
}

.chatroom-mobile-composer textarea {
    min-height: 44px;
    max-height: 82px;
    border: 1px solid rgba(191, 219, 254, 0.94);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f6faff);
    padding: 12px 14px;
    resize: none;
    line-height: 1.35;
    color: #0f172a;
    font-size: 0.9rem;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.82),
        0 8px 18px rgba(15, 23, 42, 0.05);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.chatroom-mobile-composer textarea:focus {
    outline: none;
    border-color: rgba(29, 161, 242, 0.72);
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,255,0.98));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.9),
        0 0 0 4px rgba(29, 161, 242, 0.1),
        0 14px 28px rgba(29, 161, 242, 0.12);
}

.chatroom-mobile-composer textarea::placeholder {
    color: #94a3b8;
}

.chatroom-media-preview {
    margin-bottom: 8px;
}

.chatroom-media-preview-card {
    display: grid;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}

.chatroom-media-preview-frame {
    overflow: hidden;
    border-radius: 16px;
}

.chatroom-media-preview-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.chatroom-preview-remove {
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

@media (max-width: 640px) {
    body.chatroom-mobile-page .dashboard-shell {
        padding: max(4px, env(safe-area-inset-top)) 4px max(4px, env(safe-area-inset-bottom));
    }

    .chatroom-mobile-shell {
        height: calc(100dvh - 8px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        border-radius: 24px;
    }

    .chatroom-mobile-topbar {
        gap: 8px;
        padding: 12px 12px 10px;
    }

    .chatroom-mobile-brand strong {
        font-size: 0.95rem;
    }

    .chatroom-mobile-brand span {
        font-size: 0.74rem;
    }

    .chatroom-mobile-composer {
        margin: 0 6px 6px;
        padding: 8px;
        border-radius: 18px;
    }

    .chatroom-composer-row {
        gap: 6px;
        grid-template-columns: auto minmax(0, 1fr) 52px;
    }

    .chatroom-directory-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .chatroom-directory-link {
        width: 100%;
        justify-content: center;
    }

    .chatrooms-directory-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .chatroom-create-actions {
        align-items: stretch;
    }

    .chatroom-mobile-roomline {
        flex-direction: column;
    }

    .chatroom-attach-btn,
    .chatroom-emoji-toggle,
    .chatroom-camera-btn,
    .chatroom-send-btn {
        width: 36px;
    }

    .chatroom-topbar-actions {
        gap: 6px;
    }

    .chatroom-topbar-btn {
        padding: 0 10px;
        min-width: 0;
        font-size: 0.8rem;
        height: 38px;
        border-radius: 12px;
    }

    .chatroom-back-link,
    .chatroom-attach-btn,
    .chatroom-camera-btn,
    .chatroom-emoji-toggle,
    .chatroom-send-btn {
        height: 36px;
        border-radius: 12px;
    }

    .chatroom-back-link {
        width: 36px;
    }

    .chatroom-mobile-composer textarea {
        min-height: 40px;
        max-height: 76px;
        padding: 10px 12px;
        font-size: 0.86rem;
        border-radius: 18px;
    }

    .chatroom-info-panel {
        width: min(320px, 92vw);
        padding: 14px 12px;
    }
}
