:root {
    --vss-card: rgba(15, 23, 42, .92);
    --vss-card-2: rgba(20, 31, 50, .94);
    --vss-line: rgba(255, 255, 255, .09);
    --vss-muted: #94a3b8;
    --vss-gold: #f7ab39;
}

#view_profile.vs-profile2-active > :not(#vsProfile2) { display: none !important; }
.vs-social-profile, .vs-social-view { width: 100%; min-width: 0; }
.vs-social-profile[aria-busy="true"] { min-height: 480px; }
.vss-skeleton { min-height: 440px; border-radius: 24px; border: 1px solid var(--vss-line); background: linear-gradient(100deg, #0f172a 20%, #18243a 38%, #0f172a 56%); background-size: 220% 100%; animation: vss-shimmer 1.2s linear infinite; }
@keyframes vss-shimmer { to { background-position-x: -220%; } }

.vss-profile-cover { position: relative; min-height: 260px; border-radius: 24px; overflow: hidden; border: 1px solid var(--vss-line); background: #0f172a center/cover no-repeat; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.vss-profile-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,11,20,.06), rgba(5,11,20,.92)); }
.vss-cover-edit { position: absolute; z-index: 2; inset-block-start: 18px; inset-inline-end: 18px; }
.vss-profile-head { position: relative; z-index: 3; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: end; gap: 22px; margin: -96px 28px 0; }
.vss-profile-avatar { width: 154px; height: 154px; border-radius: 28px; object-fit: cover; background: #050b14; border: 5px solid #050b14; box-shadow: 0 16px 35px rgba(0,0,0,.45); }
.vss-avatar-wrap { position: relative; }
.vss-avatar-edit { position: absolute; inset-inline-end: 4px; inset-block-end: 5px; }
.vss-profile-identity { padding-block-end: 10px; min-width: 0; }
.vss-profile-identity h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0; font: 900 clamp(1.65rem,2.4vw,2.55rem)/1.05 Orbitron, Cairo, sans-serif; }
.vss-profile-identity p { color: #cbd5e1; margin: 10px 0 0; max-width: 680px; line-height: 1.55; }
.vss-prime { color: var(--vss-gold); font-size: .75em; }
.vss-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; background: rgba(247,171,57,.12); border: 1px solid rgba(247,171,57,.26); color: var(--vss-gold); font-size: 11px; font-weight: 800; }
.vss-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-block-end: 12px; }
.vss-btn { appearance: none; border: 1px solid var(--vss-line); background: rgba(255,255,255,.055); color: #e2e8f0; border-radius: 11px; padding: 10px 14px; font: 800 12px/1 Rajdhani, Cairo, sans-serif; letter-spacing: .04em; cursor: pointer; transition: .2s ease; white-space: nowrap; }
.vss-btn:hover { border-color: rgba(247,171,57,.5); color: var(--vss-gold); transform: translateY(-1px); }
.vss-btn.is-primary { color: #050b14; background: var(--vss-gold); border-color: var(--vss-gold); }
.vss-btn.is-danger { color: #fb7185; border-color: rgba(244,63,94,.25); }
.vss-btn:disabled { opacity: .45; cursor: wait; transform: none; }
.vss-icon-btn { width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; border-radius: 12px; }

.vss-stats { display: grid; grid-template-columns: repeat(7,minmax(90px,1fr)); gap: 10px; margin: 25px 0 14px; }
.vss-stat { appearance: none; color: inherit; text-align: start; padding: 14px; border-radius: 14px; border: 1px solid var(--vss-line); background: var(--vss-card); }
button.vss-stat { cursor: pointer; }
.vss-stat strong { display: block; color: #fff; font: 900 21px/1 Orbitron, sans-serif; }
.vss-stat span { display: block; margin-top: 7px; color: var(--vss-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.vss-tabs { position: sticky; top: 70px; z-index: 25; display: flex; overflow-x: auto; scrollbar-width: none; gap: 4px; padding: 7px; border: 1px solid var(--vss-line); background: rgba(5,11,20,.9); backdrop-filter: blur(18px); border-radius: 15px; }
.vss-tabs::-webkit-scrollbar { display: none; }
.vss-tab { flex: 0 0 auto; border: 0; color: #94a3b8; background: transparent; border-radius: 10px; padding: 11px 14px; font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .055em; cursor: pointer; }
.vss-tab:hover, .vss-tab.is-active { color: #050b14; background: var(--vss-gold); }
.vss-tab-panel { min-height: 330px; padding-top: 18px; }
.vss-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 15px; }
.vss-card { grid-column: span 6; min-width: 0; padding: 18px; border-radius: 17px; background: var(--vss-card); border: 1px solid var(--vss-line); box-shadow: 0 14px 30px rgba(0,0,0,.15); }
.vss-card.is-wide { grid-column: 1/-1; }
.vss-card h2, .vss-card h3 { margin: 0 0 14px; color: #fff; font: 900 14px/1.2 Orbitron, Cairo, sans-serif; text-transform: uppercase; letter-spacing: .055em; }
.vss-card p { color: #aebbd0; line-height: 1.55; }
.vss-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.vss-section-head h2 { margin: 0; }
.vss-list { display: grid; gap: 9px; }
.vss-person, .vss-community-row, .vss-notification { display: flex; align-items: center; gap: 12px; padding: 11px; border: 1px solid var(--vss-line); background: rgba(255,255,255,.025); border-radius: 13px; }
.vss-person img, .vss-notification img { width: 44px; height: 44px; border-radius: 13px; object-fit: cover; background: #020617; }
.vss-community-row img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: #020617; }
.vss-person-copy, .vss-row-copy { flex: 1; min-width: 0; }
.vss-person-copy strong, .vss-row-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vss-person-copy small, .vss-row-copy small { display: block; margin-top: 3px; color: var(--vss-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vss-empty, .vss-error { padding: 42px 20px; text-align: center; color: #64748b; border: 1px dashed rgba(255,255,255,.12); border-radius: 16px; }
.vss-empty i, .vss-error i { display: block; font-size: 34px; color: #334155; margin-bottom: 10px; }

.vss-post-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.vss-post { min-width: 0; border-radius: 17px; overflow: hidden; border: 1px solid var(--vss-line); background: var(--vss-card); }
.vss-post-head { display: flex; align-items: center; gap: 10px; padding: 13px; }
.vss-post-head img { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; }
.vss-post-copy { padding: 0 14px 13px; color: #d5deeb; white-space: pre-wrap; overflow-wrap: anywhere; }
.vss-post-media { position: relative; display: block; aspect-ratio: 16/10; width: 100%; border: 0; padding: 0; background: #020617; cursor: pointer; overflow: hidden; }
.vss-post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.vss-post-media:hover img { transform: scale(1.025); }
.vss-play { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #050b14; background: var(--vss-gold); box-shadow: 0 8px 28px rgba(0,0,0,.5); }
.vss-post-actions { display: flex; border-top: 1px solid var(--vss-line); }
.vss-post-actions button { flex: 1; border: 0; color: #94a3b8; background: transparent; padding: 11px 7px; cursor: pointer; }
.vss-post-actions button:hover { color: var(--vss-gold); background: rgba(255,255,255,.03); }
.vss-reels { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.vss-reel-wrap { min-width: 0; }
.vss-reel { position: relative; aspect-ratio: 9/16; border: 1px solid var(--vss-line); border-radius: 16px; overflow: hidden; background: #020617; cursor: pointer; padding: 0; }
.vss-reel img { width: 100%; height: 100%; object-fit: cover; }
.vss-reel::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.85)); }
.vss-reel-meta { position: absolute; z-index: 2; inset-inline: 11px; inset-block-end: 11px; color: white; text-align: start; }
.vss-reel-meta strong { display: block; font-size: 12px; }
.vss-reel-actions { display: flex; gap: 5px; padding-top: 6px; }
.vss-reel-actions .vss-btn { flex: 1; padding: 8px 6px; }
.vss-load-more { display: block; margin: 18px auto 0; }

.vss-progress { height: 9px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.vss-progress span { display: block; height: 100%; width: var(--progress,0%); border-radius: inherit; background: linear-gradient(90deg,#f7ab39,#facc15); }
.vss-badge-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.vss-badge { display: grid; place-items: center; min-height: 112px; padding: 14px; text-align: center; border: 1px solid rgba(247,171,57,.16); background: rgba(247,171,57,.055); border-radius: 14px; }
.vss-badge i { color: var(--vss-gold); font-size: 28px; }
.vss-badge strong { font-size: 12px; overflow-wrap: anywhere; }
.vss-badge.is-progress { filter: saturate(.65); opacity: .72; }
.vss-linked { display: flex; flex-wrap: wrap; gap: 8px; }

.vss-page-head { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 18px; }
.vss-page-head h1 { margin: 0; color: white; font: 900 clamp(1.65rem,2.5vw,2.4rem)/1 Orbitron,Cairo,sans-serif; }
.vss-page-head p { color: var(--vss-muted); margin: 7px 0 0; }
.vss-filter-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.vss-notifications-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 16px; }
.vss-filter-rail { align-self: start; position: sticky; top: 88px; padding: 9px; border: 1px solid var(--vss-line); background: var(--vss-card); border-radius: 15px; }
.vss-filter-rail button { display: flex; width: 100%; gap: 9px; align-items: center; border: 0; background: transparent; color: #94a3b8; padding: 11px 12px; border-radius: 9px; cursor: pointer; font-weight: 800; }
.vss-filter-rail button:hover, .vss-filter-rail button.is-active { color: #050b14; background: var(--vss-gold); }
.vss-notification { align-items: flex-start; cursor: pointer; margin-bottom: 9px; }
.vss-notification:not(.is-read) { border-color: rgba(247,171,57,.28); background: rgba(247,171,57,.055); }
.vss-notification-type { color: var(--vss-gold); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
[data-vss-notifications-all] { width: calc(100% - 16px); margin: 8px; }

.vss-messenger { display: grid; grid-template-columns: minmax(250px,320px) minmax(420px,1fr) minmax(210px,270px); height: calc(100vh - 132px); min-height: 560px; border: 1px solid var(--vss-line); border-radius: 20px; overflow: hidden; background: #09111f; }
.vss-conversations { display: flex; flex-direction: column; min-width: 0; border-inline-end: 1px solid var(--vss-line); }
.vss-messenger-head { padding: 17px; border-bottom: 1px solid var(--vss-line); }
.vss-messenger-head h1 { margin: 0 0 12px; font: 900 20px Orbitron,Cairo,sans-serif; }
.vss-search { width: 100%; border: 1px solid var(--vss-line); background: rgba(0,0,0,.28); color: white; border-radius: 11px; padding: 10px 12px; outline: none; }
.vss-search:focus { border-color: var(--vss-gold); }
.vss-conversation-list { flex: 1; overflow: auto; padding: 7px; }
.vss-conversation { display: flex; width: 100%; align-items: center; gap: 10px; text-align: start; border: 0; background: transparent; color: white; border-radius: 12px; padding: 10px; cursor: pointer; }
.vss-conversation:hover, .vss-conversation.is-active { background: rgba(247,171,57,.1); }
.vss-conversation img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; }
.vss-chat-host { position: relative; min-width: 0; min-height: 0; background: #0f172a; }
.vss-chat-host #quick_chat_window { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; }
.vss-chat-empty { height: 100%; display: grid; place-items: center; text-align: center; color: #64748b; }
.vss-chat-info { min-height: 0; overflow-y: auto; padding: 22px; border-inline-start: 1px solid var(--vss-line); text-align: center; }
.vss-chat-info img { width: 92px; height: 92px; border-radius: 24px; object-fit: cover; margin: 20px auto 12px; }

.vss-rewards-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 20px; padding: 27px; border: 1px solid rgba(247,171,57,.22); border-radius: 20px; background: radial-gradient(circle at 85% 15%,rgba(247,171,57,.18),transparent 35%),var(--vss-card); }
.vss-level { font: 900 clamp(2.3rem,6vw,5.2rem)/1 Orbitron,sans-serif; color: var(--vss-gold); }

.vss-community-surface { display: none; grid-column: 1/-1; min-width: 0; }
#view_community.vss-external-surface #vsCommunityApp { display: none !important; }
#view_community.vss-external-surface .vss-community-surface { display: block; }
.vss-discover-section { margin-bottom: 20px; }
.vss-creators { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.vss-creator { padding: 16px; text-align: center; border-radius: 15px; border: 1px solid var(--vss-line); background: var(--vss-card); }
.vss-creator img { width: 70px; height: 70px; object-fit: cover; border-radius: 20px; margin: 0 auto 10px; }
.vss-community-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 6px; border-radius: 13px; background: rgba(5,11,20,.88); border: 1px solid var(--vss-line); margin-top: 14px; }
.vss-community-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vss-community-invite-prompt { display: flex; align-items: center; gap: 7px; margin-inline-start: auto; padding: 7px; border: 1px solid rgba(247,171,57,.3); border-radius: 12px; background: rgba(247,171,57,.07); }
.vss-community-invite-prompt strong { padding-inline: 5px; color: #f7ab39; font-size: 11px; }
.vss-community-tabs button { flex: 0 0 auto; border: 0; color: #94a3b8; background: transparent; padding: 9px 12px; border-radius: 9px; cursor: pointer; font-weight: 800; }
.vss-community-tabs button.is-active { color: #050b14; background: var(--vss-gold); }
.vss-community-detail { margin-top: 13px; }
.vss-community-member .vss-role { padding: 5px 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: #94a3b8; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.vss-community-member .vss-role.is-owner { color: #f7ab39; border-color: rgba(247,171,57,.35); }
.vss-community-member .vss-role.is-admin { color: #67e8f9; border-color: rgba(34,211,238,.3); }
.vss-community-member .vss-role.is-invited { color: #c4b5fd; border-color: rgba(167,139,250,.3); }
.vss-pinned { outline: 2px solid rgba(247,171,57,.5); }
.vss-pinned::before { content: "Pinned post"; display: block; padding: 7px 13px; color: var(--vss-gold); font-size: 11px; font-weight: 900; text-transform: uppercase; background: rgba(247,171,57,.08); }
.vss-reward-history { display: grid; gap: 8px; }
.vss-reward-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--vss-line); border-radius: 13px; background: rgba(255,255,255,.025); }
.vss-reward-row > i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #07101d; background: #f7ab39; }

[dir="rtl"] .vss-profile-head, [dir="rtl"] .vss-post-head, [dir="rtl"] .vss-person, [dir="rtl"] .vss-notification { direction: rtl; }

@media (max-width: 1180px) {
    .vss-stats { grid-template-columns: repeat(4,1fr); }
    .vss-reels { grid-template-columns: repeat(4,1fr); }
    .vss-messenger { grid-template-columns: 280px minmax(0,1fr); }
    .vss-chat-info { display: none; }
}

@media (max-width: 820px) {
    .vss-profile-cover { min-height: 210px; }
    .vss-profile-head { grid-template-columns: 1fr; justify-items: center; text-align: center; margin: -72px 15px 0; }
    .vss-profile-avatar { width: 126px; height: 126px; }
    .vss-profile-identity p { margin-inline: auto; }
    .vss-actions { justify-content: center; }
    .vss-stats { grid-template-columns: repeat(3,1fr); }
    .vss-card { grid-column: 1/-1; }
    .vss-reels { grid-template-columns: repeat(3,1fr); }
    .vss-notifications-layout { grid-template-columns: 1fr; }
    .vss-filter-rail { position: static; display: flex; overflow-x: auto; padding: 6px; }
    .vss-filter-rail button { width: auto; flex: 0 0 auto; }
    .vss-messenger { grid-template-columns: 1fr; height: auto; min-height: 650px; }
    .vss-conversations { max-height: 310px; border-inline-end: 0; border-bottom: 1px solid var(--vss-line); }
    .vss-chat-host { min-height: 520px; }
    .vss-creators { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 560px) {
    .vss-stats { grid-template-columns: repeat(2,1fr); }
    .vss-post-grid { grid-template-columns: 1fr; }
    .vss-reels { grid-template-columns: repeat(2,1fr); }
    .vss-badge-grid { grid-template-columns: repeat(2,1fr); }
    .vss-rewards-hero { grid-template-columns: 1fr; }
    .vss-page-head { align-items: start; flex-direction: column; }
    .vss-community-invite-prompt { width: 100%; margin-inline-start: 0; }
    .vss-community-member { flex-wrap: wrap; }
}
